|
@@ -335,9 +335,9 @@ U.MD.D.getuser = function () {
|
|
if (res.value && res.value[0] && res.value[0][0]) {
|
|
if (res.value && res.value[0] && res.value[0][0]) {
|
|
US.userInfo = res.value[0][0]; //记录用户数据
|
|
US.userInfo = res.value[0][0]; //记录用户数据
|
|
US.userInfo.userid = _user.userid;
|
|
US.userInfo.userid = _user.userid;
|
|
- if ($("#U_MD_HomeC_Pop")[0]) {
|
|
|
|
- $("#U_MD_HomeC_Pop")[0].close(); //关闭登陆
|
|
|
|
- }
|
|
|
|
|
|
+ // if ($("#U_MD_HomeC_Pop")[0]) {
|
|
|
|
+ // $("#U_MD_HomeC_Pop")[0].close(); //关闭登陆
|
|
|
|
+ // }
|
|
selectUser(_user.userid, (res) => {
|
|
selectUser(_user.userid, (res) => {
|
|
loginSet(res.value[0][0], res);
|
|
loginSet(res.value[0][0], res);
|
|
});
|
|
});
|
|
@@ -657,9 +657,9 @@ U.MD.D.getuser = function () {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} catch (error) {
|
|
} catch (error) {
|
|
- if ($("#U_MD_HomeC_Pop")[0]) {
|
|
|
|
- $("#U_MD_HomeC_Pop")[0].close(); //关闭登陆
|
|
|
|
- }
|
|
|
|
|
|
+ // if ($("#U_MD_HomeC_Pop")[0]) {
|
|
|
|
+ // $("#U_MD_HomeC_Pop")[0].close(); //关闭登陆
|
|
|
|
+ // }
|
|
selectUser(userInfo.userid, (res) => {
|
|
selectUser(userInfo.userid, (res) => {
|
|
loginSet(res.value[0][0], res);
|
|
loginSet(res.value[0][0], res);
|
|
});
|
|
});
|
|
@@ -695,12 +695,13 @@ U.MD.D.getuser2 = function (userid, cid) {
|
|
.then(result => {
|
|
.then(result => {
|
|
let a = JSON.parse(result)
|
|
let a = JSON.parse(result)
|
|
if(a.length>0){
|
|
if(a.length>0){
|
|
- if($(".U_PBL_Check2")[0]){
|
|
|
|
- $(".U_PBL_Check2")[0].style.display = "none";
|
|
|
|
- }
|
|
|
|
|
|
+
|
|
let userId = a[0][0].userid
|
|
let userId = a[0][0].userid
|
|
US.userInfo.userid = userId
|
|
US.userInfo.userid = userId
|
|
selectUser(userId, (res) => {
|
|
selectUser(userId, (res) => {
|
|
|
|
+ if($(".U_PBL_Check2")[0]){
|
|
|
|
+ $(".U_PBL_Check2")[0].style.display = "none";
|
|
|
|
+ }
|
|
if ($("#U_MD_HomeC_Pop")[0]) {
|
|
if ($("#U_MD_HomeC_Pop")[0]) {
|
|
$("#U_MD_HomeC_Pop")[0].close(); //关闭登陆
|
|
$("#U_MD_HomeC_Pop")[0].close(); //关闭登陆
|
|
}
|
|
}
|
|
@@ -1121,6 +1122,9 @@ function loginPan(userInfo, userId) {
|
|
}
|
|
}
|
|
|
|
|
|
function loginSet(userInfo, res){
|
|
function loginSet(userInfo, res){
|
|
|
|
+ if ($("#U_MD_HomeC_Pop")[0]) {
|
|
|
|
+ $("#U_MD_HomeC_Pop")[0].close(); //关闭登陆
|
|
|
|
+ }
|
|
let userId = userInfo.userid
|
|
let userId = userInfo.userid
|
|
if (res.value == null || res.value[0].length == 0) {
|
|
if (res.value == null || res.value[0].length == 0) {
|
|
// U.MD.D.I.openApplication("my")
|
|
// U.MD.D.I.openApplication("my")
|
|
@@ -1178,8 +1182,13 @@ function loginSet(userInfo, res){
|
|
|
|
|
|
function selectUser(uid, callback) {
|
|
function selectUser(uid, callback) {
|
|
const requestUser = () => {
|
|
const requestUser = () => {
|
|
- U.A.Request(US.Config.pbl + "selectUser?userid=" + uid, [], function (res) {
|
|
|
|
- if (callback) callback(res);
|
|
|
|
|
|
+ U.A.Request(`${US.Config.pbl}selectUser?userid=${uid}`, [], function (res) {
|
|
|
|
+ if(res && res.value && res.value.length && res.value[0].length && res.value[0][0].userid){
|
|
|
|
+ if (callback) callback(res);
|
|
|
|
+ }else {
|
|
|
|
+ U.alert("获取用户信息失败,正在重试!")
|
|
|
|
+ requestUser();
|
|
|
|
+ }
|
|
}, [], { "type": "GET", "withCredentials": true });
|
|
}, [], { "type": "GET", "withCredentials": true });
|
|
};
|
|
};
|
|
|
|
|