...
|
...
|
@@ -80,10 +80,14 @@ const _infoNum = (params) => { |
|
|
* @param params
|
|
|
*/
|
|
|
const _getAddressData = (params) => {
|
|
|
if (params.uid) {
|
|
|
return api.get('', {
|
|
|
method: 'app.address.gethidden',
|
|
|
uid: params.uid
|
|
|
}, {code: 200});
|
|
|
} else {
|
|
|
return false;
|
|
|
}
|
|
|
};
|
|
|
|
|
|
/**
|
...
|
...
|
@@ -102,7 +106,8 @@ const index = (params) => { |
|
|
cartUrl: helpers.urlFormat('/cart/index/index'),
|
|
|
signinUrl: helpers.urlFormat('/signin.html', {
|
|
|
refer: helpers.urlFormat('/home')
|
|
|
})
|
|
|
}),
|
|
|
verifyUrl: helpers.urlFormat('/activity/student/register')
|
|
|
};
|
|
|
|
|
|
return api.all([
|
...
|
...
|
@@ -116,7 +121,8 @@ const index = (params) => { |
|
|
Object.assign(finalResult, {
|
|
|
profileName: result[0].data.profile_name,
|
|
|
headIco: result[0].data.head_ico,
|
|
|
vipInfo: result[0].data.vip_info
|
|
|
vipInfo: result[0].data.vip_info,
|
|
|
students: _.get(result[0].data, 'vip_info.is_student', 0) === 1
|
|
|
});
|
|
|
}
|
|
|
|
...
|
...
|
|