Commit 4322c9ab authored by 罗超's avatar 罗超

修改

parent 12a699e9
......@@ -15,9 +15,7 @@
<div class="cursor-pointer" :class="{'unUsed':currentPrice<x.useCondition}">
<div class="coupon-head">
<div class="check-tools" v-if="currentPrice>=x.useCondition">
{{ x.couponId }}
<q-checkbox v-model="chosenCouponId" :val="x.couponId" label="" dense color="teal" />
{{ chosenCouponId }}
<q-checkbox v-model="chosenCouponId" :val="x.couponId" @input="changeDiscountHandler" label="" dense color="teal" />
</div>
<div class="q-pa-lg q-mt-lg">
<div class="row items-center">
......@@ -120,7 +118,9 @@ export default {
},
methods: {
changeDiscountHandler(x){
if(this.chosenCouponId.length>1){
this.chosenCouponId.splice(0,1)
}
},
getProductCouponHandler(){
this.apiJavaPost(
......
......@@ -490,7 +490,7 @@ export default {
this.chosenObj.etzcCount;
money += this.p.babyPrice * this.chosenObj.yeCount;
money += this.p.singleRoomPrice * this.chosenObj.df;
this.chosenObj.etCount = this.chosenObj.etbzcCount + this.chosenObj.etzcCount
let sumCount =
this.chosenObj.crCount +
this.chosenObj.etCount +
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment