Răsfoiți Sursa

Merge branch 'master' of http://git.huaml.com/zhh/front-end

shish 11 luni în urmă
părinte
comite
6ec431a5d6
1 a modificat fișierele cu 4 adăugiri și 1 ștergeri
  1. 4 1
      mallApp/src/pages/billing/affirmGhs.vue

+ 4 - 1
mallApp/src/pages/billing/affirmGhs.vue

@@ -333,7 +333,10 @@ export default {
 				uni.hideLoading()
 				if(res.code && res.code == 1){
 					let account = this.option.account ? this.option.account : 0
-					let totalPrice = Number(res.data.totalPrice) + Number(this.form.sendCost)
+					let totalPrice = Number(res.data.totalPrice)
+					if (this.form.sendType == 2) { // 当是代叫跑腿时,总价格得加上运费
+						totalPrice =+ Number(this.form.sendCost)
+					}
 					
 					if (Math.abs(totalPrice - this.modifyPrice) < 0.001) {
 						res.data.totalPrice = totalPrice