...
|
...
|
@@ -101,7 +101,7 @@ module.exports = class extends global.yoho.BaseModel { |
|
|
break;
|
|
|
case 4: // 开售后,立即购买(用户已领取限购码)
|
|
|
data.gotCode = true;
|
|
|
data.cartInfo.canNotBuy = true;
|
|
|
data.cartInfo.appBuy = 'limitProduct';
|
|
|
break;
|
|
|
case 5: // 开售前,限购码已被抢光(用户未领取限购码)
|
|
|
data.codeEmpty = true;
|
...
|
...
|
@@ -615,9 +615,7 @@ module.exports = class extends global.yoho.BaseModel { |
|
|
let isBeginSale = (result.data.saleStatus === 1);
|
|
|
|
|
|
// 限购商品有关的展示状态
|
|
|
let showStatus = 1;
|
|
|
|
|
|
origin.showStatus && (showStatus = parseInt(result.data.showStatus, 10));
|
|
|
let showStatus = parseInt(result.data.showStatus, 10);
|
|
|
|
|
|
// 处理限购商品有关的按钮状态
|
|
|
dest = this._procShowStatus(dest, showStatus, isBeginSale);
|
...
|
...
|
|