完善设备端体验与微信校验支持

This commit is contained in:
stu2not
2026-07-07 16:58:05 +08:00
parent b4fef6d2e0
commit 937e3023fc
38 changed files with 3377 additions and 51 deletions
+8
View File
@@ -81,6 +81,11 @@ export default function Login() {
}
}
const handleGuestBrowse = () => {
Taro.removeStorageSync('postLoginRedirect')
Taro.reLaunch({ url: '/pages/device/index' })
}
const handleAgreementChange = (event) => {
const values = event.detail.value || []
setAgreementAccepted(values.includes('accepted'))
@@ -161,6 +166,9 @@ export default function Login() {
<Text className='btn-icon'>🌐</Text>
<Text className='btn-text'>{submitting ? '登录中...' : '登录后继续'}</Text>
</Button>
<View className='guest-browse-btn' onClick={handleGuestBrowse}>
<Text className='guest-browse-text'>暂不登录,先浏览</Text>
</View>
</View>
<View className='agreement-panel'>