From d41f1f707dc643b726a42b9d2a63b186dd9e4f28 Mon Sep 17 00:00:00 2001
From: liukangdong <898885815@qq.com>
Date: 星期二, 06 八月 2024 16:12:38 +0800
Subject: [PATCH] ll
---
wechat_jiaxuan/pages/discover/discover.js | 21 ++++++++++++---------
1 files changed, 12 insertions(+), 9 deletions(-)
diff --git a/wechat_jiaxuan/pages/discover/discover.js b/wechat_jiaxuan/pages/discover/discover.js
index 2d78164..f219156 100644
--- a/wechat_jiaxuan/pages/discover/discover.js
+++ b/wechat_jiaxuan/pages/discover/discover.js
@@ -6,12 +6,22 @@
*/
data: {
menuButtonInfo: {},
- catalogCode: "whole_case"
+ catalogCode: "product_intro",
+ activeCate: '',
+ height: 0,
+ top: 0,
+ isLoading:false
},
onLoad(options) {
let menuButtonInfo = wx.getMenuButtonBoundingClientRect();
this.setData({menuButtonInfo})
- },
+ },
+ onShow() {
+ var app = getApp()
+ if (app.globalData.catalogCode) {
+ this.setData({ catalogCode: 'product_intro' })
+ }
+ },
tabsClick(e) {
const catalogCode = e.currentTarget.dataset.code
this.setData({catalogCode})
@@ -20,13 +30,6 @@
* 鐢熷懡鍛ㄦ湡鍑芥暟--鐩戝惉椤甸潰鍒濇娓叉煋瀹屾垚
*/
onReady() {
-
- },
-
- /**
- * 鐢熷懡鍛ㄦ湡鍑芥暟--鐩戝惉椤甸潰鏄剧ず
- */
- onShow() {
},
--
Gitblit v1.9.3