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