...
|
...
|
@@ -182,7 +182,6 @@ const getNewProduct = (brandId, gender, url, isApp) => { |
|
|
list.goods_list[0].goods_id + '/' + list.cn_alphabet + '.html';
|
|
|
|
|
|
if (isApp) {
|
|
|
console.log(productUrl);
|
|
|
productUrl += `?openby:yohobuy={"action":"go.productDetail","params":{"product_skn":"${list.product_skn}"}}`;
|
|
|
}
|
|
|
|
...
|
...
|
@@ -309,25 +308,25 @@ const getDetailData = (id, uid, udid, gender, isApp, clientType) => { |
|
|
url = '//' + brandDomain + '.m.yohobuy.com';
|
|
|
}
|
|
|
|
|
|
if (isApp & !uid) {
|
|
|
if (isApp && !uid) {
|
|
|
jumpToApp = 1;
|
|
|
}
|
|
|
|
|
|
let likeUrl = helpers.urlFormat('/plustar/brandinfo', {
|
|
|
id: brandId
|
|
|
id: list.id
|
|
|
}, 'guang');
|
|
|
|
|
|
if (isApp) {
|
|
|
let $url = likeUrl;
|
|
|
$url += '&openby:yohobuy={"action":"go.weblogin","params":{"jumpurl":{"url":"http:\/\/guang.m.yohobuy.com\/plustar\/brandinfo","param":{"id":'
|
|
|
+ brandId + '}},"requesturl":{"url":"\/guang\/api\/v1\/favorite\/togglebrand","param":{"brand_id":"' + brandId + '"}},"priority":"Y"}}';
|
|
|
likeUrl += '&openby:yohobuy={"action":"go.weblogin","params":{"jumpurl":{"url":"http:\/\/guang.m.yohobuy.com\/plustar\/brandinfo","param":{"id":'
|
|
|
+ list.id + '}},"requesturl":{"url":"\/guang\/api\/v1\/favorite\/togglebrand","param":{"brand_id":"' + brandId + '"}},"priority":"Y"}}';
|
|
|
} else {
|
|
|
let $url = helpers.urlFormat('/signin.html', {refer: likeUrl});
|
|
|
likeUrl = helpers.urlFormat('/signin.html', {refer: likeUrl});
|
|
|
}
|
|
|
|
|
|
return Promise.all([isCollection(uid, brandId, clientType), getRelatedEditorial(brandId, uid, udid, clientType, isApp), getNewProduct(brandId, gender, url, isApp)]).then((result) => {
|
|
|
|
|
|
list = _.assign(list, {
|
|
|
|
|
|
likeUrl: likeUrl,
|
|
|
isLike: result[0],
|
|
|
infos: result[1],
|
|
|
newArrival: result[2],
|
...
|
...
|
|