From 6a13c23b19167c2038b337e6f65f26a779204e74 Mon Sep 17 00:00:00 2001 From: "DESKTOP-RQ919RC\\Pc" <1300399510@qq.com> Date: Mon, 10 Mar 2025 14:25:40 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A6=96=E9=A1=B5=E8=BD=AE=E6=92=AD=E5=9B=BE?= =?UTF-8?q?=E5=8E=BB=E6=8E=89=E9=9A=90=E8=97=8F=E6=97=B6=E4=B8=8D=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E9=97=AE=E9=A2=98=EF=BC=8C=E5=BC=80=E5=B1=8F=E5=B9=BF?= =?UTF-8?q?=E5=91=8A=E8=B7=B3=E8=BD=AC=E4=BA=86=E4=B8=80=E4=B8=AA=E5=B0=8F?= =?UTF-8?q?=E7=A8=8B=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- component/open-ad/open-ad.js | 8 ++++++++ pages/projectDetails/projectDetails.js | 1 + pages/projectLibrary/projectLibrary.wxml | 5 +++-- 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/component/open-ad/open-ad.js b/component/open-ad/open-ad.js index 4bfa2b6..e16983c 100644 --- a/component/open-ad/open-ad.js +++ b/component/open-ad/open-ad.js @@ -73,6 +73,14 @@ Component({ skip() { let url = this.data.openDate['url'] + let appid = this.data.openDate['appid'] || '' + if (appid) { + wx.navigateToMiniProgram({ + appId: appid, + path: url, + }) + return + } if (url.indexOf('http') == 0) url = `/pages/webview/webview?url=${url}` else url = url wx.navigateTo({ diff --git a/pages/projectDetails/projectDetails.js b/pages/projectDetails/projectDetails.js index f4bca86..78ac520 100644 --- a/pages/projectDetails/projectDetails.js +++ b/pages/projectDetails/projectDetails.js @@ -350,6 +350,7 @@ Page({ getIndexHeight() { const query = wx.createSelectorQuery(); query.select('.head-box').boundingClientRect(rect => { + if (!rect) return this.setData({ headHeight: rect.height, }) diff --git a/pages/projectLibrary/projectLibrary.wxml b/pages/projectLibrary/projectLibrary.wxml index dc254fc..fa75306 100644 --- a/pages/projectLibrary/projectLibrary.wxml +++ b/pages/projectLibrary/projectLibrary.wxml @@ -3,12 +3,13 @@ 港校项目库 - + + - +