perf: 重构页面分包

This commit is contained in:
范鹏 2025-04-02 18:40:56 +08:00
parent ee584cc262
commit 7070999811
69 changed files with 326 additions and 335 deletions

View File

@ -26,19 +26,7 @@
]
},
{
"root": "pages/addDeviceForWiFi",
"pages": [
{
"path": "distributionNetwork",
"style": {
"navigationBarTitleText": "WiFi配网",
"disableScroll": true
}
}
]
},
{
"root": "pages/addDeviceForBluetooth",
"root": "pages/addDevice",
"pages": [
{
"path": "addLockGuid",
@ -66,6 +54,20 @@
"navigationBarTitleText": "锁地址",
"disableScroll": true
}
},
{
"path": "distributionNetwork",
"style": {
"navigationBarTitleText": "WiFi配网",
"disableScroll": true
}
},
{
"path": "selectDeviceType",
"style": {
"navigationBarTitleText": "选择设备类型",
"disableScroll": true
}
}
]
},
@ -132,18 +134,11 @@
"navigationBarTitleText": "有效期",
"disableScroll": true
}
},
{
"path": "selectDeviceType",
"style": {
"navigationBarTitleText": "选择设备类型",
"disableScroll": true
}
}
]
},
{
"root": "pages/featureForBluetooth",
"root": "pages/feature",
"pages": [
{
"path": "createPassword",
@ -326,11 +321,52 @@
"navigationBarTitleText": "操作记录详情",
"disableScroll": true
}
},
{
"path": "createAdmin",
"style": {
"navigationBarTitleText": "创建授权管理员",
"disableScroll": true
}
},
{
"path": "keyDetail",
"style": {
"disableScroll": true,
"navigationBarTitleText": "钥匙详情"
}
},
{
"path": "adminDetail",
"style": {
"navigationBarTitleText": "授权管理员详情",
"disableScroll": true
}
},
{
"path": "adminList",
"style": {
"navigationBarTitleText": "授权管理员",
"disableScroll": true
}
},
{
"path": "createKey",
"style": {
"navigationBarTitleText": "发送钥匙"
}
},
{
"path": "keyList",
"style": {
"disableScroll": true,
"navigationBarTitleText": "电子钥匙"
}
}
]
},
{
"root": "pages/settingForBluetooth",
"root": "pages/setting",
"pages": [
{
"path": "videoSlot",
@ -521,52 +557,6 @@
}
}
]
},
{
"root": "pages/lockUserManage",
"pages": [
{
"path": "createAdmin",
"style": {
"navigationBarTitleText": "创建授权管理员",
"disableScroll": true
}
},
{
"path": "keyDetail",
"style": {
"disableScroll": true,
"navigationBarTitleText": "钥匙详情"
}
},
{
"path": "adminDetail",
"style": {
"navigationBarTitleText": "授权管理员详情",
"disableScroll": true
}
},
{
"path": "adminList",
"style": {
"navigationBarTitleText": "授权管理员",
"disableScroll": true
}
},
{
"path": "createKey",
"style": {
"navigationBarTitleText": "发送钥匙"
}
},
{
"path": "keyList",
"style": {
"disableScroll": true,
"navigationBarTitleText": "电子钥匙"
}
}
]
}
],
"pages": [
@ -591,10 +581,10 @@
],
"preloadRule": {
"pages/main/home": {
"packages": ["pages/others", "pages/addDeviceForBluetooth", "pages/p2p"]
"packages": ["pages/others", "pages/addDevice", "pages/p2p"]
},
"pages/main/lockDetail": {
"packages": ["pages/lockUserManage", "pages/featureForBluetooth", "pages/settingForBluetooth"]
"packages": ["pages/feature", "pages/setting"]
},
"pages/main/mine": {
"packages": ["pages/user"]

View File

@ -29,7 +29,7 @@
<view class="py-2 border-b-2 border-b-solid border-gray-200 flex items-center">
<view>密码</view>
<view class="flex-1">
<up-input
<!-- <up-input
:customStyle="{
padding: '0 28rpx',
outline: 'none',
@ -49,7 +49,7 @@
@click="togglePassword"
></up-icon>
</template>
</up-input>
</up-input> -->
</view>
</view>
</view>

View File

@ -13,9 +13,9 @@
<view class="search">
<up-search
shape="square"
:searchIconSize="48"
searchIconSize="48rpx"
:inputStyle="{ fontSize: '32rpx' }"
:height="80"
height="80rpx"
placeholder="搜索"
:clearabled="false"
@change="changeSearch"
@ -318,25 +318,25 @@
<style lang="scss" scoped>
.search {
padding: 32rpx;
width: 686rpx !important;
padding: 32rpx;
}
.button {
display: flex;
align-items: center;
position: fixed;
bottom: calc(env(safe-area-inset-bottom) + 20rpx);
display: flex;
align-items: center;
font-weight: bold;
.button-create {
margin-left: 32rpx;
width: 686rpx;
height: 88rpx;
background-color: #63b8af;
margin-left: 32rpx;
line-height: 88rpx;
color: white;
text-align: center;
line-height: 88rpx;
background-color: #63b8af;
border-radius: 44rpx;
}
}
@ -344,29 +344,29 @@
.item {
display: flex;
align-items: center;
background-color: #ffffff;
height: 120rpx;
width: 750rpx;
height: 120rpx;
background-color: #ffffff;
.item-left {
margin-left: 32rpx;
width: 80rpx;
height: 80rpx;
margin-left: 32rpx;
}
.item-right {
width: 574rpx;
margin-right: 32rpx;
margin-left: 32rpx;
width: 574rpx;
.item-right-top {
max-width: 400rpx;
font-size: 32rpx;
font-weight: bold;
padding-bottom: 6rpx;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
font-size: 32rpx;
font-weight: bold;
white-space: nowrap;
}
.item-right-bottom {
@ -390,9 +390,9 @@
}
.empty-list-text {
text-align: center;
font-size: 32rpx;
color: #999999;
text-align: center;
}
.status {

View File

@ -13,9 +13,9 @@
<view class="search">
<up-search
shape="square"
:searchIconSize="48"
searchIconSize="48rpx"
:inputStyle="{ fontSize: '32rpx' }"
:height="80"
height="80rpx"
placeholder="搜索"
:clearabled="false"
@change="changeSearch"
@ -373,36 +373,36 @@
<style lang="scss" scoped>
.search {
padding: 32rpx;
width: 686rpx !important;
padding: 32rpx;
}
.button {
display: flex;
align-items: center;
position: fixed;
bottom: calc(env(safe-area-inset-bottom) + 20rpx);
display: flex;
align-items: center;
font-weight: bold;
.button-reset {
margin-left: 50rpx;
width: 300rpx;
height: 88rpx;
background-color: #df282d;
margin-left: 50rpx;
line-height: 88rpx;
color: white;
text-align: center;
line-height: 88rpx;
background-color: #df282d;
border-radius: 44rpx;
}
.button-create {
margin-left: 50rpx;
width: 300rpx;
height: 88rpx;
background-color: #63b8af;
margin-left: 50rpx;
line-height: 88rpx;
color: white;
text-align: center;
line-height: 88rpx;
background-color: #63b8af;
border-radius: 44rpx;
}
}
@ -410,29 +410,29 @@
.item {
display: flex;
align-items: center;
background-color: #ffffff;
height: 120rpx;
width: 750rpx;
height: 120rpx;
background-color: #ffffff;
.item-left {
margin-left: 32rpx;
width: 80rpx;
height: 80rpx;
margin-left: 32rpx;
}
.item-right {
width: 574rpx;
margin-right: 32rpx;
margin-left: 32rpx;
width: 574rpx;
.item-right-top {
max-width: 400rpx;
font-size: 32rpx;
font-weight: bold;
padding-bottom: 6rpx;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
font-size: 32rpx;
font-weight: bold;
white-space: nowrap;
}
.item-right-bottom {
@ -456,9 +456,9 @@
}
.empty-list-text {
text-align: center;
font-size: 32rpx;
color: #999999;
text-align: center;
}
.status {

View File

@ -13,9 +13,9 @@
<view class="search">
<up-search
shape="square"
:searchIconSize="48"
searchIconSize="48rpx"
:inputStyle="{ fontSize: '32rpx' }"
:height="80"
height="80rpx"
placeholder="搜索"
:clearabled="false"
@change="changeSearch"
@ -374,36 +374,36 @@
<style lang="scss" scoped>
.search {
padding: 32rpx;
width: 686rpx !important;
padding: 32rpx;
}
.button {
display: flex;
align-items: center;
position: fixed;
bottom: calc(env(safe-area-inset-bottom) + 20rpx);
display: flex;
align-items: center;
font-weight: bold;
.button-reset {
margin-left: 50rpx;
width: 300rpx;
height: 88rpx;
background-color: #df282d;
margin-left: 50rpx;
line-height: 88rpx;
color: white;
text-align: center;
line-height: 88rpx;
background-color: #df282d;
border-radius: 44rpx;
}
.button-create {
margin-left: 50rpx;
width: 300rpx;
height: 88rpx;
background-color: #63b8af;
margin-left: 50rpx;
line-height: 88rpx;
color: white;
text-align: center;
line-height: 88rpx;
background-color: #63b8af;
border-radius: 44rpx;
}
}
@ -411,29 +411,29 @@
.item {
display: flex;
align-items: center;
background-color: #ffffff;
height: 120rpx;
width: 750rpx;
height: 120rpx;
background-color: #ffffff;
.item-left {
margin-left: 32rpx;
width: 80rpx;
height: 80rpx;
margin-left: 32rpx;
}
.item-right {
width: 574rpx;
margin-right: 32rpx;
margin-left: 32rpx;
width: 574rpx;
.item-right-top {
max-width: 400rpx;
font-size: 32rpx;
font-weight: bold;
padding-bottom: 6rpx;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
font-size: 32rpx;
font-weight: bold;
white-space: nowrap;
}
.item-right-bottom {
@ -457,9 +457,9 @@
}
.empty-list-text {
text-align: center;
font-size: 32rpx;
color: #999999;
text-align: center;
}
.status {

View File

@ -13,9 +13,9 @@
<view class="search">
<up-search
shape="square"
:searchIconSize="48"
searchIconSize="48rpx"
:inputStyle="{ fontSize: '32rpx' }"
:height="80"
height="80rpx"
placeholder="搜索"
:clearabled="false"
@change="changeSearch"
@ -373,36 +373,36 @@
<style lang="scss" scoped>
.search {
padding: 32rpx;
width: 686rpx !important;
padding: 32rpx;
}
.button {
display: flex;
align-items: center;
position: fixed;
bottom: calc(env(safe-area-inset-bottom) + 20rpx);
display: flex;
align-items: center;
font-weight: bold;
.button-reset {
margin-left: 50rpx;
width: 300rpx;
height: 88rpx;
background-color: #df282d;
margin-left: 50rpx;
line-height: 88rpx;
color: white;
text-align: center;
line-height: 88rpx;
background-color: #df282d;
border-radius: 44rpx;
}
.button-create {
margin-left: 50rpx;
width: 300rpx;
height: 88rpx;
background-color: #63b8af;
margin-left: 50rpx;
line-height: 88rpx;
color: white;
text-align: center;
line-height: 88rpx;
background-color: #63b8af;
border-radius: 44rpx;
}
}
@ -410,29 +410,29 @@
.item {
display: flex;
align-items: center;
background-color: #ffffff;
height: 120rpx;
width: 750rpx;
height: 120rpx;
background-color: #ffffff;
.item-left {
margin-left: 32rpx;
width: 80rpx;
height: 80rpx;
margin-left: 32rpx;
}
.item-right {
width: 574rpx;
margin-right: 32rpx;
margin-left: 32rpx;
width: 574rpx;
.item-right-top {
max-width: 400rpx;
font-size: 32rpx;
font-weight: bold;
padding-bottom: 6rpx;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
font-size: 32rpx;
font-weight: bold;
white-space: nowrap;
}
.item-right-bottom {
@ -456,9 +456,9 @@
}
.empty-list-text {
text-align: center;
font-size: 32rpx;
color: #999999;
text-align: center;
}
.status {

View File

@ -13,9 +13,9 @@
<view class="search">
<up-search
shape="square"
:searchIconSize="48"
searchIconSize="48rpx"
:inputStyle="{ fontSize: '32rpx' }"
:height="80"
height="80rpx"
placeholder="搜索"
:clearabled="false"
@change="changeSearch"
@ -366,37 +366,37 @@
<style lang="scss" scoped>
.search {
margin-top: 32rpx;
width: 686rpx !important;
margin-top: 32rpx;
margin-left: 32rpx;
}
.button {
display: flex;
align-items: center;
position: fixed;
bottom: calc(env(safe-area-inset-bottom) + 48rpx);
display: flex;
align-items: center;
font-weight: bold;
.button-reset {
margin-left: 50rpx;
width: 300rpx;
height: 88rpx;
background-color: #df282d;
margin-left: 50rpx;
line-height: 88rpx;
color: white;
text-align: center;
line-height: 88rpx;
background-color: #df282d;
border-radius: 44rpx;
}
.button-create {
margin-left: 50rpx;
width: 300rpx;
height: 88rpx;
background-color: #63b8af;
margin-left: 50rpx;
line-height: 88rpx;
color: white;
text-align: center;
line-height: 88rpx;
background-color: #63b8af;
border-radius: 44rpx;
}
}
@ -404,37 +404,37 @@
.key {
display: flex;
align-items: center;
background-color: #ffffff;
height: 120rpx;
width: 750rpx;
height: 120rpx;
background-color: #ffffff;
.key-left {
margin-left: 32rpx;
width: 80rpx;
height: 80rpx;
margin-left: 32rpx;
border-radius: 50%;
}
.key-right {
margin-left: 32rpx;
margin-right: 32rpx;
width: 574rpx;
margin-right: 32rpx;
margin-left: 32rpx;
.key-right-top {
max-width: 400rpx;
font-size: 32rpx;
font-weight: bold;
padding-bottom: 6rpx;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
font-size: 32rpx;
font-weight: bold;
white-space: nowrap;
}
.key-admin {
margin-top: 8rpx;
margin-left: 10rpx;
width: 25rpx;
height: 25rpx;
margin-top: 8rpx;
margin-left: 10rpx;
}
.key-right-bottom {
@ -465,8 +465,8 @@
}
.empty-list-text {
text-align: center;
font-size: 32rpx;
color: #999999;
text-align: center;
}
</style>

View File

@ -13,9 +13,9 @@
<view class="search">
<up-search
shape="square"
:searchIconSize="48"
searchIconSize="48rpx"
:inputStyle="{ fontSize: '32rpx' }"
:height="80"
height="80rpx"
placeholder="搜索"
:clearabled="false"
@change="changeSearch"
@ -378,36 +378,36 @@
<style lang="scss" scoped>
.search {
padding: 32rpx;
width: 686rpx !important;
padding: 32rpx;
}
.button {
display: flex;
align-items: center;
position: fixed;
bottom: calc(env(safe-area-inset-bottom) + 20rpx);
display: flex;
align-items: center;
font-weight: bold;
.button-reset {
margin-left: 50rpx;
width: 300rpx;
height: 88rpx;
background-color: #df282d;
margin-left: 50rpx;
line-height: 88rpx;
color: white;
text-align: center;
line-height: 88rpx;
background-color: #df282d;
border-radius: 44rpx;
}
.button-create {
margin-left: 50rpx;
width: 300rpx;
height: 88rpx;
background-color: #63b8af;
margin-left: 50rpx;
line-height: 88rpx;
color: white;
text-align: center;
line-height: 88rpx;
background-color: #63b8af;
border-radius: 44rpx;
}
}
@ -415,29 +415,29 @@
.item {
display: flex;
align-items: center;
background-color: #ffffff;
height: 120rpx;
width: 750rpx;
height: 120rpx;
background-color: #ffffff;
.item-left {
margin-left: 32rpx;
width: 80rpx;
height: 80rpx;
margin-left: 32rpx;
}
.item-right {
width: 574rpx;
margin-right: 32rpx;
margin-left: 32rpx;
width: 574rpx;
.item-right-top {
max-width: 400rpx;
font-size: 32rpx;
font-weight: bold;
padding-bottom: 6rpx;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
font-size: 32rpx;
font-weight: bold;
white-space: nowrap;
}
.item-right-bottom {
@ -461,9 +461,9 @@
}
.empty-list-text {
text-align: center;
font-size: 32rpx;
color: #999999;
text-align: center;
}
.status {

View File

@ -13,9 +13,9 @@
<view class="search">
<up-search
shape="square"
:searchIconSize="48"
searchIconSize="48rpx"
:inputStyle="{ fontSize: '32rpx' }"
:height="80"
height="80rpx"
placeholder="搜索"
:clearabled="false"
@change="changeSearch"
@ -341,37 +341,37 @@
<style lang="scss" scoped>
.search {
margin-top: 32rpx;
width: 686rpx !important;
margin-top: 32rpx;
margin-left: 32rpx;
}
.button {
display: flex;
align-items: center;
position: fixed;
bottom: calc(env(safe-area-inset-bottom) + 48rpx);
display: flex;
align-items: center;
font-weight: bold;
.button-reset {
margin-left: 50rpx;
width: 300rpx;
height: 88rpx;
background-color: #df282d;
margin-left: 50rpx;
line-height: 88rpx;
color: white;
text-align: center;
line-height: 88rpx;
background-color: #df282d;
border-radius: 44rpx;
}
.button-create {
margin-left: 50rpx;
width: 300rpx;
height: 88rpx;
background-color: #63b8af;
margin-left: 50rpx;
line-height: 88rpx;
color: white;
text-align: center;
line-height: 88rpx;
background-color: #63b8af;
border-radius: 44rpx;
}
}
@ -379,29 +379,29 @@
.password {
display: flex;
align-items: center;
background-color: #ffffff;
height: 120rpx;
width: 750rpx;
height: 120rpx;
background-color: #ffffff;
.password-left {
margin-left: 32rpx;
width: 80rpx;
height: 80rpx;
margin-left: 32rpx;
}
.password-right {
width: 574rpx;
margin-right: 32rpx;
margin-left: 32rpx;
width: 574rpx;
.password-right-top {
max-width: 400rpx;
font-size: 32rpx;
font-weight: bold;
padding-bottom: 6rpx;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
font-size: 32rpx;
font-weight: bold;
white-space: nowrap;
}
.password-right-bottom {
@ -425,9 +425,9 @@
}
.empty-list-text {
text-align: center;
font-size: 32rpx;
color: #999999;
text-align: center;
}
.key-status {

View File

@ -13,9 +13,9 @@
<view class="search">
<up-search
shape="square"
:searchIconSize="48"
searchIconSize="48rpx"
:inputStyle="{ fontSize: '32rpx' }"
:height="80"
height="80rpx"
placeholder="搜索"
:clearabled="false"
@change="changeSearch"
@ -376,36 +376,36 @@
<style lang="scss" scoped>
.search {
padding: 32rpx;
width: 686rpx !important;
padding: 32rpx;
}
.button {
display: flex;
align-items: center;
position: fixed;
bottom: calc(env(safe-area-inset-bottom) + 20rpx);
display: flex;
align-items: center;
font-weight: bold;
.button-reset {
margin-left: 50rpx;
width: 300rpx;
height: 88rpx;
background-color: #df282d;
margin-left: 50rpx;
line-height: 88rpx;
color: white;
text-align: center;
line-height: 88rpx;
background-color: #df282d;
border-radius: 44rpx;
}
.button-create {
margin-left: 50rpx;
width: 300rpx;
height: 88rpx;
background-color: #63b8af;
margin-left: 50rpx;
line-height: 88rpx;
color: white;
text-align: center;
line-height: 88rpx;
background-color: #63b8af;
border-radius: 44rpx;
}
}
@ -413,29 +413,29 @@
.item {
display: flex;
align-items: center;
background-color: #ffffff;
height: 120rpx;
width: 750rpx;
height: 120rpx;
background-color: #ffffff;
.item-left {
margin-left: 32rpx;
width: 80rpx;
height: 80rpx;
margin-left: 32rpx;
}
.item-right {
width: 574rpx;
margin-right: 32rpx;
margin-left: 32rpx;
width: 574rpx;
.item-right-top {
max-width: 400rpx;
font-size: 32rpx;
font-weight: bold;
padding-bottom: 6rpx;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
font-size: 32rpx;
font-weight: bold;
white-space: nowrap;
}
.item-right-bottom {
@ -459,9 +459,9 @@
}
.empty-list-text {
text-align: center;
font-size: 32rpx;
color: #999999;
text-align: center;
}
.status {

View File

@ -17,11 +17,11 @@
v-if="!(lockList.length === 0 && lockSearch.searchStr === '' && !focus)"
>
<up-search
:searchIconSize="48"
searchIconSize="48rpx"
:inputStyle="{ fontSize: '32rpx' }"
@focus="getFocus"
@blur="getBlur"
:height="80"
height="80rpx"
placeholder="搜索"
:clearabled="false"
@change="changeSearch"

View File

@ -1,7 +1,7 @@
<template>
<view>
<iot-p2p-player-with-mjpg
ref="playerRef"
id="playerRef"
:deviceInfo="deviceInfo"
:xp2pInfo="xp2pInfo"
:rotate="90"
@ -34,14 +34,12 @@
let xp2pManager = null
const playerRef = ref(null)
const deviceInfo = ref({
deviceId: 'NIHQMTTLM4/1000000000',
productId: 'NIHQMTTLM4',
deviceName: '1000000000'
})
const xp2pInfo = ref('XP2Pd2ZwIis8ld9kRmeZSH+6vQ==%2.4.49')
const xp2pInfo = ref('XP2Pd2ZVIS4Um5pNW1Wydny5ow==%2.4.49')
const isVoice = ref(false)
@ -63,10 +61,13 @@
const handleVoiceError = error => {
console.log(1111113, error)
}0
}
const startVoice = () => {
console.log(1111113, playerRef.value)
const page = getCurrentPages().pop()
const playerRef = page.selectComponent('#playerRef')
console.log(1111113, playerRef)
playerRef.requestFullScreen()
// const voiceNode = res[0].node
// if (voiceNode) {
// voiceNode.startVoice({

View File

@ -13,9 +13,9 @@
<view class="search">
<up-search
shape="square"
:searchIconSize="48"
searchIconSize="48rpx"
:inputStyle="{ fontSize: '32rpx' }"
:height="80"
height="80rpx"
placeholder="搜索"
:clearabled="false"
@change="changeSearch"
@ -237,36 +237,36 @@
<style lang="scss" scoped>
.search {
padding: 32rpx;
width: 686rpx !important;
padding: 32rpx;
}
.button {
display: flex;
align-items: center;
position: fixed;
bottom: calc(env(safe-area-inset-bottom) + 20rpx);
display: flex;
align-items: center;
font-weight: bold;
.button-reset {
margin-left: 50rpx;
width: 300rpx;
height: 88rpx;
background-color: #df282d;
margin-left: 50rpx;
line-height: 88rpx;
color: white;
text-align: center;
line-height: 88rpx;
background-color: #df282d;
border-radius: 44rpx;
}
.button-create {
margin-left: 50rpx;
width: 300rpx;
height: 88rpx;
background-color: #63b8af;
margin-left: 50rpx;
line-height: 88rpx;
color: white;
text-align: center;
line-height: 88rpx;
background-color: #63b8af;
border-radius: 44rpx;
}
}
@ -274,29 +274,29 @@
.item {
display: flex;
align-items: center;
background-color: #ffffff;
height: 120rpx;
width: 750rpx;
height: 120rpx;
background-color: #ffffff;
.item-left {
margin-left: 32rpx;
width: 80rpx;
height: 80rpx;
margin-left: 32rpx;
}
.item-right {
width: 574rpx;
margin-right: 32rpx;
margin-left: 32rpx;
width: 574rpx;
.item-right-top {
max-width: 400rpx;
font-size: 32rpx;
font-weight: bold;
padding-bottom: 6rpx;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
font-size: 32rpx;
font-weight: bold;
white-space: nowrap;
}
.item-right-bottom {
@ -320,9 +320,9 @@
}
.empty-list-text {
text-align: center;
font-size: 32rpx;
color: #999999;
text-align: center;
}
.status {

View File

@ -9,9 +9,9 @@
<view class="search">
<up-search
shape="square"
:searchIconSize="48"
searchIconSize="48rpx"
:inputStyle="{ fontSize: '32rpx' }"
:height="80"
height="80rpx"
placeholder="搜索"
:clearabled="false"
@change="changeSearch"
@ -301,36 +301,36 @@
<style lang="scss" scoped>
.search {
padding: 32rpx;
width: 686rpx !important;
padding: 32rpx;
}
.button {
display: flex;
align-items: center;
position: fixed;
bottom: calc(env(safe-area-inset-bottom) + 20rpx);
display: flex;
align-items: center;
font-weight: bold;
.button-reset {
margin-left: 50rpx;
width: 300rpx;
height: 88rpx;
background-color: #df282d;
margin-left: 50rpx;
line-height: 88rpx;
color: white;
text-align: center;
line-height: 88rpx;
background-color: #df282d;
border-radius: 44rpx;
}
.button-create {
margin-left: 50rpx;
width: 300rpx;
height: 88rpx;
background-color: #63b8af;
margin-left: 50rpx;
line-height: 88rpx;
color: white;
text-align: center;
line-height: 88rpx;
background-color: #63b8af;
border-radius: 44rpx;
}
}
@ -338,29 +338,29 @@
.item {
display: flex;
align-items: center;
background-color: #ffffff;
height: 120rpx;
width: 750rpx;
height: 120rpx;
background-color: #ffffff;
.item-left {
margin-left: 32rpx;
width: 80rpx;
height: 80rpx;
margin-left: 32rpx;
}
.item-right {
width: 574rpx;
margin-right: 32rpx;
margin-left: 32rpx;
width: 574rpx;
.item-right-top {
max-width: 400rpx;
font-size: 32rpx;
font-weight: bold;
padding-bottom: 6rpx;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
font-size: 32rpx;
font-weight: bold;
white-space: nowrap;
}
.item-right-bottom {
@ -384,9 +384,9 @@
}
.empty-list-text {
text-align: center;
font-size: 32rpx;
color: #999999;
text-align: center;
}
.status {

View File

@ -49,52 +49,52 @@ const pages = [
},
{
name: 'searchDevice',
path: '/pages/addDeviceForBluetooth/searchDevice',
path: '/pages/addDevice/searchDevice',
tabBar: false
},
{
name: 'selectAddress',
path: '/pages/addDeviceForBluetooth/selectAddress',
path: '/pages/addDevice/selectAddress',
tabBar: false
},
{
name: 'bindLock',
path: '/pages/addDeviceForBluetooth/bindLock',
path: '/pages/addDevice/bindLock',
tabBar: false
},
{
name: 'setting',
path: '/pages/settingForBluetooth/setting',
path: '/pages/setting/setting',
tabBar: false
},
{
name: 'keyList',
path: '/pages/lockUserManage/keyList',
path: '/pages/feature/keyList',
tabBar: false
},
{
name: 'createKey',
path: '/pages/lockUserManage/createKey',
path: '/pages/feature/createKey',
tabBar: false
},
{
name: 'passwordList',
path: '/pages/featureForBluetooth/passwordList',
path: '/pages/feature/passwordList',
tabBar: false
},
{
name: 'createPassword',
path: '/pages/featureForBluetooth/createPassword',
path: '/pages/feature/createPassword',
tabBar: false
},
{
name: 'passwordDetail',
path: '/pages/featureForBluetooth/passwordDetail',
path: '/pages/feature/passwordDetail',
tabBar: false
},
{
name: 'keyDetail',
path: '/pages/lockUserManage/keyDetail',
path: '/pages/feature/keyDetail',
tabBar: false
},
{
@ -109,137 +109,137 @@ const pages = [
},
{
name: 'addLockGuid',
path: '/pages/addDeviceForBluetooth/addLockGuid',
path: '/pages/addDevice/addLockGuid',
tabBar: false
},
{
name: 'cardList',
path: '/pages/featureForBluetooth/cardList',
path: '/pages/feature/cardList',
tabBar: false
},
{
name: 'createCard',
path: '/pages/featureForBluetooth/createCard',
path: '/pages/feature/createCard',
tabBar: false
},
{
name: 'cardDetail',
path: '/pages/featureForBluetooth/cardDetail',
path: '/pages/feature/cardDetail',
tabBar: false
},
{
name: 'bindCard',
path: '/pages/featureForBluetooth/bindCard',
path: '/pages/feature/bindCard',
tabBar: false
},
{
name: 'fingerprintList',
path: '/pages/featureForBluetooth/fingerprintList',
path: '/pages/feature/fingerprintList',
tabBar: false
},
{
name: 'createFingerprint',
path: '/pages/featureForBluetooth/createFingerprint',
path: '/pages/feature/createFingerprint',
tabBar: false
},
{
name: 'fingerprintDetail',
path: '/pages/featureForBluetooth/fingerprintDetail',
path: '/pages/feature/fingerprintDetail',
tabBar: false
},
{
name: 'bindFingerprint',
path: '/pages/featureForBluetooth/bindFingerprint',
path: '/pages/feature/bindFingerprint',
tabBar: false
},
{
name: 'faceList',
path: '/pages/featureForBluetooth/faceList',
path: '/pages/feature/faceList',
tabBar: false
},
{
name: 'createFace',
path: '/pages/featureForBluetooth/createFace',
path: '/pages/feature/createFace',
tabBar: false
},
{
name: 'faceDetail',
path: '/pages/featureForBluetooth/faceDetail',
path: '/pages/feature/faceDetail',
tabBar: false
},
{
name: 'bindFace',
path: '/pages/featureForBluetooth/bindFace',
path: '/pages/feature/bindFace',
tabBar: false
},
{
name: 'remoteList',
path: '/pages/featureForBluetooth/remoteList',
path: '/pages/feature/remoteList',
tabBar: false
},
{
name: 'createRemote',
path: '/pages/featureForBluetooth/createRemote',
path: '/pages/feature/createRemote',
tabBar: false
},
{
name: 'remoteDetail',
path: '/pages/featureForBluetooth/remoteDetail',
path: '/pages/feature/remoteDetail',
tabBar: false
},
{
name: 'bindRemote',
path: '/pages/featureForBluetooth/bindRemote',
path: '/pages/feature/bindRemote',
tabBar: false
},
{
name: 'palmVeinList',
path: '/pages/featureForBluetooth/palmVeinList',
path: '/pages/feature/palmVeinList',
tabBar: false
},
{
name: 'createPalmVein',
path: '/pages/featureForBluetooth/createPalmVein',
path: '/pages/feature/createPalmVein',
tabBar: false
},
{
name: 'palmVeinDetail',
path: '/pages/featureForBluetooth/palmVeinDetail',
path: '/pages/feature/palmVeinDetail',
tabBar: false
},
{
name: 'bindPalmVein',
path: '/pages/featureForBluetooth/bindPalmVein',
path: '/pages/feature/bindPalmVein',
tabBar: false
},
{
name: 'createAdmin',
path: '/pages/lockUserManage/createAdmin',
path: '/pages/feature/createAdmin',
tabBar: false
},
{
name: 'adminDetail',
path: '/pages/lockUserManage/adminDetail',
path: '/pages/feature/adminDetail',
tabBar: false
},
{
name: 'adminList',
path: '/pages/lockUserManage/adminList',
path: '/pages/feature/adminList',
tabBar: false
},
{
name: 'recordList',
path: '/pages/featureForBluetooth/recordList',
path: '/pages/feature/recordList',
tabBar: false
},
{
name: 'recordDetail',
path: '/pages/featureForBluetooth/recordDetail',
path: '/pages/feature/recordDetail',
tabBar: false
},
{
name: 'typeRecordList',
path: '/pages/featureForBluetooth/typeRecordList',
path: '/pages/feature/typeRecordList',
tabBar: false
},
{
@ -254,142 +254,142 @@ const pages = [
},
{
name: 'lockInfo',
path: '/pages/settingForBluetooth/lockInfo',
path: '/pages/setting/lockInfo',
tabBar: false
},
{
name: 'syncElec',
path: '/pages/settingForBluetooth/syncElec',
path: '/pages/setting/syncElec',
tabBar: false
},
{
name: 'selectGroup',
path: '/pages/settingForBluetooth/selectGroup',
path: '/pages/setting/selectGroup',
tabBar: false
},
{
name: 'updateSetting',
path: '/pages/settingForBluetooth/updateSetting',
path: '/pages/setting/updateSetting',
tabBar: false
},
{
name: 'lockSound',
path: '/pages/settingForBluetooth/lockSound',
path: '/pages/setting/lockSound',
tabBar: false
},
{
name: 'autoLock',
path: '/pages/settingForBluetooth/autoLock',
path: '/pages/setting/autoLock',
tabBar: false
},
{
name: 'faceSetting',
path: '/pages/settingForBluetooth/faceSetting',
path: '/pages/setting/faceSetting',
tabBar: false
},
{
name: 'lockDate',
path: '/pages/settingForBluetooth/lockDate',
path: '/pages/setting/lockDate',
tabBar: false
},
{
name: 'uploadLockData',
path: '/pages/settingForBluetooth/uploadLockData',
path: '/pages/setting/uploadLockData',
tabBar: false
},
{
name: 'openDirection',
path: '/pages/settingForBluetooth/openDirection',
path: '/pages/setting/openDirection',
tabBar: false
},
{
name: 'motorTorsion',
path: '/pages/settingForBluetooth/motorTorsion',
path: '/pages/setting/motorTorsion',
tabBar: false
},
{
name: 'catEye',
path: '/pages/settingForBluetooth/catEye',
path: '/pages/setting/catEye',
tabBar: false
},
{
name: 'messageReminder',
path: '/pages/settingForBluetooth/messageReminder',
path: '/pages/setting/messageReminder',
tabBar: false
},
{
name: 'openDoorNotice',
path: '/pages/settingForBluetooth/openDoorNotice',
path: '/pages/setting/openDoorNotice',
tabBar: false
},
{
name: 'noticeDetail',
path: '/pages/settingForBluetooth/noticeDetail',
path: '/pages/setting/noticeDetail',
tabBar: false
},
{
name: 'lockUser',
path: '/pages/settingForBluetooth/lockUser',
path: '/pages/setting/lockUser',
tabBar: false
},
{
name: 'noticeWay',
path: '/pages/settingForBluetooth/noticeWay',
path: '/pages/setting/noticeWay',
tabBar: false
},
{
name: 'notOpenDoor',
path: '/pages/settingForBluetooth/notOpenDoor',
path: '/pages/setting/notOpenDoor',
tabBar: false
},
{
name: 'lowElecNotice',
path: '/pages/settingForBluetooth/lowElecNotice',
path: '/pages/setting/lowElecNotice',
tabBar: false
},
{
name: 'coercionOpenDoor',
path: '/pages/settingForBluetooth/coercionOpenDoor',
path: '/pages/setting/coercionOpenDoor',
tabBar: false
},
{
name: 'coercionFingerprint',
path: '/pages/settingForBluetooth/coercionFingerprint',
path: '/pages/setting/coercionFingerprint',
tabBar: false
},
{
name: 'catEyeMode',
path: '/pages/settingForBluetooth/catEyeMode',
path: '/pages/setting/catEyeMode',
tabBar: false
},
{
name: 'customCatEye',
path: '/pages/settingForBluetooth/customCatEye',
path: '/pages/setting/customCatEye',
tabBar: false
},
{
name: 'realTimePicture',
path: '/pages/settingForBluetooth/realTimePicture',
path: '/pages/setting/realTimePicture',
tabBar: false
},
{
name: 'videoSlot',
path: '/pages/settingForBluetooth/videoSlot',
path: '/pages/setting/videoSlot',
tabBar: false
},
{
name: 'passageMode',
path: '/pages/settingForBluetooth/passageMode',
path: '/pages/setting/passageMode',
tabBar: false
},
{
name: 'selectDeviceType',
path: '/pages/others/selectDeviceType',
path: '/pages/addDevice/selectDeviceType',
tabBar: false
},
{
name: 'distributionNetwork',
path: '/pages/addDeviceForWiFi/distributionNetwork',
path: '/pages/addDevice/distributionNetwork',
tabBar: false
},
{