From 26fb0b3e76f52212a2cef49a0bc0b94e7425880c Mon Sep 17 00:00:00 2001
From: liukangdong <898885815@qq.com>
Date: 星期一, 29 七月 2024 10:55:10 +0800
Subject: [PATCH] Merge branch 'master' of http://139.186.142.91:10010/r/productDev/zbomyoujia

---
 wechat_staff/components/disRealpic/index.js |   16 ++++++++++------
 1 files changed, 10 insertions(+), 6 deletions(-)

diff --git a/wechat_staff/components/disRealpic/index.js b/wechat_staff/components/disRealpic/index.js
index d5fea88..000c3d7 100644
--- a/wechat_staff/components/disRealpic/index.js
+++ b/wechat_staff/components/disRealpic/index.js
@@ -74,10 +74,10 @@
       const item = e.currentTarget.dataset.item
       console.log('item', item);
       wx.navigateTo({
-        url: '/pages/webView/index?link=' + item.openContent,
+        url: '/pages/webView/index',
         success: function(res) {
-          // 閫氳繃eventChannel鍚戣鎵撳紑椤甸潰浼犻�佹暟鎹�
-          res.eventChannel.emit('acceptDataFromOpenerPage', { link: item.openContent, title: item.title })
+          // 閫氳繃eventChannel鍚戣鎵撳紑椤甸潰浼犻�佹暟鎹� 
+          res.eventChannel.emit('data',{link:item.openContent} );
         }
       })
     },
@@ -107,7 +107,11 @@
       }
       if(item.openType == 'link'){
         wx.navigateTo({
-          url: '/pages/webView/index?link=' + item.openContent,
+          url: '/pages/webView/index',
+          success: function(res) {
+            // 閫氳繃eventChannel鍚戣鎵撳紑椤甸潰浼犻�佹暟鎹� 
+            res.eventChannel.emit('data',{link:item.openContent} );
+          }
         })
       }
       if(item.openType == 'page'){
@@ -145,7 +149,7 @@
       const { cateList } = this.data
       cateList.forEach(item => {
         item.paramIndex = -1
-        item.paramName = ''
+        item.paramName = item.paramName || ''
       })
       this.setData({ tagCodes: [],activeParam: [],cateList,activeIndex: -1 })
     },
@@ -155,7 +159,7 @@
     },
     subParam() {
       this.setData({ activeParam: [] })
-      this.setData({ pageNum: 1,dataList: [],total: 0})
+      this.setData({ pageNum: 1,activeIndex: -1,dataList: [],total: 0})
       this.getList()
     },
     changeShowParams(e){

--
Gitblit v1.9.3