...
|
...
|
@@ -32,7 +32,7 @@ const HeaderModel = require('../../../doraemon/models/header'); |
|
|
const BLANK_STR = ' ';
|
|
|
|
|
|
// 展览票
|
|
|
const EXHIBITION_TICKET = 51335912;
|
|
|
const YOHOOD_TICKET = 51335912;
|
|
|
|
|
|
const _getProductAdditionInfoAsync = (data) => {
|
|
|
return co(function * () {
|
...
|
...
|
@@ -1207,6 +1207,7 @@ const _detailDataPkg = (origin, uid, vipLevel, cookies) => { |
|
|
result.openSoon = fashTopGoods.openSoon; // 即将开售
|
|
|
result.dis = fashTopGoods.dis; // 是否失效
|
|
|
result.buyNow = fashTopGoods.buyNow; // 是否立即购买
|
|
|
result.buyNowBase = helpers.urlFormat('/limited', null, 'shopping'); // 购买链接
|
|
|
}
|
|
|
}
|
|
|
|
...
|
...
|
@@ -1215,14 +1216,12 @@ const _detailDataPkg = (origin, uid, vipLevel, cookies) => { |
|
|
let notForSale = propOrigin('attribute') === 2; // 非卖品
|
|
|
let virtualGoods = propOrigin('attribute') === 3; // 虚拟商品
|
|
|
|
|
|
|
|
|
if (virtualGoods) {
|
|
|
result.virtualGoods = virtualGoods;
|
|
|
|
|
|
// 是否显示虚拟商品,立即购买按钮
|
|
|
result.isVirtualBtn = soldOut ? false : true;
|
|
|
|
|
|
// 是否展览票
|
|
|
result.isTicket = propOrigin('product_skn') === EXHIBITION_TICKET;
|
|
|
}
|
|
|
|
|
|
if (!soldOut && !notForSale && !virtualGoods) {
|
...
|
...
|
@@ -1239,10 +1238,14 @@ const _detailDataPkg = (origin, uid, vipLevel, cookies) => { |
|
|
// 已售磬
|
|
|
result.soldOut = true;
|
|
|
delete result.fashTopGoods;
|
|
|
} else if (virtualGoods) {
|
|
|
}
|
|
|
|
|
|
// 电子票
|
|
|
result.isTicket = propOrigin('product_skn') === YOHOOD_TICKET;
|
|
|
if (virtualGoods && result.isTicket) {
|
|
|
// 虚拟商品
|
|
|
result.buyNow = true; // 是否立即购买
|
|
|
result.buyNowBase = helpers.urlFormat('ticket', null, 'shopping');
|
|
|
result.buyNowBase = helpers.urlFormat('/ticket', null, 'shopping');
|
|
|
if (result.salePrice) {
|
|
|
result.advancePrice = result.salePrice; // 先行价格
|
|
|
delete result.salePrice;
|
...
|
...
|
|