Merge branch 'release/5.0.0'
Showing
1 changed file
with
14 additions
and
14 deletions
@@ -93,8 +93,8 @@ const handleBrandCheckedData = (params, origin) => { | @@ -93,8 +93,8 @@ const handleBrandCheckedData = (params, origin) => { | ||
93 | if (!_.isEmpty(origin)) { | 93 | if (!_.isEmpty(origin)) { |
94 | _.forEach(origin, (value) => { | 94 | _.forEach(origin, (value) => { |
95 | if (typeof _.find(intBrands, o => { | 95 | if (typeof _.find(intBrands, o => { |
96 | - return _.isEqual(o, value.id); | ||
97 | - }) !== 'undefined') { | 96 | + return _.isEqual(o, value.id); |
97 | + }) !== 'undefined') { | ||
98 | let checked = { | 98 | let checked = { |
99 | name: value.name | 99 | name: value.name |
100 | }; // push 到已选择数组 | 100 | }; // push 到已选择数组 |
@@ -204,7 +204,7 @@ const formatterFilterBrands = (source, paramBrand, params) => { | @@ -204,7 +204,7 @@ const formatterFilterBrands = (source, paramBrand, params) => { | ||
204 | }; | 204 | }; |
205 | 205 | ||
206 | 206 | ||
207 | - // 品牌索引数据处理 | 207 | + // 品牌索引数据处理 |
208 | for (let i = 65; i < 91; i++) { | 208 | for (let i = 65; i < 91; i++) { |
209 | dbrand.brandIndex.push({ | 209 | dbrand.brandIndex.push({ |
210 | index: String.fromCharCode(i).toLowerCase(), | 210 | index: String.fromCharCode(i).toLowerCase(), |
@@ -212,8 +212,8 @@ const formatterFilterBrands = (source, paramBrand, params) => { | @@ -212,8 +212,8 @@ const formatterFilterBrands = (source, paramBrand, params) => { | ||
212 | }); | 212 | }); |
213 | } | 213 | } |
214 | 214 | ||
215 | - // 品牌数据处理 | ||
216 | - // 分拆品牌参数 | 215 | + // 品牌数据处理 |
216 | + // 分拆品牌参数 | ||
217 | let brands = _.split(params.brand, ','); | 217 | let brands = _.split(params.brand, ','); |
218 | let intBrands = []; | 218 | let intBrands = []; |
219 | 219 | ||
@@ -264,11 +264,11 @@ const formatterFilterBrands = (source, paramBrand, params) => { | @@ -264,11 +264,11 @@ const formatterFilterBrands = (source, paramBrand, params) => { | ||
264 | }); | 264 | }); |
265 | } | 265 | } |
266 | 266 | ||
267 | - // 没有品牌的情况下将 brand 设置为 false,前端不显示 品牌 | 267 | + // 没有品牌的情况下将 brand 设置为 false,前端不显示 品牌 |
268 | if (_.size(dbrand.brandsShow) <= 0) { | 268 | if (_.size(dbrand.brandsShow) <= 0) { |
269 | return false; | 269 | return false; |
270 | } else { | 270 | } else { |
271 | - // 品牌排序 | 271 | + // 品牌排序 |
272 | dbrand.brandsShow = _.sortBy(dbrand.brandsShow, o => { | 272 | dbrand.brandsShow = _.sortBy(dbrand.brandsShow, o => { |
273 | return o.index; | 273 | return o.index; |
274 | }); | 274 | }); |
@@ -1131,7 +1131,7 @@ exports.handleSortIntro = (data) => { | @@ -1131,7 +1131,7 @@ exports.handleSortIntro = (data) => { | ||
1131 | _.forEach(data.keyword, function(value) { | 1131 | _.forEach(data.keyword, function(value) { |
1132 | sortIntro.keyEntry.push({ | 1132 | sortIntro.keyEntry.push({ |
1133 | name: value.word, | 1133 | name: value.word, |
1134 | - url: value.url | 1134 | + url: value.url.replace(/(parameter_)(\d+)=(\d+)/, (match, p1, p2, p3) => `standard=${p2}_${p3}`) |
1135 | }); | 1135 | }); |
1136 | }); | 1136 | }); |
1137 | 1137 | ||
@@ -1270,7 +1270,7 @@ exports.handleNextPage = (params, total) => { | @@ -1270,7 +1270,7 @@ exports.handleNextPage = (params, total) => { | ||
1270 | return { | 1270 | return { |
1271 | href: href, | 1271 | href: href, |
1272 | src: '//img10.static.yhbimg.com/product/2014/01/15/11/01fa01614784f6239760f1b749663016f1.jpg?' + | 1272 | src: '//img10.static.yhbimg.com/product/2014/01/15/11/01fa01614784f6239760f1b749663016f1.jpg?' + |
1273 | - 'imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90' | 1273 | + 'imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90' |
1274 | }; | 1274 | }; |
1275 | }; | 1275 | }; |
1276 | 1276 | ||
@@ -1393,12 +1393,12 @@ exports.getBrandSeo = (channel, brandInfo) => { | @@ -1393,12 +1393,12 @@ exports.getBrandSeo = (channel, brandInfo) => { | ||
1393 | bbc = b + bcn + c, | 1393 | bbc = b + bcn + c, |
1394 | title = bb || b || '', | 1394 | title = bb || b || '', |
1395 | keywords = [b ? b + ',' : '', | 1395 | keywords = [b ? b + ',' : '', |
1396 | - ((b && bcn) ? (bb + ',') : ''), | ||
1397 | - bc || '', | ||
1398 | - '品牌'].join(''), | 1396 | + ((b && bcn) ? (bb + ',') : ''), |
1397 | + bc || '', | ||
1398 | + '品牌'].join(''), | ||
1399 | desc = [b + '正品网购。', | 1399 | desc = [b + '正品网购。', |
1400 | - bbc || '', | ||
1401 | - '品牌官方授权!YOHO! 有货中国最大的潮流商品购物网站。100%品牌正品保证,支持货到付款。'].join(''); | 1400 | + bbc || '', |
1401 | + '品牌官方授权!YOHO! 有货中国最大的潮流商品购物网站。100%品牌正品保证,支持货到付款。'].join(''); | ||
1402 | 1402 | ||
1403 | title += (title ? (title + '|') : '') + c + '品牌|YOHO!BUY 有货 100%正品保证'; | 1403 | title += (title ? (title + '|') : '') + c + '品牌|YOHO!BUY 有货 100%正品保证'; |
1404 | 1404 |
-
Please register or login to post a comment