Authored by 郭成尧

'细节调整'

... ... @@ -23,31 +23,8 @@ exports.index = (req, res, next) => {
if (result) {
res.render('index', Object.assign(result, {
pageHeader: headerData,
pageFooter: true
pageHeader: headerData
}));
}
}).catch(next);
// res.render('index', {
// myIndexPage: 1,
// showDownloadApp: 1,
// navHome: 1,
// notice: [],
// pageFooter: 1,
// cartUrl: '//m.dev.yohobuy.com/cart/index/index',
// signinUrl: '//m.dev.yohobuy.com/signin.html?refer=%2F%2Fm.dev.yohobuy.com%2Fhome',
// isLogin: true,
// wait_pay_num: 99,
// wait_cargo_num: 99,
// send_cargo_num: 99,
// brand_favorite_total: 99,
// product_favorite_total: 99,
// inbox_total: 99,
// comment_total: 99,
// refund_exchange_num: 99,
// yoho_coin_num: 99,
// coupon_num: 99,
// product_browse: 99
// });
};
... ...
... ... @@ -10,6 +10,7 @@
// const logger = global.yoho.logger;
const favApi = global.yoho.FavAPI;
const api = global.yoho.API;
const helpers = global.yoho.helpers;
/**
* 个人详情数据
... ... @@ -66,6 +67,8 @@ const index = (params) => {
pageFooter: true,
refundExchangeNum: 0,
commentTotal: 0,
cartUrl: helpers.urlFormat('/cart/index/index'),
signinUrl: helpers.urlFormat('/signin.html', {refer: helpers.urlFormat('/home')})
};
return api.all([
... ... @@ -74,7 +77,6 @@ const index = (params) => {
_favoriteData(params),
_infoNum(params)
]).then(result => {
// console.log(result);
if (result[1] && result[1].data) {
Object.assign(finalResult, {
notice: [{title: 'testmessage'}]
... ...