mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-11 11:56:44 +08:00
提交
This commit is contained in:
@@ -64,10 +64,21 @@ const userCoinList = function(aid,days) {
|
||||
return ajax.get(baseURL,'/xboe/m/stat/medal/user-medal?aid='+aid);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 勋章信息
|
||||
* 页面上不能修改,删除
|
||||
*/
|
||||
const userMedalConfig = function() {
|
||||
return ajax.get(baseURL,'/xboe/m/stat/medalinfo/list');
|
||||
}
|
||||
|
||||
|
||||
export default {
|
||||
sendEvent,
|
||||
userTotal,
|
||||
userDynamicList,
|
||||
userCoinList,
|
||||
userMedal
|
||||
userMedal,
|
||||
userMedalConfig
|
||||
}
|
||||
|
||||
@@ -91,20 +91,13 @@
|
||||
goView(item) {
|
||||
this.dialogVisible = true;
|
||||
this.medal = item;
|
||||
apiStat.userMedalConfig().then(res=>{
|
||||
if(res.status == 200) {
|
||||
|
||||
}
|
||||
})
|
||||
for (let index = 0; index < item.medalLevel; index++) {
|
||||
// if(item.medalId == 1){
|
||||
// console.log(item['curValue'+index+1],'item[');
|
||||
// item.remark = '累计学习'+item['curValue'+index+1]+'h';
|
||||
// }
|
||||
// if(item.medalId == 2){
|
||||
// item.remark = `连续${item[curValue][index]}天活跃且学习时长>=10分钟`;
|
||||
// }
|
||||
// if(item.medalId == 3){
|
||||
// item.remark = `累计上传${item[curValue][index]}个知识(课程、文章、笔记)`;
|
||||
// }
|
||||
// if(item.medalId == 4){
|
||||
// item.remark = `累计被赞${item[curValue][index]}次`;
|
||||
// }
|
||||
|
||||
this.tableData.push({
|
||||
medalIcon:item.medalIcon,
|
||||
medalLevel:index,
|
||||
|
||||
Reference in New Issue
Block a user