Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

confirm弹窗回调中再用alert,会出现无法使用的状况. #324

Open
liguangni opened this issue Aug 31, 2020 · 3 comments
Open

confirm弹窗回调中再用alert,会出现无法使用的状况. #324

liguangni opened this issue Aug 31, 2020 · 3 comments

Comments

@liguangni
Copy link

liguangni commented Aug 31, 2020

weui.confirm('带回调的confirm', function(){ ns.post(url,{参数},function(){ if(success){ weui.alert("解绑成功",function(){..........}); }else{ //...... } }); }, function(){ console.log('no') });

这种情况会出现alert失效的问题,
请问有遇到的吗?有什么解决办法吗?

@wyyufeng
Copy link

wyyufeng commented Sep 2, 2020

通过手动调用hide方法 在回调里调用 alert即可 但这样过渡动画会有一点点问题

var $confirm= weui.confirm({...});
$confirm.hide(function(){
     weui.alert("...")
});

@houguang
Copy link

同样的问题

@xCss
Copy link

xCss commented Sep 27, 2020

同样的问题

调用了Loading.hide()之后调用weui.alert()也会出现alert失效的情况


刚刚用这个方法解决了alert的问题:

                loading.hide(function(){
                    weui.alert('i'm alert...');
                })

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants