From f9d4b09377c5471e1202be2fef2c89de27b6654d Mon Sep 17 00:00:00 2001
From: yiming <m13691596795@163.com>
Date: 星期三, 13 三月 2024 19:50:42 +0800
Subject: [PATCH] feat(撒): 的

---
 pages/aboutUs/index.js |   59 ++++++++++++++++++++++++++---------------------------------
 1 files changed, 26 insertions(+), 33 deletions(-)

diff --git a/pages/aboutUs/index.js b/pages/aboutUs/index.js
index 135af2c..b5e5956 100644
--- a/pages/aboutUs/index.js
+++ b/pages/aboutUs/index.js
@@ -15,6 +15,9 @@
     interval: 5000,//杞挱鍥惧弬鏁�
     navigation: { type: 'dots' },//杞挱鍥惧弬鏁�
     bannerList: [], //杞挱鍥惧垪琛�
+    navBarHeight: '',
+    barHeight: '',
+    types: '',
   },
 
   /**
@@ -22,36 +25,22 @@
    */
   onLoad(options) {
 
-    this.getBanner()
+
+    const systInfo = wx.getSystemInfoSync();
+    const menu = wx.getMenuButtonBoundingClientRect(); // 鑳跺泭淇℃伅
+    const navBarHeight = (menu.top - systInfo.statusBarHeight) * 2 + menu.height; // 瀵艰埅鏍忛珮搴�
+
+    this.setData({
+      navBarHeight: navBarHeight,
+      barHeight: systInfo.statusBarHeight,
+      types: options.types
+    })
+
+    console.log(this.data.types);
+
+
+    // this.getBanner()
     this.getAboutText()
-
-
-    // drawQrcode({
-
-    //   width: 200, // 蹇呴』锛屼簩缁寸爜瀹藉害锛屼笌canvas鐨剋idth淇濇寔涓�鑷�
-
-    //   height: 200, // 蹇呴』锛屼簩缁寸爜楂樺害锛屼笌canvas鐨刪eight淇濇寔涓�鑷�
-
-    //   canvasId: 'myQrcode',
-
-    //   background: '#ffffff', //	闈炲繀椤伙紝浜岀淮鐮佽儗鏅鑹诧紝榛樿鍊肩櫧鑹�
-
-    //   foreground: '#000', // 闈炲繀椤伙紝浜岀淮鐮佸墠鏅壊锛岄粯璁ゅ�奸粦鑹� 	'#000000'
-
-    //   // ctx: wx.createCanvasContext('myQrcode'), // 闈炲繀椤伙紝缁樺浘涓婁笅鏂囷紝鍙�氳繃 wx.createCanvasContext('canvasId') 鑾峰彇锛寁1.0.0+鐗堟湰鏀寔
-
-    //   text: '13216549865',  // 蹇呴』锛屼簩缁寸爜鍐呭
-    //   // v1.0.0+鐗堟湰鏀寔鍦ㄤ簩缁寸爜涓婄粯鍒跺浘鐗�
-
-    //   image: {
-    //     // imageResource: '../../images/icon.png', // 鎸囧畾浜岀淮鐮佸皬鍥炬爣
-    //     dx: 70,
-    //     dy: 70,
-    //     dWidth: 60,
-    //     dHeight: 60
-    //   }
-    // })
-
   },
 
   /**
@@ -102,17 +91,15 @@
   onShareAppMessage() {
 
   },
+  //杞挱鍥�
   getBanner() {
-
     app.MG.resource.getItem({
       path: 'jsek_banner\\jsek_aboutUsBanner',
       paging: { start: 0, size: 9 },
-
       fields: {
         jsek_link: []
       }
     }).then(res => {
-
       this.setData({
         bannerList: res.datas[0].icon,
         swiperList: res.datas[0].icon
@@ -120,9 +107,12 @@
       console.log(this.data.bannerList, 789);
     })
   },
+
+  //鏂囧瓧  jsek_aboutUs 鍏充簬鎴戜滑    
+  //jsek_contactUs  鑱旂郴鎴戜滑
   getAboutText() {
     app.MG.resource.getItem({
-      path: 'jsek_aboutUs',
+      path: this.data.types,
       fields: {
         content: []
       },
@@ -138,5 +128,8 @@
 
 
     })
+  },
+  goBack() {
+    wx.navigateBack()
   }
 })
\ No newline at end of file

--
Gitblit v1.9.1