Ver Fonte

wesmiler 更新第5期更新代码合并

wesmiler há 4 anos atrás
pai
commit
0b00aaadb4

+ 7 - 0
public/themes/default/weixin/public/assets/js/auth-idcard.js

@@ -145,6 +145,13 @@ var app = new Vue({
                                     _this.submitting.submit = false;
                                     if(res.code == 'success'){
                                         $.showLoading(res.message);
+                                        var url = res.data.url;
+                                        consoel.log(res.data)
+                                        if(typeof(url) != 'undefined' && url){
+                                            setTimeout(function(){
+                                                location.href = url;
+                                            }, 500)
+                                        }
                                     }else if (res.code == 'login'){
                                         var url = res.data.url;
                                         $.toast(res.message,'text');