From cdd2fc68ad94407c8660be4592c31f9c00d46b8f Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期四, 25 七月 2024 14:19:33 +0800
Subject: [PATCH] 提交

---
 wechat_staff/pages/index/index.js |   19 ++++++++++++++++++-
 1 files changed, 18 insertions(+), 1 deletions(-)

diff --git a/wechat_staff/pages/index/index.js b/wechat_staff/pages/index/index.js
index 7e2e74e..c512978 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: '',
@@ -105,6 +108,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