feat archive

This commit is contained in:
Ironsp
2026-09-02 09:46:47 +08:00
parent 61845e3662
commit 10b5624dac
7 changed files with 40 additions and 12 deletions

View File

@@ -25,7 +25,7 @@ export default defineUniPages({
selectedColor: '@tabSelectedColor',
list: [
{
pagePath: 'pages/home/index',
pagePath: 'pages/Ahome/index',
text: '首页',
iconPath: 'static/home.png',
selectedIconPath: 'static/home1.png',

8
src/components.d.ts vendored
View File

@@ -7,26 +7,18 @@ export {}
declare module 'vue' {
export interface GlobalComponents {
AppFooter: typeof import('./components/AppFooter.vue')['default']
AppLogos: typeof import('./components/AppLogos.vue')['default']
BackNav: typeof import('./components/backNav.vue')['default']
BluetoothConnect: typeof import('./components/bluetooth/connect.vue')['default']
BluetoothDevice: typeof import('./components/bluetooth/device.vue')['default']
Device: typeof import('./components/deviceCard.vue')['default']
DeviceCard: typeof import('./components/deviceCard.vue')['default']
HiCounter: typeof import('./components/HiCounter.vue')['default']
HomeConstruction: typeof import('./components/home/construction.vue')['default']
HomeHomeNav: typeof import('./components/home/homeNav.vue')['default']
HomeList: typeof import('./components/home/list.vue')['default']
HomeOverview: typeof import('./components/home/overview.vue')['default']
HomeProgress: typeof import('./components/home/progress.vue')['default']
HomeProjectList: typeof import('./components/home/projectList.vue')['default']
HomeProjectList_list: typeof import('./components/home/projectList_list.vue')['default']
HomeStatus: typeof import('./components/home/status.vue')['default']
HomeWarning: typeof import('./components/home/warning.vue')['default']
HomeWarning_list: typeof import('./components/home/warning_list.vue')['default']
InputEntry: typeof import('./components/InputEntry.vue')['default']
MessageList: typeof import('./components/message/list.vue')['default']
MessageNav: typeof import('./components/message/nav.vue')['default']
}
}

View File

@@ -10,6 +10,11 @@ function onIconClick(name: string) {
url: '/pages/bluetooth/index',
})
}
else if (name === '设置') {
uni.navigateTo({
url: '/pages/settings/index',
})
}
else {
console.log(`点击了${name}图标`)
}

View File

@@ -13,7 +13,7 @@
徐工XS65H #01
</text>
<text class="sub">
G1XG2584-B01
设备ID:G1XG2584-B01
</text>
</view>
<view class="status-tag">

View File

@@ -0,0 +1,30 @@
<script setup lang="ts">
definePage({
layout: false,
style: {
navigationStyle: 'custom',
},
})
</script>
<template>
<view class="page">
<back-nav title="设置" />
<view class="content">
<!-- 设置内容区域 -->
</view>
</view>
</template>
<style scoped>
.page {
min-height: 100vh;
background-color: #EAEFF9;
}
.content {
padding: 16px;
padding-top: 100px;
}
</style>

5
src/uni-pages.d.ts vendored
View File

@@ -4,10 +4,11 @@
// Generated by vite-plugin-uni-pages
type _LocationUrl =
"/pages/Ahome/index" |
"/pages/bluetooth/index" |
"/pages/home/index" |
"/pages/message/index" |
"/pages/report/index" |
"/pages/settings/index" |
"/pages/work/index";
interface NavigateToOptions {
@@ -16,7 +17,7 @@ interface NavigateToOptions {
interface RedirectToOptions extends NavigateToOptions {}
interface SwitchTabOptions {
url: "/pages/home/index" | "/pages/work/index" | "/pages/report/index"
url: "/pages/Ahome/index" | "/pages/work/index" | "/pages/report/index"
}
type ReLaunchOptions = NavigateToOptions | SwitchTabOptions;