|
@@ -32,7 +32,7 @@ const HeaderModel = require('../../../doraemon/models/header'); |
|
@@ -32,7 +32,7 @@ const HeaderModel = require('../../../doraemon/models/header'); |
32
|
const BLANK_STR = ' ';
|
32
|
const BLANK_STR = ' ';
|
33
|
|
33
|
|
34
|
// 展览票
|
34
|
// 展览票
|
35
|
-const EXHIBITION_TICKET = 51335912;
|
35
|
+const YOHOOD_TICKET = 51335912;
|
36
|
|
36
|
|
37
|
const _getProductAdditionInfoAsync = (data) => {
|
37
|
const _getProductAdditionInfoAsync = (data) => {
|
38
|
return co(function * () {
|
38
|
return co(function * () {
|
|
@@ -1207,6 +1207,7 @@ const _detailDataPkg = (origin, uid, vipLevel, cookies) => { |
|
@@ -1207,6 +1207,7 @@ const _detailDataPkg = (origin, uid, vipLevel, cookies) => { |
1207
|
result.openSoon = fashTopGoods.openSoon; // 即将开售
|
1207
|
result.openSoon = fashTopGoods.openSoon; // 即将开售
|
1208
|
result.dis = fashTopGoods.dis; // 是否失效
|
1208
|
result.dis = fashTopGoods.dis; // 是否失效
|
1209
|
result.buyNow = fashTopGoods.buyNow; // 是否立即购买
|
1209
|
result.buyNow = fashTopGoods.buyNow; // 是否立即购买
|
|
|
1210
|
+ result.buyNowBase = helpers.urlFormat('/limited', null, 'shopping'); // 购买链接
|
1210
|
}
|
1211
|
}
|
1211
|
}
|
1212
|
}
|
1212
|
|
1213
|
|
|
@@ -1215,14 +1216,12 @@ const _detailDataPkg = (origin, uid, vipLevel, cookies) => { |
|
@@ -1215,14 +1216,12 @@ const _detailDataPkg = (origin, uid, vipLevel, cookies) => { |
1215
|
let notForSale = propOrigin('attribute') === 2; // 非卖品
|
1216
|
let notForSale = propOrigin('attribute') === 2; // 非卖品
|
1216
|
let virtualGoods = propOrigin('attribute') === 3; // 虚拟商品
|
1217
|
let virtualGoods = propOrigin('attribute') === 3; // 虚拟商品
|
1217
|
|
1218
|
|
|
|
1219
|
+
|
1218
|
if (virtualGoods) {
|
1220
|
if (virtualGoods) {
|
1219
|
result.virtualGoods = virtualGoods;
|
1221
|
result.virtualGoods = virtualGoods;
|
1220
|
|
1222
|
|
1221
|
// 是否显示虚拟商品,立即购买按钮
|
1223
|
// 是否显示虚拟商品,立即购买按钮
|
1222
|
result.isVirtualBtn = soldOut ? false : true;
|
1224
|
result.isVirtualBtn = soldOut ? false : true;
|
1223
|
-
|
|
|
1224
|
- // 是否展览票
|
|
|
1225
|
- result.isTicket = propOrigin('product_skn') === EXHIBITION_TICKET;
|
|
|
1226
|
}
|
1225
|
}
|
1227
|
|
1226
|
|
1228
|
if (!soldOut && !notForSale && !virtualGoods) {
|
1227
|
if (!soldOut && !notForSale && !virtualGoods) {
|
|
@@ -1239,10 +1238,14 @@ const _detailDataPkg = (origin, uid, vipLevel, cookies) => { |
|
@@ -1239,10 +1238,14 @@ const _detailDataPkg = (origin, uid, vipLevel, cookies) => { |
1239
|
// 已售磬
|
1238
|
// 已售磬
|
1240
|
result.soldOut = true;
|
1239
|
result.soldOut = true;
|
1241
|
delete result.fashTopGoods;
|
1240
|
delete result.fashTopGoods;
|
1242
|
- } else if (virtualGoods) {
|
1241
|
+ }
|
|
|
1242
|
+
|
|
|
1243
|
+ // 电子票
|
|
|
1244
|
+ result.isTicket = propOrigin('product_skn') === YOHOOD_TICKET;
|
|
|
1245
|
+ if (virtualGoods && result.isTicket) {
|
1243
|
// 虚拟商品
|
1246
|
// 虚拟商品
|
1244
|
result.buyNow = true; // 是否立即购买
|
1247
|
result.buyNow = true; // 是否立即购买
|
1245
|
- result.buyNowBase = helpers.urlFormat('ticket', null, 'shopping');
|
1248
|
+ result.buyNowBase = helpers.urlFormat('/ticket', null, 'shopping');
|
1246
|
if (result.salePrice) {
|
1249
|
if (result.salePrice) {
|
1247
|
result.advancePrice = result.salePrice; // 先行价格
|
1250
|
result.advancePrice = result.salePrice; // 先行价格
|
1248
|
delete result.salePrice;
|
1251
|
delete result.salePrice;
|