mirror of
https://gitee.com/elegant_wings/dbd-meeting-wx-small.git
synced 2025-06-21 09:39:38 +08:00
1
This commit is contained in:
parent
d562019fb2
commit
17225a83a4
@ -6,9 +6,12 @@ import {
|
||||
callScanUrl
|
||||
} from "../../api/common/scan.js"
|
||||
|
||||
import {
|
||||
userProfile
|
||||
} from "../../api/user/user.js"
|
||||
|
||||
|
||||
Page({
|
||||
onShareAppMessage(res) {},
|
||||
data: {
|
||||
// tabBar param
|
||||
tabBarParam: {
|
||||
@ -154,7 +157,8 @@ Page({
|
||||
}, {
|
||||
bg: '/profile/static/index/banner/3.jpg',
|
||||
url: ''
|
||||
}]
|
||||
}],
|
||||
userDetail: {},
|
||||
},
|
||||
|
||||
// 切换tabbar
|
||||
@ -174,7 +178,18 @@ Page({
|
||||
},
|
||||
|
||||
onShow() {
|
||||
|
||||
let _this = this
|
||||
let userId = wx.getStorageSync('userId');
|
||||
if (userId) {
|
||||
userProfile(userId).then(res => {
|
||||
console.log('userProfile', res);
|
||||
_this.setData({
|
||||
userDetail: res.data
|
||||
})
|
||||
})
|
||||
} else {
|
||||
app.getlogin()
|
||||
}
|
||||
},
|
||||
|
||||
navapply(e) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user