资源位跳转链接

This commit is contained in:
zhaofang
2022-11-01 13:47:56 +08:00
parent 9f60da21da
commit 8f2a9a1213
7 changed files with 50 additions and 30 deletions

View File

@@ -80,9 +80,9 @@
</li> </li>
</ul> </ul>
</div> </div>
<!-- <div class="course-resources"> --> <!-- <div class="course-resources pointer"> -->
<!-- 资源位 --> <!-- 资源位 -->
<!-- <img :src="fileBaseUrl + resonimg.image" alt=""> --> <!-- <img @click="banJump()" :src="fileBaseUrl + resonimg.image" alt=""> -->
<!-- </div> --> <!-- </div> -->
</div> </div>
</div> </div>
@@ -183,14 +183,16 @@ export default {
clearInterval(this.setTime); clearInterval(this.setTime);
}, },
methods: { methods: {
banJump() {
if(this.resonimg.JumpUrl) {
window.open(this.resonimg.JumpUrl);
}
},
couresreso(){ couresreso(){
let key = 'article'; let key = 'article';
apiPlace.detail(key).then(res=>{ apiPlace.detail(key).then(res=>{
console.log(res)
let lmj = JSON.parse(res.result.content) let lmj = JSON.parse(res.result.content)
// console.log(lmj)
this.resonimg = lmj[0] this.resonimg = lmj[0]
console.log(this.resonimg.image)
}) })
}, },
handleScroll() { handleScroll() {

View File

@@ -102,10 +102,10 @@
</li> </li>
</ul> </ul>
</div> </div>
<!-- <div class="course-resources"> --> <!-- <div class="course-resources pointer"> -->
<!-- 资源位 --> <!-- 资源位 -->
<!-- <img :src="fileBaseUrl + resonimg.image" alt=""> --> <!-- <img @click="banJump()" :src="fileBaseUrl + resonimg.image" alt="">
<!-- </div> --> </div> -->
</div> </div>
@@ -207,14 +207,16 @@ export default {
window.removeEventListener("scroll",this.handleScroll); window.removeEventListener("scroll",this.handleScroll);
}, },
methods: { methods: {
banJump() {
if(this.resonimg.JumpUrl) {
window.open(this.resonimg.JumpUrl);
}
},
couresreso(){ couresreso(){
let key = 'article'; let key = 'article';
apiPlace.detail(key).then(res=>{ apiPlace.detail(key).then(res=>{
console.log(res)
let lmj = JSON.parse(res.result.content) let lmj = JSON.parse(res.result.content)
// console.log(lmj)
this.resonimg = lmj[0] this.resonimg = lmj[0]
console.log(this.resonimg.image)
}) })
}, },
emitInput(val){ emitInput(val){

View File

@@ -151,9 +151,9 @@
</li> </li>
</ul> </ul>
</div> </div>
<!-- <div class="course-resources"> --> <!-- <div class="course-resources pointer"> -->
<!-- 资源位 --> <!-- 资源位 -->
<!-- <img :src="fileBaseUrl + resonimg.image" alt=""> --> <!-- <img @click="banJump()" :src="fileBaseUrl + resonimg.image" alt=""> -->
<!-- </div> --> <!-- </div> -->
</div> </div>
</div> </div>
@@ -244,6 +244,11 @@ export default {
clearInterval(this.setTimeCase); clearInterval(this.setTimeCase);
}, },
methods: { methods: {
banJump() {
if(this.resonimg.JumpUrl) {
window.open(this.resonimg.JumpUrl);
}
},
jumecase(item){ jumecase(item){
this.$router.push({ path: './Detail.vue', query: { id: item.id } }); this.$router.push({ path: './Detail.vue', query: { id: item.id } });
}, },

View File

@@ -175,9 +175,9 @@
</li> </li>
</ul> </ul>
</div> </div>
<!-- <div class="course-resources"> --> <!-- <div class="course-resources pointer"> -->
<!-- 资源位 --> <!-- 资源位 -->
<!-- <img :src="fileBaseUrl + resonimg.image" alt=""> --> <!-- <img @click="banJump()" :src="fileBaseUrl + resonimg.image" alt=""> -->
<!-- </div> --> <!-- </div> -->
</div> </div>
</div> </div>
@@ -332,14 +332,16 @@ export default {
window.removeEventListener("scroll", this.handleScroll); window.removeEventListener("scroll", this.handleScroll);
}, },
methods: { methods: {
banJump() {
if(this.resonimg.JumpUrl) {
window.open(this.resonimg.JumpUrl);
}
},
couresreso(){ couresreso(){
let key = 'case'; let key = 'case';
apiPlace.detail(key).then(res=>{ apiPlace.detail(key).then(res=>{
console.log(res)
let lmj = JSON.parse(res.result.content) let lmj = JSON.parse(res.result.content)
// console.log(lmj)
this.resonimg = lmj[0] this.resonimg = lmj[0]
console.log(this.resonimg.image)
}) })
}, },
specialized(){ specialized(){

View File

@@ -272,9 +272,9 @@
</li> </li>
</ul> </ul>
</div> </div>
<!-- <div class="course-resources"> --> <!-- <div class="course-resources pointer"> -->
<!-- 资源位 --> <!-- 资源位 -->
<!-- <img :src="fileBaseUrl + resonimg.image" alt=""> --> <!-- <img @click="banJump()" :src="fileBaseUrl + resonimg.image" alt=""> -->
<!-- </div> --> <!-- </div> -->
</div> </div>
</div> </div>
@@ -448,15 +448,18 @@ export default {
window.removeEventListener("scroll", this.handleScroll); window.removeEventListener("scroll", this.handleScroll);
}, },
methods: { methods: {
banJump() {
if(this.resonimg.JumpUrl) {
window.open(this.resonimg.JumpUrl);
}
},
couresreso(){ couresreso(){
let key = 'course'; let key = 'course';
apiPlace.detail(key).then(res=>{ apiPlace.detail(key).then(res=>{
//console.log(res,'lmj')
let resImgList = JSON.parse(res.result.content); let resImgList = JSON.parse(res.result.content);
if(resImgList && resImgList.length>0){ if(resImgList && resImgList.length>0){
this.resonimg = resImgList[0] this.resonimg = resImgList[0]
} }
// console.log(this.resonimg,'111')
}) })
}, },
jumUX() { jumUX() {

View File

@@ -252,9 +252,9 @@
</li> </li>
</ul> </ul>
</div> </div>
<!-- <div class="course-resources"> --> <!-- <div class="course-resources pointer"> -->
<!-- 资源位 --> <!-- 资源位 -->
<!-- <img :src="fileBaseUrl + resonimg.image" alt=""> --> <!-- <img @click="banJump()" :src="fileBaseUrl + resonimg.image" alt=""> -->
<!-- </div> --> <!-- </div> -->
</div> </div>
</div> </div>
@@ -372,13 +372,16 @@ export default {
window.removeEventListener("scroll", this.handleScroll); window.removeEventListener("scroll", this.handleScroll);
}, },
methods: { methods: {
banJump() {
if(this.resonimg.JumpUrl) {
window.open(this.resonimg.JumpUrl);
}
},
couresreso(){ couresreso(){
let key = 'qa'; let key = 'qa';
apiPlace.detail(key).then(res=>{ apiPlace.detail(key).then(res=>{
console.log(res)
let lmj = JSON.parse(res.result.content) let lmj = JSON.parse(res.result.content)
this.resonimg = lmj[0] this.resonimg = lmj[0]
console.log(this.resonimg.image)
}) })
}, },
handleScroll() { handleScroll() {

View File

@@ -106,9 +106,9 @@
</li> </li>
</ul> </ul>
</div> </div>
<!-- <div class="course-resources"> --> <!-- <div class="course-resources pointer"> -->
<!-- 资源位 --> <!-- 资源位 -->
<!-- <img :src="fileBaseUrl + resonimg.image" alt=""> --> <!-- <img @click="banJump()" :src="fileBaseUrl + resonimg.image" alt=""> -->
<!-- </div> --> <!-- </div> -->
</div> </div>
<!-- </div> --> <!-- </div> -->
@@ -215,13 +215,16 @@ export default {
window.removeEventListener("scroll",this.handleScroll); window.removeEventListener("scroll",this.handleScroll);
}, },
methods: { methods: {
banJump() {
if(this.resonimg.JumpUrl) {
window.open(this.resonimg.JumpUrl);
}
},
couresreso(){ couresreso(){
let key = 'qa'; let key = 'qa';
apiPlace.detail(key).then(res=>{ apiPlace.detail(key).then(res=>{
console.log(res)
let lmj = JSON.parse(res.result.content) let lmj = JSON.parse(res.result.content)
this.resonimg = lmj[0] this.resonimg = lmj[0]
console.log(this.resonimg.image)
}) })
}, },
emitInput(val){ emitInput(val){