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