会议详情,项目详情,我的页面

This commit is contained in:
姚亚男
2021-10-09 15:50:06 +08:00
parent 8a2500b5a5
commit 2134e2525f
55 changed files with 1931 additions and 45 deletions
+12 -12
View File
@@ -9,18 +9,18 @@ App({
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.getStorage({
// key: 'key',
// success (res) {// 缓存中登录过,直接进小程序
// console.log(res.data)
// wx.switchTab({
// url: '../home/home',
// })
// },
// fail: function(){
// // 缓存中没有登录过默认app.json的登录页
// }
// })
// 登录
wx.login({
success: res => {