// pages/mine/mine.js Page({ /** * 页面的初始数据 */ data: { userInfor:"", name:'', show:false }, /** * 生命周期函数--监听页面加载 */ onLoad: function (options) { var that =this; // 判断是否授权 wx.getStorage({key:"data", success:(res)=>{ console.log(res.data.name) this.setData({name:res.data.name}) } }) // console.log(userInfor) if (userInfor==''){ }else{ // this.setData({ // userInfor:userInfor, // show:true // }) //判断登录是否过期 this.checksession(); } }, // 跳转到楼盘收藏 house: function (e) { var type = e.currentTarget.dataset.type if(type==0){ wx.navigateTo({ url: `../../timetable/timetable`, }) }else if(type==1){ wx.navigateTo({ url: `../../chengjiliebiao/chengjiliebiao`, }) }else if(type==2){ wx.navigateTo({ url: `../../qingjiaxuanqu/qingjiaxuanqu`, }) } }, // 跳转到设置 goSetting:function(){ wx.navigateTo({ url: `userSetting`, }) }, //跳转到授权 goLog:function(){ wx.navigateTo({ url: `../../log/log?type=mine`, }) }, /** * 生命周期函数--监听页面初次渲染完成 */ onReady: function () { }, /** * 生命周期函数--监听页面显示 */ /** * 生命周期函数--监听页面隐藏 */ onHide: function () { }, /** * 生命周期函数--监听页面卸载 */ onUnload: function () { }, /** * 页面相关事件处理函数--监听用户下拉动作 */ onPullDownRefresh: function () { }, /** * 页面上拉触底事件的处理函数 */ onReachBottom: function () { }, /** * 用户点击右上角分享 */ onShareAppMessage: function () { return{ title:"a", imageUrl:'' } } })