From 4ecaa9fdaae8dd8c76e9e87425061f10b861f435 Mon Sep 17 00:00:00 2001 From: v_guanglwen Date: Tue, 10 Jun 2025 16:45:22 +0800 Subject: [PATCH 1/2] =?UTF-8?q?feat:=20=E5=A2=9E=E5=8A=A0openOfficialAccou?= =?UTF-8?q?ntArticle,openOfficialAccountProfile?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- miniprogram/packageAPI/pages/api/jump/jump.js | 20 +++++++++++++++++++ .../packageAPI/pages/api/jump/jump.wxml | 9 +++++++-- 2 files changed, 27 insertions(+), 2 deletions(-) diff --git a/miniprogram/packageAPI/pages/api/jump/jump.js b/miniprogram/packageAPI/pages/api/jump/jump.js index 3da1fbde..e9560134 100644 --- a/miniprogram/packageAPI/pages/api/jump/jump.js +++ b/miniprogram/packageAPI/pages/api/jump/jump.js @@ -55,6 +55,26 @@ Page({ } }) }, + // 打开公众号主页 + openofficialaccountprofile() { + wx.openOfficialAccountProfile({ + username: 'gh_56fc3b00cc4f', + success: (res) => { + }, + fail: (res) => { + } + }) + }, + // 打开公众号文章 + openofficialaccountarticle() { + wx.openOfficialAccountArticle({ + url: 'https://mp.weixin.qq.com/s/vTt8sZ_tTkTEVYgcydKqew', // 此处填写公众号文章连接 + success: (res) => { + }, + fail: (res) => { + } + }) + }, onUnload() { if (wx.offThemeChange) { wx.offThemeChange() diff --git a/miniprogram/packageAPI/pages/api/jump/jump.wxml b/miniprogram/packageAPI/pages/api/jump/jump.wxml index ea65f72a..466e9ea0 100644 --- a/miniprogram/packageAPI/pages/api/jump/jump.wxml +++ b/miniprogram/packageAPI/pages/api/jump/jump.wxml @@ -1,8 +1,7 @@ - -