Authored by 郭成尧

shop-entry

... ... @@ -22,9 +22,9 @@ const _getProductBySkns = function(productObj) {
};
if (val.shop_id) {
obj.brandurl = `//m.yohobuy.com/product/index/brand?domain=${val.brand_domain}&openby:yohobuy={"action":"go.shop","params":{"shop_id":${val.shop_id},"shop_template_type":${val.shop_template_type}}}`; // eslint-disable-line
obj.brandurl = `//m.yohobuy.com/product/shop?domain=${val.brand_domain}&openby:yohobuy={"action":"go.shop","params":{"shop_id":${val.shop_id},"shop_template_type":${val.shop_template_type}}}`; // eslint-disable-line
} else {
obj.brandurl = `//m.yohobuy.com/product/index/brand?domain=${val.brand_domain}&openby:yohobuy={"action":"go.brand","params":{"brand_id":${val.brand_id}}}`; // eslint-disable-line
obj.brandurl = `//m.yohobuy.com/product/shop?domain=${val.brand_domain}&openby:yohobuy={"action":"go.brand","params":{"brand_id":${val.brand_id}}}`; // eslint-disable-line
}
productObj.defaultPros.push(obj);
... ...
... ... @@ -31,7 +31,7 @@ const shopList = (uid, tabName, channelId) => {
}).then((result) => {
if (result && result.code === 200) {
_.forEach(result.data, function(data) {
let href = '//m.yohobuy.com/product/index/brand?shop_id=' +
let href = '//m.yohobuy.com/product/shop?shop_id=' +
data.shopsId + '&openby:yohobuy={"action":"go.shop","params":{"shop_id":"' +
data.shopsId + '","shop_template_type":"' +
data.shopTemplateType + '","shop_name":"' + data.shopName + '"}}';
... ...
... ... @@ -149,7 +149,7 @@ const _urlJump = (key, row) => {
return {
1: helpers.urlFormat('', {from: 'search', query: row.brand_name}, 'search'),
2: helpers.urlFormat('/product/index/brand', {domain: row.brand_domain}),
2: helpers.urlFormat('/product/shop', {domain: row.brand_domain}),
3: helpers.urlFormat('/product/global/list/', {brand: row.global_brand_id})
}[key];
};
... ...
... ... @@ -153,7 +153,7 @@ const favfavBrand = (uid, page, limit) => {
// }
if (val.brandOrShopType === 'brandOrShopType') {
obj = _.assign(obj, {
link: helpers.urlFormat('/product/index/brand', {
link: helpers.urlFormat('/product/shop', {
shop_id: val.shopId
})
});
... ...
... ... @@ -56,7 +56,7 @@ const _processShopsInfo = (data) => {
};
if (value.shop_id) {
shopInfo.url = helpers.urlFormat('/product/index/brand', {
shopInfo.url = helpers.urlFormat('/product/shop', {
shop_id: value.shop_id
});
} else {
... ... @@ -540,7 +540,7 @@ const _detailDataPkgAsync = (origin, uid, vipLevel, ua) => {
let storeUrl = '';
if (origin.shop_id) {
storeUrl = helpers.urlFormat('/product/index/brand', {
storeUrl = helpers.urlFormat('/product/shop', {
shop_id: origin.shop_id
});
}
... ...
... ... @@ -31,7 +31,7 @@ const _processBrandShops = (list) => {
_.forEach(list, item => {
if (item.shop_type === 'yoho_shop') {
formatDat.push({
url: helpers.urlFormat('/product/index/brand/', {
url: helpers.urlFormat('/product/shop', {
shop_id: item.shop_id
}),
thumb: helpers.image(item.shop_logo, 126, 80),
... ...
... ... @@ -207,7 +207,7 @@ const _processBrandShops = (list) => {
_.forEach(list, item => {
if (item.shop_type === 'yoho_shop') {
formatDat.push({
url: helpers.urlFormat('/product/index/brand/', {
url: helpers.urlFormat('/product/shop', {
shop_id: item.shop_id
}),
thumb: helpers.image(item.shop_logo, 126, 80),
... ... @@ -269,7 +269,7 @@ const getSearchData = (params) => {
for (let i = 0; i < result.data.rec_shop_list.length; i++) {
if (parseInt(result.data.rec_shop_list[i].show_type, 10) === 1) {
result.data.rec_shop_list[i].is_shop = true;
result.data.rec_shop_list[i].shopUrl = '//m.yohobuy.com/product/index/brand?domain=' +
result.data.rec_shop_list[i].shopUrl = '//m.yohobuy.com/product/shop?domain=' +
result.data.rec_shop_list[i].shop_domain;
newList.list.splice(parseInt(result.data.rec_shop_list[i].insert_index, 10) - 1, 0,
result.data.rec_shop_list[i]);
... ...
... ... @@ -61,7 +61,7 @@ const cachePage = {
/* 筛选默认须要添加uid参数
'/product/list/index': 1 * MINUTE,
'/product/index/index': 1 * MINUTE,
'/product/index/brand': 1 * MINUTE,
'/product/shop': 1 * MINUTE,
'/product/search/search': 1 * MINUTE,
*/
... ...
... ... @@ -80,7 +80,7 @@ module.exports = () => {
req.query = Object.assign(req.query, {
domain: req.subdomains[0]
});
req.url = `/product/index/brand?${querystring.stringify(req.query)}`;
req.url = `/product/shop?${querystring.stringify(req.query)}`;
}
break;
}
... ...
... ... @@ -9,6 +9,6 @@
<h5>{{shop_name}}</h5>
</div>
<div class="count">上新{{new_product_num}}<i class="iconfont">&#xe604;</i></div>
<a class="link" href="http://m.yohobuy.com/product/index/brand?domain={{shop_domain}}"></a>
<a class="link" href="http://m.yohobuy.com/product/shop?domain={{shop_domain}}"></a>
</div>
{{/each}}
\ No newline at end of file
... ...
... ... @@ -149,7 +149,7 @@ class DetailProcess {
};
if (value.shop_id) {
shopInfo.url = helpers.urlFormat('/product/index/brand', {
shopInfo.url = helpers.urlFormat('/product/shop', {
shop_id: value.shop_id
});
} else {
... ...
... ... @@ -130,7 +130,7 @@ exports.processProductList = (list, options) => {
if (extraAttr === '_isHotShop' && parseInt(product.data.show_type, 10) === 1) {
product.reShop = true;
product.data.shopUrl = '//m.yohobuy.com/product/index/brand?domain=' + product.data.shop_domain;
product.data.shopUrl = '//m.yohobuy.com/product/shop?domain=' + product.data.shop_domain;
}
pruductList.push(product);
... ...