Files
JayuCloud/JC-Salon-WeChat/pages/launch/index.js
T

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: '登录状态检查失败,正在返回登录页…' })
}
}
})