解决C端提示和显示

This commit is contained in:
red-deng-deng 2021-12-02 11:02:50 +08:00
parent 5c5db960a5
commit 62b6418dcd
1 changed files with 18 additions and 8 deletions

View File

@ -85,9 +85,9 @@
</span>
</div>
<div class="imgbox">
<img class="le-img" :src="item.show_url" :class="item.stock&&item.stock<0||item.available==7||item.available==8?'changegray':''"></img>
<img class="le-img" :src="item.show_url" :class="item.stock&&item.stock<0||item.available!=1&&item.available!=2?'changegray':''"></img>
</div>
<div class="item-name" v-html="item.product_name" :class="item.stock&&item.stock<0||item.available==7||item.available==8?'changegray':''">
<div class="item-name" v-html="item.product_name" :class="item.stock&&item.stock<0||item.available!=1&&item.available!=2?'changegray':''">
</div>
</div>
</div>
@ -110,8 +110,8 @@
<ul class="listcommity" v-if="goodsNum">
<li v-for="(item,i) in swiperDataList" :key="i">
<div>
<img :src="item.show_url" alt="" :class="item.stock&&item.stock<0||item.available==7||item.available==8?'changegray':''">
<font :class="item.stock&&item.stock<0||item.available==7||item.available==8?'changegray':''">{{item.product_name}}</font>
<img :src="item.show_url" alt="" :class="item.stock&&item.stock<0||item.available!=1&&item.available!=2?'changegray':''">
<font :class="item.stock&&item.stock<0||item.available!=1&&item.available!=2?'changegray':''">{{item.product_name}}</font>
</div>
<span v-if="item.available==1" :style="{'background':bgcolor?bgcolor:'#F98F5B'}"
@click="exchangeBtn(item)" >兑换</span>
@ -131,7 +131,7 @@
</div>
<ul class="listcommity" v-if="goodsNum">
<li :class="item.stock&&item.stock<0||item.available==7||item.available==8?'changegray':''" v-for="(item,i) in swiperDataList" :key="i"
<li :class="item.stock&&item.stock<0||item.available!=1&&item.available!=2?'changegray':''" v-for="(item,i) in swiperDataList" :key="i"
@click="exchangeBtn(item)">
<div>
<span class="goodsIcon">
@ -208,7 +208,7 @@
data() {
return {
swiperDataList: [], //轮播
layout: 3,
layout: 2,
maskshow: false,
proname: '黄金爱奇艺',
promtshow: false,
@ -335,7 +335,8 @@
}else if (gstatus == 7) { //其他商品处于兑换中
this.tiptext = '当前商品不可兑换';
}else if (gstatus == 8) { //已兑换次数
this.tiptext = '当前商品不可兑换';
this.tiptext = '当前商品正在兑换中';
}
}
},
@ -344,6 +345,8 @@
this.maskshow = false;
this.account = "";
this.reaccount = "";
},
//确定,点击兑换按钮
defineBtn() {
@ -360,7 +363,7 @@
regflag = phonereg;
} else if (this.productType == 2) {
regflag = qqreg;
} else if (this.productType == 4) {
} else{
regflag = reg;
}
if (!regflag) {
@ -392,6 +395,10 @@
this.maskshow = false;
this.account = "";
this.reaccount = "";
if(this.gstatus==8){
window.history.go(0);
}
},
//确定兑换
surexchangeBtn() {
@ -432,6 +439,9 @@
this.popboxshow = false;
this.account = "";
this.reaccount = "";
if(this.gstatus==8){
window.history.go(0);
}
},
//刷新页面
successchangeBtnFn() {