初始化
This commit is contained in:
31
pages/system/welcome/index.js
Normal file
31
pages/system/welcome/index.js
Normal file
@@ -0,0 +1,31 @@
|
||||
Page({
|
||||
data: {
|
||||
key: "is_first",
|
||||
loading: true,
|
||||
},
|
||||
|
||||
onLoad(options) {
|
||||
this.init()
|
||||
},
|
||||
|
||||
init() {
|
||||
let state = wx.getStorageSync(this.data.key);
|
||||
if (state) {
|
||||
wx.redirectTo({
|
||||
url: "/pages/joinFlow/access/index",
|
||||
})
|
||||
} else {
|
||||
this.setData({
|
||||
loading: false
|
||||
})
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
handNext() {
|
||||
wx.setStorageSync(this.data.key, true)
|
||||
wx.redirectTo({
|
||||
url: "/pages/home/index",
|
||||
})
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user