Commit 33d2e36c by lixiaomin

修改优惠券券价值显示

parent 75b43306
......@@ -108,9 +108,9 @@
<div style="margin-left: 73px;">
<div class="marginLeft10">
<span>立减</span><el-input v-model="liJian" class="inputCalss" :disabled="type=='2' || type=='3'"/><span class="spanClass"></span>
<el-radio-group v-model="firstRadioValue" class="marginLeft10">
<el-radio-group v-model="firstRadioValue" class="marginLeft10" @change="changeFirstRadioValue">
<el-radio :label="1" class="marginLeft10" :disabled="type=='2'">无门槛</el-radio>
<el-radio :label="2" :disabled="type=='2'"><el-input v-model="priceLimit" class="inputCalss" :disabled="type=='2'"/><span class="spanClass"></span></el-radio>
<el-radio :label="2" :disabled="type=='2'"><el-input v-model="priceLimit" class="inputCalss" :disabled="priceLimitDisable"/><span class="spanClass"></span></el-radio>
</el-radio-group>
</div>
<div style="margin-left: 36px;margin-top: 10px;" >
......@@ -304,7 +304,8 @@ export default {
storesRange:[],
selectMess:true,
shopAreaTreeList:[],
messageMoudleList:[]
messageMoudleList:[],
priceLimitDisable:false
};
},
created() {
......@@ -416,11 +417,13 @@ export default {
this.type=this.couCategoryList[i].type;
if(this.type=="1"){
this.firstRadioValue=1;
this.priceLimitDisable=true
}else if(this.type=="2"){
this.twoRadioValue=3;
}else if(this.type=="3"){
this.firstRadioValue=1;
this.twoRadioValue=3;
this.priceLimitDisable=true
}
}
}
......@@ -515,9 +518,11 @@ export default {
this.liJian=response.data.priceDiscount;
if(response.data.priceLimit==0){
this.firstRadioValue=1;
this.priceLimitDisable=true
}else{
this.firstRadioValue=2;
this.priceLimit=response.data.priceLimit;
this.priceLimitDisable=false
}
}else if(this.type==2){
this.jiZhe=response.data.priceDiscount;
......@@ -530,9 +535,11 @@ export default {
this.twoRadioValue=3;
if(response.data.priceLimit==0){
this.firstRadioValue=1;
this.priceLimitDisable=true
}else{
this.firstRadioValue=2;
this.priceLimit=response.data.priceLimit;
this.priceLimitDisable=false
}
}
if(response.data.daysLimit==0 && response.data.userLimit==0){
......@@ -889,6 +896,14 @@ export default {
this.messageMoudleList=response.data;
}
})
},
changeFirstRadioValue(val){
if(val==2){
this.priceLimitDisable=false
}else if(val==1){
this.priceLimitDisable=true
this.priceLimit=""
}
}
},
};
......
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