登录,设置密码,修改密码,我的,首页,会议列表(接口逻辑已写,差加密文件的完善,代联调)

This commit is contained in:
姚亚男
2021-09-30 16:13:12 +08:00
parent d46f96d263
commit 8a2500b5a5
75 changed files with 1532 additions and 58 deletions
+16 -1
View File
@@ -5,7 +5,22 @@ App({
const logs = wx.getStorageSync('logs') || []
logs.unshift(Date.now())
wx.setStorageSync('logs', logs)
wx.setStorage({
key:"key",
data:"登录过,存到了缓存flag,跳转首页"
})
wx.getStorage({
key: 'key',
success (res) {// 缓存中登录过,直接进小程序
console.log(res.data)
wx.switchTab({
url: 'pages/home/home',
})
},
fail: function(){
// 缓存中没有登录过默认app.json的登录页
}
})
// 登录
wx.login({
success: res => {