|
@@ -30,7 +30,7 @@ const HeaderModel = require('../../../doraemon/models/header'); |
|
@@ -30,7 +30,7 @@ const HeaderModel = require('../../../doraemon/models/header'); |
30
|
const BLANK_STR = ' ';
|
30
|
const BLANK_STR = ' ';
|
31
|
|
31
|
|
32
|
// 展览票
|
32
|
// 展览票
|
33
|
-const EXHIBITION_TICKET = 51335912;
|
33
|
+const YOHOOD_TICKET = 51335912;
|
34
|
|
34
|
|
35
|
const _getProductAdditionInfoAsync = (data) => {
|
35
|
const _getProductAdditionInfoAsync = (data) => {
|
36
|
return co(function * () {
|
36
|
return co(function * () {
|
|
@@ -1175,6 +1175,7 @@ const _detailDataPkg = (origin, uid, vipLevel, cookies) => { |
|
@@ -1175,6 +1175,7 @@ const _detailDataPkg = (origin, uid, vipLevel, cookies) => { |
1175
|
result.openSoon = fashTopGoods.openSoon; // 即将开售
|
1175
|
result.openSoon = fashTopGoods.openSoon; // 即将开售
|
1176
|
result.dis = fashTopGoods.dis; // 是否失效
|
1176
|
result.dis = fashTopGoods.dis; // 是否失效
|
1177
|
result.buyNow = fashTopGoods.buyNow; // 是否立即购买
|
1177
|
result.buyNow = fashTopGoods.buyNow; // 是否立即购买
|
|
|
1178
|
+ result.buyNowBase = helpers.urlFormat('/limited', null, 'shopping'); // 购买链接
|
1178
|
}
|
1179
|
}
|
1179
|
}
|
1180
|
}
|
1180
|
|
1181
|
|
|
@@ -1183,14 +1184,12 @@ const _detailDataPkg = (origin, uid, vipLevel, cookies) => { |
|
@@ -1183,14 +1184,12 @@ const _detailDataPkg = (origin, uid, vipLevel, cookies) => { |
1183
|
let notForSale = propOrigin('attribute') === 2; // 非卖品
|
1184
|
let notForSale = propOrigin('attribute') === 2; // 非卖品
|
1184
|
let virtualGoods = propOrigin('attribute') === 3; // 虚拟商品
|
1185
|
let virtualGoods = propOrigin('attribute') === 3; // 虚拟商品
|
1185
|
|
1186
|
|
|
|
1187
|
+
|
1186
|
if (virtualGoods) {
|
1188
|
if (virtualGoods) {
|
1187
|
result.virtualGoods = virtualGoods;
|
1189
|
result.virtualGoods = virtualGoods;
|
1188
|
|
1190
|
|
1189
|
// 是否显示虚拟商品,立即购买按钮
|
1191
|
// 是否显示虚拟商品,立即购买按钮
|
1190
|
result.isVirtualBtn = soldOut ? false : true;
|
1192
|
result.isVirtualBtn = soldOut ? false : true;
|
1191
|
-
|
|
|
1192
|
- // 是否展览票
|
|
|
1193
|
- result.isTicket = propOrigin('product_skn') === EXHIBITION_TICKET;
|
|
|
1194
|
}
|
1193
|
}
|
1195
|
|
1194
|
|
1196
|
if (!soldOut && !notForSale && !virtualGoods) {
|
1195
|
if (!soldOut && !notForSale && !virtualGoods) {
|
|
@@ -1207,10 +1206,14 @@ const _detailDataPkg = (origin, uid, vipLevel, cookies) => { |
|
@@ -1207,10 +1206,14 @@ const _detailDataPkg = (origin, uid, vipLevel, cookies) => { |
1207
|
// 已售磬
|
1206
|
// 已售磬
|
1208
|
result.soldOut = true;
|
1207
|
result.soldOut = true;
|
1209
|
delete result.fashTopGoods;
|
1208
|
delete result.fashTopGoods;
|
1210
|
- } else if (virtualGoods) {
|
1209
|
+ }
|
|
|
1210
|
+
|
|
|
1211
|
+ // 电子票
|
|
|
1212
|
+ result.isTicket = propOrigin('product_skn') === YOHOOD_TICKET;
|
|
|
1213
|
+ if (virtualGoods && result.isTicket) {
|
1211
|
// 虚拟商品
|
1214
|
// 虚拟商品
|
1212
|
result.buyNow = true; // 是否立即购买
|
1215
|
result.buyNow = true; // 是否立即购买
|
1213
|
- result.buyNowBase = helpers.urlFormat('ticket', null, 'shopping');
|
1216
|
+ result.buyNowBase = helpers.urlFormat('/ticket', null, 'shopping');
|
1214
|
if (result.salePrice) {
|
1217
|
if (result.salePrice) {
|
1215
|
result.advancePrice = result.salePrice; // 先行价格
|
1218
|
result.advancePrice = result.salePrice; // 先行价格
|
1216
|
delete result.salePrice;
|
1219
|
delete result.salePrice;
|