...
|
...
|
@@ -14,7 +14,7 @@ const singleAPI = global.yoho.SingleAPI; |
|
|
const helpers = global.yoho.helpers;
|
|
|
const productProcess = require(`${utils}/product-process`);
|
|
|
|
|
|
const SINGLE_TICKETS_SKN = 51335912; // 展览票
|
|
|
// const SINGLE_TICKETS_SKN = 51335912; // 展览票
|
|
|
|
|
|
/**
|
|
|
* 获取用户数据信息
|
...
|
...
|
@@ -625,17 +625,19 @@ const _detailDataPkgAsync = (origin, uid, vipLevel, ua) => { |
|
|
}).then(result => {
|
|
|
// 虚拟商品(门票)
|
|
|
if (origin.attribute * 1 === 3) {
|
|
|
result.cartInfo.addToCartUrl = false;
|
|
|
result.tickets = result.cartInfo.tickets = true;
|
|
|
if (result.cartInfo.addToCartUrl) {
|
|
|
result.cartInfo.addToCartUrl = false;
|
|
|
result.tickets = result.cartInfo.tickets = true;
|
|
|
}
|
|
|
result.ticketsConfirm = helpers.urlFormat('/cart/index/ticketsConfirm');
|
|
|
|
|
|
// 展览票
|
|
|
if (origin.product_skn * 1 === SINGLE_TICKETS_SKN) {
|
|
|
result.single = true;
|
|
|
} else {
|
|
|
// 套票
|
|
|
result.package = true;
|
|
|
}
|
|
|
// if (origin.product_skn * 1 === SINGLE_TICKETS_SKN) {
|
|
|
// result.single = true;
|
|
|
// } else {
|
|
|
// // 套票
|
|
|
// result.package = true;
|
|
|
// }
|
|
|
|
|
|
// 购票限制
|
|
|
result.cartInfo.limit = 4;
|
...
|
...
|
|