Commit ab1eca122e88f6db013adf4083834e156001f24c
1 parent
73c8498c
分销的手机号码输入错误的bug修复
Showing
1 changed file
with
11 additions
and
1 deletions
pages/distribution/distribution.js
... | ... | @@ -268,7 +268,17 @@ Page({ |
268 | 268 | mobile: mobile, |
269 | 269 | }, |
270 | 270 | success: function (res) { |
271 | - var showtxt=res.data.msg; | |
271 | + var showtxt=res.data.msg; | |
272 | + | |
273 | + if(!res.data.data){ | |
274 | + wx.showToast({ | |
275 | + title: showtxt, | |
276 | + icon: 'none', | |
277 | + duration: 1500 | |
278 | + }); | |
279 | + return false; | |
280 | + } | |
281 | + | |
272 | 282 | if(res.data.data.indexOf('已成为分销商')!=-1){ |
273 | 283 | showtxt="成功成为分销商"; |
274 | 284 | var txt="fenxiao["+index+"].pass"; | ... | ... |