Authored by 郭成尧

首页跳转到某个页面

... ... @@ -2,7 +2,7 @@
* @Author: Targaryen
* @Date: 2016-05-25 18:16:59
* @Last Modified by: Targaryen
* @Last Modified time: 2016-06-01 18:08:49
* @Last Modified time: 2016-06-01 18:25:16
*/
'use strict';
... ... @@ -575,26 +575,26 @@ exports.handleSaleCategoryData = () => {
urlLocation: 'www.baidu.com',
navItem: [{
vip: true,
urlLocation: '?saleType=2&order=s_t_desc',
urlLocation: '?saleType=2&order=s_t_desc&limit=11',
title: '今日推荐'
}, {
incompleteSize: true,
urlLocation: '?saleType=2&order=s_t_desc&' +
urlLocation: '?saleType=2&order=s_t_desc&limit=11&' +
'sort=119,114,115,124,258,123,125,121,227,117,116,293,173,122,118,413',
title: '上装'
}, {
newDiscount: true,
urlLocation: '?saleType=2&order=s_t_desc&' +
urlLocation: '?saleType=2&order=s_t_desc&limit=11&' +
'sort=129,130,131,346,133,348',
title: '裤装'
}, {
vip: true,
urlLocation: '?saleType=2&order=s_t_desc&' +
urlLocation: '?saleType=2&order=s_t_desc&limit=11&' +
'sort=147,148,151,149',
title: '鞋履'
}, {
vip: true,
urlLocation: '?saleType=2&order=s_t_desc&' +
urlLocation: '?saleType=2&order=s_t_desc&limit=11&' +
'sort=152,153,186,313,162,311,322,75,235,424,142,238,211' +
',76,156,171,376,407,275,397,272,212,267,277,405,357,273,' +
'401,240,323,327,157,163,342,160,167,234,111,432,183,373,' +
... ... @@ -610,26 +610,26 @@ exports.handleSaleCategoryData = () => {
urlLocation: 'www',
navItem: [{
vip: true,
urlLocation: '?saleType=1&order=s_t_desc',
urlLocation: '?saleType=1&order=s_t_desc&limit=19',
title: '今日推荐'
}, {
incompleteSize: true,
urlLocation: '?saleType=1&order=s_t_desc&' +
urlLocation: '?saleType=1&order=s_t_desc&limit=19&' +
'sort=119,114,115,124,258,123,125,121,227,117,116,293,173,122,118,413',
title: '上装'
}, {
newDiscount: true,
urlLocation: '?saleType=1&order=s_t_desc&' +
urlLocation: '?saleType=1&order=s_t_desc&limit=19&' +
'sort=129,130,131,346,133,348',
title: '裤装'
}, {
vip: true,
urlLocation: '?saleType=1&order=s_t_desc&' +
urlLocation: '?saleType=1&order=s_t_desc&limit=19&' +
'sort=147,148,151,149',
title: '鞋履'
}, {
vip: true,
urlLocation: '?saleType=1&order=s_t_desc&' +
urlLocation: '?saleType=1&order=s_t_desc&limit=19&' +
'sort=152,153,186,313,162,311,322,75,235,424,142,238,211' +
',76,156,171,376,407,275,397,272,212,267,277,405,357,273,' +
'401,240,323,327,157,163,342,160,167,234,111,432,183,373,' +
... ...
... ... @@ -2,7 +2,7 @@
* @Author: Targaryen
* @Date: 2016-05-19 10:20:08
* @Last Modified by: Targaryen
* @Last Modified time: 2016-06-01 18:09:23
* @Last Modified time: 2016-06-01 18:28:12
*/
'use strict';
... ... @@ -30,14 +30,16 @@ exports.getSaleGoodsData = (params) => {
if (result[0].code === 200) {
finalResult.goods = productProcess.processProductList(result[0].data.product_list);
switch (params.saleType) {
case '2':
finalResult.goods = Object.assign(finalResult.goods, {
thumb: 'http://img10.static.yhbimg.com/product/2014/01/15/11/01fa01614784f6239760f1b749663016f1.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90'
case '1':
finalResult.goods.push({
thumb: 'http://img10.static.yhbimg.com/product/2014/01/15/11/01fa01614784f6239760f1b749663016f1.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/90',
url: 'http://localhost:6002/product/sale/breakingYards'
});
break;
case '3':
finalResult.goods = Object.assign(finalResult.goods, {
thumb: 'http://img10.static.yhbimg.com/product/2014/01/15/11/01fa01614784f6239760f1b749663016f1.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90'
case '2':
finalResult.goods.push({
thumb: 'http://img10.static.yhbimg.com/product/2014/01/15/11/01fa01614784f6239760f1b749663016f1.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/90',
url: 'http://localhost:6002/product/sale/vip'
});
break;
default:
... ...