This commit is contained in:
@@ -20,7 +20,7 @@
|
||||
</n-card>
|
||||
<n-card ml-10 w-500>
|
||||
<n-statistic label="赠送豆子" tabular-nums>
|
||||
<n-number-animation :from="0" :to="cardData.count" />
|
||||
<n-number-animation :from="0" :to="cardData.gift_pulse" />
|
||||
</n-statistic>
|
||||
</n-card>
|
||||
</div>
|
||||
@@ -122,6 +122,7 @@ const cardData = ref({
|
||||
total: 0,
|
||||
service: 0,
|
||||
count: 0,
|
||||
gift_pulse: 0,
|
||||
})
|
||||
|
||||
const songs = ref([
|
||||
@@ -352,6 +353,7 @@ const getList = async () => {
|
||||
cardData.value.total = res.data.number
|
||||
cardData.value.service = res.data.commission
|
||||
cardData.value.count = res.data.total
|
||||
cardData.value.gift_pulse = res.data.gift_pulse
|
||||
} catch (error) {
|
||||
$message.error(error.msg)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user