diff --git a/components/recommend-index/recommend-index.vue b/components/recommend-index/recommend-index.vue
index 3902bf9..f2770ed 100644
--- a/components/recommend-index/recommend-index.vue
+++ b/components/recommend-index/recommend-index.vue
@@ -3,6 +3,7 @@
@@ -16,7 +17,7 @@
-
+
@@ -144,11 +145,18 @@
},
methods: {
+ imgJup() {
+ if(this.placeholderImg.JumpUrl){
+ window.open(this.placeholderImg.JumpUrl);
+ }
+ },
click(e) {
- // console.log(e,'444')
+ let JumpUrl = this.resonimg[e].JumpUrl;
+ if(JumpUrl){
+ window.open(JumpUrl);
+ }
},
change(e) {
- // console.log(e,'333')
},
couresreso() {
let key = 'mobileIndex1';
@@ -157,7 +165,12 @@
if(res.result.content && res.result.content.length>10){
let lmj = JSON.parse(res.result.content)
lmj.forEach(item=>{
- this.resonimg.push(this.fileUrl+item.image);
+ this.resonimg.push(
+ {
+ image: this.fileUrl+item.image,
+ JumpUrl: item.JumpUrl,
+ }
+ );
})
}