...
|
...
|
@@ -99,8 +99,18 @@ const procShowStatus = (data, showStatus, isBeginSale) => { |
|
|
* @return {[string]} 限购商品跳转url
|
|
|
*/
|
|
|
const getLimitCodeUrl = (productCode, skn, ua) => {
|
|
|
var url = 'yohoapp://yoho.app/openwith?limit_product_code=' + productCode + '&product_skn=' + skn;
|
|
|
var url = 'yohoapp://yoho.app/openwith?limit_product_code=' + productCode +
|
|
|
'&product_skn=' + skn;
|
|
|
|
|
|
let isIphone = String(ua).indexOf('iPhone') >= 0;
|
|
|
let isIpad = ua.indexOf('iPad') >= 0;
|
|
|
|
|
|
if (isIphone || isIpad) {
|
|
|
let params = {};
|
|
|
|
|
|
params.lp = productCode;
|
|
|
url = 'yohobuy://' + helpers.url('/limitpurchase', params);
|
|
|
}
|
|
|
return url;
|
|
|
};
|
|
|
|
...
|
...
|
@@ -460,7 +470,6 @@ 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');
|
...
|
...
|
|