mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-10 03:16:42 +08:00
修改个人主页
This commit is contained in:
@@ -497,7 +497,7 @@
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
showLoginMedal:true,//是否显示登录勋章
|
||||
showLoginMedal:false,//是否显示登录勋章
|
||||
lastStudy:{},
|
||||
overlayShow:false,
|
||||
userData: { uvalue:0, totalStudyHour:0 },
|
||||
|
||||
@@ -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>
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user