更新密码找回uniapp

This commit is contained in:
hero920103 committed 2026-11-16 17:22:50 +08:00
1 parent 7f9a66da0f
commit 3fdda89833
1304 files changed
+3503 -26132

No files matched your search

-12
View File
@@ -1,6 +1,5 @@
<template>
<view class="page">
<!-- 顶部子系统标识条 -->
<view v-if="sub" class="hero" :class="sub.tint" :style="headPad">
<view class="hero-main">
<view class="hero-icon">
@@ -13,11 +12,6 @@
</view>
</view>
<!--
内容区:三页签共用底部 tabbar,H5 / APK / 微信小程序结构完全一致。
各自独立 scroll-view(保留各自滚动位置);首页进入即挂载,
其余页签首次切换才挂载,之后用 v-show 保留状态。
-->
<view v-if="sub" class="content">
<scroll-view v-if="visited.home" v-show="activeTab === 'home'" class="pane" scroll-y>
<SubHome :slug="slug" embedded @switch-tab="switchByIndex" @back="goBackNav" />
@@ -47,12 +41,10 @@ import SubHome from '@/components/sub/SubHome.vue'
import SubFunctions from '@/components/sub/SubFunctions.vue'
import SubMine from '@/components/sub/SubMine.vue'
// 页签下标顺序,与 Sub 组件 @switch-tab 抛出的数字一一对应
const TAB_ORDER = ['home', 'functions', 'mine']
const tabs = [
{ name: 'home', text: '首页', icon: 'house' },
{ name: 'functions', text: '功能', icon: 'table-cells' },
// 末位为「回平台」:点击由 AppTabbar 统一 reLaunch 到 /pages/nav/nav
{ name: 'mine', text: '回平台', icon: 'arrow-left' }
]
@@ -94,12 +86,10 @@ function goBackNav() {
overflow: hidden;
}
/* ============ 顶部标识条 ============ */
.hero {
flex-shrink: 0;
position: relative;
z-index: 0;
// H5 端 --status-bar-height 为 0,此时仅保留 32rpx 内边距
padding: calc(var(--status-bar-height, 44px) + 32rpx) $page-padding-x 72rpx;
}
@@ -107,7 +97,6 @@ function goBackNav() {
display: flex;
align-items: center;
gap: 22rpx;
/* 取消顶部回平台按钮后,补偿其占位;headPad 内联 paddingTop 继续避让胶囊 */
margin-top: 44rpx;
}
@@ -144,7 +133,6 @@ function goBackNav() {
color: rgba(255, 255, 255, 0.82);
}
/* ============ 内容区:上移压住渐变条,圆角衔接 ============ */
.content {
flex: 1;
min-height: 0;