Merged
Merge Request #636 · created by 后端研发-苏明海


Test


From test into qa

Merged by 后端研发-苏明海

1 participants

pages/distribution/distribution.js
@@ -283,12 +283,18 @@ Page({ @@ -283,12 +283,18 @@ Page({
283 showtxt="成功成为分销商"; 283 showtxt="成功成为分销商";
284 var txt="fenxiao["+index+"].pass"; 284 var txt="fenxiao["+index+"].pass";
285 var txt2="data.is_distribut"; 285 var txt2="data.is_distribut";
  286 + var txt3="userInfo.is_distribut";
  287 + getApp().globalData.userInfo.is_distribut=1;
  288 +
  289 +
286 setTimeout(function(){ 290 setTimeout(function(){
287 - th.setData({[txt]:1,[txt2]:1}) 291 + th.setData({[txt]:1,[txt2]:1,[txt3]:1})
288 th.getDis_data(); 292 th.getDis_data();
289 },1500) 293 },1500)
290 294
291 } 295 }
  296 +
  297 +
292 if(res.data.data.indexOf('验证成功')!=-1){ 298 if(res.data.data.indexOf('验证成功')!=-1){
293 var txt="fenxiao["+index+"].pass"; 299 var txt="fenxiao["+index+"].pass";
294 th.setData({[txt]:1}) 300 th.setData({[txt]:1})