sync:单词修改,授权弹框修复 decd3a5108

sync:小程序、h5登录弹框样式修改 4aaf21084b
pull/132/MERGE
YunaiV 2025-04-28 00:22:41 +08:00
parent 00f57159b4
commit da9588c263
1 changed files with 11 additions and 10 deletions

View File

@ -8,19 +8,20 @@ import AuthUtil from '@/sheep/api/member/auth';
// 打开授权弹框
export function showAuthModal(type = 'smsLogin') {
const modal = $store('modal');
if (modal.auth !== '') {
// 注意:延迟修改,保证下面的 closeAuthModal 先执行掉
setTimeout(() => {
modal.$patch((state) => {
state.auth = type;
});
}, 500);
closeAuthModal();
} else {
// #ifdef H5
closeAuthModal();
setTimeout(() => {
modal.$patch((state) => {
state.auth = type;
});
}
}, 200);
// #endif
// #ifndef H5
modal.$patch((state) => {
state.auth = type;
});
// #endif
}
// 关闭授权弹框