完善页面细节

This commit is contained in:
2026-02-25 11:39:54 +08:00
parent 92d6e8144d
commit 8ec05b331b
131 changed files with 5273 additions and 585 deletions

View File

@@ -1,22 +1,23 @@
<template>
<view class="admin-page">
<view class="admin-sections">
<!-- 提示栏 -->
<view class="alert-info">
<text class="alert-text">温馨提示:检查更新需要授权码,请先授权后再检查更新!</text>
</view>
<!-- 选项卡 -->
<view class="admin-tabs">
<view
v-for="tab in tabs"
:key="tab.value"
:class="['tab-item', activeTab === tab.value ? 'active' : '']"
@click="activeTab = tab.value"
>
<text class="tab-label">{{ tab.label }}</text>
<AdminLayout current-page="maintain_security_upgrade">
<view class="admin-page">
<view class="admin-sections">
<!-- 提示栏 -->
<view class="alert-info">
<text class="alert-text">温馨提示:检查更新需要授权码,请先授权后再检查更新!</text>
</view>
<!-- 选项卡 -->
<view class="admin-tabs">
<view
v-for="tab in tabs"
:key="tab.value"
:class="['tab-item', activeTab === tab.value ? 'active' : '']"
@click="activeTab = tab.value"
>
<text class="tab-label">{{ tab.label }}</text>
</view>
</view>
</view>
<!-- 升级内容 -->
<view v-if="activeTab === 'upgrade'" class="admin-card">
@@ -55,13 +56,14 @@
</view>
</view>
</view>
</view>
</view>
</AdminLayout>
</template>
<script setup lang="uts">
import { ref } from 'vue'
import AdminLayout from '@/layouts/admin/AdminLayout.uvue'
const activeTab = ref('upgrade')
const tabs = [
@@ -87,7 +89,9 @@ function checkUpdates() {
<style scoped lang="scss">
.admin-page {
/* 使用 Layout 的背景和内边距 */
min-height: 100vh;
padding: 0;
background-color: transparent;
min-height: auto;
}
.alert-info {

View File

@@ -1,15 +1,16 @@
<template>
<view class="admin-page">
<view class="admin-sections">
<view class="admin-grid-2">
<!-- 清除缓存 -->
<view class="admin-card cache-card">
<view class="cache-header">
<text class="cache-title">清除缓存</text>
<text class="cache-desc">清除系统的所有缓存</text>
<AdminLayout currentPage="maintain-security-refresh-cache">
<view class="admin-page">
<view class="admin-sections">
<view class="admin-grid-2">
<!-- 清除缓存 -->
<view class="admin-card cache-card">
<view class="cache-header">
<text class="cache-title">清除缓存</text>
<text class="cache-desc">清除系统的所有缓存</text>
</view>
<button class="btn primary full" @click="onClearCache">立即清除</button>
</view>
<button class="btn primary full" @click="onClearCache">立即清除</button>
</view>
<!-- 清除日志 -->
<view class="admin-card cache-card">
@@ -22,9 +23,12 @@
</view>
</view>
</view>
</AdminLayout>
</template>
<script setup lang="uts">
import AdminLayout from '@/layouts/admin/AdminLayout.uvue'
function onClearCache() {
uni.showModal({
title: '提示',
@@ -53,7 +57,7 @@ function onClearLog() {
<style scoped lang="scss">
.admin-page {
/* 使用 Layout 的背景和内边距 */
min-height: 100vh;
min-height: auto;
}
.admin-grid-2 {