mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-11 20:06:44 +08:00
Merge branch 'stat' of https://codeup.aliyun.com/6265f483e4166464dc2f9c14/boeu/portal into stat
This commit is contained in:
@@ -2,8 +2,8 @@
|
||||
<div class="u-currency" >
|
||||
<div class="myubi">
|
||||
<div class="ubi-hear">
|
||||
<h6>我的U币:367</h6><span class="pointer" @click="dialogVisible = true">U币规则 <i class="el-icon-arrow-right"></i> </span>
|
||||
<el-button @click="exportRecord()">导出记录</el-button>
|
||||
<h6>我的U币:{{uinfo.uCurrency}}</h6><span class="pointer" @click="dialogVisible = true">U币规则 <i class="el-icon-arrow-right"></i> </span>
|
||||
<el-button icon="el-icon-search" @click="exportRecord()">导出记录</el-button>
|
||||
</div>
|
||||
<div style="max-height:600px;overflow-y:auto;padding-right:50px">
|
||||
<div class="Ubi-hist">
|
||||
@@ -14,7 +14,7 @@
|
||||
<div class="my-Recording" v-for="(day, index) in uCoinRecord" :key="index">
|
||||
<h3>{{day.dayNmae}}</h3>
|
||||
<div class="Recording-info" v-for="info in day.list">
|
||||
<div class="info-tit">{{getUType(info.eventKey)}}</div>
|
||||
<div class="info-tit">{{info.content}}</div>
|
||||
<div class="info-Gold"><img src="../../../public/images/Uimg.png" alt="">{{info.uvalue > 0? '+':''}} {{info.uvalue}}</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -225,12 +225,16 @@
|
||||
uCoinRecord:[],
|
||||
chart:null,
|
||||
currentUserRankingData:{},
|
||||
rankingData:[]
|
||||
rankingData:[],
|
||||
uinfo:{
|
||||
uCurrency:0 // 用户累计U币
|
||||
},
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
this.getList();
|
||||
this.getRanking();
|
||||
this.getLevel();
|
||||
},
|
||||
methods:{
|
||||
|
||||
@@ -391,7 +395,14 @@
|
||||
this.initChat(chatData);
|
||||
}
|
||||
})
|
||||
},
|
||||
getLevel(){//获取用户累计U币
|
||||
apiStat.getUserStatTotalInfo(this.userInfo.aid).then(res=>{
|
||||
if(res.status == 200) {
|
||||
this.uinfo.uCurrency = res.result.coinValue;
|
||||
}
|
||||
});
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@@ -712,4 +723,3 @@
|
||||
|
||||
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user