From 2c08a98f7e85ec7c9376f27a7933e75e44d672f7 Mon Sep 17 00:00:00 2001
From: liukangdong <898885815@qq.com>
Date: 星期二, 27 八月 2024 15:52:59 +0800
Subject: [PATCH] ll

---
 wechat_staff/pages/discover/discover.js |   24 +++++++++++++++++++++---
 1 files changed, 21 insertions(+), 3 deletions(-)

diff --git a/wechat_staff/pages/discover/discover.js b/wechat_staff/pages/discover/discover.js
index 64a68ad..662ba28 100644
--- a/wechat_staff/pages/discover/discover.js
+++ b/wechat_staff/pages/discover/discover.js
@@ -1,4 +1,4 @@
-import { getCataLogTagList, getCatalogList } from '../../api/index'
+import { getCataLogTagList, getCatalogList,refreshEnjoy } from '../../api/index'
 const { HYEventBus } = require('hy-event-store')
 const eventBus = new HYEventBus()
 Page({
@@ -18,14 +18,32 @@
     let menuButtonInfo = wx.getMenuButtonBoundingClientRect();
     this.setData({menuButtonInfo})
   }, 
-  onShow() {
+  
+  onShow(){
+      
+    refreshEnjoy(this) 
+    this.refreshDatacount()
     let discoverKey = wx.getStorageSync('discoverKey') || ''
     if(discoverKey){
       this.setData({ catalogCode: discoverKey })
       setTimeout(() => {
         wx.setStorageSync('discoverKey', '')
       }, 500)
-    }
+    } 
+  },
+  refreshDatacount(){  
+    var child =null;
+    if(this.data.catalogCode == 'product_intro'){
+      child = this.selectComponent(".disProduct")
+    }else if(this.data.catalogCode == 'whole_case'){
+      child = this.selectComponent(".disCase")
+    }else if(this.data.catalogCode == 'real_case'){
+      child = this.selectComponent(".disRealpic")
+    }   
+    // 璋冪敤瀛愮粍浠朵腑瀹氫箟鐨勬柟娉� 
+    if(child){ 
+      child.refreshCount();
+    } 
   },
   tabsClick(e) {
     const catalogCode = e.currentTarget.dataset.code

--
Gitblit v1.9.3