788 lines
23 KiB
Vue
Raw Normal View History

<template>
2025-02-06 11:37:41 +08:00
<view>
2025-03-28 10:00:27 +08:00
<view v-if="!pending">
2024-08-22 15:03:30 +08:00
<view v-if="isLogin">
2025-02-06 11:37:41 +08:00
<scroll-view
v-if="deviceInfo"
scroll-y="true"
:style="{ height: deviceInfo.windowHeight + 'px' }"
lower-threshold="100"
@refresherrefresh="refresherList"
:refresher-enabled="true"
@scrolltolower="nextPage"
:refresher-triggered="refresherTriggered"
>
<view
class="search"
v-if="!(lockList.length === 0 && lockSearch.searchStr === '' && !focus)"
>
<up-search
2025-04-02 18:40:56 +08:00
searchIconSize="48rpx"
2025-02-06 11:37:41 +08:00
:inputStyle="{ fontSize: '32rpx' }"
@focus="getFocus"
@blur="getBlur"
2025-04-02 18:40:56 +08:00
height="80rpx"
2025-02-06 11:37:41 +08:00
placeholder="搜索"
:clearabled="false"
@change="changeSearch"
v-model="lockSearch.searchStr"
bgColor="#ffffff"
:showAction="false"
maxlength="50"
></up-search>
2024-08-22 15:03:30 +08:00
</view>
2025-03-28 10:00:27 +08:00
<view class="lock-list" v-if="!pending">
<view v-if="lockList.length === 0 && lockSearch.searchStr === '' && !focus">
2025-02-06 11:37:41 +08:00
<image
src="https://oss-lock.xhjcn.ltd/mp/icon_add_round.png"
2025-02-06 11:37:41 +08:00
mode="aspectFill"
class="button-add-big"
@click="toSearchDevice"
></image>
2024-10-07 10:35:37 +08:00
<view class="text">添加锁时手机必须在锁旁边</view>
2024-08-22 15:03:30 +08:00
</view>
<view v-else>
2025-03-28 10:00:27 +08:00
<view class="group" v-for="(group, groupIndex) in lockList" :key="group.groupId">
2024-08-22 15:03:30 +08:00
<view class="group-name">
2025-02-06 11:37:41 +08:00
<view class="group-name-text">{{ group.groupName }}</view>
2024-08-22 15:03:30 +08:00
<view class="group-name-line"></view>
</view>
2024-09-05 10:42:27 +08:00
<up-swipe-action>
2025-02-06 11:37:41 +08:00
<up-swipe-action-item
class="lock"
2025-03-28 10:00:27 +08:00
:ref="'swipeItem' + groupIndex"
2025-02-06 11:37:41 +08:00
:options="options"
v-for="(lock, lockIndex) in group.lockList"
:key="lock.lockId"
:threshold="50"
2025-03-28 10:00:27 +08:00
@click="deleteLock(lock, groupIndex, lockIndex)"
2025-02-06 11:37:41 +08:00
>
2025-03-28 10:00:27 +08:00
<view class="lock" @click="toLockDetail(lock)">
2024-09-04 13:57:03 +08:00
<view class="lock-top">
<image
class="lock-image-lock"
src="https://oss-lock.xhjcn.ltd/mp/icon_lock.png"
></image>
2024-09-04 13:57:03 +08:00
<view class="lock-top-right">
<view class="lock-top-right-power">
2025-02-06 11:37:41 +08:00
<image
class="lock-top-right-power-image"
:src="getPowerIcon(lock.electricQuantity)"
></image>
<view class="lock-top-right-power-text"
>{{ lock.electricQuantity }}%</view
>
2024-09-04 13:57:03 +08:00
</view>
2025-02-06 11:37:41 +08:00
<view>{{ getRole(lock.userType, lock.keyRight) }}</view>
2024-09-04 13:57:03 +08:00
</view>
2024-08-22 15:03:30 +08:00
</view>
2025-02-06 11:37:41 +08:00
<view class="lock-name">{{ lock.lockAlias }}</view>
<view style="display: flex; align-items: center">
2024-09-04 13:57:03 +08:00
<view v-if="lock.keyStatus === 110412" class="lock-status">已过期</view>
2025-02-06 11:37:41 +08:00
<view v-if="lock.days" class="lock-status" style="background-color: #63b8af"
>{{ lock.days }}</view
>
<view
v-if="lock.keyStatus === 110403"
class="lock-status"
style="background-color: #63b8af"
>未生效</view
>
2024-09-04 13:57:03 +08:00
<view v-if="lock.keyStatus === 110405" class="lock-status">已冻结</view>
2025-02-06 11:37:41 +08:00
<view
v-if="
(lock.remoteEnable === 1 && lock.keyRight === 0) ||
(lock.lockSetting.remoteUnlock === 1 && lock.keyRight === 1)
"
class="lock-status"
style="background-color: #63b8af"
>远程开锁
2024-09-04 13:57:03 +08:00
</view>
</view>
2025-02-06 11:37:41 +08:00
<view
class="lock-time"
:style="{
padding:
lock.keyStatus === 110401 &&
!lock.days &&
!(
(lock.remoteEnable === 1 && lock.keyRight === 0) ||
(lock.lockSetting.remoteUnlock === 1 && lock.keyRight === 1)
) === 0
? '12rpx 24rpx 0 24rpx'
: '6rpx 24rpx 0 24rpx'
}"
>
<view
v-if="lock.keyType === 1 || lock.keyType === 3"
style="font-size: 32rpx"
>{{ getTimeLimit(lock.keyType) }}</view
>
2024-09-04 13:57:03 +08:00
<view v-else>
<view>{{ timeFormat(lock.startDate, 'yyyy-mm-dd h:M') }}</view>
2025-02-06 11:37:41 +08:00
<view>{{
timeFormat(lock.endDate, 'yyyy-mm-dd h:M ') + getTimeLimit(lock.keyType)
}}</view>
2024-09-04 13:57:03 +08:00
</view>
</view>
2024-08-22 15:03:30 +08:00
</view>
2024-09-04 13:57:03 +08:00
</up-swipe-action-item>
</up-swipe-action>
2024-08-22 15:03:30 +08:00
</view>
</view>
</view>
</scroll-view>
2025-02-06 11:37:41 +08:00
<image
v-if="lockList.length !== 0"
src="https://oss-lock.xhjcn.ltd/mp/icon_add_round.png"
2025-02-06 11:37:41 +08:00
mode="aspectFill"
class="button-add"
@click="toSearchDevice"
></image>
2024-08-22 15:03:30 +08:00
</view>
<view v-else>
<view class="tips">因智能门锁与账号绑定登录为手机号登录</view>
<label for="phone">
<view class="button-login">登录</view>
</label>
2024-08-22 15:03:30 +08:00
</view>
</view>
2025-02-06 11:37:41 +08:00
<button
open-type="getPhoneNumber"
style="display: none"
id="phone"
@getphonenumber="getphonenumber"
></button>
<up-modal
:show="showModal"
title="是否删除授权管理员钥匙?"
:showCancelButton="true"
width="600rpx"
@cancel="cancelModal"
@confirm="confirmModal"
>
2024-09-04 13:57:03 +08:00
<view class="slot-content" @click="changeRadio">
2025-02-06 11:37:41 +08:00
<view style="display: flex; align-items: center">
2024-09-04 13:57:03 +08:00
<radio :checked="checked"></radio>
<view>同时删除其发送的所有钥匙钥匙删除后不能恢复</view>
</view>
</view>
</up-modal>
2024-08-22 15:03:30 +08:00
</view>
</template>
<script>
2024-08-22 15:03:30 +08:00
import { timeFormat } from 'uview-plus'
2025-02-06 11:37:41 +08:00
import { mapState, mapActions } from 'pinia'
2025-03-28 10:00:27 +08:00
import { loginRequest } from '@/api/user'
import { useUserStore } from '@/stores/user'
2024-08-22 15:03:30 +08:00
import { useLockStore } from '@/stores/lock'
2024-08-22 16:37:15 +08:00
import { useBluetoothStore } from '@/stores/bluetooth'
import { useBasicStore } from '@/stores/basic'
2024-09-04 13:57:03 +08:00
import { deleteKeyRequest } from '@/api/key'
import { deleteLockRequest } from '@/api/lock'
import { setStorage, getStorage } from '@/utils/storage'
2025-04-02 10:48:24 +08:00
import { useSdkStore } from '@/stores/sdk'
2025-02-06 11:37:41 +08:00
export default {
data() {
return {
2024-08-22 15:03:30 +08:00
refresherTriggered: false,
focus: false,
2025-03-28 10:00:27 +08:00
pending: true,
2024-09-04 13:57:03 +08:00
deviceInfo: null,
2025-02-06 11:37:41 +08:00
options: [
{
text: '删除',
style: {
backgroundColor: '#f56c6c'
}
2024-09-04 13:57:03 +08:00
}
2025-02-06 11:37:41 +08:00
],
2024-09-04 13:57:03 +08:00
showModal: false,
checked: false,
deleteLockInfo: null
2025-02-06 11:37:41 +08:00
}
},
computed: {
2024-08-22 15:03:30 +08:00
...mapState(useUserStore, ['userInfo', 'isLogin']),
...mapState(useLockStore, ['lockList', 'lockTotal', 'lockSearch']),
2025-02-06 11:37:41 +08:00
...mapState(useBluetoothStore, [
'bluetoothStatus',
'isInitBluetooth',
'keyId',
'currentLockInfo'
])
},
2024-09-30 14:03:25 +08:00
async onLoad(data) {
uni.showLoading({
title: '加载中',
mask: true
})
const accountInfo = uni.getAccountInfoSync()
getApp().globalData.appid = accountInfo.miniProgram.appId
getApp().globalData.envVersion = accountInfo.miniProgram.envVersion
2024-08-24 14:25:05 +08:00
this.deviceInfo = await this.getDeviceInfo()
const token = getStorage('token')
2025-02-06 11:37:41 +08:00
if (token) {
2025-04-02 10:48:24 +08:00
await Promise.all([
this.getLockList(this.lockSearch),
this.getUserInfo(),
this.initSdk()
]).then(res => {
2025-03-28 10:00:27 +08:00
this.pending = false
2024-09-06 14:07:13 +08:00
uni.hideLoading()
const list = getStorage('lockList')
const userInfo = getStorage('userInfo')
2025-02-06 11:37:41 +08:00
if (res[0].code === -1 && res[1] === -1 && list && userInfo) {
2024-09-06 14:07:13 +08:00
uni.showToast({
title: '网络访问失败,请检查网络是否正常',
icon: 'none'
})
this.updateLockList(list)
this.updateUserInfo(userInfo)
this.updateLoginStatus(true)
}
})
} else {
await this.homeLogin()
2025-03-28 10:00:27 +08:00
this.pending = false
2024-09-06 14:07:13 +08:00
uni.hideLoading()
}
2024-09-30 14:03:25 +08:00
const _data = JSON.parse(JSON.stringify(data))
this.shareJump(_data)
},
2025-02-06 11:37:41 +08:00
methods: {
2024-08-22 15:03:30 +08:00
timeFormat,
2025-02-06 11:37:41 +08:00
...mapActions(useUserStore, [
'updateUserInfo',
'updateLoginStatus',
'phoneLogin',
'getUserInfo'
]),
...mapActions(useLockStore, [
'getLockList',
'updateLockList',
'getRole',
'getTimeLimit',
'updateLockSearch',
'getPowerIcon'
]),
...mapActions(useBluetoothStore, [
'getBluetoothStatus',
'initAndListenBluetooth',
'updateCurrentLockInfo',
'checkSetting',
'updateKeyId',
'resetDevice'
]),
2024-09-30 14:03:25 +08:00
...mapActions(useBasicStore, ['routeJump', 'getDeviceInfo', 'getNetworkType', 'shareJump']),
2025-04-02 10:48:24 +08:00
...mapActions(useSdkStore, ['initSdk']),
2024-09-04 14:12:58 +08:00
async deleteLock(lock, groupIndex, lockIndex) {
2024-09-04 13:57:03 +08:00
const that = this
const netWork = await this.getNetworkType()
2025-02-06 11:37:41 +08:00
if (!netWork) {
return
}
2024-09-04 14:12:58 +08:00
that.$refs['swipeItem' + groupIndex][lockIndex].closeHandler()
2025-02-06 11:37:41 +08:00
if (lock.userType !== 110301 && lock.keyRight === 1) {
2024-09-04 13:57:03 +08:00
this.deleteLockInfo = lock
this.showModal = true
return
}
2025-02-06 11:37:41 +08:00
const message =
lock.userType === 110301
? '删除锁后,所有信息都会一起删除,确定删除锁吗?'
: '确定删除该钥匙吗?'
2024-09-04 13:57:03 +08:00
const data = {
...lock,
name: lock.bluetooth.bluetoothDeviceName,
deviceId: lock.bluetooth.bluetoothDeviceId,
commKey: lock.bluetooth.privateKey,
signKey: lock.bluetooth.signKey,
2025-02-06 11:37:41 +08:00
publicKey: lock.bluetooth.publicKey
2024-09-04 13:57:03 +08:00
}
this.updateKeyId(lock.keyId.toString())
this.updateCurrentLockInfo(data)
uni.showModal({
title: '提示',
content: message,
2025-02-06 11:37:41 +08:00
async success(res) {
2024-09-04 13:57:03 +08:00
if (res.confirm) {
uni.showLoading({
title: '删除中',
mask: true
})
2025-02-06 11:37:41 +08:00
if (that.currentLockInfo.userType === 110301) {
2024-09-04 13:57:03 +08:00
const { code: resetDeviceCode } = await that.resetDevice({
name: that.currentLockInfo.name,
authUid: that.userInfo.uid.toString(),
keyId: that.keyId.toString()
})
2025-02-06 11:37:41 +08:00
if (resetDeviceCode === 0 || resetDeviceCode === -2) {
2024-09-04 13:57:03 +08:00
const { code, message } = await deleteLockRequest({
lockId: that.currentLockInfo.lockId
})
2025-02-06 11:37:41 +08:00
if (code === 0) {
2024-09-04 13:57:03 +08:00
uni.hideLoading()
that.updateLockSearch({
...that.lockSearch,
pageNo: 1
})
that.getLockList(that.lockSearch)
uni.showToast({
title: '删除成功',
icon: 'none'
})
} else {
uni.hideLoading()
uni.showToast({
2025-02-27 11:29:53 +08:00
title: message,
2024-09-04 13:57:03 +08:00
icon: 'none'
})
}
2025-02-06 11:37:41 +08:00
} else if (resetDeviceCode === -1) {
2024-09-04 13:57:03 +08:00
uni.hideLoading()
uni.showToast({
title: '删除失败,请保持在锁附近',
icon: 'none'
})
}
} else {
2025-02-27 11:29:53 +08:00
const { code, message } = await deleteKeyRequest({
2024-09-04 13:57:03 +08:00
keyId: that.keyId
})
2025-02-06 11:37:41 +08:00
if (code === 0) {
2024-09-04 13:57:03 +08:00
uni.hideLoading()
that.updateLockSearch({
...that.lockSearch,
pageNo: 1
})
that.getLockList(that.lockSearch)
uni.showToast({
title: '删除成功',
icon: 'none'
})
} else {
uni.hideLoading()
uni.showToast({
2025-02-27 11:29:53 +08:00
title: message,
2024-09-04 13:57:03 +08:00
icon: 'none'
})
}
}
}
}
})
},
async confirmModal() {
uni.showLoading({
title: '删除中',
mask: true
})
const that = this
2025-02-27 11:29:53 +08:00
const { code, message } = await deleteKeyRequest({
2024-09-04 13:57:03 +08:00
keyId: that.deleteLockInfo.keyId,
includeUnderlings: that.checked ? 1 : 0
})
that.showModal = false
2025-02-06 11:37:41 +08:00
if (code === 0) {
2024-09-04 13:57:03 +08:00
uni.hideLoading()
that.updateLockSearch({
...that.lockSearch,
pageNo: 1
})
that.getLockList(that.lockSearch)
uni.showToast({
title: '删除成功',
icon: 'none'
})
} else {
uni.hideLoading()
uni.showToast({
2025-02-27 11:29:53 +08:00
title: message,
2024-09-04 13:57:03 +08:00
icon: 'none'
})
}
},
homeLogin() {
const that = this
2025-02-06 11:37:41 +08:00
return new Promise(resolve => {
uni.login({
provider: 'weixin',
2025-02-06 11:37:41 +08:00
async success(loginRes) {
const { code, data } = await loginRequest({
js_code: loginRes.code
})
2025-02-06 11:37:41 +08:00
if (code === 0) {
2024-10-29 13:40:19 +08:00
await setStorage('openid', data.openid)
2025-02-06 11:37:41 +08:00
if (data.accessToken) {
setStorage('token', data.accessToken)
that.getLockList(that.lockSearch)
await that.getUserInfo()
that.updateLoginStatus(true)
2025-04-02 10:48:24 +08:00
that.initSdk()
resolve(true)
} else {
that.updateLoginStatus(false)
resolve(false)
}
} else {
uni.showToast({
title: '登录失败,请重试',
icon: 'none'
})
resolve(false)
}
},
2025-02-06 11:37:41 +08:00
fail() {
uni.showToast({
title: '登录失败,请重试',
icon: 'none'
})
resolve(false)
}
})
})
},
2024-09-04 13:57:03 +08:00
changeRadio() {
this.checked = !this.checked
},
cancelModal() {
this.showModal = false
this.checked = false
},
async getphonenumber(data) {
2025-02-06 11:37:41 +08:00
if (data.detail.errMsg === 'getPhoneNumber:fail user deny') {
return
}
2025-03-25 15:08:00 +08:00
const that = this
uni.showLoading({
title: '登录中'
})
uni.login({
provider: 'weixin',
async success(loginRes) {
const result = await that.phoneLogin({
encryptedData: data.detail.encryptedData,
iv: data.detail.iv,
code: loginRes.code
})
uni.hideLoading()
if (!result) {
uni.showToast({
title: result.message,
icon: 'none'
})
}
},
fail() {
uni.hideLoading()
uni.showToast({
title: '登录失败,请重试'
})
}
})
},
2024-08-22 15:03:30 +08:00
async nextPage() {
2025-02-06 11:37:41 +08:00
if (this.lockList.length < this.lockTotal) {
2025-03-28 10:00:27 +08:00
const search = {
...this.lockSearch,
pageNo: this.lockSearch.pageNo + 1
}
2025-03-28 10:00:27 +08:00
const { code, message } = await this.getLockList(search)
2025-02-06 11:37:41 +08:00
if (code !== 0) {
uni.showToast({
title: message,
icon: 'none'
})
this.updateLockSearch(search)
2024-08-22 15:03:30 +08:00
}
}
},
async refresherList() {
this.refresherTriggered = true
this.getUserInfo()
this.updateLockSearch({
...this.lockSearch,
pageNo: 1
})
const { code, message } = await this.getLockList(this.lockSearch)
2025-02-06 11:37:41 +08:00
if (code === 0) {
uni.showToast({
title: '刷新成功',
icon: 'none'
})
} else {
uni.showToast({
title: message,
icon: 'none'
})
}
2024-08-22 15:03:30 +08:00
this.refresherTriggered = false
},
async changeSearch(data) {
this.updateLockSearch({
...this.lockSearch,
searchStr: data
})
await this.getLockList(this.lockSearch)
2024-08-22 15:03:30 +08:00
},
getFocus() {
this.focus = true
},
getBlur() {
this.focus = false
2024-08-22 16:37:15 +08:00
},
async toSearchDevice() {
2025-04-02 10:48:24 +08:00
// this.routeJump({
// name: 'selectDeviceType'
// })
this.routeJump({
2025-04-02 10:48:24 +08:00
name: 'p2pPlayer'
})
2024-08-22 16:37:15 +08:00
},
2025-03-28 10:00:27 +08:00
async toLockDetail(lock) {
2025-02-06 11:37:41 +08:00
if (!(this.bluetoothStatus === 0 || this.bluetoothStatus === -1)) {
2024-08-22 16:37:15 +08:00
this.getBluetoothStatus()
return
}
2025-02-21 14:01:36 +08:00
if (lock.keyStatus === 110403) {
uni.showToast({
title: '您的钥匙未生效',
icon: 'none'
})
return
}
2025-02-06 11:37:41 +08:00
if (lock.keyStatus === 110412) {
2024-09-03 17:24:03 +08:00
uni.showToast({
title: '钥匙已过期',
icon: 'none'
})
return
}
2025-02-06 11:37:41 +08:00
if (lock.keyStatus === 110405) {
2024-09-03 17:24:03 +08:00
uni.showToast({
title: '钥匙已冻结',
icon: 'none'
})
return
}
2024-08-22 16:37:15 +08:00
let result = true
2025-02-06 11:37:41 +08:00
if (!this.isInitBluetooth) {
2024-08-22 16:37:15 +08:00
result = await this.initAndListenBluetooth()
}
2025-02-06 11:37:41 +08:00
if (result) {
const data = {
...lock,
name: lock.bluetooth.bluetoothDeviceName,
deviceId: lock.bluetooth.bluetoothDeviceId,
commKey: lock.bluetooth.privateKey,
signKey: lock.bluetooth.signKey,
2025-02-06 11:37:41 +08:00
publicKey: lock.bluetooth.publicKey
}
2024-08-26 20:04:22 +08:00
this.updateKeyId(lock.keyId.toString())
this.updateCurrentLockInfo(data)
2024-08-22 16:37:15 +08:00
this.routeJump({
name: 'lockDetail'
})
} else {
this.checkSetting()
}
}
2025-02-06 11:37:41 +08:00
}
}
</script>
<style lang="scss">
2025-02-06 11:37:41 +08:00
page {
background-color: $uni-bg-color-grey;
}
2024-09-04 13:57:03 +08:00
2025-02-06 11:37:41 +08:00
.u-swipe-action {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
2025-03-28 10:00:27 +08:00
width: 672rpx;
padding-bottom: 32rpx;
overflow: inherit !important;
2025-02-06 11:37:41 +08:00
}
2024-09-04 13:57:03 +08:00
2025-02-06 11:37:41 +08:00
.u-swipe-action-item {
2025-03-28 10:00:27 +08:00
width: 320rpx;
height: 300rpx;
2025-02-06 11:37:41 +08:00
margin-top: 32rpx;
overflow: inherit !important;
border-radius: 32rpx !important;
}
2024-09-04 13:57:03 +08:00
2025-02-06 11:37:41 +08:00
.u-swipe-action-item__right {
border-radius: 32rpx !important;
}
2024-09-04 13:57:03 +08:00
2025-02-06 11:37:41 +08:00
.u-swipe-action-item__content {
border-radius: 32rpx !important;
}
2024-09-04 13:57:03 +08:00
2025-02-06 11:37:41 +08:00
.u-swipe-action-item__right__button {
border-radius: 32rpx !important;
}
</style>
<style scoped lang="scss">
2025-02-06 11:37:41 +08:00
.search {
width: 686rpx !important;
2025-03-28 10:00:27 +08:00
margin-top: 32rpx;
2025-02-06 11:37:41 +08:00
margin-left: 32rpx;
}
2024-08-22 15:03:30 +08:00
2025-02-06 11:37:41 +08:00
.button-login {
width: 650rpx;
height: 120rpx;
margin-left: 50rpx;
font-size: 48rpx;
font-weight: bold;
2025-03-28 10:00:27 +08:00
line-height: 120rpx;
color: #ffffff;
text-align: center;
background: #63b8af;
border-radius: 46rpx;
2025-02-06 11:37:41 +08:00
}
2024-08-22 15:03:30 +08:00
2025-02-06 11:37:41 +08:00
.button-add {
position: fixed;
right: 50rpx;
bottom: 50rpx;
2025-03-28 10:00:27 +08:00
width: 120rpx;
height: 120rpx;
2025-02-06 11:37:41 +08:00
border-radius: 50%;
}
2024-08-22 15:03:30 +08:00
2025-02-06 11:37:41 +08:00
.lock-list {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
2025-03-28 10:00:27 +08:00
width: 672rpx;
padding-bottom: 32rpx;
margin-left: 39rpx;
2024-08-22 15:03:30 +08:00
2025-02-06 11:37:41 +08:00
.lock {
width: 320rpx;
height: 300rpx;
background: #ffffff;
border-radius: 32rpx;
2025-03-28 10:00:27 +08:00
box-shadow: 0 8rpx 36rpx 0 rgba(0, 0, 0, 0.12);
2024-08-22 15:03:30 +08:00
2025-02-06 11:37:41 +08:00
.lock-name {
2025-03-28 10:00:27 +08:00
display: -webkit-box;
2025-02-06 11:37:41 +08:00
padding: 0 24rpx;
2025-03-28 10:00:27 +08:00
overflow: hidden;
text-overflow: ellipsis;
-webkit-line-clamp: 2;
2025-02-06 11:37:41 +08:00
font-size: 32rpx;
font-weight: bold;
line-height: 38rpx;
2025-03-28 10:00:27 +08:00
word-break: break-all;
2025-02-06 11:37:41 +08:00
white-space: normal;
2025-03-28 10:00:27 +08:00
-webkit-box-orient: vertical;
2025-02-06 11:37:41 +08:00
}
2024-08-22 15:03:30 +08:00
2025-02-06 11:37:41 +08:00
.lock-time {
padding: 6rpx 24rpx 0 24rpx;
font-size: 22rpx;
font-weight: bold;
2024-08-22 15:03:30 +08:00
}
2025-02-06 11:37:41 +08:00
.lock-top {
2024-08-22 15:03:30 +08:00
display: flex;
align-items: center;
2025-02-06 11:37:41 +08:00
justify-content: space-between;
padding: 24rpx 24rpx 12rpx 24rpx;
font-size: 22rpx;
.lock-image-lock {
width: 64rpx;
height: 64rpx;
}
.lock-top-right-power {
display: flex;
align-items: center;
2024-08-22 15:03:30 +08:00
2025-02-06 11:37:41 +08:00
.lock-top-right-power-image {
width: 40rpx;
height: 24rpx;
margin-right: 10rpx;
}
2024-08-22 15:03:30 +08:00
}
}
}
2025-02-06 11:37:41 +08:00
.group {
2024-08-22 15:03:30 +08:00
display: flex;
2025-02-06 11:37:41 +08:00
flex-wrap: wrap;
justify-content: space-between;
2025-03-28 10:00:27 +08:00
width: 672rpx;
margin-top: 32rpx;
2024-08-22 15:03:30 +08:00
2025-02-06 11:37:41 +08:00
.group-name {
display: flex;
align-items: center;
2025-03-28 10:00:27 +08:00
width: 672rpx;
2025-02-06 11:37:41 +08:00
font-size: 32rpx;
font-weight: bold;
}
.group-name-text {
padding: 0 32rpx;
word-break: break-all;
}
2024-08-22 15:03:30 +08:00
2025-02-06 11:37:41 +08:00
.group-name-line {
flex-grow: 1;
height: 3rpx;
background: #e5e5e5;
}
2024-08-22 15:03:30 +08:00
}
}
2025-02-06 11:37:41 +08:00
.button-add-big {
width: 400rpx;
height: 400rpx;
margin-top: 300rpx;
margin-left: 136rpx;
}
2024-08-22 15:03:30 +08:00
2025-02-06 11:37:41 +08:00
.text {
width: 672rpx;
2025-03-28 10:00:27 +08:00
margin-top: 32rpx;
2025-02-06 11:37:41 +08:00
font-size: 32rpx;
2025-03-28 10:00:27 +08:00
font-weight: bold;
2025-02-06 11:37:41 +08:00
color: #999999;
text-align: center;
}
2025-02-06 11:37:41 +08:00
.tips {
padding: 32rpx 0;
2025-03-28 10:00:27 +08:00
margin-top: 40vh;
2025-02-06 11:37:41 +08:00
font-size: 28rpx;
color: #999999;
2025-03-28 10:00:27 +08:00
text-align: center;
2025-02-06 11:37:41 +08:00
}
2024-09-03 17:24:03 +08:00
2025-02-06 11:37:41 +08:00
.lock-status {
2025-03-28 10:00:27 +08:00
display: inline-block;
padding: 4rpx 8rpx;
2025-02-06 11:37:41 +08:00
margin-top: 5rpx;
margin-left: 24rpx;
font-size: 22rpx;
font-weight: bold;
2025-03-28 10:00:27 +08:00
color: #ffffff;
2025-02-06 11:37:41 +08:00
text-align: center;
2025-03-28 10:00:27 +08:00
background-color: #ecab1f;
border-radius: 8rpx;
2025-02-06 11:37:41 +08:00
}
</style>