feat archive
This commit is contained in:
@@ -25,7 +25,7 @@ export default defineUniPages({
|
|||||||
selectedColor: '@tabSelectedColor',
|
selectedColor: '@tabSelectedColor',
|
||||||
list: [
|
list: [
|
||||||
{
|
{
|
||||||
pagePath: 'pages/home/index',
|
pagePath: 'pages/Ahome/index',
|
||||||
text: '首页',
|
text: '首页',
|
||||||
iconPath: 'static/home.png',
|
iconPath: 'static/home.png',
|
||||||
selectedIconPath: 'static/home1.png',
|
selectedIconPath: 'static/home1.png',
|
||||||
|
|||||||
8
src/components.d.ts
vendored
8
src/components.d.ts
vendored
@@ -7,26 +7,18 @@ export {}
|
|||||||
|
|
||||||
declare module 'vue' {
|
declare module 'vue' {
|
||||||
export interface GlobalComponents {
|
export interface GlobalComponents {
|
||||||
AppFooter: typeof import('./components/AppFooter.vue')['default']
|
|
||||||
AppLogos: typeof import('./components/AppLogos.vue')['default']
|
|
||||||
BackNav: typeof import('./components/backNav.vue')['default']
|
BackNav: typeof import('./components/backNav.vue')['default']
|
||||||
BluetoothConnect: typeof import('./components/bluetooth/connect.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']
|
DeviceCard: typeof import('./components/deviceCard.vue')['default']
|
||||||
HiCounter: typeof import('./components/HiCounter.vue')['default']
|
|
||||||
HomeConstruction: typeof import('./components/home/construction.vue')['default']
|
HomeConstruction: typeof import('./components/home/construction.vue')['default']
|
||||||
HomeHomeNav: typeof import('./components/home/homeNav.vue')['default']
|
HomeHomeNav: typeof import('./components/home/homeNav.vue')['default']
|
||||||
HomeList: typeof import('./components/home/list.vue')['default']
|
HomeList: typeof import('./components/home/list.vue')['default']
|
||||||
HomeOverview: typeof import('./components/home/overview.vue')['default']
|
HomeOverview: typeof import('./components/home/overview.vue')['default']
|
||||||
HomeProgress: typeof import('./components/home/progress.vue')['default']
|
HomeProgress: typeof import('./components/home/progress.vue')['default']
|
||||||
HomeProjectList: typeof import('./components/home/projectList.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']
|
HomeStatus: typeof import('./components/home/status.vue')['default']
|
||||||
HomeWarning: typeof import('./components/home/warning.vue')['default']
|
HomeWarning: typeof import('./components/home/warning.vue')['default']
|
||||||
HomeWarning_list: typeof import('./components/home/warning_list.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']
|
MessageList: typeof import('./components/message/list.vue')['default']
|
||||||
MessageNav: typeof import('./components/message/nav.vue')['default']
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -10,6 +10,11 @@ function onIconClick(name: string) {
|
|||||||
url: '/pages/bluetooth/index',
|
url: '/pages/bluetooth/index',
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
else if (name === '设置') {
|
||||||
|
uni.navigateTo({
|
||||||
|
url: '/pages/settings/index',
|
||||||
|
})
|
||||||
|
}
|
||||||
else {
|
else {
|
||||||
console.log(`点击了${name}图标`)
|
console.log(`点击了${name}图标`)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
徐工XS65H #01
|
徐工XS65H #01
|
||||||
</text>
|
</text>
|
||||||
<text class="sub">
|
<text class="sub">
|
||||||
G1XG2584-B01
|
设备ID:G1XG2584-B01
|
||||||
</text>
|
</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="status-tag">
|
<view class="status-tag">
|
||||||
|
|||||||
30
src/pages/settings/index.vue
Normal file
30
src/pages/settings/index.vue
Normal 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
5
src/uni-pages.d.ts
vendored
@@ -4,10 +4,11 @@
|
|||||||
// Generated by vite-plugin-uni-pages
|
// Generated by vite-plugin-uni-pages
|
||||||
|
|
||||||
type _LocationUrl =
|
type _LocationUrl =
|
||||||
|
"/pages/Ahome/index" |
|
||||||
"/pages/bluetooth/index" |
|
"/pages/bluetooth/index" |
|
||||||
"/pages/home/index" |
|
|
||||||
"/pages/message/index" |
|
"/pages/message/index" |
|
||||||
"/pages/report/index" |
|
"/pages/report/index" |
|
||||||
|
"/pages/settings/index" |
|
||||||
"/pages/work/index";
|
"/pages/work/index";
|
||||||
|
|
||||||
interface NavigateToOptions {
|
interface NavigateToOptions {
|
||||||
@@ -16,7 +17,7 @@ interface NavigateToOptions {
|
|||||||
interface RedirectToOptions extends NavigateToOptions {}
|
interface RedirectToOptions extends NavigateToOptions {}
|
||||||
|
|
||||||
interface SwitchTabOptions {
|
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;
|
type ReLaunchOptions = NavigateToOptions | SwitchTabOptions;
|
||||||
|
|||||||
Reference in New Issue
Block a user