|
|
@ -171,17 +171,17 @@ export default { |
|
|
|
getUserInfo: function() { |
|
|
|
getUserInfo: function() { |
|
|
|
let that = this; |
|
|
|
let that = this; |
|
|
|
getUser().then(res => { |
|
|
|
getUser().then(res => { |
|
|
|
let switchUserInfo = res.data.switchUserInfo; |
|
|
|
// let switchUserInfo = res.data.switchUserInfo; |
|
|
|
for (let i = 0; i < switchUserInfo.length; i++) { |
|
|
|
// for (let i = 0; i < switchUserInfo.length; i++) { |
|
|
|
if (switchUserInfo[i].uid == that.userInfo.uid) that.userIndex = i; |
|
|
|
// if (switchUserInfo[i].uid == that.userInfo.uid) that.userIndex = i; |
|
|
|
if ( |
|
|
|
// if ( |
|
|
|
!that.isWeixin && |
|
|
|
// !that.isWeixin && |
|
|
|
switchUserInfo[i].user_type != "h5" && |
|
|
|
// switchUserInfo[i].user_type != "h5" && |
|
|
|
switchUserInfo[i].phone === "" |
|
|
|
// switchUserInfo[i].phone === "" |
|
|
|
) |
|
|
|
// ) |
|
|
|
switchUserInfo.splice(i, 1); |
|
|
|
// switchUserInfo.splice(i, 1); |
|
|
|
} |
|
|
|
// } |
|
|
|
that.$set(this, "switchUserInfo", switchUserInfo); |
|
|
|
// that.$set(this, "switchUserInfo", switchUserInfo); |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
imageuploaded(res) { |
|
|
|
imageuploaded(res) { |
|
|
|