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/pages/index/index.js |   26 +++++++++++++++++++++-----
 1 files changed, 21 insertions(+), 5 deletions(-)

diff --git a/wechat_staff/pages/index/index.js b/wechat_staff/pages/index/index.js
index 7e2e74e..a1118ce 100644
--- a/wechat_staff/pages/index/index.js
+++ b/wechat_staff/pages/index/index.js
@@ -3,8 +3,11 @@
   getDailyUpdates,
   getZSZXCatalogs,
   getZhongTaiVideoPage,
-  getCustomizedNewsList
+  getCustomizedNewsList,
+  newsPage
 } from '../../api/index'
+const { HYEventBus } = require('hy-event-store')
+const eventBus = new HYEventBus()
 Page({
   data: {
     searchValue: '',
@@ -27,12 +30,11 @@
   onLoad() {
     const res = wx.getMenuButtonBoundingClientRect()
     this.setData({
-      clientHeight: res.height
-    })
-    this.setData({
+      clientHeight: res.height,
       clientTop: res.top
     })
-
+  },
+  onShow() {
     this.initData()
   },
   initData() {
@@ -105,6 +107,20 @@
       url: '/pages/promotion/index',
     })
   },
+  funClick(e){
+    const i = e.currentTarget.dataset.i
+    let map = ['product_intro', 'whole_case', 'real_case'] 
+    if(i == 3){
+      wx.navigateTo({
+        url: '/pages/consult/consult',
+      })
+    }else{
+      wx.setStorageSync('discoverKey', map[i])
+      wx.switchTab({
+        url: '/pages/discover/discover',
+      })
+    }
+  },
   jumpProVideo() {
     wx.navigateTo({
       url: '/pages/productVideo/index',

--
Gitblit v1.9.3