From 816d84a76c1a2f16f88dba70664397961f55caa1 Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期五, 26 七月 2024 10:07:56 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

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

diff --git a/wechat_staff/pages/kefu/fond.js b/wechat_staff/pages/kefu/fond.js
index bedb67d..814ef7e 100644
--- a/wechat_staff/pages/kefu/fond.js
+++ b/wechat_staff/pages/kefu/fond.js
@@ -24,6 +24,7 @@
       item.checked = false
     })
     wx.setStorageSync('enjoyList', enjoyList)
+    console.log(this.data.enjoyList)
     this.initData()
   },
 
@@ -65,9 +66,27 @@
       }
     })
     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',
     })
@@ -161,6 +180,7 @@
             }
           })
           wx.setStorageSync('enjoyList', enjoyListTemp)
+          
           that.initData()
         }
       }
@@ -173,6 +193,7 @@
       item.checked = !item.checked
     })
     wx.setStorageSync('enjoyList', enjoyList)
+    
     this.initData()
   },
   openShare() {

--
Gitblit v1.9.3