Authored by 郭成尧

首页跳转到某个页面

@@ -2,7 +2,7 @@ @@ -2,7 +2,7 @@
2 * @Author: Targaryen 2 * @Author: Targaryen
3 * @Date: 2016-05-25 18:16:59 3 * @Date: 2016-05-25 18:16:59
4 * @Last Modified by: Targaryen 4 * @Last Modified by: Targaryen
5 - * @Last Modified time: 2016-06-01 18:08:49 5 + * @Last Modified time: 2016-06-01 18:25:16
6 */ 6 */
7 7
8 'use strict'; 8 'use strict';
@@ -575,26 +575,26 @@ exports.handleSaleCategoryData = () => { @@ -575,26 +575,26 @@ exports.handleSaleCategoryData = () => {
575 urlLocation: 'www.baidu.com', 575 urlLocation: 'www.baidu.com',
576 navItem: [{ 576 navItem: [{
577 vip: true, 577 vip: true,
578 - urlLocation: '?saleType=2&order=s_t_desc', 578 + urlLocation: '?saleType=2&order=s_t_desc&limit=11',
579 title: '今日推荐' 579 title: '今日推荐'
580 }, { 580 }, {
581 incompleteSize: true, 581 incompleteSize: true,
582 - urlLocation: '?saleType=2&order=s_t_desc&' + 582 + urlLocation: '?saleType=2&order=s_t_desc&limit=11&' +
583 'sort=119,114,115,124,258,123,125,121,227,117,116,293,173,122,118,413', 583 'sort=119,114,115,124,258,123,125,121,227,117,116,293,173,122,118,413',
584 title: '上装' 584 title: '上装'
585 }, { 585 }, {
586 newDiscount: true, 586 newDiscount: true,
587 - urlLocation: '?saleType=2&order=s_t_desc&' + 587 + urlLocation: '?saleType=2&order=s_t_desc&limit=11&' +
588 'sort=129,130,131,346,133,348', 588 'sort=129,130,131,346,133,348',
589 title: '裤装' 589 title: '裤装'
590 }, { 590 }, {
591 vip: true, 591 vip: true,
592 - urlLocation: '?saleType=2&order=s_t_desc&' + 592 + urlLocation: '?saleType=2&order=s_t_desc&limit=11&' +
593 'sort=147,148,151,149', 593 'sort=147,148,151,149',
594 title: '鞋履' 594 title: '鞋履'
595 }, { 595 }, {
596 vip: true, 596 vip: true,
597 - urlLocation: '?saleType=2&order=s_t_desc&' + 597 + urlLocation: '?saleType=2&order=s_t_desc&limit=11&' +
598 'sort=152,153,186,313,162,311,322,75,235,424,142,238,211' + 598 'sort=152,153,186,313,162,311,322,75,235,424,142,238,211' +
599 ',76,156,171,376,407,275,397,272,212,267,277,405,357,273,' + 599 ',76,156,171,376,407,275,397,272,212,267,277,405,357,273,' +
600 '401,240,323,327,157,163,342,160,167,234,111,432,183,373,' + 600 '401,240,323,327,157,163,342,160,167,234,111,432,183,373,' +
@@ -610,26 +610,26 @@ exports.handleSaleCategoryData = () => { @@ -610,26 +610,26 @@ exports.handleSaleCategoryData = () => {
610 urlLocation: 'www', 610 urlLocation: 'www',
611 navItem: [{ 611 navItem: [{
612 vip: true, 612 vip: true,
613 - urlLocation: '?saleType=1&order=s_t_desc', 613 + urlLocation: '?saleType=1&order=s_t_desc&limit=19',
614 title: '今日推荐' 614 title: '今日推荐'
615 }, { 615 }, {
616 incompleteSize: true, 616 incompleteSize: true,
617 - urlLocation: '?saleType=1&order=s_t_desc&' + 617 + urlLocation: '?saleType=1&order=s_t_desc&limit=19&' +
618 'sort=119,114,115,124,258,123,125,121,227,117,116,293,173,122,118,413', 618 'sort=119,114,115,124,258,123,125,121,227,117,116,293,173,122,118,413',
619 title: '上装' 619 title: '上装'
620 }, { 620 }, {
621 newDiscount: true, 621 newDiscount: true,
622 - urlLocation: '?saleType=1&order=s_t_desc&' + 622 + urlLocation: '?saleType=1&order=s_t_desc&limit=19&' +
623 'sort=129,130,131,346,133,348', 623 'sort=129,130,131,346,133,348',
624 title: '裤装' 624 title: '裤装'
625 }, { 625 }, {
626 vip: true, 626 vip: true,
627 - urlLocation: '?saleType=1&order=s_t_desc&' + 627 + urlLocation: '?saleType=1&order=s_t_desc&limit=19&' +
628 'sort=147,148,151,149', 628 'sort=147,148,151,149',
629 title: '鞋履' 629 title: '鞋履'
630 }, { 630 }, {
631 vip: true, 631 vip: true,
632 - urlLocation: '?saleType=1&order=s_t_desc&' + 632 + urlLocation: '?saleType=1&order=s_t_desc&limit=19&' +
633 'sort=152,153,186,313,162,311,322,75,235,424,142,238,211' + 633 'sort=152,153,186,313,162,311,322,75,235,424,142,238,211' +
634 ',76,156,171,376,407,275,397,272,212,267,277,405,357,273,' + 634 ',76,156,171,376,407,275,397,272,212,267,277,405,357,273,' +
635 '401,240,323,327,157,163,342,160,167,234,111,432,183,373,' + 635 '401,240,323,327,157,163,342,160,167,234,111,432,183,373,' +
@@ -2,7 +2,7 @@ @@ -2,7 +2,7 @@
2 * @Author: Targaryen 2 * @Author: Targaryen
3 * @Date: 2016-05-19 10:20:08 3 * @Date: 2016-05-19 10:20:08
4 * @Last Modified by: Targaryen 4 * @Last Modified by: Targaryen
5 - * @Last Modified time: 2016-06-01 18:09:23 5 + * @Last Modified time: 2016-06-01 18:28:12
6 */ 6 */
7 7
8 'use strict'; 8 'use strict';
@@ -30,14 +30,16 @@ exports.getSaleGoodsData = (params) => { @@ -30,14 +30,16 @@ exports.getSaleGoodsData = (params) => {
30 if (result[0].code === 200) { 30 if (result[0].code === 200) {
31 finalResult.goods = productProcess.processProductList(result[0].data.product_list); 31 finalResult.goods = productProcess.processProductList(result[0].data.product_list);
32 switch (params.saleType) { 32 switch (params.saleType) {
33 - case '2':  
34 - finalResult.goods = Object.assign(finalResult.goods, {  
35 - thumb: 'http://img10.static.yhbimg.com/product/2014/01/15/11/01fa01614784f6239760f1b749663016f1.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90' 33 + case '1':
  34 + finalResult.goods.push({
  35 + 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',
  36 + url: 'http://localhost:6002/product/sale/breakingYards'
36 }); 37 });
37 break; 38 break;
38 - case '3':  
39 - finalResult.goods = Object.assign(finalResult.goods, {  
40 - thumb: 'http://img10.static.yhbimg.com/product/2014/01/15/11/01fa01614784f6239760f1b749663016f1.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90' 39 + case '2':
  40 + finalResult.goods.push({
  41 + 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',
  42 + url: 'http://localhost:6002/product/sale/vip'
41 }); 43 });
42 break; 44 break;
43 default: 45 default: