mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-14 13:26:44 +08:00
提交
This commit is contained in:
@@ -36,25 +36,25 @@
|
||||
<div class="learningData">
|
||||
<div class="learning-info">
|
||||
<div class="learning-qus">当月学习时长</div>
|
||||
<div class="learning-an"><span>12.7</span>小时</div>
|
||||
<div class="learning-an"><span>{{uinfo.monthStudy}}</span>小时</div>
|
||||
</div>
|
||||
<div class="learning-info">
|
||||
<div class="learning-qus">累计学习时长</div>
|
||||
<div class="learning-an"><span>120.7.7</span>小时</div>
|
||||
<div class="learning-an"><span>{{uinfo.monthTotal}}</span>小时</div>
|
||||
</div>
|
||||
<div class="learning-border" ></div>
|
||||
<div class="learning-info" style="margin-left:22px">
|
||||
<div class="learning-qus">当月学习天数</div>
|
||||
<div class="learning-an"><span>12.7</span>小时</div>
|
||||
<div class="learning-an"><span>{{uinfo.monthDay}}</span>小时</div>
|
||||
</div>
|
||||
<div class="learning-info">
|
||||
<div class="learning-qus">累计学习天数</div>
|
||||
<div class="learning-an"><span>120.7.7</span>天</div>
|
||||
<div class="learning-an"><span>{{uinfo.monthTotalDay}}</span>天</div>
|
||||
</div>
|
||||
<div class="learning-border" ></div>
|
||||
<div class="learning-info" style="margin-left:22px">
|
||||
<div class="learning-qus">我的U币(累计)</div>
|
||||
<div class="learning-an"><span>120.7.7</span>天</div>
|
||||
<div class="learning-an"><span>{{uinfo.uCurrency}}</span>天</div>
|
||||
</div>
|
||||
<div class="list">
|
||||
BOE 排行榜 >>
|
||||
@@ -115,7 +115,7 @@
|
||||
<script>
|
||||
import {userAvatarText,cutFullName} from "@/utils/tools.js";
|
||||
import { mapGetters } from 'vuex'
|
||||
// import apiUserstart from '@/api/modules/userstart.js'
|
||||
import apiStart from '@/api/phase2/stat.js'
|
||||
export default {
|
||||
name: 'UcHeader',
|
||||
computed:{
|
||||
@@ -127,7 +127,13 @@ import {userAvatarText,cutFullName} from "@/utils/tools.js";
|
||||
data(){
|
||||
return {
|
||||
fileBaseUrl:process.env.VUE_APP_FILE_BASE_URL,
|
||||
uinfo:{},
|
||||
uinfo:{
|
||||
monthStudy:0,//当月学习时长
|
||||
monthTotal: 0,
|
||||
monthDay:0,
|
||||
monthTotalDay:0,
|
||||
uCurrency:0
|
||||
},
|
||||
orgInfo:'',
|
||||
sex:'',
|
||||
}
|
||||
@@ -145,12 +151,23 @@ import {userAvatarText,cutFullName} from "@/utils/tools.js";
|
||||
},
|
||||
methods:{
|
||||
getInfo(){
|
||||
// let data = {
|
||||
// statType:'10,11'
|
||||
// }
|
||||
// apiUserstart.user(data).then(res=>{
|
||||
|
||||
// })
|
||||
apiStart.userTotal(this.userInfo.aid,[10,11,30]).then(res=>{
|
||||
if(res.status == 200 && res.result.length > 0) {
|
||||
res.result.forEach(item => {
|
||||
if(item.statType == 10) {
|
||||
this.uinfo.monthStudy = item.months;
|
||||
this.uinfo.monthTotal = item.total;
|
||||
}
|
||||
if(item.statType == 11) {
|
||||
this.uinfo.monthDay = item.months;
|
||||
this.uinfo.monthTotalDay = item.total;
|
||||
}
|
||||
if(item.statType == 30) {
|
||||
this.uinfo.uCurrency = item.total;
|
||||
}
|
||||
});
|
||||
}
|
||||
})
|
||||
},
|
||||
setCurIdentity(iden){
|
||||
this.$store.dispatch('SetCurIdentity',iden);
|
||||
|
||||
Reference in New Issue
Block a user