From 20f7f5a4338ccaa3c08b1a82d4a9c0a374faaf02 Mon Sep 17 00:00:00 2001
From: shikong <919411476@qq.com>
Date: Thu, 17 Oct 2024 12:45:37 +0800
Subject: [PATCH] =?UTF-8?q?=E8=AE=BE=E5=A4=87=E4=BF=A1=E6=81=AF?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.idea/UniappTool.xml | 7 +-
.idea/misc.xml | 1 -
package.json | 3 +
pnpm-lock.yaml | 60 +++++++++
src/App.vue | 4 +-
src/pages.json | 170 ++++++++++++++------------
src/pages/device-info/device-info.vue | 58 +++++++++
src/pages/test-page/test-page.vue | 23 ++++
src/static/icon/device-select.png | Bin 0 -> 740 bytes
src/static/icon/device.png | Bin 0 -> 719 bytes
src/uni.scss | 3 +-
11 files changed, 245 insertions(+), 84 deletions(-)
create mode 100644 src/pages/device-info/device-info.vue
create mode 100644 src/static/icon/device-select.png
create mode 100644 src/static/icon/device.png
diff --git a/.idea/UniappTool.xml b/.idea/UniappTool.xml
index de1b1b9..ae96833 100644
--- a/.idea/UniappTool.xml
+++ b/.idea/UniappTool.xml
@@ -1,13 +1,14 @@
-
+
-
-
+
+
+
\ No newline at end of file
diff --git a/.idea/misc.xml b/.idea/misc.xml
index 3c741df..574077a 100644
--- a/.idea/misc.xml
+++ b/.idea/misc.xml
@@ -1,4 +1,3 @@
-
diff --git a/package.json b/package.json
index 0b3a7f4..55c7d3a 100644
--- a/package.json
+++ b/package.json
@@ -74,6 +74,9 @@
"@dcloudio/vite-plugin-uni": "3.0.0-4020920240930001",
"@uni-helper/uni-app-types": "1.0.0-alpha.4",
"@uni-helper/uni-ui-types": "1.0.0-alpha.4",
+ "@vicons/ionicons5": "^0.12.0",
+ "@vicons/material": "^0.12.0",
+ "@vicons/utils": "^0.1.4",
"@vue/runtime-core": "^3.4.21",
"sass": "^1.79.5",
"sass-loader": "10.1.1",
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index f0fc720..df6dab2 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -99,6 +99,15 @@ importers:
'@uni-helper/uni-ui-types':
specifier: 1.0.0-alpha.4
version: 1.0.0-alpha.4(@uni-helper/uni-app-types@1.0.0-alpha.4(typescript@5.6.3)(vue@3.5.12(typescript@5.6.3)))(typescript@5.6.3)(vue@3.5.12(typescript@5.6.3))
+ '@vicons/ionicons5':
+ specifier: ^0.12.0
+ version: 0.12.0
+ '@vicons/material':
+ specifier: ^0.12.0
+ version: 0.12.0
+ '@vicons/utils':
+ specifier: ^0.1.4
+ version: 0.1.4(vue@3.5.12(typescript@5.6.3))
'@vue/runtime-core':
specifier: ^3.4.21
version: 3.5.12
@@ -825,6 +834,9 @@ packages:
peerDependencies:
vite: ^5.2.8
+ '@emotion/hash@0.8.0':
+ resolution: {integrity: sha512-kBJtf7PH6aWwZ6fka3zQ0p6SBYzx4fl1LoZXE2RrnYST9Xljm7WfKJrU4g/Xr3Beg72MLrp1AWNUmuYJTL7Cow==}
+
'@esbuild/aix-ppc64@0.20.2':
resolution: {integrity: sha512-D+EBOJHXdNZcLJRBkhENNG8Wji2kgc9AZ9KiPr1JuZjsNtyHzrsfLRrY0tk2H2aoFu6RANO1y1iPPUCDYWkb5g==}
engines: {node: '>=12'}
@@ -1494,6 +1506,9 @@ packages:
'@types/json-schema@7.0.15':
resolution: {integrity: sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==}
+ '@types/node@14.14.45':
+ resolution: {integrity: sha512-DssMqTV9UnnoxDWu959sDLZzfvqCF0qDNRjaWeYSui9xkFe61kKo4l1TWNTQONpuXEm+gLMRvdlzvNHBamzmEw==}
+
'@types/node@22.7.5':
resolution: {integrity: sha512-jML7s2NAzMWc//QSJ1a3prpk78cOPchGvXJsC3C6R6PSMoooztvRVQEz89gmBTBY1SPMaqo5teB4uNHPdetShQ==}
@@ -1524,6 +1539,17 @@ packages:
typescript: ^5.0.0
vue: ^3.0.0
+ '@vicons/ionicons5@0.12.0':
+ resolution: {integrity: sha512-Iy1EUVRpX0WWxeu1VIReR1zsZLMc4fqpt223czR+Rpnrwu7pt46nbnC2ycO7ItI/uqDLJxnbcMC7FujKs9IfFA==}
+
+ '@vicons/material@0.12.0':
+ resolution: {integrity: sha512-chv1CYAl8P32P3Ycwgd5+vw/OFNc2mtkKdb1Rw4T5IJmKy6GVDsoUKV3N2l208HATn7CCQphZtuPDdsm7K2kmA==}
+
+ '@vicons/utils@0.1.4':
+ resolution: {integrity: sha512-OHI19qVNN6i+uPQ+Y3f2s0dUxwsYnOCcKBW7XOU4yXXO1aU3ZoKpblCc3+4N0qmgoJs5rWKRAaMisipqEXJwAg==}
+ peerDependencies:
+ vue: ^3.0.6
+
'@vitejs/plugin-legacy@5.3.2':
resolution: {integrity: sha512-8moCOrIMaZ/Rjln0Q6GsH6s8fAt1JOI3k8nmfX4tXUxE5KAExVctSyOBk+A25GClsdSWqIk2yaUthH3KJ2X4tg==}
engines: {node: ^18.0.0 || >=20.0.0}
@@ -1662,6 +1688,9 @@ packages:
'@webassemblyjs/wast-printer@1.12.1':
resolution: {integrity: sha512-+X4WAlOisVWQMikjbcvY2e0rwPsKQ9F688lksZhBcPycBBuii3O7m8FACbDMWDojpAqvjIncrG8J0XHKyQfVeA==}
+ '@xicons/utils@0.1.4':
+ resolution: {integrity: sha512-uXxKDLz9abr80yJC05XSTq6wlyFcdW+N/1IYJkeHjzzXVc4VQ0sEYMoMMTjAH7HQBOyOkzOB4pf5NGF72lwa8Q==}
+
'@xtuc/ieee754@1.2.0':
resolution: {integrity: sha512-DX8nKgqcGwsc0eJSqYt5lwP4DH5FlHnmuWWBRy7X0NcaGR0ZtuyeESgMwTYVEtxmsNGY+qit4QYT/MIYTOTPeA==}
@@ -2039,6 +2068,9 @@ packages:
css-list-helpers@2.0.0:
resolution: {integrity: sha512-9Bj8tZ0jWbAM3u/U6m/boAzAwLPwtjzFvwivr2piSvyVa3K3rChJzQy4RIHkNkKiZCHrEMWDJWtTR8UyVhdDnQ==}
+ css-render@0.13.9:
+ resolution: {integrity: sha512-n3C4ZH59rveBrUlAD7n0Ze9/gUMKa4dlH1C9CWKpGcIHR/xRcIVXzBGy1iw8WWq2ySmn2/ZqOpySQNAK5Pb6sw==}
+
css-system-font-keywords@1.0.0:
resolution: {integrity: sha512-1umTtVd/fXS25ftfjB71eASCrYhilmEsvDEI6wG/QplnmlfmVM5HkZ/ZX46DT5K3eblFPgLUHt5BRCb0YXkSFA==}
@@ -2057,6 +2089,9 @@ packages:
resolution: {integrity: sha512-AZL67abkUzIuvcHqk7c09cezpGNcxUxU4Ioi/05xHk4DQeTkWmGYftIE6ctU6AEt+Gn4n1lDStOtj7FKycP71A==}
engines: {node: '>=8'}
+ csstype@3.0.11:
+ resolution: {integrity: sha512-sa6P2wJ+CAbgyy4KFssIb/JNMLxFvKF1pCYCSXS8ZMuqZnMsrxqI2E5sPyoTpxoPU/gVZMzr2zjOfg8GIZOMsw==}
+
csstype@3.1.3:
resolution: {integrity: sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw==}
@@ -5353,6 +5388,8 @@ snapshots:
- vue
- webpack-sources
+ '@emotion/hash@0.8.0': {}
+
'@esbuild/aix-ppc64@0.20.2':
optional: true
@@ -6153,6 +6190,8 @@ snapshots:
'@types/json-schema@7.0.15': {}
+ '@types/node@14.14.45': {}
+
'@types/node@22.7.5':
dependencies:
undici-types: 6.19.8
@@ -6178,6 +6217,15 @@ snapshots:
typescript: 5.6.3
vue: 3.5.12(typescript@5.6.3)
+ '@vicons/ionicons5@0.12.0': {}
+
+ '@vicons/material@0.12.0': {}
+
+ '@vicons/utils@0.1.4(vue@3.5.12(typescript@5.6.3))':
+ dependencies:
+ '@xicons/utils': 0.1.4
+ vue: 3.5.12(typescript@5.6.3)
+
'@vitejs/plugin-legacy@5.3.2(terser@5.34.1)(vite@5.2.8(@types/node@22.7.5)(sass@1.79.5)(terser@5.34.1))':
dependencies:
'@babel/core': 7.25.8
@@ -6410,6 +6458,10 @@ snapshots:
'@webassemblyjs/ast': 1.12.1
'@xtuc/long': 4.2.2
+ '@xicons/utils@0.1.4':
+ dependencies:
+ css-render: 0.13.9
+
'@xtuc/ieee754@1.2.0': {}
'@xtuc/long@4.2.2': {}
@@ -6814,6 +6866,12 @@ snapshots:
css-list-helpers@2.0.0: {}
+ css-render@0.13.9:
+ dependencies:
+ '@emotion/hash': 0.8.0
+ '@types/node': 14.14.45
+ csstype: 3.0.11
+
css-system-font-keywords@1.0.0: {}
cssesc@3.0.0: {}
@@ -6826,6 +6884,8 @@ snapshots:
dependencies:
cssom: 0.3.8
+ csstype@3.0.11: {}
+
csstype@3.1.3: {}
data-urls@2.0.0:
diff --git a/src/App.vue b/src/App.vue
index 4e1a63a..9adbabf 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -12,7 +12,9 @@ export default {
}
-
diff --git a/src/pages/test-page/test-page.vue b/src/pages/test-page/test-page.vue
index 936b55e..9c46eef 100644
--- a/src/pages/test-page/test-page.vue
+++ b/src/pages/test-page/test-page.vue
@@ -41,6 +41,22 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -56,6 +72,13 @@ const ctx = reactive({
}
})
+function vibrateShortHandler() {
+ uni.vibrateShort({})
+}
+
+function vibrateLongHandler() {
+ uni.vibrateLong({})
+}
function mockRequest(){
uni.request({
diff --git a/src/static/icon/device-select.png b/src/static/icon/device-select.png
new file mode 100644
index 0000000000000000000000000000000000000000..562d6d02b5ffce4db5110d9d736e1fe46ea2f887
GIT binary patch
literal 740
zcmVPx%o=HSORCr$PTTxQNKnzU^2XOEJ;*2=sE#M@=CwK_;5Xz_A1U!W^;tcfwq8Fgi
zwpNNxr*D^S7a{(VWH)baY7;fvjY!%y`c>$x
zg4OI}coCY~H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