个人中心

This commit is contained in:
limqhz
2022-12-13 16:53:09 +08:00
parent 0efe64d1bb
commit c0c88244c3
39 changed files with 763 additions and 60 deletions

View File

@@ -6,61 +6,41 @@ Page({
*/
data: {
aIconList: ['check-rectangle','star','notification','info-circle-filled'],
hasUserAttar: false,
userInfo: {},
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
fetchWXAttar(){
wx.getUserProfile({
desc: '展示用户信息', // 声明获取用户个人信息后的用途,后续会展示在弹窗中,请谨慎填写
success: (res) => {
console.log(res)
this.setData({
userInfo: res.userInfo,
hasUserAttar: true
})
},
fail: (e) => {
console.log(e);
}
})
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady() {
viewMyMessage(){
wx.navigateTo({
url: '/pages/myself/notify/index'
});
},
/**
* 生命周期函数--监听页面显示
*/
onShow() {
viewQuestion(){
wx.navigateTo({
url: '/pages/myself/question/index'
});
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide() {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload() {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh() {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom() {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage() {
viewAboutUs(){
wx.navigateTo({
url: '/pages/myself/about/index'
});
}
})