更新代码

This commit is contained in:
ahanhanhan
2024-03-07 17:18:43 +08:00
parent 0fee0c24a0
commit 192aa7d082
2 changed files with 7 additions and 4 deletions

View File

@@ -16,7 +16,7 @@
<div class="numerical">{{ index + 1 }}</div>
<div class="detail">
<div class="head_portrait">
<img :src="require('../../../assets/icons/head_portrait.png')" alt="">
<img :src="`${baseUrl + '' + item.avatar}`" alt="">
</div>
<div class="user-info">
<div class="user-name">{{ item.nickname }}</div>
@@ -63,7 +63,8 @@ export default {
data() {
return {
activeTime: 'Total',
data: []
data: [],
baseUrl: process.env.VUE_APP_COS_BASE_URL
}
},
created() {

View File

@@ -21,7 +21,7 @@
alt=""
class="trend"
>
<span :class="['num', item.model.trendDirection === 0 ? 'up' : 'down' ]">{{ item.model.trendNum }}%</span>
<span :class="['num', item.model.trendDirection === 0 ? 'up' : 'down' ]">{{ Math.abs(item.model.trendNum) }}%</span>
</div>
</div>
</el-col>
@@ -192,18 +192,20 @@ export default {
todayWithdrawAmountDiffLast
} = response.data
this.loginModel.count = todayLoginNum
this.loginModel.trendDirection = 1 // 增加还是减少
this.loginModel.trendDirection = todayLoginDiffLast >= 0 ? 0 : 1; // 增加还是减少
this.loginModel.trendNum = todayLoginDiffLast
this.topUpModel.count = anchorNum // 主播人数
this.withdrawDepositModel.count = todayRechargeAmountNum // 充值金额
this.withdrawDepositModel.money = todayRechargeNum
this.withdrawDepositModel.trendDirection = todayRechargeAmountDiffLast >= 0 ? 0 : 1;
this.withdrawDepositModel.trendNum = todayRechargeAmountDiffLast // 与昨日相比
this.anchorModel.count = todayWithdrawAmount
this.anchorModel.money = todayWithdrawNum
this.anchorModel.trendNum = todayWithdrawAmountDiffLast
this.anchorModel.trendDirection = todayWithdrawAmountDiffLast >= 0 ? 0 : 1
})
}
}