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