parent
00f57159b4
commit
da9588c263
|
|
@ -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
|
||||
}
|
||||
|
||||
// 关闭授权弹框
|
||||
|
|
|
|||
Loading…
Reference in New Issue