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: () => {