|
|
@@ -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
|