From 8ab86de45b9ddf1ebde415f262f4b40727f53989 Mon Sep 17 00:00:00 2001
From: liukangdong <898885815@qq.com>
Date: 星期四, 25 七月 2024 10:18:07 +0800
Subject: [PATCH] ''
---
wechat_staff/pages/index/index.js | 16 ++++++++++++++++
1 files changed, 16 insertions(+), 0 deletions(-)
diff --git a/wechat_staff/pages/index/index.js b/wechat_staff/pages/index/index.js
index 3952d1c..c512978 100644
--- a/wechat_staff/pages/index/index.js
+++ b/wechat_staff/pages/index/index.js
@@ -6,6 +6,8 @@
getCustomizedNewsList,
newsPage
} from '../../api/index'
+const { HYEventBus } = require('hy-event-store')
+const eventBus = new HYEventBus()
Page({
data: {
searchValue: '',
@@ -106,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