Commit 6913340fdc6aec22b53ee18cceb01fc0acc35dbe
Merge branch 'dev' of http://git.vipzhuang.cn/wxd/MShopWeApp into dev
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"; | ... | ... |