From 37f1126fea101141531075099c33e6c8931aa9e3 Mon Sep 17 00:00:00 2001
From: zhaofang <752743406@qq.com>
Date: Thu, 24 Nov 2022 10:16:25 +0800
Subject: [PATCH] =?UTF-8?q?=E8=BD=AE=E6=92=AD=E5=9B=BE=E8=B7=B3=E8=BD=AC?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../recommend-index/recommend-index.vue | 21 +++++++++++++++----
1 file changed, 17 insertions(+), 4 deletions(-)
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,
+ }
+ );
})
}