| | |
| | | |
| | | <view class="vip-info-container rowCenBet" v-if="!showtar || platform!='iOS'"> |
| | | <view class="left-info" > |
| | | 当前等级不可修改邀请码,赶快升级吧 |
| | | 当前等级不可修改,再邀请{{needIvite}}人升级 |
| | | </view> |
| | | <!-- <view class="left-info" v-else> |
| | | 您已经是最高等级,快去邀请好友赚佣金吧! |
| | |
| | | showtar:false, |
| | | platform:'', |
| | | isedit:false, |
| | | needIvite:0, |
| | | ablelevel:2, |
| | | c_placeholder:'请输入新的邀请码' |
| | | } |
| | |
| | | if(that.user.level<that.ablelevel) |
| | | { |
| | | that.c_placeholder='当前等级不可修改哦'; |
| | | this.getTopDate(); |
| | | } |
| | | util.setCache('userInfo', e.data.userinfo) |
| | | }).catch(function (err) { |
| | | console.log(err) |
| | | }) |
| | | }, |
| | | getTopDate(){ |
| | | var that = this; |
| | | this.$u.api.getUpgradeInfo({}).then(e => { |
| | | console.log(e); |
| | | var nextSet=e.data.list[1]; |
| | | var needcount=(nextSet.direct_primary_count+nextSet.direct_intermediate_count)-e.data.info.user_zong_num; |
| | | that.needIvite=needcount<0?0:needcount; |
| | | }).catch(function (err) { |
| | | }) |
| | | }, |
| | | back() |
| | |
| | | font-size: 24rpx; |
| | | font-weight: 500; |
| | | color: #593A0F; |
| | | margin-right: 15rpx; |
| | | } |
| | | |
| | | .rt-btn { |