30 lines
419 B
JavaScript
30 lines
419 B
JavaScript
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/person/index",
|
|
})
|
|
} else {
|
|
this.setData({
|
|
loading: false
|
|
})
|
|
}
|
|
},
|
|
|
|
handNext() {
|
|
wx.setStorageSync(this.data.key, true)
|
|
wx.redirectTo({
|
|
url: "/pages/joinFlow/person/index"
|
|
})
|
|
}
|
|
}) |