mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-mobile.git
synced 2025-12-09 02:46:46 +08:00
修改
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user