fix:【C端】【订单】购买商品应该先判断商品是否有未完成的订单,再判断其他领取限制,增加判断商品状态22,可进入详情页

This commit is contained in:
Apple 2022-10-27 10:54:13 +08:00
parent e212e4c2fd
commit 12e1f8a60b
1 changed files with 2 additions and 2 deletions

View File

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