Showing
1 changed file
with
8 additions
and
6 deletions
@@ -6,7 +6,8 @@ | @@ -6,7 +6,8 @@ | ||
6 | 6 | ||
7 | 'use strict'; | 7 | 'use strict'; |
8 | 8 | ||
9 | -const headerModel = require('../../../doraemon/models/header'); | 9 | +// const headerModel = require('../../../doraemon/models/header'); |
10 | + | ||
10 | const specialModel = require('../models/special'); | 11 | const specialModel = require('../models/special'); |
11 | const log = require(`${global.library}/logger`); | 12 | const log = require(`${global.library}/logger`); |
12 | const _ = require('lodash'); | 13 | const _ = require('lodash'); |
@@ -66,25 +67,25 @@ exports.special = (req, res) => { | @@ -66,25 +67,25 @@ exports.special = (req, res) => { | ||
66 | link: 'http://list.yohobuy.com/?gender=2,3&msort=1,3', | 67 | link: 'http://list.yohobuy.com/?gender=2,3&msort=1,3', |
67 | name: '服饰', | 68 | name: '服饰', |
68 | isHot: false, | 69 | isHot: false, |
69 | - isNew: false, | 70 | + isNew: false |
70 | }, | 71 | }, |
71 | { | 72 | { |
72 | link: 'http://list.yohobuy.com/?gender=2,3&msort=6', | 73 | link: 'http://list.yohobuy.com/?gender=2,3&msort=6', |
73 | name: '鞋履', | 74 | name: '鞋履', |
74 | isHot: false, | 75 | isHot: false, |
75 | - isNew: false, | 76 | + isNew: false |
76 | }, | 77 | }, |
77 | { | 78 | { |
78 | link: 'http://list.yohobuy.com/?gender=2,3&msort=7', | 79 | link: 'http://list.yohobuy.com/?gender=2,3&msort=7', |
79 | name: '包袋', | 80 | name: '包袋', |
80 | isHot: false, | 81 | isHot: false, |
81 | - isNew: false, | 82 | + isNew: false |
82 | }, | 83 | }, |
83 | { | 84 | { |
84 | link: 'http://list.yohobuy.com/?gender=2,3&msort=8,10,241', | 85 | link: 'http://list.yohobuy.com/?gender=2,3&msort=8,10,241', |
85 | name: '配饰 · 其他', | 86 | name: '配饰 · 其他', |
86 | isHot: false, | 87 | isHot: false, |
87 | - isNew: false, | 88 | + isNew: false |
88 | }, | 89 | }, |
89 | { | 90 | { |
90 | link: 'http://guang.yohobuy.com/', | 91 | link: 'http://guang.yohobuy.com/', |
@@ -96,7 +97,7 @@ exports.special = (req, res) => { | @@ -96,7 +97,7 @@ exports.special = (req, res) => { | ||
96 | link: 'http://list.yohobuy.com/sale?gender=2,3', | 97 | link: 'http://list.yohobuy.com/sale?gender=2,3', |
97 | name: 'SALE', | 98 | name: 'SALE', |
98 | isHot: false, | 99 | isHot: false, |
99 | - isNew: false | 100 | + isNew: false |
100 | } | 101 | } |
101 | ] | 102 | ] |
102 | }, | 103 | }, |
@@ -106,6 +107,7 @@ exports.special = (req, res) => { | @@ -106,6 +107,7 @@ exports.special = (req, res) => { | ||
106 | }; | 107 | }; |
107 | let saleData = result[0]; | 108 | let saleData = result[0]; |
108 | let data = {}; | 109 | let data = {}; |
110 | + | ||
109 | // let channel = req.body.channel; | 111 | // let channel = req.body.channel; |
110 | 112 | ||
111 | data = _.merge(headerData, saleData); | 113 | data = _.merge(headerData, saleData); |
-
Please register or login to post a comment