style:调整商品列表banner展示

This commit is contained in:
wangsongsole 2022-10-28 11:28:04 +08:00
parent 6b3850be81
commit 7b45f7ec2b
1 changed files with 4 additions and 3 deletions

View File

@ -55,6 +55,7 @@
:placeholder="viewConfig.search.placeholder"> :placeholder="viewConfig.search.placeholder">
</div> </div>
</div> </div>
<div class="fictitious" v-if="viewConfig.search.iswitch==='1'"></div>
<img class="banner" :src="viewConfig.top_image" alt=""> <img class="banner" :src="viewConfig.top_image" alt="">
</div> </div>
@ -408,7 +409,7 @@
localStorage.setItem('goodsCollection', JSON.stringify(goodsArr)); localStorage.setItem('goodsCollection', JSON.stringify(goodsArr));
self.goodsShow = goodsArr.length > 1; self.goodsShow = goodsArr.length > 1;
localStorage.setItem('goodsCount', goodsArr.length); localStorage.setItem('goodsCount', goodsArr.length);
if (goodsArr && goodsArr.length == 1 && (goodsArr[0].available == 1||goodsArr[0].available == 22)) { if (goodsArr && goodsArr.length == 1 && (goodsArr[0].available == 1 || goodsArr[0].available == 22)) {
localStorage.setItem('goodsInfo', JSON.stringify(goodsArr[0])); localStorage.setItem('goodsInfo', JSON.stringify(goodsArr[0]));
localStorage.setItem('key', goodsArr[0].key); localStorage.setItem('key', goodsArr[0].key);
localStorage.setItem('token', goodsArr[0].token); localStorage.setItem('token', goodsArr[0].token);
@ -508,14 +509,14 @@
}, },
/* 动态置灰 */ /* 动态置灰 */
dynamicAsh (item) { dynamicAsh (item) {
return (item.stock && (item.stock < 0 || item.available != 1) && item.available != 2&& item.available != 22) ? 'changegray' : '' return (item.stock && (item.stock < 0 || item.available != 1) && item.available != 2 && item.available != 22) ? 'changegray' : ''
}, },
//选择商品点击兑换 //选择商品点击兑换
exchangeBtn (row = this.exchangeCommity) { exchangeBtn (row = this.exchangeCommity) {
let gstatus = row.available; let gstatus = row.available;
this.gstatus = gstatus; this.gstatus = gstatus;
if (gstatus == 1||gstatus == 22) { if (gstatus == 1 || gstatus == 22) {
// 跳转商品详情页面 // 跳转商品详情页面
if (this.showType == 1) { //白名单 if (this.showType == 1) { //白名单
localStorage.setItem('token', row.token); localStorage.setItem('token', row.token);