Authored by 王水玲

sale 资源位 code码修改

... ... @@ -34,7 +34,7 @@ const saleLogger = (err, res) => {
* @return {[type]}
*/
exports.index = (req, res) => {
let channel = req.query.channel || req.cookies._Channel || 'boys';
let channel = req.query.channel || req.cookies._Channel || 'boys';
let headerData = headerModel.setNavHeader('SALE');
let renderData = {
module: 'product',
... ... @@ -65,7 +65,7 @@ exports.index = (req, res) => {
* @return {[type]}
*/
exports.breakingYards = (req, res) => {
let channel = req.query.channel || req.cookies._Channel || 'boys';
let channel = req.query.channel || req.cookies._Channel || 'boys';
let headerData = headerModel.setNavHeader('断码区');
let renderData = {
module: 'product',
... ... @@ -138,7 +138,7 @@ exports.discountDetail = (req, res) => {
* @return {[type]}
*/
exports.vip = (req, res) => {
let channel = req.query.channel || req.cookies._Channel || 'boys';
let channel = req.query.channel || req.cookies._Channel || 'boys';
let headerData = headerModel.setNavHeader('会员专享');
let renderData = {
module: 'product',
... ...
... ... @@ -314,7 +314,8 @@ exports.getVipData = (channel) => {
*/
exports.getBreakCodeData = (params) => {
params = params || {};
return Promise.all([getResources('breakCode', params.yhChannel), getBreakingSort(params.yhChannel)]).then((result) => {
return Promise.all([getResources('breakCode', params.yhChannel), getBreakingSort(params.yhChannel)])
.then((result) => {
return {
content: result[0],
nav: result[1]
... ...