This commit is contained in:
lmj
2022-11-15 10:38:10 +08:00
parent 49664be927
commit 3c17d1d4fc
2 changed files with 16 additions and 12 deletions

View File

@@ -3,11 +3,11 @@
<view class="ubtop" style="background-color: #fff;">
<view class="ub-heard">
我的u币
<image src="../../static/images/wenhao.png" mode=""></image>
<image @click="jumrules" src="../../static/images/wenhao.png" mode=""></image>
</view>
<view class="top-content">
<view>{{uinfo.uCurrency}}</view>
统计时间{{formatDate(new Date())}}
统计时间2022.11.4
</view>
</view>
<view class="ub-list" v-for="(day, index) in uCoinRecord" :key="index">
@@ -22,12 +22,14 @@
{{info.uvalue}}
</view>
</view>
</view>
</view>
</template>
<script>
import {formatDate} from '../../utils/tools.js'
import { mapGetters } from 'vuex';
import apiStat from '@/api/phase2/stat.js';
export default {
@@ -39,7 +41,6 @@
},
data() {
return {
formatDate,
uCoinRecord: [],
uinfo: {
uCurrency: 0, // 用户累计U币
@@ -51,7 +52,12 @@
this.getlist();
this.getLevel()
},
methods: {
methods: {
jumrules(){
uni.navigateTo({
url:'/pages/my/myubrules'
})
},
getlist() {
apiStat.userCoinList(this.userInfo.aid, 7).then(res => {
console.log(res);