优化启动页

This commit is contained in:
zhouyanli
2026-08-17 15:31:17 +08:00
parent 9d5310e4a7
commit cb885dc1f2
8 changed files with 88 additions and 24 deletions

View File

@@ -96,7 +96,7 @@
<script setup>
import { ref, computed } from 'vue'
import { onLoad } from '@dcloudio/uni-app'
import { onLoad, onReady } from '@dcloudio/uni-app'
import { getLoginPassword } from '../../api/api.js'
import { clearAccountStorage } from '../../api/request.js'
import PrivacyPopup from '@/components/privacy-popup/privacy-popup.vue'
@@ -164,6 +164,13 @@ onLoad(() => {
if (savedRemember) rememberPwd.value = savedRemember
})
onReady(() => {
// 登录页渲染完成后关闭启动屏(登录过但未登录时直接进登录页)
// #ifdef APP-PLUS
plus.navigator.closeSplashscreen()
// #endif
})
// 登录逻辑
const handleLogin = () => {
if (!phoneNumber.value) {