个人面板 点击 学习时长 会跳转到排行榜 “暂时” 改为不可跳转

This commit is contained in:
daihh
2022-11-08 12:49:59 +08:00
parent 8560a3478e
commit ed584aa49a
2 changed files with 22 additions and 17 deletions

View File

@@ -155,7 +155,7 @@ export default {
components:{gonggao}, components:{gonggao},
computed: { computed: {
...mapGetters(['userInfo', 'userMsg','identity']), ...mapGetters(['userInfo', 'userMsg','identity','studyTaskCount']),
avatarText(){ avatarText(){
return userAvatarText(this.userInfo.name); return userAvatarText(this.userInfo.name);
@@ -190,20 +190,25 @@ export default {
console.log('lll') console.log('lll')
}, },
loadBoeData() { loadBoeData() {
let params = { if(this.studyTaskCount>0){
// keyword:this.keyword, this.isTiao = true;
page: 1, }else{
size: 10 this.isTiao = false;
// cmtask_status:this.cmtask_status, }
// cmtask_name:this.cmtask_name, // let params = {
}; // // keyword:this.keyword,
apiBoeCourse.cmtaskList(params).then(res => { // page: 1,
if (res.status == 200 && res.result.count > 0) { // size: 10
this.isTiao = true; // // cmtask_status:this.cmtask_status,
} else { // // cmtask_name:this.cmtask_name,
this.isTiao = false; // };
} // apiBoeCourse.cmtaskList(params).then(res => {
}); // if (res.status == 200 && res.result.count > 0) {
// this.isTiao = true;
// } else {
// this.isTiao = false;
// }
// });
}, },
handleCommand(val) { handleCommand(val) {
let urlPre=window.location.protocol+'//'+window.location.host; let urlPre=window.location.protocol+'//'+window.location.host;

View File

@@ -64,10 +64,10 @@
</div> </div>
<ul class="personal-ul"> <ul class="personal-ul">
<li> <li>
<router-link to="/user/ranking"> <!-- <router-link to="/user/ranking"> -->
<span class="label">累计学习</span> <span class="label">累计学习</span>
<p><span>{{userData.totalStudyHour}}</span>小时</p> <p><span>{{userData.totalStudyHour}}</span>小时</p>
</router-link> <!-- </router-link> -->
</li> </li>
<!-- <li> <!-- <li>
<span class="label">经验值等级</span> <span class="label">经验值等级</span>