...
|
...
|
@@ -94,10 +94,10 @@ const procShowStatus = (data, showStatus, isBeginSale) => { |
|
|
};
|
|
|
|
|
|
/**
|
|
|
* 根据设备类型获得限购商品跳转app的url 待处理
|
|
|
* @param {[string]} productCode 限购商品码
|
|
|
* @param {[string]} skn 限购商品skn
|
|
|
* @return {[string]} 限购商品跳转url
|
|
|
* 根据设备类型获得限购商品跳转app的url
|
|
|
* @param {string} productCode 限购商品码
|
|
|
* @param {string} skn 限购商品skn
|
|
|
* @return {string} 限购商品跳转url
|
|
|
*/
|
|
|
const getLimitCodeUrl = (productCode, skn, ua) => {
|
|
|
var url = 'yohoapp://yoho.app/openwith?limit_product_code=' + productCode +
|
...
|
...
|
@@ -470,10 +470,10 @@ const detailDataPkg = (origin, uid, vipLevel, ua) => { |
|
|
dest = procShowStatus(dest, showStatus, isBeginSale);
|
|
|
dest.cartInfo.limitProductCode = origin.limitProductCode;
|
|
|
dest.cartInfo.limitCodeUrl = getLimitCodeUrl(origin.limitProductCode, origin.erpProductId, ua);
|
|
|
dest.cartInfo.limitProductPay = helpers.url('/cart/index/orderEnsure');
|
|
|
dest.cartInfo.limitProductPay = helpers.url('/cart/index/orderEnsure'); // 待处理 相关处理逻辑还不存在
|
|
|
} else {
|
|
|
dest.cartInfo.addToCartUrl = helpers.url('/product/buy_' + origin.id + '_' +
|
|
|
origin.goodsList.id + '.html'); // 待处理 确认 goodsId 的含义
|
|
|
origin.goodsList.id + '.html'); // 待处理 相关处理逻辑还不存在
|
|
|
}
|
|
|
} else if (notForSale) {
|
|
|
dest.cartInfo.notForSale = true;
|
...
|
...
|
@@ -491,7 +491,8 @@ const detailDataPkg = (origin, uid, vipLevel, ua) => { |
|
|
// 底部简介的URL链接 待处理
|
|
|
// dest.introUrl = helpers.url('/product/intro_' + origin.erpProductId +
|
|
|
// '/' + origin.cnAlphabet + '.html', null, '');
|
|
|
dest.introUrl = 'http://localhost:6001/product/detail/intro/51257148';
|
|
|
|
|
|
dest.introUrl = 'http://localhost:6001/product/detail/intro/' + origin.erpProductId;
|
|
|
dest.id = origin.id;
|
|
|
|
|
|
return dest;
|
...
|
...
|
|