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:
@@ -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() {
|
||||||
|
|||||||
@@ -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){
|
||||||
|
|||||||
@@ -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 } });
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -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(){
|
||||||
|
|||||||
@@ -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() {
|
||||||
|
|||||||
@@ -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() {
|
||||||
|
|||||||
@@ -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){
|
||||||
|
|||||||
Reference in New Issue
Block a user