Authored by htoooth

fix

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