Authored by 沈志敏

fix bug

... ... @@ -130,7 +130,6 @@
{{#unless @root.wap.ucenter.removePrefer}}
{{> common/recommend-for-you}}
{{/unless}}
{{> common/suspend-cart}}
</div>
{{> footer-tab}}
... ...
... ... @@ -25,7 +25,7 @@ const willStartActivity = {
// 奥莱首页控制器
exports.index = (req, res, next) => {
let headerData = headerModel.setNav({
navTitle: 'OUTLET',
navTitle: '奥莱',
navBtn: false
});
... ... @@ -36,7 +36,7 @@ exports.index = (req, res, next) => {
outletModel.getContent(categoryId, yhChannel, contentcode).then(result => {
res.render('outlet', Object.assign({
pageHeader: headerData,
title: 'OUTLET | Yoho!Buy有货 | 潮流购物逛不停',
title: '奥莱 | Yoho!Buy有货 | 潮流购物逛不停',
}, result));
}).catch(next);
};
... ... @@ -67,7 +67,7 @@ exports.activityTime = (req, res, next) => {
// 奥莱活动频道列表页
exports.activityList = (req, res, next) => {
let headerData = headerModel.setNav({
navTitle: 'OUTLET',
navTitle: '奥莱',
navBtn: false
});
... ... @@ -98,4 +98,4 @@ exports.activityList = (req, res, next) => {
pageFooter: true
}, result));
}).catch(next);
};
};
\ No newline at end of file
... ...
... ... @@ -15,7 +15,7 @@ const api = global.yoho.API;
const resourcesProcess = require(`${utils}/resources-process`);
const dateFormate = (str) =>{
const dateFormate = (str) => {
var time = new Date(str * 1000);
var y = time.getFullYear();
var m = time.getMonth() + 1;
... ... @@ -85,7 +85,9 @@ const _convertNavData = (list) => {
});
});
return {data: formatData};
return {
data: formatData
};
};
/**
... ... @@ -164,10 +166,10 @@ const _convertActicityData = (data) => {
const _getActivityDetail = (id) => {
var params = {
method: 'app.outlets.activityGet',
sort: 1, // 接口规定传1
sort: 1, // 接口规定传1
platform: 3, // h5平台代号
id: id,
type: 0 // 接口规定传0
type: 0 // 接口规定传0
};
... ... @@ -235,7 +237,7 @@ const getActivity = (id) => {
return {
activity: res,
productPool: res[0] && res[0].productPoolId || '',
activityTitle: res[0] && res[0].title || 'OUTLET',
activityTitle: res[0] && res[0].title || '奥莱',
saleType: 4 // 促销类型, 奥莱为4
};
});
... ... @@ -288,4 +290,4 @@ module.exports = {
getActivity,
getRecentActivity,
getActivityTime
};
};
\ No newline at end of file
... ...