From 2a320156f5016ad7d7bc9d00e3b938c7dca08f12 Mon Sep 17 00:00:00 2001 From: yj <1336058017@qq.com> Date: Fri, 29 Nov 2024 17:20:21 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=AB=E7=A0=81=E7=9B=B4=E6=8E=A5=E8=BF=9B?= =?UTF-8?q?=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/form/index.ts | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/pages/form/index.ts b/pages/form/index.ts index fff013c..77d4009 100644 --- a/pages/form/index.ts +++ b/pages/form/index.ts @@ -45,7 +45,18 @@ Page({ }, }) }, - onLoad() { + onLoad(option) { + if (option.scene) { + const scene = decodeURIComponent(option.scene) + const room = scene.split('r=')[1]; + this.setData({ + meetingForm: { + roomNum: room, + }, + }, () => { + this.joinMeeting() + }) + } wx.authorize({ scope: 'scope.record', success: () => {