...
|
...
|
@@ -31,7 +31,9 @@ class TideModel extends global.yoho.BaseModel { |
|
|
});
|
|
|
let tdata = {
|
|
|
sortInfo: Object.assign({}, item.sortInfo, {
|
|
|
url: helpers.urlFormat(`/${item.sortInfo.itemId}`, '', null)
|
|
|
url: helpers.urlFormat(`/list/so${item.sortInfo.itemId}`, {
|
|
|
'openby:yohobuy': `{"action":"go.list","params":{"sort":${item.sortInfo.itemId}}}"`
|
|
|
})
|
|
|
}),
|
|
|
goods: goods
|
|
|
};
|
...
|
...
|
@@ -103,7 +105,9 @@ class TideModel extends global.yoho.BaseModel { |
|
|
let shopInfo = _.get(res[1], 'data.shopInfo', {});
|
|
|
|
|
|
if (shopInfo.shopId) {
|
|
|
shopInfo.url = helpers.urlFormat(`/shop/${shopInfo.shopName}-${shopInfo.shopId}.html`, '', null);
|
|
|
shopInfo.url = helpers.urlFormat(`/shop/${shopInfo.shopDomain}-${shopInfo.shopId}.html`, {
|
|
|
'openby:yohobuy': `{"action":"go.shop","params":{"shop_id":"${shopInfo.shopId}","shop_template_type":"${shopInfo.shopTemplateType}","shop_name":"${shopInfo.shopName}"}}` //eslint-disable-line
|
|
|
});
|
|
|
}
|
|
|
tide.shopInfo.push({
|
|
|
title: '# 为你精选 #',
|
...
|
...
|
@@ -116,7 +120,9 @@ class TideModel extends global.yoho.BaseModel { |
|
|
|
|
|
_.each(_.get(res[2], 'data', []), (item) => {
|
|
|
tide.brands.push(Object.assign({}, item, {
|
|
|
url: helpers.urlFormat(`/shop/${item.name}-${item.shopId}.html`, '', null)
|
|
|
url: helpers.urlFormat(`/shop/${item.shopDomain}-${item.shopId}.html`, {
|
|
|
'openby:yohobuy': `{"action":"go.shop","params":{"shop_id":"${item.shopId}","shop_template_type":"${item.shopTemplateType}","shop_name":"${item.shopName}"}}` //eslint-disable-line
|
|
|
})
|
|
|
}));
|
|
|
});
|
|
|
|
...
|
...
|
|