Merge branch 'couponV2.0' of codeup.aliyun.com:5f9118049cffa29cfdd3be1c/marketing/mobileclient into couponV2.0

This commit is contained in:
wangsongsole 2022-10-27 10:56:52 +08:00
commit 276c54eeac
1 changed files with 2 additions and 2 deletions

View File

@ -408,7 +408,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) {
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);
@ -515,7 +515,7 @@
exchangeBtn (row = this.exchangeCommity) {
let gstatus = row.available;
this.gstatus = gstatus;
if (gstatus == 1) {
if (gstatus == 1||gstatus == 22) {
// 跳转商品详情页面
if (this.showType == 1) { //白名单
localStorage.setItem('token', row.token);