我的u币时间

This commit is contained in:
zhaofang
2022-11-16 10:07:06 +08:00
parent f088eaa62a
commit 27cc3a08dd

View File

@@ -7,7 +7,7 @@
</view>
<view class="top-content">
<view>{{uinfo.uCurrency}}</view>
统计时间2022.11.4
统计时间{{formatDate(new Date()).split(' ')[0]}}
</view>
</view>
<view class="ub-list" v-for="(day, index) in uCoinRecord" :key="index">
@@ -32,6 +32,7 @@
<script>
import { mapGetters } from 'vuex';
import apiStat from '@/api/phase2/stat.js';
import {formatDate} from '../../utils/tools.js'
export default {
computed: {
...mapGetters(['userInfo']),
@@ -41,6 +42,7 @@
},
data() {
return {
formatDate,
uCoinRecord: [],
uinfo: {
uCurrency: 0, // 用户累计U币