21 lines
391 B
JavaScript
21 lines
391 B
JavaScript
const { BRAND_CONFIG } = require('../../utils/config')
|
|
|
|
Page({
|
|
data: {
|
|
appName: BRAND_CONFIG.appName,
|
|
message: '正在安全登录…'
|
|
},
|
|
|
|
onLoad() {
|
|
this.startLogin()
|
|
},
|
|
|
|
async startLogin() {
|
|
try {
|
|
await getApp().bootstrapWechatLogin()
|
|
} catch (error) {
|
|
this.setData({ message: '登录状态检查失败,正在返回登录页…' })
|
|
}
|
|
}
|
|
})
|