Compare commits

...

2 Commits

Author SHA1 Message Date
yj fbdc118292 优化 2025-11-10 13:43:26 +08:00
yj 819c899c57 优化 2025-11-10 12:47:34 +08:00
2 changed files with 14 additions and 1 deletions

View File

@ -16,6 +16,19 @@ Page({
code: '' code: ''
}, },
onShow() { 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() wx.hideLoading()
const that = this; const that = this;
onStop() onStop()

View File

@ -5,5 +5,5 @@
"compileHotReLoad": true, "compileHotReLoad": true,
"urlCheck": true "urlCheck": true
}, },
"libVersion": "3.6.5" "libVersion": "3.8.8"
} }