diff --git a/src/views/portal/article/Detail.vue b/src/views/portal/article/Detail.vue index 2550b612..9bb2fb76 100644 --- a/src/views/portal/article/Detail.vue +++ b/src/views/portal/article/Detail.vue @@ -80,9 +80,9 @@ - + - + @@ -183,14 +183,16 @@ export default { clearInterval(this.setTime); }, methods: { + banJump() { + if(this.resonimg.JumpUrl) { + window.open(this.resonimg.JumpUrl); + } + }, couresreso(){ let key = 'article'; apiPlace.detail(key).then(res=>{ - console.log(res) let lmj = JSON.parse(res.result.content) - // console.log(lmj) this.resonimg = lmj[0] - console.log(this.resonimg.image) }) }, handleScroll() { diff --git a/src/views/portal/article/Index.vue b/src/views/portal/article/Index.vue index b9577bbc..63a7fbfc 100644 --- a/src/views/portal/article/Index.vue +++ b/src/views/portal/article/Index.vue @@ -102,10 +102,10 @@ - + - - + @@ -207,14 +207,16 @@ export default { window.removeEventListener("scroll",this.handleScroll); }, methods: { + banJump() { + if(this.resonimg.JumpUrl) { + window.open(this.resonimg.JumpUrl); + } + }, couresreso(){ let key = 'article'; apiPlace.detail(key).then(res=>{ - console.log(res) let lmj = JSON.parse(res.result.content) - // console.log(lmj) this.resonimg = lmj[0] - console.log(this.resonimg.image) }) }, emitInput(val){ diff --git a/src/views/portal/case/Detail.vue b/src/views/portal/case/Detail.vue index 179b509b..c483eba5 100644 --- a/src/views/portal/case/Detail.vue +++ b/src/views/portal/case/Detail.vue @@ -151,9 +151,9 @@ - + - + @@ -244,6 +244,11 @@ export default { clearInterval(this.setTimeCase); }, methods: { + banJump() { + if(this.resonimg.JumpUrl) { + window.open(this.resonimg.JumpUrl); + } + }, jumecase(item){ this.$router.push({ path: './Detail.vue', query: { id: item.id } }); }, diff --git a/src/views/portal/case/Index.vue b/src/views/portal/case/Index.vue index ba05b23f..81b3f74c 100644 --- a/src/views/portal/case/Index.vue +++ b/src/views/portal/case/Index.vue @@ -175,9 +175,9 @@ - + - + @@ -332,14 +332,16 @@ export default { window.removeEventListener("scroll", this.handleScroll); }, methods: { + banJump() { + if(this.resonimg.JumpUrl) { + window.open(this.resonimg.JumpUrl); + } + }, couresreso(){ let key = 'case'; apiPlace.detail(key).then(res=>{ - console.log(res) let lmj = JSON.parse(res.result.content) - // console.log(lmj) this.resonimg = lmj[0] - console.log(this.resonimg.image) }) }, specialized(){ diff --git a/src/views/portal/course/Index.vue b/src/views/portal/course/Index.vue index 10953ab1..5d58be7f 100644 --- a/src/views/portal/course/Index.vue +++ b/src/views/portal/course/Index.vue @@ -272,9 +272,9 @@ - + - + @@ -448,15 +448,18 @@ export default { window.removeEventListener("scroll", this.handleScroll); }, methods: { + banJump() { + if(this.resonimg.JumpUrl) { + window.open(this.resonimg.JumpUrl); + } + }, couresreso(){ let key = 'course'; apiPlace.detail(key).then(res=>{ - //console.log(res,'lmj') let resImgList = JSON.parse(res.result.content); if(resImgList && resImgList.length>0){ this.resonimg = resImgList[0] } - // console.log(this.resonimg,'111') }) }, jumUX() { diff --git a/src/views/portal/qa/Answer.vue b/src/views/portal/qa/Answer.vue index 905983d7..93c6bcc4 100644 --- a/src/views/portal/qa/Answer.vue +++ b/src/views/portal/qa/Answer.vue @@ -252,9 +252,9 @@ - + - + @@ -372,13 +372,16 @@ export default { window.removeEventListener("scroll", this.handleScroll); }, methods: { + banJump() { + if(this.resonimg.JumpUrl) { + window.open(this.resonimg.JumpUrl); + } + }, couresreso(){ let key = 'qa'; apiPlace.detail(key).then(res=>{ - console.log(res) let lmj = JSON.parse(res.result.content) this.resonimg = lmj[0] - console.log(this.resonimg.image) }) }, handleScroll() { diff --git a/src/views/portal/qa/Index.vue b/src/views/portal/qa/Index.vue index fe08c7d7..a74d313d 100644 --- a/src/views/portal/qa/Index.vue +++ b/src/views/portal/qa/Index.vue @@ -106,9 +106,9 @@ - + - + @@ -215,13 +215,16 @@ export default { window.removeEventListener("scroll",this.handleScroll); }, methods: { + banJump() { + if(this.resonimg.JumpUrl) { + window.open(this.resonimg.JumpUrl); + } + }, couresreso(){ let key = 'qa'; apiPlace.detail(key).then(res=>{ - console.log(res) let lmj = JSON.parse(res.result.content) this.resonimg = lmj[0] - console.log(this.resonimg.image) }) }, emitInput(val){