diff --git a/package1/buyFood/buyFood.vue b/package1/buyFood/buyFood.vue index 2edf306..87130d5 100644 --- a/package1/buyFood/buyFood.vue +++ b/package1/buyFood/buyFood.vue @@ -133,7 +133,7 @@ 佣金 ¥ - {{customCommission || '0.1'}} + {{customCommission || '请输入'}} @@ -580,7 +580,7 @@ remark:'', remarkInputValue: '', selected: 'buzhiding', - customCommission: '0.1', + customCommission: '', commissionInputValue: '', shopItem: {}, cartItems: [], @@ -831,7 +831,7 @@ formatCommissionValue(value) { let amount = parseFloat(value); if (isNaN(amount) || amount < 0.1) { - return '0.1'; + return ''; } amount = Math.floor(amount * 100) / 100; return amount.toFixed(2).replace(/\.?0+$/, ''); @@ -876,6 +876,11 @@ }, confirmCommission() { let commission = parseFloat(this.commissionInputValue); + if (isNaN(commission) || commission < 0.1) { + this.warnPopup = 'psyj'; + this.$refs.warnPopup.open(); + return; + } if (commission > 200) { this.tui.toast('配送佣金不得超过200元'); return; @@ -1001,7 +1006,6 @@ } if (this.isPaotui && this.selected === 'buzhiding' && !isJoiningFaceToFace) { - this.normalizeCustomCommission(); let comm = parseFloat(this.customCommission); if (isNaN(comm) || comm < 0.1) { this.warnPopup = 'psyj'; @@ -1012,6 +1016,7 @@ this.tui.toast('配送佣金不得超过200元'); return; } + this.normalizeCustomCommission(); } if (this.isPaotui && this.selected === 'zhiding' && !this.assignedWorker && !isJoiningFaceToFace) { diff --git a/package1/ieBrowser/chat.vue b/package1/ieBrowser/chat.vue index 8b01f2e..896cbb7 100644 --- a/package1/ieBrowser/chat.vue +++ b/package1/ieBrowser/chat.vue @@ -1,5 +1,5 @@