From fbdc1182920fa33f78eb4c03e68e45d959ef94be Mon Sep 17 00:00:00 2001 From: yj <1336058017@qq.com> Date: Mon, 10 Nov 2025 13:43:26 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/form/index.ts | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/pages/form/index.ts b/pages/form/index.ts index 5d7ae3d..ca7ce69 100644 --- a/pages/form/index.ts +++ b/pages/form/index.ts @@ -16,6 +16,19 @@ Page({ code: '' }, onShow() { + const deviceInfo = wx.getDeviceInfo() + if (deviceInfo && (deviceInfo.platform === 'windows' || deviceInfo.platform === 'mac')) { + wx.showModal({ + title: '提示', + content: '当前仅支持移动端使用,PC端无法使用。', + showCancel: false, + confirmText: '我知道了', + success: function () { + wx.exitMiniProgram && wx.exitMiniProgram(); + } + }); + return + } wx.hideLoading() const that = this; onStop() @@ -193,19 +206,6 @@ Page({ }) }, joinMeeting() { - const deviceInfo = wx.getDeviceInfo() - if(deviceInfo && (deviceInfo.platform === 'windows' || deviceInfo.platform === 'mac')){ - wx.showModal({ - title: '提示', - content: '当前仅支持移动端使用,PC端无法使用。', - showCancel: false, - confirmText: '我知道了', - success: function () { - - } - }); - return - } this.closeDialog() if (this.data.isJoin) { return