6170增加强制报警页面功能
This commit is contained in:
@ -25,7 +25,7 @@
|
||||
<view class="battery-v1">
|
||||
<image src="/static/images/common/nz.png" class="dlIMG" mode="aspectFit"></image>
|
||||
<view>
|
||||
<view class="battery-v2">1小时</view>
|
||||
<view class="battery-v2">{{deviceInfo.batteryRemainingTime}}分钟</view>
|
||||
<view class="battery-v3">续航时间</view>
|
||||
</view>
|
||||
</view>
|
||||
@ -58,17 +58,24 @@
|
||||
</view>
|
||||
<!-- ===========主副机选择============= -->
|
||||
<view class="mode-section">
|
||||
|
||||
<view class="radio-group">
|
||||
<view v-for="(item, index) in radioList" :key="index" @click="handleRadioSelect(index)"
|
||||
class="group-item">
|
||||
<view class="radio-icon" :class="{ 'selected': radioSelected === index }">
|
||||
{{ item }}
|
||||
<view class="uni-border"></view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<!-- 灯光模式选择 -->
|
||||
<view class="mode-section">
|
||||
<view class="mode-buttons">
|
||||
<view class="mode-v1">
|
||||
<view class="mode-v2" @click="selectMode('main')">
|
||||
<view class="mode-v2" @click="selectMode">
|
||||
<image src="/static/images/210/lj.png" class="setIMG"></image>
|
||||
<view>
|
||||
<view class="battery-v2">灯光模式</view>
|
||||
<view class="mode-v3">{{ currentMainMode }}</view>
|
||||
<view class="battery-v2">联机设备</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@ -115,7 +122,7 @@
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
|
||||
</view>
|
||||
</view>
|
||||
|
||||
@ -278,9 +285,7 @@
|
||||
secondaryMode: 'string',
|
||||
navBarHeight: 70 + uni.getSystemInfoSync().statusBarHeight,
|
||||
navTitle: "",
|
||||
|
||||
lightModeA: false,
|
||||
currentMainMode: '强光',
|
||||
lightModeB: false,
|
||||
lightModeC: false, //激光提示框
|
||||
items: [],
|
||||
@ -306,12 +311,9 @@
|
||||
showUploadPopup: false,
|
||||
selectedImage: null, // 添加这个变量来存储选择的图片
|
||||
file: '',
|
||||
selectedItemIndex: 0
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
popupTitle() {
|
||||
return this.modeType === 'main' ? '灯光模式' : '激光模式';
|
||||
selectedItemIndex: 0,
|
||||
radioList: ['M', 'S'],
|
||||
radioSelected: 0, // -1表示未选中任何项
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
@ -321,48 +323,21 @@
|
||||
this.lightModeB = false;
|
||||
this.lightModeC = false;
|
||||
},
|
||||
handleRadioSelect(index) {
|
||||
this.radioSelected = index;
|
||||
console.log('选中了单选选项:', this.radioList[index]);
|
||||
},
|
||||
// *******定位******
|
||||
gpsPosition() {
|
||||
uni.navigateTo({
|
||||
url: '/pages/common/map/index'
|
||||
})
|
||||
},
|
||||
selectMode(type) {
|
||||
this.modeType = type;
|
||||
this.lightModeA = true;
|
||||
if (type === 'main') {
|
||||
this.items = [{
|
||||
text: '强光',
|
||||
selected: this.currentMainMode === '强光', // 修正匹配条件
|
||||
image: '/static/images/sett.png',
|
||||
instructValue: '1'
|
||||
},
|
||||
{
|
||||
text: '弱光',
|
||||
selected: this.currentMainMode === '弱光',
|
||||
image: '/static/images/rg.png',
|
||||
instructValue: '2'
|
||||
},
|
||||
{
|
||||
text: '爆闪',
|
||||
selected: this.currentMainMode === '爆闪',
|
||||
image: '/static/images/bs.png',
|
||||
instructValue: '3'
|
||||
},
|
||||
{
|
||||
text: '泛光',
|
||||
selected: this.currentMainMode === '泛光',
|
||||
image: '/static/images/settt.png',
|
||||
instructValue: '4'
|
||||
},
|
||||
{
|
||||
text: '关闭',
|
||||
selected: this.currentMainMode === '关闭',
|
||||
image: '/static/images/close.png',
|
||||
instructValue: '0'
|
||||
},
|
||||
];
|
||||
}
|
||||
// 联机设备
|
||||
selectMode() {
|
||||
uni.navigateTo({
|
||||
url:'/pages/210/onlineDevice/index'
|
||||
})
|
||||
},
|
||||
// 人员信息登录
|
||||
toggleForm() {
|
||||
@ -488,7 +463,7 @@
|
||||
// 显示上传中加载提示
|
||||
uni.showLoading({
|
||||
title: '上传中...',
|
||||
mask: true
|
||||
mask: true
|
||||
});
|
||||
|
||||
uni.uploadFile({
|
||||
@ -717,7 +692,7 @@
|
||||
});
|
||||
});
|
||||
});
|
||||
this.fetchDeviceDetail(data.data.id)
|
||||
this.fetchDeviceDetail(data.data.id)
|
||||
|
||||
});
|
||||
// 如果需要向调用页面返回数据,可以触发 'ack' 事件
|
||||
@ -857,6 +832,41 @@
|
||||
padding-top: 10rpx;
|
||||
}
|
||||
|
||||
.radio-group {
|
||||
display: flex;
|
||||
gap: 12px;
|
||||
align-items: center;
|
||||
margin-bottom: 20rpx;
|
||||
font-size:200rpx;
|
||||
}
|
||||
|
||||
.group-item {
|
||||
background: rgba(26, 26, 26, 1);
|
||||
width: 100%;
|
||||
height: 136rpx;
|
||||
border-radius: 72rpx;
|
||||
text-align: center;
|
||||
line-height:136rpx;
|
||||
position: relative;
|
||||
}
|
||||
.radio-icon.selected {
|
||||
background-color: rgba(174, 214, 0, 1);
|
||||
transition: background-color 0.3s;
|
||||
border-radius: 72rpx;
|
||||
}
|
||||
.radio-icon{
|
||||
font-size:50rpx;
|
||||
}
|
||||
.uni-border{
|
||||
border:4rpx solid rgba(26, 26, 26, 1);
|
||||
width:96%;
|
||||
height:123rpx;
|
||||
position: absolute;
|
||||
top:7rpx;
|
||||
left:6rpx;
|
||||
border-radius:72rpx;
|
||||
}
|
||||
|
||||
.info-card {
|
||||
background-color: rgb(26, 26, 26);
|
||||
border-radius: 16rpx;
|
||||
@ -885,10 +895,12 @@
|
||||
color: rgba(255, 255, 255, 0.6);
|
||||
text-align: end;
|
||||
}
|
||||
.status-greend{
|
||||
|
||||
.status-greend {
|
||||
color: rgba(174, 214, 0, 1);
|
||||
text-align: end;
|
||||
}
|
||||
|
||||
.light {
|
||||
position: absolute;
|
||||
/* top:10rpx; */
|
||||
|
Reference in New Issue
Block a user