Authored by htoooth

add order

... ... @@ -30,7 +30,7 @@ const HeaderModel = require('../../../doraemon/models/header');
const BLANK_STR = ' ';
// 展览票
const EXHIBITION_TICKET = 51335912;
const YOHOOD_TICKET = 51335912;
const _getProductAdditionInfoAsync = (data) => {
return co(function * () {
... ... @@ -1175,6 +1175,7 @@ const _detailDataPkg = (origin, uid, vipLevel, cookies) => {
result.openSoon = fashTopGoods.openSoon; // 即将开售
result.dis = fashTopGoods.dis; // 是否失效
result.buyNow = fashTopGoods.buyNow; // 是否立即购买
result.buyNowBase = helpers.urlFormat('/limited', null, 'shopping'); // 购买链接
}
}
... ... @@ -1183,14 +1184,12 @@ const _detailDataPkg = (origin, uid, vipLevel, cookies) => {
let notForSale = propOrigin('attribute') === 2; // 非卖品
let virtualGoods = propOrigin('attribute') === 3; // 虚拟商品
if (virtualGoods) {
result.virtualGoods = virtualGoods;
// 是否显示虚拟商品,立即购买按钮
result.isVirtualBtn = soldOut ? false : true;
// 是否展览票
result.isTicket = propOrigin('product_skn') === EXHIBITION_TICKET;
}
if (!soldOut && !notForSale && !virtualGoods) {
... ... @@ -1207,10 +1206,14 @@ const _detailDataPkg = (origin, uid, vipLevel, cookies) => {
// 已售磬
result.soldOut = true;
delete result.fashTopGoods;
} else if (virtualGoods) {
}
// 电子票
result.isTicket = propOrigin('product_skn') === YOHOOD_TICKET;
if (virtualGoods && result.isTicket) {
// 虚拟商品
result.buyNow = true; // 是否立即购买
result.buyNowBase = helpers.urlFormat('ticket', null, 'shopping');
result.buyNowBase = helpers.urlFormat('/ticket', null, 'shopping');
if (result.salePrice) {
result.advancePrice = result.salePrice; // 先行价格
delete result.salePrice;
... ...
... ... @@ -171,6 +171,7 @@
</ul>
</div>
<!--电子票-->
<div class="chose-size row clearfix {{#if isTicket}} hide {{/if}}">
<input type="hidden" name="isTicket" value="{{isTicket}}"/>
<span class="title pull-left">
... ...