mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-10 11:26:43 +08:00
修改个人主页
This commit is contained in:
@@ -497,7 +497,7 @@
|
|||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
showLoginMedal:true,//是否显示登录勋章
|
showLoginMedal:false,//是否显示登录勋章
|
||||||
lastStudy:{},
|
lastStudy:{},
|
||||||
overlayShow:false,
|
overlayShow:false,
|
||||||
userData: { uvalue:0, totalStudyHour:0 },
|
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>
|
<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>
|
<article-list v-if="item.contentType == 2" :list="[item]" :isDynamic="true" :personal="true" :isFollow="true" @hideIndex="dynamicHide"></article-list>
|
||||||
</template>
|
</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>
|
||||||
<el-tab-pane name="1" label="课程">
|
<el-tab-pane name="1" label="课程">
|
||||||
<course-list :list="cousrePageList" :isDynamic="true" :personal="true" :isFollow="true" @hideIndex="dynamicHide"></course-list>
|
<course-list :list="cousrePageList" :isDynamic="true" :personal="true" :isFollow="true" @hideIndex="dynamicHide"></course-list>
|
||||||
@@ -41,7 +45,7 @@
|
|||||||
<el-tab-pane name="5" label="回答">
|
<el-tab-pane name="5" label="回答">
|
||||||
<answer-list :list="answerPageList" :isDynamic="true" :personal="true" :isFollow="true" @hideIndex="dynamicHide"></answer-list>
|
<answer-list :list="answerPageList" :isDynamic="true" :personal="true" :isFollow="true" @hideIndex="dynamicHide"></answer-list>
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
|
|
||||||
<!-- <el-tab-pane name="7" label="关注">
|
<!-- <el-tab-pane name="7" label="关注">
|
||||||
<follow-list></follow-list>
|
<follow-list></follow-list>
|
||||||
</el-tab-pane> -->
|
</el-tab-pane> -->
|
||||||
@@ -98,6 +102,7 @@
|
|||||||
data(){
|
data(){
|
||||||
return{
|
return{
|
||||||
input:'',
|
input:'',
|
||||||
|
loading:0,//加载中
|
||||||
activeName:'first',
|
activeName:'first',
|
||||||
page:{
|
page:{
|
||||||
pageIndex:1,
|
pageIndex:1,
|
||||||
@@ -169,8 +174,12 @@
|
|||||||
aids:this.followIds // 数组
|
aids:this.followIds // 数组
|
||||||
}
|
}
|
||||||
apiStat.userDynamicfollows(data).then(res=>{
|
apiStat.userDynamicfollows(data).then(res=>{
|
||||||
|
this.loading=1;
|
||||||
if(res.status == 200) {
|
if(res.status == 200) {
|
||||||
this.page.count = res.result.count;
|
this.page.count = res.result.count;
|
||||||
|
if(res.result.count==0){
|
||||||
|
return;
|
||||||
|
}
|
||||||
let ids = res.result.list.map(item=>item.contentId);
|
let ids = res.result.list.map(item=>item.contentId);
|
||||||
let aids = [];
|
let aids = [];
|
||||||
const noReapetIds = [...new Set(ids)];
|
const noReapetIds = [...new Set(ids)];
|
||||||
@@ -276,7 +285,8 @@
|
|||||||
this.getNote(noReapetNoteIds,notePageList);
|
this.getNote(noReapetNoteIds,notePageList);
|
||||||
}
|
}
|
||||||
this.allPageList.push(...casePageList,...articlePageList,...cousrePageList,...qaPageList,...answerPageList,...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) {
|
pcompare(prop, rev) {
|
||||||
if (rev === undefined) {
|
if (rev === undefined) {
|
||||||
|
|||||||
Reference in New Issue
Block a user