zpj 1 жил өмнө
parent
commit
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(){