调整登录逻辑

This commit is contained in:
2024-03-27 17:37:11 +08:00
parent 61bcbf6f69
commit 049782f96b
18 changed files with 113 additions and 30 deletions

View File

@@ -5,14 +5,15 @@ Page({
* 页面的初始数据
*/
data: {
user: {}
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
const user = wx.getStorageSync('user')
this.setData({ user })
},
/**
@@ -21,7 +22,11 @@ Page({
onReady() {
},
jumpToLogin() {
wx.navigateTo({
url: '/pages/login/index',
})
},
/**
* 生命周期函数--监听页面显示
*/