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_jiaxuan/pages/consult/consult.js |   16 +++++++++++++---
 1 files changed, 13 insertions(+), 3 deletions(-)

diff --git a/wechat_jiaxuan/pages/consult/consult.js b/wechat_jiaxuan/pages/consult/consult.js
index 4ea967a..618063a 100644
--- a/wechat_jiaxuan/pages/consult/consult.js
+++ b/wechat_jiaxuan/pages/consult/consult.js
@@ -1,4 +1,4 @@
-import { getZhongTaiProductNewsPage, getCatalogList, getCataLogTagList } from '../../api/index'
+import { getZhongTaiProductNewsPage, getCatalogList,actionDo } from '../../api/index'
 Page({
 
   /**
@@ -35,6 +35,11 @@
       })
     }
   },
+  onPullDownRefresh: function () {
+    console.log('涓嬫媺鍒锋柊');
+    this.setData({ dataList: [], pageNum: 1, total: 0 })
+    this.getList()
+  },
   getCate() {
     getCatalogList({catalogCode: 'product_info'}).then(res => {
       this.setData({ category: res.data })
@@ -57,12 +62,13 @@
   },
   itemClick(e) {
     const item = e.currentTarget.dataset.item
+    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 })
+          res.eventChannel.emit('acceptDataFromOpenerPage', { link: item.content, title: item.title })
         }
       })
     }else{
@@ -71,6 +77,10 @@
       })
     }    
   },
+  searchList() {
+    this.setData({ dataList: [], total: 0, pageNum: 1 })
+    this.getList()
+  },
   getList() {
     const { pageNum, pageSize, catalogCode, tagCode, query } = this.data
     getZhongTaiProductNewsPage({

--
Gitblit v1.9.3