修改绑定功能
diff --git a/www/js/card.js b/www/js/card.js
index 0c0a91e..8dc9675 100644
--- a/www/js/card.js
+++ b/www/js/card.js
@@ -4,17 +4,17 @@
     initialize: function() {
         document.addEventListener('deviceready', this.onDeviceReady.bind(this), false);
     },
-  
+
     onDeviceReady: function() {
         var uid = window.localStorage.getItem("uid");
-        
+
     },
     doNext: function() {
-        var pwd =  $("#pwd").val();
-        if(isEmpty(pwd)){
+        var pwd = $("#pwd").val();
+        if (isEmpty(pwd)) {
             return;
         }
-        if(pwd.length!=6){
+        if (pwd.length != 6) {
             $.alert("支付密码为6位数字", "提示");
             return;
         }
@@ -26,24 +26,26 @@
         }, function(ret) {
             if (ret.buttonIndex == 2) {
                 $.showLoading("正在处理");
-                var param={
-                    "paypwd":pwd
+                var param = {
+                    "paypwd": pwd
                 }
-                V1CardLost(param,function(ok,ret){
-                    if(ok){
+                V1CardLost(param, function(ok, ret) {
+                    if (ok) {
                         $.hideLoading();
-                        if(ret.code==200){
-                             $.alert("卡片挂失成功", "提示");
-                        }else{
+                        if (ret.code == 200) {
+                            $.alert("卡片挂失成功", "提示", function() {
+                                window.location = "main.html"
+                            });
+                        } else {
                             $.alert(ret.msg, "错误");
-                        } 
-                    }else{
+                        }
+                    } else {
                         $.hideLoading();
-                        $.alert("请求失败了"+ret.status+",请稍后再试", "错误");
+                        $.alert("请求失败了" + ret.status + ",请稍后再试", "错误");
                     }
                 })
             }
         })
     }
 };
-app.initialize();
+app.initialize();
\ No newline at end of file