...
|
...
|
@@ -7,7 +7,6 @@ |
|
|
|
|
|
'use strict';
|
|
|
|
|
|
// const logger = global.yoho.logger;
|
|
|
const favApi = global.yoho.FavAPI;
|
|
|
const api = global.yoho.API;
|
|
|
const helpers = global.yoho.helpers;
|
...
|
...
|
@@ -19,7 +18,7 @@ const camelCase = global.yoho.camelCase; |
|
|
const _userData = (params) => {
|
|
|
return api.get('', {
|
|
|
method: 'app.passport.profile',
|
|
|
uid: params.uid,
|
|
|
uid: params.uid
|
|
|
}, {code: 200});
|
|
|
};
|
|
|
|
...
|
...
|
@@ -28,7 +27,7 @@ const _userData = (params) => { |
|
|
*/
|
|
|
const _noticeData = () => {
|
|
|
return api.get('', {
|
|
|
method: 'app.resources.getNotices',
|
|
|
method: 'app.resources.getNotices'
|
|
|
}, {code: 200});
|
|
|
};
|
|
|
|
...
|
...
|
@@ -40,7 +39,7 @@ const _noticeData = () => { |
|
|
const _favoriteData = (params) => {
|
|
|
return favApi.get('brower', {
|
|
|
method: 'app.favorite.getFavoriteCount',
|
|
|
uid: params.uid || '8039759'
|
|
|
uid: params.uid
|
|
|
}, {code: 200});
|
|
|
};
|
|
|
|
...
|
...
|
@@ -51,7 +50,7 @@ const _infoNum = (params) => { |
|
|
return api.get('', {
|
|
|
method: 'app.home.getInfoNum',
|
|
|
uid: params.uid,
|
|
|
udid: params.udid,
|
|
|
udid: params.udid
|
|
|
}, {code: 200});
|
|
|
};
|
|
|
|
...
|
...
|
@@ -69,7 +68,7 @@ const index = (params) => { |
|
|
refundExchangeNum: 0,
|
|
|
commentTotal: 0,
|
|
|
cartUrl: helpers.urlFormat('/cart/index/index'),
|
|
|
signinUrl: helpers.urlFormat('/signin.html', {refer: helpers.urlFormat('/home')}),
|
|
|
signinUrl: helpers.urlFormat('/signin.html', {refer: helpers.urlFormat('/home')})
|
|
|
};
|
|
|
|
|
|
return api.all([
|
...
|
...
|
@@ -94,7 +93,7 @@ const index = (params) => { |
|
|
|
|
|
if (result[2] && result[2].data) {
|
|
|
Object.assign(finalResult, {
|
|
|
productFavoriteTotal: result[2].data.product_favorite_total,
|
|
|
productFavoriteTotal: result[2].data.product_favorite_total
|
|
|
});
|
|
|
}
|
|
|
|
...
|
...
|
|