From 53f95e9936dda1090dcf3870f78427896d28a94d Mon Sep 17 00:00:00 2001
From: liukangdong <898885815@qq.com>
Date: 星期四, 25 七月 2024 15:24:51 +0800
Subject: [PATCH] Merge branch 'master' of http://139.186.142.91:10010/r/productDev/zbomyoujia

---
 wechat_staff/pages/kefu/fond.js |   17 +++++++++++++++++
 1 files changed, 17 insertions(+), 0 deletions(-)

diff --git a/wechat_staff/pages/kefu/fond.js b/wechat_staff/pages/kefu/fond.js
index bedb67d..789e2eb 100644
--- a/wechat_staff/pages/kefu/fond.js
+++ b/wechat_staff/pages/kefu/fond.js
@@ -67,7 +67,24 @@
     wx.setStorageSync('enjoyList', enjoyList)
     this.initData()
   },
+  itemClick(e) {
+    let map = [
+      '/pages/detailDis/product',
+      '/pages/detailDis/case',
+      '/pages/detailDis/realpic',
+      '/pages/consult/detail',
+    ]
+    const { id, type } = e.currentTarget.dataset
+    wx.navigateTo({
+      url: map[type] + '?id=' + id,
+    })
+  },
   bind() {
+    const enjoyList = wx.getStorageSync('enjoyList') || []
+    const temp = enjoyList.filter(i => i.checked)
+    if(temp.length == 0) return wx.showToast({
+      title: '璇峰厛閫夋嫨瑕佸叧鑱旂殑鍟嗗搧',icon:'none'
+    })
     wx.navigateTo({
       url: '/pages/kefu/select',
     })

--
Gitblit v1.9.3