...
|
...
|
@@ -1196,11 +1196,6 @@ const _detailDataPkg = (origin, uid, vipLevel, cookies) => { |
|
|
); // 限购商品的状态
|
|
|
}
|
|
|
|
|
|
if (propOrigin('brand_info', '')) {
|
|
|
requestApi.brand =
|
|
|
brandService.getBrandByDomainAsync(propOrigin('brand_info.brand_domain')); // 品牌信息
|
|
|
}
|
|
|
|
|
|
if (propOrigin('bundle_type') === BUNDLE_PRODUCE) {
|
|
|
requestApi.bundle = productAPI.getBundleAsync(result.skn); // 量贩
|
|
|
}
|
...
|
...
|
@@ -1212,7 +1207,6 @@ const _detailDataPkg = (origin, uid, vipLevel, cookies) => { |
|
|
let promotionData = requestData.promotion;
|
|
|
let coupon = requestData.coupon;
|
|
|
let limitedInfo = requestData.limited;
|
|
|
let domainBrand = requestData.brand;
|
|
|
let bundle = requestData.bundle;
|
|
|
|
|
|
// 商品标签
|
...
|
...
|
@@ -1224,12 +1218,13 @@ const _detailDataPkg = (origin, uid, vipLevel, cookies) => { |
|
|
// 是否收藏
|
|
|
result.isCollect = favoriteData.product;
|
|
|
|
|
|
// 商品价格
|
|
|
// 带人民币符号的商品价格
|
|
|
result.marketPrice = propOrigin('format_market_price');
|
|
|
result.salePrice = propOrigin('format_sales_price');
|
|
|
result.hasOtherPrice = true;
|
|
|
|
|
|
if (result.salePrice === '0') {
|
|
|
//
|
|
|
if (result.salePrice === '0' || result.marketPrice === result.salePrice) {
|
|
|
delete result.salePrice;
|
|
|
result.hasOtherPrice = false;
|
|
|
}
|
...
|
...
|
@@ -1437,18 +1432,6 @@ const _detailDataPkg = (origin, uid, vipLevel, cookies) => { |
|
|
};
|
|
|
}
|
|
|
|
|
|
|
|
|
// 非普通商品导航条移除加入购物车按钮
|
|
|
const hasNavCart = (pro) => {
|
|
|
return !(pro.limitedsale === 'Y' ||
|
|
|
pro.secKill === 'Y' ||
|
|
|
pro.deposit === 'Y' ||
|
|
|
pro.presale === 'Y' ||
|
|
|
pro.bundle.type !== 0);
|
|
|
};
|
|
|
|
|
|
result.hasNavCart = hasNavCart(result);
|
|
|
|
|
|
// 电子票
|
|
|
result.isTicket = propOrigin('product_skn') === YOHOOD_TICKET;
|
|
|
if (virtualGoods && result.isTicket) {
|
...
|
...
|
|