mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-mobile.git
synced 2025-12-09 19:06:46 +08:00
我的u币时间
This commit is contained in:
@@ -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币
|
||||||
|
|||||||
Reference in New Issue
Block a user