fix(login): 修复多端适配及事件重复绑定问题
1. 修正微信小程序平台的条件编译标识 2. 为uniapp页面元素补充@tap事件,兼容多端点击事件规范
This commit is contained in:
@@ -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
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user