diff --git a/coupon/couponCollection.html b/coupon/couponCollection.html index b0006ab..23ac218 100644 --- a/coupon/couponCollection.html +++ b/coupon/couponCollection.html @@ -55,6 +55,7 @@ :placeholder="viewConfig.search.placeholder"> +
@@ -408,7 +409,7 @@ localStorage.setItem('goodsCollection', JSON.stringify(goodsArr)); self.goodsShow = goodsArr.length > 1; 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('key', goodsArr[0].key); localStorage.setItem('token', goodsArr[0].token); @@ -508,14 +509,14 @@ }, /* 动态置灰 */ 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) { let gstatus = row.available; this.gstatus = gstatus; - if (gstatus == 1||gstatus == 22) { + if (gstatus == 1 || gstatus == 22) { // 跳转商品详情页面 if (this.showType == 1) { //白名单 localStorage.setItem('token', row.token);