更新代码
This commit is contained in:
@@ -37,7 +37,7 @@
|
|||||||
<el-col :lg="6" :sm="12" :xs="12" class="card-panel-col">
|
<el-col :lg="6" :sm="12" :xs="12" class="card-panel-col">
|
||||||
<RankList title="充值排行榜" :type="3">
|
<RankList title="充值排行榜" :type="3">
|
||||||
<template v-slot:default="{ data }">
|
<template v-slot:default="{ data }">
|
||||||
<count-to :duration="2600" :end-val="data.value" :start-val="0" class="card-panel-num" :decimal="2" prefix="¥"/>
|
<count-to :duration="2600" :end-val="data.value" :options="options" :start-val="0" class="card-panel-num"/>
|
||||||
</template>
|
</template>
|
||||||
</RankList>
|
</RankList>
|
||||||
</el-col>
|
</el-col>
|
||||||
@@ -45,7 +45,7 @@
|
|||||||
<el-col :lg="6" :sm="12" :xs="12" class="card-panel-col">
|
<el-col :lg="6" :sm="12" :xs="12" class="card-panel-col">
|
||||||
<RankList title="提现排行榜" :type="4">
|
<RankList title="提现排行榜" :type="4">
|
||||||
<template v-slot:default="{ data }">
|
<template v-slot:default="{ data }">
|
||||||
<count-to :duration="2600" :end-val="data.value" :start-val="0" class="card-panel-num" :decimal="2" prefix="¥"/>
|
<count-to :duration="2600" :end-val="data.value" :options="options" :start-val="0" class="card-panel-num"/>
|
||||||
</template>
|
</template>
|
||||||
</RankList>
|
</RankList>
|
||||||
</el-col>
|
</el-col>
|
||||||
@@ -80,7 +80,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import CountTo from 'vue-count-to'
|
import CountTo from 'vue-countup-v2'
|
||||||
import RankList from '@/views/components/rankList'
|
import RankList from '@/views/components/rankList'
|
||||||
import LineChart from '../dashboard/LineChart'
|
import LineChart from '../dashboard/LineChart'
|
||||||
import { staticAmountLine, staticIndex, staticRank } from '@/api/cai/static'
|
import { staticAmountLine, staticIndex, staticRank } from '@/api/cai/static'
|
||||||
@@ -117,6 +117,15 @@ export default {
|
|||||||
return {
|
return {
|
||||||
operation,
|
operation,
|
||||||
layoutRow: [],
|
layoutRow: [],
|
||||||
|
options: {
|
||||||
|
decimalPlaces: 2,
|
||||||
|
useEasing: true,
|
||||||
|
useGrouping: true,
|
||||||
|
separator: ',',
|
||||||
|
decimal: '.',
|
||||||
|
prefix: '¥',
|
||||||
|
suffix: ''
|
||||||
|
},
|
||||||
loginModel: {
|
loginModel: {
|
||||||
count: 40689,
|
count: 40689,
|
||||||
trendDirection: 0,
|
trendDirection: 0,
|
||||||
|
|||||||
Reference in New Issue
Block a user