...
|
...
|
@@ -1528,7 +1528,6 @@ function actionVipInfo(_data) { |
|
|
function actionLoginInfo() {
|
|
|
$.getData('//www.yohobuy.com/common/passport', '', function(_data) {
|
|
|
if (_data && _data.result !== -1) {
|
|
|
actionLoginState(_data); // 更改登录状态
|
|
|
actionVipInfo(_data); //获得vip;
|
|
|
} else {
|
|
|
window.setCookie('_UID', '', {
|
...
|
...
|
@@ -1548,11 +1547,16 @@ function actionProfileName(){ |
|
|
var profileName = getProfileName();
|
|
|
var uid = getUid();
|
|
|
|
|
|
var info = {
|
|
|
profileName:profileName,
|
|
|
result: 1
|
|
|
};
|
|
|
|
|
|
if(!uid || !profileName){
|
|
|
return;
|
|
|
info.result = -1;
|
|
|
}
|
|
|
|
|
|
actionLoginState({profileName:profileName, result:'1'})
|
|
|
actionLoginState(info);
|
|
|
}
|
|
|
|
|
|
/**
|
...
|
...
|
|