From 338b2fd1c682864ddc6e3372887a38c1820c1805 Mon Sep 17 00:00:00 2001 From: zhaojs <349234519@qq.com> Date: 星期二, 27 六月 2023 13:57:54 +0800 Subject: [PATCH] no message --- uniapp/pages/mine/setting/modifyInviteCode.vue | 15 ++++++++++++++- 1 files changed, 14 insertions(+), 1 deletions(-) diff --git a/uniapp/pages/mine/setting/modifyInviteCode.vue b/uniapp/pages/mine/setting/modifyInviteCode.vue index 8c6316c..24d64f4 100644 --- a/uniapp/pages/mine/setting/modifyInviteCode.vue +++ b/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> 鎮ㄥ凡缁忔槸鏈�楂樼瓑绾�,蹇幓閭�璇峰ソ鍙嬭禋浣i噾鍚�! @@ -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 { -- Gitblit v1.9.3