mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-09 10:56:44 +08:00
修改动态显示内容已删除的提示
This commit is contained in:
@@ -78,6 +78,10 @@
|
||||
},
|
||||
methods:{
|
||||
jumpDetail(item){
|
||||
if(item.info.deleted){
|
||||
this.$message.warning("此文章已删除");
|
||||
return;
|
||||
}
|
||||
this.$router.push('/article/detail?id='+item.contentId)
|
||||
},
|
||||
emitHide(id) {
|
||||
|
||||
@@ -39,11 +39,11 @@
|
||||
|
||||
</li>
|
||||
</ul>
|
||||
<div v-else class="home-no-list">
|
||||
<!-- <div v-else class="home-no-list">
|
||||
<img class="img" :src="`${webBaseUrl}/images/homeWu/no-course.png`" alt="" srcset="">
|
||||
<p v-if="isFollow" class="text">暂时没有动态</p>
|
||||
<p v-else class="text">还没有课程</p>
|
||||
</div>
|
||||
</div> -->
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -98,7 +98,11 @@
|
||||
if(!data.contentId){
|
||||
return;
|
||||
}
|
||||
|
||||
console.log(data.info,'data.info')
|
||||
if(!data.info.enabled || data.info.deleted){
|
||||
this.$message.warning("此课程已停用或已删除");
|
||||
return;
|
||||
}
|
||||
this.$router.push({ path: '/course/detail?id=', query: { id: data.contentId } });
|
||||
}
|
||||
}
|
||||
|
||||
@@ -48,7 +48,7 @@
|
||||
</el-tooltip>
|
||||
<span class="interact-bar-value"> {{data.shares}}</span>
|
||||
</div>
|
||||
<div v-if="views" style="cursor: default;" :style="`min-width: ${nodeWidth};`" class="interact-bar-btn" :class="{cursor:!readonly}">
|
||||
<div v-if="views" style="cursor: default;" :style="`min-width: ${nodeWidth};margin-left:${data.views>1000? '40px':'20px'}`" class="interact-bar-btn" :class="{cursor:!readonly}">
|
||||
<el-tooltip effect="light" content="浏览量" placement="top" :visible-arrow="false" popper-class="text-tooltip">
|
||||
<svg-icon style="margin-right: 0;font-size:22px;padding-top: 4px;" icon-class="eyes"></svg-icon>
|
||||
</el-tooltip>
|
||||
|
||||
@@ -16,6 +16,10 @@
|
||||
<answer-list v-if="item.contentType == 5" :list="[item]" :isDynamic="true" :personal="personal" @hideIndex="dynamicHide"></answer-list>
|
||||
<article-list v-if="item.contentType == 2" :list="[item]" :isDynamic="true" :personal="personal" @hideIndex="dynamicHide"></article-list>
|
||||
</template>
|
||||
<div v-if="!loading && allPageList.length==0" 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" v-loading="loading1">
|
||||
<span slot="label"><svg-icon icon-class="home-course" style="font-size: 30px;"></svg-icon><span class="tabs-info">课程</span></span>
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<div>
|
||||
<div style="display: flex;justify-content:space-between; padding: 12px 32px 10px 22px;">
|
||||
<div style="display: flex;justify-content: flex-start;">
|
||||
<div class="uc-center-page">我的报名</div>
|
||||
<div class="uc-center-page">我报名的</div>
|
||||
<div style="margin-left:32px">
|
||||
<el-select v-model="courseType" class="uc-select" clearable placeholder="类型">
|
||||
<el-option label="全部类型" value='1'></el-option>
|
||||
|
||||
Reference in New Issue
Block a user