修改个人主页

This commit is contained in:
daihh
2022-10-29 18:58:11 +08:00
parent 6707dce0bd
commit 28c91a6bd4
2 changed files with 13 additions and 3 deletions

View File

@@ -497,7 +497,7 @@
},
data() {
return {
showLoginMedal:true,//是否显示登录勋章
showLoginMedal:false,//是否显示登录勋章
lastStudy:{},
overlayShow:false,
userData: { uvalue:0, totalStudyHour:0 },

View File

@@ -22,6 +22,10 @@
<answer-list v-if="item.contentType == 5" :list="[item]" :isDynamic="true" :personal="true" :isFollow="true" @hideIndex="dynamicHide"></answer-list>
<article-list v-if="item.contentType == 2" :list="[item]" :isDynamic="true" :personal="true" :isFollow="true" @hideIndex="dynamicHide"></article-list>
</template>
<div v-if="allPageList.length==0 && loading==1" class="home-no-list">
<img class="img" :src="`${webBaseUrl}/images/homeWu/no-course.png`" alt="" srcset="">
<p class="text">暂时没有动态</p>
</div>
</el-tab-pane>
<el-tab-pane name="1" label="课程">
<course-list :list="cousrePageList" :isDynamic="true" :personal="true" :isFollow="true" @hideIndex="dynamicHide"></course-list>
@@ -41,7 +45,7 @@
<el-tab-pane name="5" label="回答">
<answer-list :list="answerPageList" :isDynamic="true" :personal="true" :isFollow="true" @hideIndex="dynamicHide"></answer-list>
</el-tab-pane>
<!-- <el-tab-pane name="7" label="关注">
<follow-list></follow-list>
</el-tab-pane> -->
@@ -98,6 +102,7 @@
data(){
return{
input:'',
loading:0,//加载中
activeName:'first',
page:{
pageIndex:1,
@@ -169,8 +174,12 @@
aids:this.followIds // 数组
}
apiStat.userDynamicfollows(data).then(res=>{
this.loading=1;
if(res.status == 200) {
this.page.count = res.result.count;
if(res.result.count==0){
return;
}
let ids = res.result.list.map(item=>item.contentId);
let aids = [];
const noReapetIds = [...new Set(ids)];
@@ -276,7 +285,8 @@
this.getNote(noReapetNoteIds,notePageList);
}
this.allPageList.push(...casePageList,...articlePageList,...cousrePageList,...qaPageList,...answerPageList,...notePageList);
this.allPageList.sort(this.pcompare("eventTime", false))
this.allPageList.sort(this.pcompare("eventTime", false));
},
pcompare(prop, rev) {
if (rev === undefined) {