cyx-ament-wechat/miniprogram/pages/mine/mine.js

81 lines
1.4 KiB
JavaScript
Raw Permalink Normal View History

2023-08-31 10:43:26 +08:00
// pages/mine/mine.js
Page({
/**
* 页面的初始数据
*/
data: {
2023-09-15 14:19:45 +08:00
userInfo:null,
perInfo:null,
2023-08-31 10:43:26 +08:00
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
2023-09-15 14:19:45 +08:00
this.setData({
userInfo:wx.getStorageSync('userInfo'),
perInfo:wx.getStorageSync('perInfo')
})
2023-08-31 10:43:26 +08:00
},
2023-09-18 17:17:45 +08:00
exitLogin(){
wx.clearStorageSync()
// wx.setStorageSync("loginName", _this.data.username);
// wx.setStorageSync("password", _this.data.password);
// wx.setStorageSync("userInfo", obj.data.userInfo);
// wx.setStorageSync("perInfo", obj.data.perInfo);
wx.reLaunch({
url: '/pages/loading/loading'
});
},
2023-08-31 10:43:26 +08:00
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady() {
},
/**
* 生命周期函数--监听页面显示
*/
onShow() {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide() {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload() {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh() {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom() {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage() {
}
})