mirror of
https://gitee.com/elegant_wings/dbd-meeting-wx-small.git
synced 2025-06-21 17:49:36 +08:00
1
This commit is contained in:
parent
d562019fb2
commit
17225a83a4
@ -6,9 +6,12 @@ import {
|
|||||||
callScanUrl
|
callScanUrl
|
||||||
} from "../../api/common/scan.js"
|
} from "../../api/common/scan.js"
|
||||||
|
|
||||||
|
import {
|
||||||
|
userProfile
|
||||||
|
} from "../../api/user/user.js"
|
||||||
|
|
||||||
|
|
||||||
Page({
|
Page({
|
||||||
onShareAppMessage(res) {},
|
|
||||||
data: {
|
data: {
|
||||||
// tabBar param
|
// tabBar param
|
||||||
tabBarParam: {
|
tabBarParam: {
|
||||||
@ -154,7 +157,8 @@ Page({
|
|||||||
}, {
|
}, {
|
||||||
bg: '/profile/static/index/banner/3.jpg',
|
bg: '/profile/static/index/banner/3.jpg',
|
||||||
url: ''
|
url: ''
|
||||||
}]
|
}],
|
||||||
|
userDetail: {},
|
||||||
},
|
},
|
||||||
|
|
||||||
// 切换tabbar
|
// 切换tabbar
|
||||||
@ -174,7 +178,18 @@ Page({
|
|||||||
},
|
},
|
||||||
|
|
||||||
onShow() {
|
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) {
|
navapply(e) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user