1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
| <route lang="json5">
| {
| layout: 'tabbar',
| needLogin: true,
| style: {
| navigationBarTitleText: '设备',
| },
| }
| </route>
|
| <template>
| <view class="bg-base" :style="{ marginTop: safeAreaInsets?.top + 'px' }">
| <wd-cell-group border>
| <wd-cell
| title="设备列表"
| is-link
| to="/pages/equ/equ-list"
| icon="list"
| custom-icon-class="icon-color-base"
| />
| <wd-cell
| title="重点设备"
| is-link
| icon="keywords"
| custom-icon-class="icon-color-base"
| @click="handleInfo"
| />
| <wd-cell
| title="添加设备"
| is-link
| icon="add"
| custom-icon-class="icon-color-base"
| @click="handleInfo"
| />
| </wd-cell-group>
| <wd-cell-group border class="mt-2">
| <wd-cell
| title="设备盘点"
| is-link
| icon="filter"
| custom-icon-class="icon-color-base"
| @click="handleInfo"
| />
| </wd-cell-group>
| </view>
| </template>
|
| <script lang="ts" setup>
| // 获取屏幕边界到安全区域距离
| const { safeAreaInsets } = uni.getSystemInfoSync()
|
| function handleInfo() {
| uni.showToast({
| title: '功能开发中',
| icon: 'none',
| })
| }
| </script>
|
| <style lang="scss" scoped>
| .test-css {
| // mt-4=>1rem=>16px;
| margin-top: 16px;
| }
| </style>
|
|