Merge branch 'feature/giftCart' into release/6.1
Showing
3 changed files
with
10 additions
and
5 deletions
@@ -149,7 +149,12 @@ module.exports = class extends global.yoho.BaseModel { | @@ -149,7 +149,12 @@ module.exports = class extends global.yoho.BaseModel { | ||
149 | 149 | ||
150 | // 修改绑定的手机号 | 150 | // 修改绑定的手机号 |
151 | changeMobile(params, uid) { | 151 | changeMobile(params, uid) { |
152 | - return this.meGiftAPi.changeMobile(params.area, params.mobile, params.code, uid); | 152 | + return this.meGiftAPi.changeMobile(params.area, params.mobile, params.code, uid).then(res => { |
153 | + if (res.code === 200) { | ||
154 | + _.set(this.ctx, 'req.session.USER_MOBILE', params.mobile.replace(/(\d{3})\d{4}(\d{4})/, '$1****$2')); | ||
155 | + } | ||
156 | + return res; | ||
157 | + }); | ||
153 | } | 158 | } |
154 | 159 | ||
155 | // 激活礼品卡 | 160 | // 激活礼品卡 |
@@ -141,15 +141,15 @@ meGift = { | @@ -141,15 +141,15 @@ meGift = { | ||
141 | 141 | ||
142 | if (intTime-- <= 0) { | 142 | if (intTime-- <= 0) { |
143 | clearInterval(intval); | 143 | clearInterval(intval); |
144 | - $dom.removeClass('int-timer').val('获取短信验证码'); | 144 | + $dom.removeClass('int-timer').html('获取短信验证码'); |
145 | return false; | 145 | return false; |
146 | } | 146 | } |
147 | 147 | ||
148 | - $dom.val(intTime + ' S'); | 148 | + $dom.html(intTime + 's'); |
149 | }, 1000); | 149 | }, 1000); |
150 | 150 | ||
151 | $dom.addClass('int-timer'); | 151 | $dom.addClass('int-timer'); |
152 | - $dom.val(intTime + ' S'); | 152 | + $dom.html(intTime + 's'); |
153 | }, | 153 | }, |
154 | 154 | ||
155 | // 获取邮箱验证码 | 155 | // 获取邮箱验证码 |
-
Please register or login to post a comment