修改卡绑定功能,登录方式改为跳转
diff --git a/pages/bindcard/bindcard.js b/pages/bindcard/bindcard.js
index dc76332..8fb93b7 100644
--- a/pages/bindcard/bindcard.js
+++ b/pages/bindcard/bindcard.js
@@ -169,7 +169,6 @@
wx.$doPost('/v1/bindcard', param, function(ok, ret) {
wx.hideLoading();
if (ok) {
-
console.log(ret)
if (ret.data.code == 200) {
wx.setStorageSync("name", name);
@@ -180,6 +179,12 @@
wx.setStorageSync("personid", ret.data.personid);
wx.setStorageSync("signed", ret.data.signed);
wx.setStorageSync("paypwdset", ret.data.paypwdset);
+ var signed = wx.getStorageSync("signed");
+ if (!wx.$isEmpty(signed) && signed == 'yes') {
+ wx.navigateTo({
+ url: '../index/index',
+ })
+ }
wx.navigateTo({
url: '../bindcheck/bindcheck',
})