From ecabd20b3dfbd956dad14ffb6ba3dc2efcfdd7c1 Mon Sep 17 00:00:00 2001
From: yiming <m13691596795@163.com>
Date: 星期一, 25 三月 2024 16:23:32 +0800
Subject: [PATCH] 微信支付

---
 pages/home/home.js |   20 +++++++++++++++-----
 1 files changed, 15 insertions(+), 5 deletions(-)

diff --git a/pages/home/home.js b/pages/home/home.js
index c8ad668..b2ef42e 100644
--- a/pages/home/home.js
+++ b/pages/home/home.js
@@ -4,6 +4,8 @@
 const app = getApp()
 Page({
   data: {
+    barHeight: '',
+    navBarHeight: '',
     searchVal: '',
     isWhite: false,
     backUrl: null,
@@ -36,6 +38,13 @@
   },
 
   onLoad(options) {
+    const systInfo = wx.getSystemInfoSync();
+    const menu = wx.getMenuButtonBoundingClientRect(); // 鑳跺泭淇℃伅
+    const navBarHeight = (menu.top - systInfo.statusBarHeight) * 2 + menu.height; // 瀵艰埅鏍忛珮搴�
+    this.setData({
+      barHeight: systInfo.statusBarHeight,
+      navBarHeight: navBarHeight,
+    });
     if (options.backUrl) {
       let backUrl = JSON.parse(decodeURIComponent(options.backUrl));
       if (backUrl.options) {
@@ -149,7 +158,7 @@
   getBannerList() {
     const list = []
     app.MG.resource.getItem({
-      path: 'jsek_banner\\jsek_homeBanner',
+      path: 'jsek_banner\\jsek_homeBannerApplet',
       fields: { jsek_link: [] },
       paging: { start: 0, size: 9 }
     }).then(res => {
@@ -424,7 +433,7 @@
   goDetail(e) {
     const { book } = e.currentTarget.dataset;
     wx.navigateTo({
-      url: `/pages/bookServices/detail/index?id=${book.id}&name=${book.name}`,
+      url: `/packageBookService/pages/bookServices/detail/index?id=${book.id}&name=${book.name}`,
     });
   },
   getShoppingCartList() {
@@ -496,7 +505,7 @@
     console.log(e, 1)
     if (type == "tushufuwu") {
       wx.navigateTo({
-        url: '/pages/bookServices/list/index'
+        url: '/packageBookService/pages/bookServices/list/index'
       })
     } else {
       wx.showToast({
@@ -511,7 +520,7 @@
 
   onPageScroll(e) {
     this.setData({
-      isWhite: e.scrollTop > 50 ? true : false
+      isWhite: e.scrollTop > 20 ? true : false
     })
 
   },
@@ -524,6 +533,7 @@
     })
 
 
-  }
+  },
+
 
 });

--
Gitblit v1.9.1