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