diff --git a/src/views/components/rankList/index.vue b/src/views/components/rankList/index.vue index a326862..13aa0cb 100644 --- a/src/views/components/rankList/index.vue +++ b/src/views/components/rankList/index.vue @@ -16,7 +16,7 @@
{{ index + 1 }}
- +
{{ item.nickname }}
@@ -63,7 +63,8 @@ export default { data() { return { activeTime: 'Total', - data: [] + data: [], + baseUrl: process.env.VUE_APP_COS_BASE_URL } }, created() { diff --git a/src/views/dashboard/PanelGroup.vue b/src/views/dashboard/PanelGroup.vue index 4059d25..646f1b4 100644 --- a/src/views/dashboard/PanelGroup.vue +++ b/src/views/dashboard/PanelGroup.vue @@ -21,7 +21,7 @@ alt="" class="trend" > - {{ item.model.trendNum }}% + {{ Math.abs(item.model.trendNum) }}%
@@ -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 }) } }