【营销计划-C端】1个商品,暂停,过期,页面展示修改

This commit is contained in:
Apple 2022-06-17 09:58:28 +08:00
parent 457d1a7261
commit bbd483a01d
1 changed files with 9 additions and 4 deletions

View File

@ -49,7 +49,7 @@
<div class="swiper-pagination"></div> <div class="swiper-pagination"></div>
</div> </div>
</div> </div>
<div class="ipt-acc" style="position: relative;z-index: 999;"> <div class="ipt-acc" style="position: relative;z-index: 999;" @click="bindAvailable">
<p v-if="acctype=='tel'"><span>账号:</span><input :type="acctype" <p v-if="acctype=='tel'"><span>账号:</span><input :type="acctype"
onkeyup="this.value=this.value.replace(/\D/g,'')" onkeyup="this.value=this.value.replace(/\D/g,'')"
:disabled="goodsDetail.available!=1" :disabled="goodsDetail.available!=1"
@ -178,6 +178,12 @@
}) })
}, },
methods: { methods: {
bindAvailable(){
if(goodsDetail.available!=1){
this.openErrorDialog(product_status(goodsDetail.available,goodsDetail));
return
}
},
openErrorDialog(tip) { openErrorDialog(tip) {
this.maskshow = true; this.maskshow = true;
this.popboxtype = '提示'; this.popboxtype = '提示';
@ -213,9 +219,8 @@
}, },
//兑换商品 //兑换商品
exchangeGoodsFn() { exchangeGoodsFn() {
console.log(217,this.goodsDetail); if(goodsDetail.available!=1){
if(this.goodsDetail.available!=1){ this.openErrorDialog(product_status(goodsDetail.available,goodsDetail));
this.openErrorDialog(product_status(this.goodsDetail.available,this.goodsDetail));
return return
} }
if (!this.account) { if (!this.account) {