修复已知bug

This commit is contained in:
zhouyanli
2026-07-21 09:41:54 +08:00
parent 7b1864f439
commit e68579a5d3
15 changed files with 1143 additions and 839 deletions

View File

@@ -1,5 +1,5 @@
<template>
<view class="guide-page">
<view class="guide-page" v-if="showContent">
<view class="status-bar"></view>
<!-- 引导内容滑动容器 -->
<swiper
@@ -73,12 +73,26 @@
<script setup>
import { ref } from 'vue';
// 守卫:已登录或已看过引导页的用户不展示引导页,直接跳转
const hasShowGuide = uni.getStorageSync('hasShowGuide')
const tokenSave = uni.getStorageSync('token')
if (hasShowGuide || tokenSave) {
if (tokenSave) {
uni.reLaunch({ url: '/pages/index/index' })
} else if (hasShowGuide) {
uni.reLaunch({ url: '/pageSubPack/loginSub/pwd-login' })
}
}
// ========== 响应式数据 ==========
// 当前引导步骤0/1/2
const currentStep = ref(0);
const mode = ref("default")
// 防重复跳转锁
const isNavigating = ref(false)
// 控制是否展示引导内容(已登录用户不展示,避免闪烁)
const showContent = ref(!hasShowGuide && !tokenSave)
// ========== 方法 ==========
// 滑动swiper切换步骤