Showing
12 changed files
with
15 additions
and
15 deletions
@@ -22,9 +22,9 @@ const _getProductBySkns = function(productObj) { | @@ -22,9 +22,9 @@ const _getProductBySkns = function(productObj) { | ||
22 | }; | 22 | }; |
23 | 23 | ||
24 | if (val.shop_id) { | 24 | if (val.shop_id) { |
25 | - 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 | 25 | + 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 |
26 | } else { | 26 | } else { |
27 | - 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 | 27 | + 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 |
28 | } | 28 | } |
29 | 29 | ||
30 | productObj.defaultPros.push(obj); | 30 | productObj.defaultPros.push(obj); |
@@ -31,7 +31,7 @@ const shopList = (uid, tabName, channelId) => { | @@ -31,7 +31,7 @@ const shopList = (uid, tabName, channelId) => { | ||
31 | }).then((result) => { | 31 | }).then((result) => { |
32 | if (result && result.code === 200) { | 32 | if (result && result.code === 200) { |
33 | _.forEach(result.data, function(data) { | 33 | _.forEach(result.data, function(data) { |
34 | - let href = '//m.yohobuy.com/product/index/brand?shop_id=' + | 34 | + let href = '//m.yohobuy.com/product/shop?shop_id=' + |
35 | data.shopsId + '&openby:yohobuy={"action":"go.shop","params":{"shop_id":"' + | 35 | data.shopsId + '&openby:yohobuy={"action":"go.shop","params":{"shop_id":"' + |
36 | data.shopsId + '","shop_template_type":"' + | 36 | data.shopsId + '","shop_template_type":"' + |
37 | data.shopTemplateType + '","shop_name":"' + data.shopName + '"}}'; | 37 | data.shopTemplateType + '","shop_name":"' + data.shopName + '"}}'; |
@@ -149,7 +149,7 @@ const _urlJump = (key, row) => { | @@ -149,7 +149,7 @@ const _urlJump = (key, row) => { | ||
149 | 149 | ||
150 | return { | 150 | return { |
151 | 1: helpers.urlFormat('', {from: 'search', query: row.brand_name}, 'search'), | 151 | 1: helpers.urlFormat('', {from: 'search', query: row.brand_name}, 'search'), |
152 | - 2: helpers.urlFormat('/product/index/brand', {domain: row.brand_domain}), | 152 | + 2: helpers.urlFormat('/product/shop', {domain: row.brand_domain}), |
153 | 3: helpers.urlFormat('/product/global/list/', {brand: row.global_brand_id}) | 153 | 3: helpers.urlFormat('/product/global/list/', {brand: row.global_brand_id}) |
154 | }[key]; | 154 | }[key]; |
155 | }; | 155 | }; |
@@ -153,7 +153,7 @@ const favfavBrand = (uid, page, limit) => { | @@ -153,7 +153,7 @@ const favfavBrand = (uid, page, limit) => { | ||
153 | // } | 153 | // } |
154 | if (val.brandOrShopType === 'brandOrShopType') { | 154 | if (val.brandOrShopType === 'brandOrShopType') { |
155 | obj = _.assign(obj, { | 155 | obj = _.assign(obj, { |
156 | - link: helpers.urlFormat('/product/index/brand', { | 156 | + link: helpers.urlFormat('/product/shop', { |
157 | shop_id: val.shopId | 157 | shop_id: val.shopId |
158 | }) | 158 | }) |
159 | }); | 159 | }); |
@@ -56,7 +56,7 @@ const _processShopsInfo = (data) => { | @@ -56,7 +56,7 @@ const _processShopsInfo = (data) => { | ||
56 | }; | 56 | }; |
57 | 57 | ||
58 | if (value.shop_id) { | 58 | if (value.shop_id) { |
59 | - shopInfo.url = helpers.urlFormat('/product/index/brand', { | 59 | + shopInfo.url = helpers.urlFormat('/product/shop', { |
60 | shop_id: value.shop_id | 60 | shop_id: value.shop_id |
61 | }); | 61 | }); |
62 | } else { | 62 | } else { |
@@ -540,7 +540,7 @@ const _detailDataPkgAsync = (origin, uid, vipLevel, ua) => { | @@ -540,7 +540,7 @@ const _detailDataPkgAsync = (origin, uid, vipLevel, ua) => { | ||
540 | let storeUrl = ''; | 540 | let storeUrl = ''; |
541 | 541 | ||
542 | if (origin.shop_id) { | 542 | if (origin.shop_id) { |
543 | - storeUrl = helpers.urlFormat('/product/index/brand', { | 543 | + storeUrl = helpers.urlFormat('/product/shop', { |
544 | shop_id: origin.shop_id | 544 | shop_id: origin.shop_id |
545 | }); | 545 | }); |
546 | } | 546 | } |
@@ -31,7 +31,7 @@ const _processBrandShops = (list) => { | @@ -31,7 +31,7 @@ const _processBrandShops = (list) => { | ||
31 | _.forEach(list, item => { | 31 | _.forEach(list, item => { |
32 | if (item.shop_type === 'yoho_shop') { | 32 | if (item.shop_type === 'yoho_shop') { |
33 | formatDat.push({ | 33 | formatDat.push({ |
34 | - url: helpers.urlFormat('/product/index/brand/', { | 34 | + url: helpers.urlFormat('/product/shop', { |
35 | shop_id: item.shop_id | 35 | shop_id: item.shop_id |
36 | }), | 36 | }), |
37 | thumb: helpers.image(item.shop_logo, 126, 80), | 37 | thumb: helpers.image(item.shop_logo, 126, 80), |
@@ -207,7 +207,7 @@ const _processBrandShops = (list) => { | @@ -207,7 +207,7 @@ const _processBrandShops = (list) => { | ||
207 | _.forEach(list, item => { | 207 | _.forEach(list, item => { |
208 | if (item.shop_type === 'yoho_shop') { | 208 | if (item.shop_type === 'yoho_shop') { |
209 | formatDat.push({ | 209 | formatDat.push({ |
210 | - url: helpers.urlFormat('/product/index/brand/', { | 210 | + url: helpers.urlFormat('/product/shop', { |
211 | shop_id: item.shop_id | 211 | shop_id: item.shop_id |
212 | }), | 212 | }), |
213 | thumb: helpers.image(item.shop_logo, 126, 80), | 213 | thumb: helpers.image(item.shop_logo, 126, 80), |
@@ -269,7 +269,7 @@ const getSearchData = (params) => { | @@ -269,7 +269,7 @@ const getSearchData = (params) => { | ||
269 | for (let i = 0; i < result.data.rec_shop_list.length; i++) { | 269 | for (let i = 0; i < result.data.rec_shop_list.length; i++) { |
270 | if (parseInt(result.data.rec_shop_list[i].show_type, 10) === 1) { | 270 | if (parseInt(result.data.rec_shop_list[i].show_type, 10) === 1) { |
271 | result.data.rec_shop_list[i].is_shop = true; | 271 | result.data.rec_shop_list[i].is_shop = true; |
272 | - result.data.rec_shop_list[i].shopUrl = '//m.yohobuy.com/product/index/brand?domain=' + | 272 | + result.data.rec_shop_list[i].shopUrl = '//m.yohobuy.com/product/shop?domain=' + |
273 | result.data.rec_shop_list[i].shop_domain; | 273 | result.data.rec_shop_list[i].shop_domain; |
274 | newList.list.splice(parseInt(result.data.rec_shop_list[i].insert_index, 10) - 1, 0, | 274 | newList.list.splice(parseInt(result.data.rec_shop_list[i].insert_index, 10) - 1, 0, |
275 | result.data.rec_shop_list[i]); | 275 | result.data.rec_shop_list[i]); |
@@ -61,7 +61,7 @@ const cachePage = { | @@ -61,7 +61,7 @@ const cachePage = { | ||
61 | /* 筛选默认须要添加uid参数 | 61 | /* 筛选默认须要添加uid参数 |
62 | '/product/list/index': 1 * MINUTE, | 62 | '/product/list/index': 1 * MINUTE, |
63 | '/product/index/index': 1 * MINUTE, | 63 | '/product/index/index': 1 * MINUTE, |
64 | - '/product/index/brand': 1 * MINUTE, | 64 | + '/product/shop': 1 * MINUTE, |
65 | '/product/search/search': 1 * MINUTE, | 65 | '/product/search/search': 1 * MINUTE, |
66 | */ | 66 | */ |
67 | 67 |
@@ -80,7 +80,7 @@ module.exports = () => { | @@ -80,7 +80,7 @@ module.exports = () => { | ||
80 | req.query = Object.assign(req.query, { | 80 | req.query = Object.assign(req.query, { |
81 | domain: req.subdomains[0] | 81 | domain: req.subdomains[0] |
82 | }); | 82 | }); |
83 | - req.url = `/product/index/brand?${querystring.stringify(req.query)}`; | 83 | + req.url = `/product/shop?${querystring.stringify(req.query)}`; |
84 | } | 84 | } |
85 | break; | 85 | break; |
86 | } | 86 | } |
@@ -9,6 +9,6 @@ | @@ -9,6 +9,6 @@ | ||
9 | <h5>{{shop_name}}</h5> | 9 | <h5>{{shop_name}}</h5> |
10 | </div> | 10 | </div> |
11 | <div class="count">上新{{new_product_num}}款<i class="iconfont"></i></div> | 11 | <div class="count">上新{{new_product_num}}款<i class="iconfont"></i></div> |
12 | - <a class="link" href="http://m.yohobuy.com/product/index/brand?domain={{shop_domain}}"></a> | 12 | + <a class="link" href="http://m.yohobuy.com/product/shop?domain={{shop_domain}}"></a> |
13 | </div> | 13 | </div> |
14 | {{/each}} | 14 | {{/each}} |
@@ -149,7 +149,7 @@ class DetailProcess { | @@ -149,7 +149,7 @@ class DetailProcess { | ||
149 | }; | 149 | }; |
150 | 150 | ||
151 | if (value.shop_id) { | 151 | if (value.shop_id) { |
152 | - shopInfo.url = helpers.urlFormat('/product/index/brand', { | 152 | + shopInfo.url = helpers.urlFormat('/product/shop', { |
153 | shop_id: value.shop_id | 153 | shop_id: value.shop_id |
154 | }); | 154 | }); |
155 | } else { | 155 | } else { |
@@ -130,7 +130,7 @@ exports.processProductList = (list, options) => { | @@ -130,7 +130,7 @@ exports.processProductList = (list, options) => { | ||
130 | 130 | ||
131 | if (extraAttr === '_isHotShop' && parseInt(product.data.show_type, 10) === 1) { | 131 | if (extraAttr === '_isHotShop' && parseInt(product.data.show_type, 10) === 1) { |
132 | product.reShop = true; | 132 | product.reShop = true; |
133 | - product.data.shopUrl = '//m.yohobuy.com/product/index/brand?domain=' + product.data.shop_domain; | 133 | + product.data.shopUrl = '//m.yohobuy.com/product/shop?domain=' + product.data.shop_domain; |
134 | } | 134 | } |
135 | 135 | ||
136 | pruductList.push(product); | 136 | pruductList.push(product); |
-
Please register or login to post a comment