Authored by 王水玲

mars 商品详情

... ... @@ -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;
... ... @@ -611,9 +611,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);
... ...
... ... @@ -330,9 +330,17 @@ setTimeout(() => {
$('.mars-jump-min-app').on('click', function() {
if (yoho && yoho.isMarsApp) {
yoho.invokeMethod('go.minAppGoodsDetail', {
url: '/pages/goodsDetail/goodsDetail?productSkn=' + productSkn
});
let Limitcode = $('#limitProductCode').val();
if (Limitcode) {
yoho.invokeMethod('go.minAppLimitDetail', {
url: '/pages/product/detail/detail?limitProductCode=' + Limitcode // eslint-disable-line
});
} else {
yoho.invokeMethod('go.minAppGoodsDetail', {
url: '/pages/goodsDetail/goodsDetail?productSkn=' + productSkn
});
}
}
});
... ...