feat:新增登录页面与相关功能,移除自动登录,对接用户反馈功能
This commit is contained in:
@@ -11,25 +11,20 @@
|
||||
|
||||
},
|
||||
onShow: async function() {
|
||||
// if (this.getUserInfoData()) {
|
||||
|
||||
// } else {
|
||||
// console.log('App Show')
|
||||
await this.autoLogin()
|
||||
// }
|
||||
// 手动登录模式:不再自动登录
|
||||
// 如需保留可开关逻辑,可在此读取配置决定是否执行 autoLogin
|
||||
},
|
||||
onHide: function() {
|
||||
console.log('App Hide')
|
||||
},
|
||||
methods: {
|
||||
// 保留方法但不调用
|
||||
async autoLogin() {
|
||||
try {
|
||||
const loginResult = await wxLogin()
|
||||
// await getUserInfo()
|
||||
} catch (error) {
|
||||
console.error('自动登录失败:', error)
|
||||
// 登录失败的处理可以在 wxLogin 中统一处理
|
||||
// 这里可以添加特殊的错误处理逻辑
|
||||
}
|
||||
},
|
||||
async getUserInfoData() {
|
||||
|
||||
Reference in New Issue
Block a user