From d9a89d83c2048a964f16ca179feb2b7f21b9d33a Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期一, 29 七月 2024 16:28:47 +0800
Subject: [PATCH] 提交

---
 wechat_staff/pages/consult/consult.js |   16 +++++++++++-----
 1 files changed, 11 insertions(+), 5 deletions(-)

diff --git a/wechat_staff/pages/consult/consult.js b/wechat_staff/pages/consult/consult.js
index 5e74e3b..af3189c 100644
--- a/wechat_staff/pages/consult/consult.js
+++ b/wechat_staff/pages/consult/consult.js
@@ -1,4 +1,4 @@
-import { getZhongTaiProductNewsPage, getCatalogList,actionDo } from '../../api/index'
+import { getZhongTaiProductNewsPage, getCatalogList,actionDo,refreshEnjoy } from '../../api/index'
 Page({
 
   /**
@@ -21,6 +21,11 @@
   },
   onLoad(options) {
     this.getCate()
+  },
+  onPullDownRefresh: function () {
+    console.log('涓嬫媺鍒锋柊');
+    this.setData({ dataList: [], pageNum: 1, total: 0 })
+    this.getList()
   },
   onReachBottom() {
     console.log('瑙﹀簳浜嬩欢');
@@ -60,10 +65,11 @@
     actionDo({actionType: 'view',id: item.id})
     if(item.contentType == 'link'){
       wx.navigateTo({
-        url: '/pages/webView/index?link=' + item.content,
+        url: '/pages/webView/index',
         success: function(res) {
-          // 閫氳繃eventChannel鍚戣鎵撳紑椤甸潰浼犻�佹暟鎹�
-          res.eventChannel.emit('acceptDataFromOpenerPage', { link: item.openContent, title: item.title })
+          // 閫氳繃eventChannel鍚戣鎵撳紑椤甸潰浼犻�佹暟鎹� 
+          console.log(item)
+          res.eventChannel.emit('data',{link:item.content,title:item.title} );
         }
       })
     }else{
@@ -116,7 +122,7 @@
    * 鐢熷懡鍛ㄦ湡鍑芥暟--鐩戝惉椤甸潰鏄剧ず
    */
   onShow() {
-
+    refreshEnjoy(this) 
   },
 
   /**

--
Gitblit v1.9.3