修改绑定功能
diff --git a/www/js/signxycheck.js b/www/js/signxycheck.js
index f97f3d4..4e52298 100644
--- a/www/js/signxycheck.js
+++ b/www/js/signxycheck.js
@@ -10,17 +10,23 @@
         $.showLoading("加载中");
         V1Bxy(function(ok, ret, err) {
             if (ok) {
-                $.hideLoading(); 
-                if(ret.code==200){
+                $.hideLoading();
+                if (ret.code == 200) {
                     $("#content").html(ret.page);
-                    if(isEmpty(ret.signed)||ret.signed!='yes'){
-                        $("#btn").show();   
-                        $("#content").css("bottom","135px");
-                    }else{
-                        $("#content").css("bottom","10px");
+                    if (isEmpty(ret.signed) || ret.signed != 'yes') {
+                        $("#btn").show();
+                        $("#content").css("bottom", "135px");
+                    } else {
+                        $("#content").css("bottom", "10px");
                     }
-                }else{
-                    $.alert(ret.msg, "错误");
+                } else {
+                    if (ret.code == -1) {
+                        $.alert(ret.msg, "提示", function() {
+                            window.location = 'bindcard.html'
+                        });
+                    } else {
+                        $.alert(ret.msg, "错误");
+                    }
                 }
             } else {
                 $.hideLoading();
@@ -28,28 +34,28 @@
             }
         })
     },
-    agreeXY:function(){
+    agreeXY: function() {
         var agree = $("input[type=checkbox]:checked").val();
-        if(isEmpty(agree)){
+        if (isEmpty(agree)) {
             $.alert("请同意签约代扣协议", "提示");
             return;
         }
         $.showLoading("正在请求");
-        var param={
-            "agree":agree
+        var param = {
+            "agree": agree
         }
-        V1Signbxy(param,function(ok, ret, err) {
+        V1Signbxy(param, function(ok, ret, err) {
             if (ok) {
-                $.hideLoading(); 
-                if(ret.code==200){
-                    window.localStorage.setItem("signed",ret.signed); 
-                    window.location="main.html";
-                }else{
+                $.hideLoading();
+                if (ret.code == 200) {
+                    window.localStorage.setItem("signed", ret.signed);
+                    window.location = "main.html";
+                } else {
                     $.alert(ret.msg, "错误");
                 }
             } else {
                 $.hideLoading();
-                $.alert("请求失败了:" + ret.status+"请稍后再试", "错误");
+                $.alert("请求失败了:" + ret.status + "请稍后再试", "错误");
             }
         })
     }