zhaojs
2023-06-27 338b2fd1c682864ddc6e3372887a38c1820c1805
uniapp/pages/mine/setting/modifyInviteCode.vue
@@ -29,7 +29,7 @@
         
         <view class="vip-info-container rowCenBet" v-if="!showtar || platform!='iOS'">
         <view class="left-info" >
           当前等级不可修改邀请码,赶快升级吧
           当前等级不可修改,再邀请{{needIvite}}人升级
         </view>
         <!-- <view class="left-info" v-else>
           您已经是最高等级,快去邀请好友赚佣金吧!
@@ -78,6 +78,7 @@
            showtar:false,
            platform:'',
            isedit:false,
            needIvite:0,
            ablelevel:2,
            c_placeholder:'请输入新的邀请码'
         }
@@ -101,10 +102,21 @@
               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()
@@ -160,6 +172,7 @@
       font-size: 24rpx;
       font-weight: 500;
       color: #593A0F;
      margin-right: 15rpx;
     }
   
     .rt-btn {