mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-12 20:36:43 +08:00
分享给我的跳转
This commit is contained in:
@@ -6,9 +6,9 @@
|
|||||||
<span v-if="item.isRead" class="readed">【已查看】</span>
|
<span v-if="item.isRead" class="readed">【已查看】</span>
|
||||||
<span class="noRead" v-else>【未查看】</span>
|
<span class="noRead" v-else>【未查看】</span>
|
||||||
<span class="title one-line-ellipsis" v-html="$keywordActiveShow(item.title,keyword)"></span>
|
<span class="title one-line-ellipsis" v-html="$keywordActiveShow(item.title,keyword)"></span>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div v-html="$keywordActiveShow(item.summary,keyword)" class="article-info-summary two-line-ellipsis">
|
<div v-html="$keywordActiveShow(item.summary || item.content,keyword)" class="article-info-summary two-line-ellipsis">
|
||||||
</div>
|
</div>
|
||||||
<!-- v-html="$keywordActiveShow(item.summary,keyword)" -->
|
<!-- v-html="$keywordActiveShow(item.summary,keyword)" -->
|
||||||
<div style="display:flex;justify-content: space-between;">
|
<div style="display:flex;justify-content: space-between;">
|
||||||
@@ -72,7 +72,7 @@ export default {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
this.$router.push({path:'/article/detail',query:{id:item.objId}})
|
this.$router.push({path:'/article/detail',query:{id:item.objId || item.id}})
|
||||||
// window.open(`${this.webBaseUrl}/article/detail?id=${item.objId}`)
|
// window.open(`${this.webBaseUrl}/article/detail?id=${item.objId}`)
|
||||||
},
|
},
|
||||||
deleteshares(item){
|
deleteshares(item){
|
||||||
@@ -129,7 +129,7 @@ export default {
|
|||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: flex-start;
|
justify-content: flex-start;
|
||||||
|
|
||||||
align-items: center;
|
align-items: center;
|
||||||
.readed{
|
.readed{
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
|
|||||||
@@ -113,7 +113,12 @@ export default {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
this.$router.push({path:'/course/detail',query:{id:item.objId}})
|
if(item.contentType == 20) {
|
||||||
|
this.$router.push({path:'/course/detail',query:{id:item.objId || item.id}})
|
||||||
|
} else {
|
||||||
|
this.$router.push({path:'/course/micro',query:{id:item.objId || item.id}})
|
||||||
|
}
|
||||||
|
|
||||||
// window.open(`${this.webBaseUrl}/course/detail?id=${item.objId}`)
|
// window.open(`${this.webBaseUrl}/course/detail?id=${item.objId}`)
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -42,7 +42,7 @@
|
|||||||
<pdfPreview v-if="pdfPath" :filePath="pdfPath"></pdfPreview>
|
<pdfPreview v-if="pdfPath" :filePath="pdfPath"></pdfPreview>
|
||||||
</el-card>
|
</el-card>
|
||||||
<!-- :authorId="articleDetailData.sysCreateAid" -->
|
<!-- :authorId="articleDetailData.sysCreateAid" -->
|
||||||
<el-row><comments @success="success" v-if="resolveId != ''" :obj-type="3" :obj-id="resolveId" :authorId="caseDetail.sysCreateAid" :toUsers="toUsers"></comments></el-row>
|
<el-row><comments @success="success" v-if="resolveId != ''" :obj-type="3" :obj-id="resolveId" :authorId="caseDetail.authorId" :toUsers="toUsers"></comments></el-row>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
</div>
|
</div>
|
||||||
@@ -152,7 +152,6 @@ export default {
|
|||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
// orginfo:'京东方科技集团股份有限公司/北京中祥英科技有限公司/技术中心/成都开发部',
|
|
||||||
toUsers:[],
|
toUsers:[],
|
||||||
ankingList:[],
|
ankingList:[],
|
||||||
Popularity:[],
|
Popularity:[],
|
||||||
@@ -169,7 +168,6 @@ export default {
|
|||||||
};
|
};
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
|
||||||
//this.pdfPath=this.basePath+'/case/demo1.pdf';
|
//this.pdfPath=this.basePath+'/case/demo1.pdf';
|
||||||
this.resolveId = this.$route.query.id;
|
this.resolveId = this.$route.query.id;
|
||||||
if (this.resolveId) {
|
if (this.resolveId) {
|
||||||
@@ -184,14 +182,6 @@ export default {
|
|||||||
);
|
);
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
// info(){
|
|
||||||
// if(this.orginfo){
|
|
||||||
// let idx=this.orginfo.indexOf('/');
|
|
||||||
// if(idx>-1){
|
|
||||||
// this.orginfo=this.orginfo.substring(idx+1);
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
// },
|
|
||||||
createPlayUrl(u){
|
createPlayUrl(u){
|
||||||
let nowDate=new Date();
|
let nowDate=new Date();
|
||||||
let ctime=parseInt(nowDate.getTime()/1000);
|
let ctime=parseInt(nowDate.getTime()/1000);
|
||||||
@@ -227,7 +217,6 @@ export default {
|
|||||||
apiCase.usernameList(5).then(res=>{
|
apiCase.usernameList(5).then(res=>{
|
||||||
if(res.status==200){
|
if(res.status==200){
|
||||||
this.ankingList=res.result
|
this.ankingList=res.result
|
||||||
// console.log(res)
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
@@ -235,7 +224,6 @@ export default {
|
|||||||
apiCase.queryPraises(5).then(res=>{
|
apiCase.queryPraises(5).then(res=>{
|
||||||
if(res.status==200){
|
if(res.status==200){
|
||||||
this.Popularity=res.result
|
this.Popularity=res.result
|
||||||
// console.log(this.Popularity)
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
@@ -243,7 +231,6 @@ export default {
|
|||||||
apiCase.queryComments(5).then(res=>{
|
apiCase.queryComments(5).then(res=>{
|
||||||
if(res.status==200){
|
if(res.status==200){
|
||||||
this.Positive=res.result
|
this.Positive=res.result
|
||||||
console.log(res)
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
@@ -272,7 +259,7 @@ export default {
|
|||||||
let idx=this.authorInfo.orgInfo.indexOf('/');
|
let idx=this.authorInfo.orgInfo.indexOf('/');
|
||||||
if(idx>-1){
|
if(idx>-1){
|
||||||
this.authorInfo.orgInfo=this.authorInfo.orgInfo.substring(idx+1);
|
this.authorInfo.orgInfo=this.authorInfo.orgInfo.substring(idx+1);
|
||||||
}
|
}
|
||||||
this.toUsers = [
|
this.toUsers = [
|
||||||
{name: res.result[0].name, aid:res.result[0].aid ,sex:res.result[0].sex}
|
{name: res.result[0].name, aid:res.result[0].aid ,sex:res.result[0].sex}
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -318,11 +318,13 @@ export default {
|
|||||||
item.question.title=item.title;
|
item.question.title=item.title;
|
||||||
item.question.content=item.content;
|
item.question.content=item.content;
|
||||||
item.question.bestAnswer=item.bestAnswer;
|
item.question.bestAnswer=item.bestAnswer;
|
||||||
|
item.question.id=item.id;
|
||||||
}
|
}
|
||||||
if(item.type == 3){
|
if(item.type == 3){
|
||||||
item.cases = {title:'',summary:''};
|
item.cases = {title:'',summary:''};
|
||||||
item.cases.title=item.title;
|
item.cases.title=item.title;
|
||||||
item.cases.title=item.summary;
|
item.cases.title=item.summary;
|
||||||
|
item.cases.id=item.id;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
this.dataList.list = res.result.list;
|
this.dataList.list = res.result.list;
|
||||||
|
|||||||
Reference in New Issue
Block a user