Authored by yyq

修改活动跳转链接

... ... @@ -8,10 +8,6 @@
const mRoot = '../models';
const outlets = require(`${mRoot}/outlets`);
// 开发用模拟数据
// const simuOutlets = require(`${mRoot}/simu-outlets`);
// const outletsSimulation = require('../models/simulation');
/**
* outlets 首页
* @param {[type]} req [description]
... ... @@ -26,8 +22,6 @@ exports.index = (req, res) => {
let channel = req.query.channel || req.cookies._Channel || 'boys';
// 首页模拟数据
// resData.result = simuOutlets.index();
outlets.getOutletsIndexData(req.query, channel).then(result => {
resData.result = result;
resData.headerData = result.headerData;
... ... @@ -52,8 +46,6 @@ exports.channel = (req, res) => {
page: 'outlets'
};
// 首页模拟数据
// resData = outletsSimulation.outletBanner();
outlets.getOutletsChannelData(req.query, req.params.channel).then(result => {
res.render('outlets/channel', Object.assign(resData, result));
}).catch(() => {
... ...
... ... @@ -236,7 +236,7 @@ exports.handleOutletsActivityData = (origin, name) => {
_.forEach(origin, value => {
let activity = {};
activity.href = helpers.urlFormat('/outlets/special/detail', { id: value.id });
activity.href = helpers.urlFormat('/product/outlets/special/detail', { id: value.id });
activity.img = value.webCoverUrl;
activity.logo = value.logoUrl;
activity.title = value.title;
... ...