From 8cbc573786e2ca55737a3ea5bc6399a8e2f0ba8b Mon Sep 17 00:00:00 2001 From: yumoqing Date: Tue, 19 May 2026 01:21:51 +0800 Subject: [PATCH] Improve miniprogram phase1 event and request handling --- app.js | 1 + components/brick/brick.wxml | 26 +++++++++++++------------- pages/bricks/bricks.js | 9 +++++++++ utils/http.js | 14 ++++++++++++-- utils/parser.js | 11 ++++++++++- utils/renderer.js | 10 +++++++++- 6 files changed, 54 insertions(+), 17 deletions(-) diff --git a/app.js b/app.js index 6985418..153d07c 100644 --- a/app.js +++ b/app.js @@ -30,6 +30,7 @@ App({ }, // entire_url: 拼接 baseUrl entireUrl(path) { + if (/^https?:\/\//.test(path)) return path const base = this.globalData.baseUrl || '' return base.replace(/\/$/, '') + '/' + path.replace(/^\//, '') } diff --git a/components/brick/brick.wxml b/components/brick/brick.wxml index 727c942..42f72da 100644 --- a/components/brick/brick.wxml +++ b/components/brick/brick.wxml @@ -5,31 +5,31 @@