Authored by htoooth

fix

... ... @@ -37,8 +37,6 @@ const BUNDLE_PRODUCE = 2; // 量贩
const BUNDLE_PACKAGE = 1; // 套餐
const tdk = require('../../../utils/getTDK');
const YOHOOD_TICKET = [512579818, 512579820];
const _getProductAdditionInfoAsync = (data) => {
return co(function * () {
let productId = _.get(data, 'product_id', 0);
... ... @@ -1382,13 +1380,13 @@ const _detailDataPkg = (origin, uid, vipLevel, cookies) => {
};
}
// 电子票
result.isTicket = _.includes(YOHOOD_TICKET, propOrigin('product_skn'));
// 虚拟商品目前只有电子票
result.isTicket = virtualGoods;
if (virtualGoods && result.isTicket) {
// 虚拟商品
result.buyNow = true; // 是否立即购买
result.buyNowBase = helpers.urlFormat('/ticket', null, 'shopping');
result.buyNowBase = helpers.urlFormat('/cart/ticketEnsure');
if (result.salePrice) {
result.advancePrice = result.salePrice; // 先行价格
delete result.salePrice;
... ...
... ... @@ -131,7 +131,7 @@
{{#if virtualGoods}}
{{!-- 电子门票按钮 --}}
{{#if isVirtualBtn}}
<form name="ticket-form" action="//www.yohobuy.com/cart/ticketEnsure" method="POST"
<form name="ticket-form" action="{{buyNowBase}}" method="POST"
class="hide"></form>
<span id="buy-ticket" class="buy-ticket buy-now item-buy{{#if dis}} dis{{/if}}">立即购买</span>
{{/if}}
... ...