Authored by 李靖

删除固定电子票skn

... ... @@ -8,10 +8,6 @@ const _ = require('lodash');
* 门票
* @type {{SINGLE_TICKETS_SKN: number}}
*/
const TICKETS = {
SINGLE_TICKETS_SKN: 51335912, // 展览票(单日票)skn
PACKAGE_TICKETS_SKN: 51335908 // 套票skn
};
/**
* 格式化价格
... ... @@ -80,11 +76,6 @@ const _formatOrderGoods = (orderGoods, count, haveLink) => {
/* 门票 */
if (value.goods_type === 'ticket') {
/* 展览票不显示区域 */
if (value.product_skn === TICKETS.SINGLE_TICKETS_SKN) {
delete goods.size;
}
Object.assign(goods, {
tickets: true
});
... ...
... ... @@ -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; // 展览票
/**
* 获取用户数据信息
... ... @@ -768,17 +768,19 @@ let _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;
... ...