瀏覽代碼

no message

zpj 1 年之前
父節點
當前提交
b91c0e0729
共有 1 個文件被更改,包括 4 次插入 和 0 次删除
  1. 4 0
      pages/index/order.vue

+ 4 - 0
pages/index/order.vue

@@ -277,14 +277,18 @@
 
 		onShow() {
 			this.shop_id = uni.getStorageSync('shop_id');
+			this.setYHmoney();
 		},
 
 		methods: {
 			setYHmoney(){
 				let num1 = this.totalPrice*1
 				let num2 = this.discount*1
+
 				let num3 = (((num1*num2*10000)/100).toFixed(0)/100).toFixed(2)
+				
 				let num4 = ((((num1-num3)*10000)/100).toFixed(0)/100).toFixed(2)
+				
 				return num4
 			},
 			setMoney(){