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

修改

parent 12a699e9
...@@ -15,9 +15,7 @@ ...@@ -15,9 +15,7 @@
<div class="cursor-pointer" :class="{'unUsed':currentPrice<x.useCondition}"> <div class="cursor-pointer" :class="{'unUsed':currentPrice<x.useCondition}">
<div class="coupon-head"> <div class="coupon-head">
<div class="check-tools" v-if="currentPrice>=x.useCondition"> <div class="check-tools" v-if="currentPrice>=x.useCondition">
{{ x.couponId }} <q-checkbox v-model="chosenCouponId" :val="x.couponId" @input="changeDiscountHandler" label="" dense color="teal" />
<q-checkbox v-model="chosenCouponId" :val="x.couponId" label="" dense color="teal" />
{{ chosenCouponId }}
</div> </div>
<div class="q-pa-lg q-mt-lg"> <div class="q-pa-lg q-mt-lg">
<div class="row items-center"> <div class="row items-center">
...@@ -120,7 +118,9 @@ export default { ...@@ -120,7 +118,9 @@ export default {
}, },
methods: { methods: {
changeDiscountHandler(x){ changeDiscountHandler(x){
if(this.chosenCouponId.length>1){
this.chosenCouponId.splice(0,1)
}
}, },
getProductCouponHandler(){ getProductCouponHandler(){
this.apiJavaPost( this.apiJavaPost(
......
...@@ -490,7 +490,7 @@ export default { ...@@ -490,7 +490,7 @@ export default {
this.chosenObj.etzcCount; this.chosenObj.etzcCount;
money += this.p.babyPrice * this.chosenObj.yeCount; money += this.p.babyPrice * this.chosenObj.yeCount;
money += this.p.singleRoomPrice * this.chosenObj.df; money += this.p.singleRoomPrice * this.chosenObj.df;
this.chosenObj.etCount = this.chosenObj.etbzcCount + this.chosenObj.etzcCount
let sumCount = let sumCount =
this.chosenObj.crCount + this.chosenObj.crCount +
this.chosenObj.etCount + 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