|
@ -34,7 +34,10 @@ |
|
|
<view class="nickname">{{userInfo.name}}</view> |
|
|
<view class="nickname">{{userInfo.name}}</view> |
|
|
<view class="userid">ID: {{userInfo.intentioCode}}</view> |
|
|
<view class="userid">ID: {{userInfo.intentioCode}}</view> |
|
|
</view> |
|
|
</view> |
|
|
<view class="user-count">推广人数</view> |
|
|
|
|
|
|
|
|
<view class="user-count"> |
|
|
|
|
|
推广人数 |
|
|
|
|
|
<view class="user-count-value">{{ promotionCount }}</view> |
|
|
|
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
<view class="user-stats-row"> |
|
|
<view class="user-stats-row"> |
|
|
<view class="stat-block"> |
|
|
<view class="stat-block"> |
|
@ -179,6 +182,7 @@ export default { |
|
|
balance: '', |
|
|
balance: '', |
|
|
totalWithdraw: '', |
|
|
totalWithdraw: '', |
|
|
}, |
|
|
}, |
|
|
|
|
|
promotionCount: 0, // 新增推广人数 |
|
|
tabActive: 0, |
|
|
tabActive: 0, |
|
|
rankList: [ |
|
|
rankList: [ |
|
|
], |
|
|
], |
|
@ -222,6 +226,7 @@ export default { |
|
|
this.getUserInfoByToken() |
|
|
this.getUserInfoByToken() |
|
|
this.getRankList() |
|
|
this.getRankList() |
|
|
this.getMyPromotionInfo() |
|
|
this.getMyPromotionInfo() |
|
|
|
|
|
this.getPromotionCount() // 新增 |
|
|
}, |
|
|
}, |
|
|
onShow(){ |
|
|
onShow(){ |
|
|
this.getMyPromotionInfo() |
|
|
this.getMyPromotionInfo() |
|
@ -296,6 +301,15 @@ export default { |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
|
|
|
getPromotionCount() { |
|
|
|
|
|
this.$api && this.$api('getPromotionCount', {}, res => { |
|
|
|
|
|
if (res && res.code === 200 && res.result && typeof res.result.result === 'number') { |
|
|
|
|
|
this.promotionCount = res.result.result |
|
|
|
|
|
} else { |
|
|
|
|
|
this.promotionCount = 0 |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
}, |
|
|
goToFaq() { |
|
|
goToFaq() { |
|
|
uni.navigateTo({ url: '/pages/subcomponent/admin_faq' }) |
|
|
uni.navigateTo({ url: '/pages/subcomponent/admin_faq' }) |
|
|
}, |
|
|
}, |
|
@ -515,13 +529,18 @@ export default { |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
.user-count { |
|
|
.user-count { |
|
|
font-size: 30rpx; |
|
|
|
|
|
|
|
|
display: flex; |
|
|
|
|
|
flex-direction: column; |
|
|
|
|
|
align-items: center; |
|
|
|
|
|
font-size: 28rpx; |
|
|
color: #222; |
|
|
color: #222; |
|
|
font-weight: bold; |
|
|
font-weight: bold; |
|
|
text-align: right; |
|
|
|
|
|
min-width: 120rpx; |
|
|
|
|
|
margin-left: 16rpx; |
|
|
|
|
|
align-self: center; |
|
|
|
|
|
|
|
|
.user-count-value { |
|
|
|
|
|
font-size: 36rpx; |
|
|
|
|
|
color: #13ac47; |
|
|
|
|
|
margin-top: 4rpx; |
|
|
|
|
|
font-weight: bold; |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
.user-stats-row { |
|
|
.user-stats-row { |
|
|