This commit is contained in:
zhaofang
2022-09-19 19:11:22 +08:00
parent cff824f00e
commit 6581f07e2d
2 changed files with 18 additions and 14 deletions

View File

@@ -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
}

View File

@@ -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,