From e3a8d46ed7f215a7ad1d61d7e6d3a853e3922361 Mon Sep 17 00:00:00 2001
From: liukangdong <898885815@qq.com>
Date: 星期二, 30 七月 2024 19:13:47 +0800
Subject: [PATCH] Merge branch 'master' of http://139.186.142.91:10010/r/productDev/zbomyoujia

---
 wechat_staff/pages/discover/discover.js |   19 +++++++++++++++++--
 1 files changed, 17 insertions(+), 2 deletions(-)

diff --git a/wechat_staff/pages/discover/discover.js b/wechat_staff/pages/discover/discover.js
index 787305e..662ba28 100644
--- a/wechat_staff/pages/discover/discover.js
+++ b/wechat_staff/pages/discover/discover.js
@@ -20,15 +20,30 @@
   }, 
   
   onShow(){
-    console.log('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