mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-11 20:06:44 +08:00
修改
This commit is contained in:
@@ -65,13 +65,24 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
jumpRouter(item){
|
jumpRouter(item){
|
||||||
if(this.type!='myShare'){
|
if(item.type){
|
||||||
|
if(this.type!='myShare'){
|
||||||
|
apiShares.updateIsRead(item.shareId).then(res=>{
|
||||||
|
if(res.status==200){
|
||||||
|
this.$emit('confirm',item)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}else{
|
||||||
|
if(this.type!='myShare'){
|
||||||
apiShares.updateIsRead(item.id).then(res=>{
|
apiShares.updateIsRead(item.id).then(res=>{
|
||||||
if(res.status==200){
|
if(res.status==200){
|
||||||
this.$emit('confirm',item)
|
this.$emit('confirm',item)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
this.$router.push({path:'/article/detail',query:{id:item.objId || item.id}})
|
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}`)
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
<div class="article-info" @click="jumpRouter(item)">
|
<div class="article-info" @click="jumpRouter(item)">
|
||||||
<div class="article-info-title">
|
<div class="article-info-title">
|
||||||
<span v-if="item.isRead" class="readed">【已查看】</span>
|
<span v-if="item.isRead" class="readed">【已查看】</span>
|
||||||
<span class="noRead" v-else>【未查看】</span>
|
<span v-else class="noRead" >【未查看】</span>
|
||||||
<span class="title one-line-ellipsis" v-html="$keywordActiveShow(item.cases.title,keyword)"></span>
|
<span class="title one-line-ellipsis" v-html="$keywordActiveShow(item.cases.title,keyword)"></span>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
@@ -52,7 +52,21 @@ export default {
|
|||||||
},
|
},
|
||||||
methods:{
|
methods:{
|
||||||
jumpRouter(item){
|
jumpRouter(item){
|
||||||
if(this.type!='myShare'){
|
if(item.type){
|
||||||
|
if(this.type!='myShare'){
|
||||||
|
apiShares.updateIsRead(item.shareId).then(res=>{
|
||||||
|
if(res.status==200){
|
||||||
|
this.$emit('confirm',item)
|
||||||
|
}else{
|
||||||
|
this.$message({
|
||||||
|
type: 'error',
|
||||||
|
message: res.message,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}else{
|
||||||
|
if(this.type!='myShare'){
|
||||||
apiShares.updateIsRead(item.id).then(res=>{
|
apiShares.updateIsRead(item.id).then(res=>{
|
||||||
if(res.status==200){
|
if(res.status==200){
|
||||||
this.$emit('confirm',item)
|
this.$emit('confirm',item)
|
||||||
@@ -64,6 +78,9 @@ export default {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
console.log(item)
|
||||||
|
|
||||||
this.$router.push({path:'/case/detail',query:{id:item.cases.id}})
|
this.$router.push({path:'/case/detail',query:{id:item.cases.id}})
|
||||||
// window.open(`${this.webBaseUrl}/article/detail?id=${item.objId}`)
|
// window.open(`${this.webBaseUrl}/article/detail?id=${item.objId}`)
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -106,13 +106,24 @@ export default {
|
|||||||
return obj;
|
return obj;
|
||||||
},
|
},
|
||||||
jumpRouter(item){
|
jumpRouter(item){
|
||||||
if(this.type!='myShare'){
|
if(item.type){
|
||||||
|
if(this.type!='myShare'){
|
||||||
|
apiShares.updateIsRead(item.shareId).then(res=>{
|
||||||
|
if(res.status==200){
|
||||||
|
this.$emit('confirm',item)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}else{
|
||||||
|
if(this.type!='myShare'){
|
||||||
apiShares.updateIsRead(item.id).then(res=>{
|
apiShares.updateIsRead(item.id).then(res=>{
|
||||||
if(res.status==200){
|
if(res.status==200){
|
||||||
this.$emit('confirm',item)
|
this.$emit('confirm',item)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if(item.contentType == 20) {
|
if(item.contentType == 20) {
|
||||||
this.$router.push({path:'/course/detail',query:{id:item.objId || item.id}})
|
this.$router.push({path:'/course/detail',query:{id:item.objId || item.id}})
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -73,13 +73,24 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
jumpRouter(item){
|
jumpRouter(item){
|
||||||
if(this.type!='myShare'){
|
if(item.type){
|
||||||
|
if(this.type!='myShare'){
|
||||||
|
apiShares.updateIsRead(item.shareId).then(res=>{
|
||||||
|
if(res.status==200){
|
||||||
|
this.$emit('confirm',item)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}else{
|
||||||
|
if(this.type!='myShare'){
|
||||||
apiShares.updateIsRead(item.id).then(res=>{
|
apiShares.updateIsRead(item.id).then(res=>{
|
||||||
if(res.status==200){
|
if(res.status==200){
|
||||||
this.$emit('confirm',item)
|
this.$emit('confirm',item)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
this.$router.push({path:'/qa/answer',query:{id:item.question.id}})
|
this.$router.push({path:'/qa/answer',query:{id:item.question.id}})
|
||||||
// window.open(`${this.webBaseUrl}/qa/answer?id=${item.question.id}`)
|
// window.open(`${this.webBaseUrl}/qa/answer?id=${item.question.id}`)
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -65,7 +65,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div style="display: flex;">
|
<div style="display: flex;">
|
||||||
<div style="flex: 83%" class="qa-info-summary two-line-ellipsis" @click="jumpDetail(qa)" v-html="$keywordActiveShow(qa.content,queryKeyWord)"></div>
|
<div style="flex: 83%" class="qa-info-summary two-line-ellipsis" @click="jumpDetail(qa)" v-html="$keywordActiveShow(qa.content,queryKeyWord)"></div>
|
||||||
<div style="flex: 17% ;text-align: right;cursor: pointer;" v-if="qa.images!==''" @click="jumpDetail(qa)">
|
<div style="flex: 17% ; cursor: pointer; text-align: right;cursor: pointer;" v-if="qa.images!==''" @click="jumpDetail(qa)">
|
||||||
<img style="width: 156px;height: 105px;" :src="fileBaseUrl + qa.images" alt="">
|
<img style="width: 156px;height: 105px;" :src="fileBaseUrl + qa.images" alt="">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user