Commit 0f783bec98e092521c03bed051a3e252af6a6b7f

Authored by yvan.ni
1 parent a4763fba

绑定手机的bug优化

pages/user/Change_phone/Change_phone.js
... ... @@ -39,7 +39,7 @@ Page({
39 39 th.setData({
40 40 mobile: getApp().globalData.userInfo.mobile,
41 41 wxopenid: getApp().globalData.userInfo.weapp_openid,
42   - time_len: sms_conf.time_out
  42 + time_len: sms_conf?sms_conf.time_out:60
43 43 })
44 44 })
45 45  
... ... @@ -61,6 +61,8 @@ Page({
61 61 return false;
62 62 }
63 63 }else{
  64 + getApp().my_warnning("请输入11位的手机号码", 0, th);
  65 + return false;
64 66 if (mobile.length < 11) {
65 67 getApp().my_warnning("请输入11位的手机号码", 0, th);
66 68 } else if (!myreg.test(mobile)) {
... ...
pages/user/userinfo/userinfo.js
... ... @@ -659,11 +659,13 @@ Page({
659 659 if (a.pickup_id != null) {
660 660 req.get("/api/weshop/pickup/get/" + r.stoid + "/" + a.pickup_id, {
661 661 success: function(da) {
  662 + if(da.data.data){
  663 + //设置门店
  664 + e.setData({
  665 + stoname: da.data.data.pickup_name
  666 + });
  667 + }
662 668  
663   - //设置门店
664   - e.setData({
665   - stoname: da.data.data.pickup_name
666   - });
667 669 }
668 670 })
669 671 }
... ...