Commit 8e446fcaa6b7c8c942959cd2d4aa2a828eb4716e
1 parent
4d32da13
分销的接口
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}) | ... | ... |