Commit e668f1d3206afa76ea8202afc756d40f714f62af
Merge branch 'dev' into 'test'
分销的接口 See merge request !634
Showing
1 changed file
with
7 additions
and
1 deletions
pages/distribution/distribution.js
| ... | ... | @@ -283,12 +283,18 @@ Page({ | 
| 283 | 283 | showtxt="成功成为分销商"; | 
| 284 | 284 | var txt="fenxiao["+index+"].pass"; | 
| 285 | 285 | var txt2="data.is_distribut"; | 
| 286 | + var txt2="userInfo.is_distribut"; | |
| 287 | + getApp().globalData.userInfo.is_distribut=1; | |
| 288 | + | |
| 289 | + | |
| 286 | 290 | setTimeout(function(){ | 
| 287 | - th.setData({[txt]:1,[txt2]:1}) | |
| 291 | + th.setData({[txt]:1,[txt2]:1,[txt3]:1}) | |
| 288 | 292 | th.getDis_data(); | 
| 289 | 293 | },1500) | 
| 290 | 294 | |
| 291 | 295 | } | 
| 296 | + | |
| 297 | + | |
| 292 | 298 | if(res.data.data.indexOf('验证成功')!=-1){ | 
| 293 | 299 | var txt="fenxiao["+index+"].pass"; | 
| 294 | 300 | th.setData({[txt]:1}) | ... | ... | 
