shish 2 lat temu
rodzic
commit
1053ed90cd

+ 6 - 0
ghsPad/src/pages/home/components/settlePop.vue

@@ -83,6 +83,7 @@
             </view>
             <view class="input-list">
                 <text>总金额</text>
+                <text @click="setDiscount()">点击打8折</text>
                 <text><text>{{totalPrice}}</text></text>
             </view>
 
@@ -254,6 +255,11 @@ export default {
 
     },
     methods: {
+        setDiscount(){
+             let price = Number(this.totalPrice)*0.8
+             price = parseFloat(price.toFixed(2))
+             this.form.modifyPrice = price
+        },
         confirmDiff(){
             this.form.dealPrice = 1
             this.$refs.diffRef.close()

+ 6 - 0
hdPad/src/pages/home/components/settlePop.vue

@@ -79,6 +79,7 @@
             </view>
             <view class="input-list">
                 <text>总金额</text>
+                <text @click="setDiscount()">点击打8折</text>
                 <text><text>{{totalPrice}}</text></text>
             </view>
 
@@ -221,6 +222,11 @@ export default {
         })
     },
     methods: {
+        setDiscount(){
+             let price = Number(this.totalPrice)*0.8
+             price = parseFloat(price.toFixed(2))
+             this.form.modifyPrice = price
+        },
         changeShopAdminId(item){
             this.form.shopAdminId = item.id
             this.form.shopAdminName = item.name