Commit 5e5c828ee2ae27bc8da965ce6a6adaab2c6d0fd1
1 parent
72add201
1、小程序会员详情的优化,取消密码
2、等级卡项续费变动购买的bug优化,是因为链接地址直接弹出购买的优化
Showing
2 changed files
with
16 additions
and
9 deletions
pages/user/plus/plus.js
@@ -242,18 +242,19 @@ Page({ | @@ -242,18 +242,19 @@ Page({ | ||
242 | 242 | ||
243 | getApp().request.get("/api/weshop/users/get/" + os.stoid + "/" + app_d.user_id, { | 243 | getApp().request.get("/api/weshop/users/get/" + os.stoid + "/" + app_d.user_id, { |
244 | success: function (e) { | 244 | success: function (e) { |
245 | - var userInfo = e.data.data; | ||
246 | - if (userInfo['card_field'] && !getApp().globalData.is_card_back) { | ||
247 | - var u_url = "/packageE/pages/user/cardinfo/cardinfo"; | ||
248 | - wx.reLaunch({ | ||
249 | - url: u_url | ||
250 | - }) | ||
251 | - | ||
252 | - } | 245 | + var userInfo = e.data.data; |
246 | + if (userInfo && userInfo['card_field'] && !getApp().globalData.is_card_back) { | ||
247 | + var u_url = "/packageE/pages/user/cardinfo/cardinfo"; | ||
248 | + wx.reLaunch({ | ||
249 | + url: u_url | ||
250 | + }) | ||
251 | + }else{ | ||
252 | + th.getPlusCardType(); | ||
253 | + } | ||
253 | }, | 254 | }, |
254 | }); | 255 | }); |
255 | 256 | ||
256 | - this.getPlusCardType(); | 257 | + |
257 | }, | 258 | }, |
258 | 259 | ||
259 | /** | 260 | /** |
pages/user/userinfo/userinfo.js
@@ -148,6 +148,12 @@ Page({ | @@ -148,6 +148,12 @@ Page({ | ||
148 | isstcsp: 1 | 148 | isstcsp: 1 |
149 | }) | 149 | }) |
150 | } else { | 150 | } else { |
151 | + | ||
152 | + if(this.data.user.isVerification) { | ||
153 | + getApp().my_warnning("已设置消费需启用密码,无法取消", 0, th); | ||
154 | + return false; | ||
155 | + } | ||
156 | + | ||
151 | th.setData({ | 157 | th.setData({ |
152 | isstcsp: 0 | 158 | isstcsp: 0 |
153 | }) | 159 | }) |