Procházet zdrojové kódy

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

wesmiler před 5 roky
rodič
revize
522b66f311

+ 19 - 1
public/themes/default/weixin/public/assets/js/privacy.js

@@ -56,8 +56,26 @@ var app = new Vue({
                 if (res.code == 'success'){
                     $.toast(res.message, 'text');
                 }else if(res.code == 'exception'){
+                    //_this.getInfo()
+                    //$.showLoading(res.message);
+                    $.modal({
+                        id: "apply",
+                        title: "温馨提示",
+                        text: res.message,
+                        buttons: [
+                            {
+                                text: "取消", className: "default", onClick: function () {
+                                    return false;
+                                }
+                            },
+                            {
+                                text: "确认,前往完善", onClick: function () {
+                                    location.href = res.data.url;
+                                }
+                            }
+                        ]
+                    });
                     _this.getInfo()
-                    $.showLoading(res.message);
                 }else{
                     if(type != 3 || (type == 3 && value == 0)){
                         setTimeout(function(){