From 88446d271c10f217e316f1eb286b48202f6f13de Mon Sep 17 00:00:00 2001 From: "@zuopngfei" Date: Mon, 27 Oct 2025 18:54:39 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=A2=E9=98=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/contact/index.js | 1 - pages/index/detail.js | 14 ++++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/pages/contact/index.js b/pages/contact/index.js index d46993c..8eda5d7 100644 --- a/pages/contact/index.js +++ b/pages/contact/index.js @@ -35,7 +35,6 @@ Page({ this.setData({ appid: accountInfo.miniProgram.appId, }); - console.log('contact page onLoad, options:', options); // 检查是否已有用户信息 if (wx.getStorageSync('user_info')) { diff --git a/pages/index/detail.js b/pages/index/detail.js index 25185c9..a3ea738 100644 --- a/pages/index/detail.js +++ b/pages/index/detail.js @@ -144,5 +144,19 @@ Page({ danceIndex: nextIndex, currentDance: danceList[nextIndex] }); + }, + handleContact() { + wx.requestSubscribeMessage({ + tmplIds: ['9dCV3z7vRPBGm8iMtSXsD7ZVyUjld46w7HTH9zLnzWw'], + success: (res) => { + wx.navigateTo({ + url: `/pages/contact/index` + }); + }, + fail: (err) => { + console.log(err); + } + }); + } }); \ No newline at end of file