fix: 修复小程序审批详情页剪切板复制失败后页面卡在加载状态的问题
This commit is contained in:
parent
ecb2f69223
commit
4908ebf4b5
@ -204,7 +204,7 @@ Page({
|
||||
if (rebate > 0) feeItems.push({ label: "回扣", value: fmt(rebate) });
|
||||
if (freight > 0) feeItems.push({ label: "运费", value: fmt(freight) });
|
||||
if (tax > 0) feeItems.push({ label: "税费", value: fmt(tax) });
|
||||
if (commission > 0) feeItems.push({ label: "佣金", value: fmt(commission) });
|
||||
// if (commission > 0) feeItems.push({ label: "佣金", value: fmt(commission) });
|
||||
var otherFee = Number(data.other_fee_total || 0);
|
||||
if (otherFee > 0) feeItems.push({ label: "其他费用", value: fmt(otherFee) });
|
||||
feeItems.push({ label: "利润", value: fmt(profit), isProfit: true });
|
||||
@ -433,6 +433,11 @@ Page({
|
||||
data: clipboardText,
|
||||
success: function () {
|
||||
wx.showToast({ title: "内容已复制到剪贴板", icon: "none", duration: 2000 });
|
||||
},
|
||||
fail: function () {
|
||||
wx.showToast({ title: "复制失败,请手动复制", icon: "none", duration: 2000 });
|
||||
},
|
||||
complete: function () {
|
||||
that.loadDetail();
|
||||
},
|
||||
});
|
||||
|
||||
Loading…
Reference in New Issue
Block a user