From 39613118a5bae23c45498c4f5a939e83595f99f5 Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期二, 16 七月 2024 16:05:00 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

---
 wechat_jiaxuan/pages/index/index.js |   51 ++++++++++++++++++++++++++++++++++++++++++++++++---
 1 files changed, 48 insertions(+), 3 deletions(-)

diff --git a/wechat_jiaxuan/pages/index/index.js b/wechat_jiaxuan/pages/index/index.js
index c76e354..394b4e4 100644
--- a/wechat_jiaxuan/pages/index/index.js
+++ b/wechat_jiaxuan/pages/index/index.js
@@ -1,4 +1,4 @@
-// pages/index/index.js
+import { getDictData } from '../../api/index'
 Page({
 
   /**
@@ -24,11 +24,15 @@
       interval: 3000,
       duration: 500
     },
+    HOME_CLASS_A: '',
+    HOME_CLASS_B: '',
+    HOME_CLASS_B2: '',
+    HOME_CLASS_C: '',
   },
 
   toSearch() {},
   onLoad(options) {
-
+    this.initData()
   },
   changePath(e) {
     let index = e.currentTarget.dataset.type
@@ -40,7 +44,7 @@
           success: function (res) {
             // 閫氳繃eventChannel鍚戣鎵撳紑椤甸潰浼犻�佹暟鎹�
             res.eventChannel.emit('acceptDataFromOpenerPage', { link: 'https://m.zbom.com/mobile/styleTest.html?type=1' })
-            saveBehavior({ type: 1 })
+            // saveBehavior({ type: 1 })
           }
         })
         break;
@@ -69,6 +73,47 @@
         break;
     }
   },
+  initData() {
+    getDictData({
+      code: 'WEIXIN_DEFAULT_IMGS',
+      label: 'HOME_CLASS_A'
+    }).then(res => {
+      this.setData({ HOME_CLASS_A: res.data.code })
+    })
+    getDictData({
+      code: 'WEIXIN_DEFAULT_IMGS',
+      label: 'HOME_CLASS_B'
+    }).then(res => {
+      this.setData({ HOME_CLASS_B: res.data.code })
+    })
+    getDictData({
+      code: 'WEIXIN_DEFAULT_IMGS',
+      label: 'HOME_CLASS_B2'
+    }).then(res => {
+      this.setData({ HOME_CLASS_B2: res.data.code })
+    })
+    getDictData({
+      code: 'WEIXIN_DEFAULT_IMGS',
+      label: 'HOME_CLASS_C'
+    }).then(res => {
+      this.setData({ HOME_CLASS_C: res.data.code })
+    })
+  },
+  jumpProVideo() {
+    wx.navigateTo({
+      url: '/pages/productVideo/index',
+    })
+  },
+  jumpProKefu() {
+    wx.navigateTo({
+      url: '/pages/kefu/index',
+    })
+  },
+  jumpProConsult() {
+    wx.switchTab({
+      url: '/pages/consult/consult',
+    })
+  },
   /**
    * 鐢熷懡鍛ㄦ湡鍑芥暟--鐩戝惉椤甸潰鍒濇娓叉煋瀹屾垚
    */

--
Gitblit v1.9.3