mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-18 07:16:44 +08:00
提交
This commit is contained in:
@@ -85,7 +85,7 @@
|
||||
<span v-if="cinfo.type=='face-course'" class="course-type-title course-type">线下课</span>
|
||||
<span v-if="cinfo.type=='project'" class="course-type-title course-type">学习项目</span>
|
||||
</div>
|
||||
<el-tooltip class="item" :content="cinfo.name" placement="bottom-start" effect="light">
|
||||
<el-tooltip class="item" :content="cinfo.couretitle" placement="bottom-start" effect="light" :visible-arrow="false" popper-class="text-tooltip" >
|
||||
<div class="course-title title-line-ellipsis" v-html="$keywordActiveShow(cinfo.name,keyword)">
|
||||
</div>
|
||||
</el-tooltip>
|
||||
@@ -231,6 +231,7 @@ export default {
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
couretitle:'',
|
||||
toScore,
|
||||
noPageList: true,//判断接口是否还有数据
|
||||
noDataList: true,//判断接口是否还有数据
|
||||
@@ -285,6 +286,7 @@ export default {
|
||||
};
|
||||
},
|
||||
mounted() {
|
||||
|
||||
let screenWidth=window.screen.width;
|
||||
if(screenWidth<1280){
|
||||
this.course.pageSize=9;
|
||||
@@ -330,6 +332,8 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
|
||||
|
||||
|
||||
jumUX(){
|
||||
window.open('https://m.qingxuetang.com/x/?appId=qxtcorp306130','_blank');
|
||||
},
|
||||
@@ -581,6 +585,7 @@ export default {
|
||||
this.noDataList && await apiOldCourse.courseList(oldParams).then(oldRs=>{
|
||||
if(oldRs.status==200 && oldRs.result.dataList.length > 0) {
|
||||
let list = that.filterConversion(oldRs.result.dataList);
|
||||
list.name = list.name.replace(/<[^>]+>|&[^>]+;/g,"").trim();
|
||||
data.push(...list);
|
||||
that.moreState = 1;
|
||||
}else{
|
||||
@@ -595,10 +600,12 @@ export default {
|
||||
.then(res => {
|
||||
|
||||
if(res.status == 200 && res.result.list.length>0){
|
||||
|
||||
this.totalPages = res.result.totalPages;
|
||||
let courseIds=[];
|
||||
res.result.list.forEach(item=>{
|
||||
item.name = this.$keywordActiveShow(item.name,this.course.keyword)
|
||||
item.name = this.$keywordActiveShow(item.name,this.course.keyword);
|
||||
item.couretitle = this.$keywordActiveShow(item.name,this.course.keyword).replace(/<[^>]+>|&[^>]+;/g,"").trim();//去掉所有的html标签和 之类的特殊符合
|
||||
item.authorInfo={aid:'',name:'',orgInfo:'',avatar:'',code:''};
|
||||
courseIds.push(item.id);
|
||||
if(item.isTop) {
|
||||
|
||||
Reference in New Issue
Block a user