fix(login): 修复多端适配及事件重复绑定问题

1. 修正微信小程序平台的条件编译标识
2. 为uniapp页面元素补充@tap事件,兼容多端点击事件规范
This commit is contained in:
2026-06-04 17:28:24 +08:00
parent 5a0c903346
commit 65b49fe4d5
2 changed files with 10 additions and 8 deletions

View File

@@ -253,7 +253,7 @@ export default {
// 打开弹窗
open(url = '', mode = 'navigateTo') {
if (url) this.url = url;
// #ifdef MP
// #ifdef MP-WEIXIN
this.getCode(authData => {
this.authLogin(authData, 'authOnlyLogin');
});
@@ -279,7 +279,7 @@ export default {
}
// #endif
// #ifndef MP || H5
// #ifndef MP-WEIXIN || H5
this.toLogin(mode);
// #endif
},