From 0e8cc18ee5d35479d30408851c21e5f4c0fb487a Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期二, 30 七月 2024 17:00:37 +0800
Subject: [PATCH] 提交
---
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