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