更新代码
This commit is contained in:
@@ -16,7 +16,7 @@
|
|||||||
<div class="numerical">{{ index + 1 }}</div>
|
<div class="numerical">{{ index + 1 }}</div>
|
||||||
<div class="detail">
|
<div class="detail">
|
||||||
<div class="head_portrait">
|
<div class="head_portrait">
|
||||||
<img :src="require('../../../assets/icons/head_portrait.png')" alt="">
|
<img :src="`${baseUrl + '' + item.avatar}`" alt="">
|
||||||
</div>
|
</div>
|
||||||
<div class="user-info">
|
<div class="user-info">
|
||||||
<div class="user-name">{{ item.nickname }}</div>
|
<div class="user-name">{{ item.nickname }}</div>
|
||||||
@@ -63,7 +63,8 @@ export default {
|
|||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
activeTime: 'Total',
|
activeTime: 'Total',
|
||||||
data: []
|
data: [],
|
||||||
|
baseUrl: process.env.VUE_APP_COS_BASE_URL
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
|
|||||||
@@ -21,7 +21,7 @@
|
|||||||
alt=""
|
alt=""
|
||||||
class="trend"
|
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>
|
||||||
</div>
|
</div>
|
||||||
</el-col>
|
</el-col>
|
||||||
@@ -192,18 +192,20 @@ export default {
|
|||||||
todayWithdrawAmountDiffLast
|
todayWithdrawAmountDiffLast
|
||||||
} = response.data
|
} = response.data
|
||||||
this.loginModel.count = todayLoginNum
|
this.loginModel.count = todayLoginNum
|
||||||
this.loginModel.trendDirection = 1 // 增加还是减少
|
this.loginModel.trendDirection = todayLoginDiffLast >= 0 ? 0 : 1; // 增加还是减少
|
||||||
this.loginModel.trendNum = todayLoginDiffLast
|
this.loginModel.trendNum = todayLoginDiffLast
|
||||||
|
|
||||||
this.topUpModel.count = anchorNum // 主播人数
|
this.topUpModel.count = anchorNum // 主播人数
|
||||||
|
|
||||||
this.withdrawDepositModel.count = todayRechargeAmountNum // 充值金额
|
this.withdrawDepositModel.count = todayRechargeAmountNum // 充值金额
|
||||||
this.withdrawDepositModel.money = todayRechargeNum
|
this.withdrawDepositModel.money = todayRechargeNum
|
||||||
|
this.withdrawDepositModel.trendDirection = todayRechargeAmountDiffLast >= 0 ? 0 : 1;
|
||||||
this.withdrawDepositModel.trendNum = todayRechargeAmountDiffLast // 与昨日相比
|
this.withdrawDepositModel.trendNum = todayRechargeAmountDiffLast // 与昨日相比
|
||||||
|
|
||||||
this.anchorModel.count = todayWithdrawAmount
|
this.anchorModel.count = todayWithdrawAmount
|
||||||
this.anchorModel.money = todayWithdrawNum
|
this.anchorModel.money = todayWithdrawNum
|
||||||
this.anchorModel.trendNum = todayWithdrawAmountDiffLast
|
this.anchorModel.trendNum = todayWithdrawAmountDiffLast
|
||||||
|
this.anchorModel.trendDirection = todayWithdrawAmountDiffLast >= 0 ? 0 : 1
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user