...
|
...
|
@@ -17,10 +17,12 @@ const _ = require('lodash'); |
|
|
* 个人详情数据
|
|
|
*/
|
|
|
const _userData = (params) => {
|
|
|
if (params.uid) {
|
|
|
return api.get('', {
|
|
|
method: 'app.passport.profile',
|
|
|
uid: params.uid
|
|
|
}, {code: 200});
|
|
|
}
|
|
|
};
|
|
|
|
|
|
/**
|
...
|
...
|
@@ -38,21 +40,25 @@ const _noticeData = () => { |
|
|
* @returns {*|Promise.<TResult>}
|
|
|
*/
|
|
|
const _favoriteData = (params) => {
|
|
|
if (params.uid) {
|
|
|
return singleAPI.get('brower', {
|
|
|
method: 'app.favorite.getFavoriteCount',
|
|
|
uid: params.uid
|
|
|
}, {code: 200});
|
|
|
}
|
|
|
};
|
|
|
|
|
|
/**
|
|
|
* 个人中心页面优惠券,收藏的商品等的数目数据
|
|
|
*/
|
|
|
const _infoNum = (params) => {
|
|
|
if (params.uid) {
|
|
|
return api.get('', {
|
|
|
method: 'app.home.getInfoNum',
|
|
|
uid: params.uid,
|
|
|
udid: params.udid
|
|
|
}, {code: 200});
|
|
|
}
|
|
|
};
|
|
|
|
|
|
/**
|
...
|
...
|
@@ -227,11 +233,13 @@ const getGradeGrade = (channel, uid) => { |
|
|
};
|
|
|
|
|
|
const getGradeUser = (channel, uid) => {
|
|
|
if (uid) {
|
|
|
return api.get('', {
|
|
|
method: 'app.passport.profile',
|
|
|
uid: uid,
|
|
|
channel: channel || 1
|
|
|
}, {code: 200});
|
|
|
}
|
|
|
};
|
|
|
|
|
|
const getGrade = (channel, uid) => {
|
...
|
...
|
|