feat(equipment): 实现设备管理页面,新增运维模式与配对/补传弹框

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
17792275749
2026-08-19 14:27:51 +08:00
co-authored by Claude Opus 4.7
parent 3a67b26ed6
commit eaec08a6e4
15 changed files with 520 additions and 59 deletions
@@ -0,0 +1,4 @@
{
"component": true,
"usingComponents": {}
}
@@ -0,0 +1,42 @@
.equipment-mask {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(37, 37, 53, 0.6);
z-index: 100;
}
.equipment-panel {
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 560rpx;
box-sizing: border-box;
background-color: #FFFFFF;
border-radius: 24rpx;
z-index: 101;
display: flex;
flex-direction: column;
align-items: center;
padding: 100rpx 40rpx;
.equipment-title {
color: #252535;
height: 32rpx;
font-size: 32rpx;
line-height: 32rpx;
text-align: center;
}
.equipment-content {
color: #808080;
font-size: 24rpx;
line-height: 34rpx;
text-align: center;
margin-top: 24rpx;
white-space: pre-line;
}
}
@@ -0,0 +1,26 @@
Component({
properties: {
/** 是否显示弹框 */
show: {
type: Boolean,
value: false
},
/** 标题 */
title: {
type: String,
value: ''
},
/** 副标题(支持 \n 换行) */
content: {
type: String,
value: ''
}
},
methods: {
/** 点击遮罩关闭 */
onTapMask() {
this.triggerEvent('close')
}
}
})
@@ -0,0 +1,7 @@
<block wx:if="{{ show }}">
<view class="equipment-mask" bind:tap="onTapMask"></view>
<view class="equipment-panel">
<view class="equipment-title">{{ title }}</view>
<view class="equipment-content">{{ content }}</view>
</view>
</block>