diff --git a/components/CustomPopup/CustomPopup.vue b/components/CustomPopup/CustomPopup.vue
index e2ca6db..04265a0 100644
--- a/components/CustomPopup/CustomPopup.vue
+++ b/components/CustomPopup/CustomPopup.vue
@@ -1,182 +1,183 @@
-
-
-
+
+
+
\ No newline at end of file
diff --git a/pages.json b/pages.json
index b79a3a0..726fde2 100644
--- a/pages.json
+++ b/pages.json
@@ -1,6 +1,6 @@
{
"pages": [
-
+
{
"path": "pages/common/login/index",
"style": {
@@ -8,9 +8,9 @@
}
},
-
-
-
+
+
+
{
"path": "pages/common/index/index",
"style": {
@@ -65,6 +65,13 @@
"navigationStyle": "custom"
}
},
+ {
+ "path": "pages/6170/callPolice/index",
+ "style": {
+ "navigationBarTitleText": "报警"
+ }
+ },
+
{
"path": "pages/210/deviceControl/index",
"style": {
@@ -98,31 +105,27 @@
}
},
{
- "path" : "pages/common/addBLE/addEquip",
- "style" :
- {
- "navigationBarTitleText" : "添加设备"
+ "path": "pages/common/addBLE/addEquip",
+ "style": {
+ "navigationBarTitleText": "添加设备"
}
},
{
- "path" : "pages/common/addBLE/LinkBle",
- "style" :
- {
- "navigationBarTitleText" : "扫描到的设备"
+ "path": "pages/common/addBLE/LinkBle",
+ "style": {
+ "navigationBarTitleText": "扫描到的设备"
}
},
{
- "path" : "pages/6155/deviceDetail",
- "style" :
- {
- "navigationBarTitleText" : "HBY 6155"
+ "path": "pages/6155/deviceDetail",
+ "style": {
+ "navigationBarTitleText": "HBY 6155"
}
},
{
- "path" : "pages/6155/ImgCrop",
- "style" :
- {
- "navigationBarTitleText" : "图像裁剪",
+ "path": "pages/6155/ImgCrop",
+ "style": {
+ "navigationBarTitleText": "图像裁剪",
"navigationStyle": "custom",
"fullscreen": true
}
@@ -145,7 +148,7 @@
"navigationBarTitleText": "所有分享"
}
},
-
+
{
"path": "pages/6170/share/index",
"style": {
@@ -163,8 +166,15 @@
"style": {
"navigationBarTitleText": "分享管理"
}
+ },
+ {
+ "path": "pages/210/onlineDevice/index",
+ "style": {
+ "navigationBarTitleText": "联机设备"
+ }
}
- ],
+
+ ],
"tabBar": {
"color": "#fff",
"selectedColor": "#BBE600",
diff --git a/pages/210/deviceControl/index.vue b/pages/210/deviceControl/index.vue
index 708c64d..9ba6078 100644
--- a/pages/210/deviceControl/index.vue
+++ b/pages/210/deviceControl/index.vue
@@ -25,7 +25,7 @@
- 1小时
+ {{deviceInfo.batteryRemainingTime}}分钟
续航时间
@@ -58,17 +58,24 @@
-
+
+
+
+ {{ item }}
+
+
+
+
-
+
- 灯光模式
- {{ currentMainMode }}
+ 联机设备
@@ -115,7 +122,7 @@
-
+
@@ -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; */
diff --git a/pages/210/onlineDevice/index.vue b/pages/210/onlineDevice/index.vue
new file mode 100644
index 0000000..30dd0e9
--- /dev/null
+++ b/pages/210/onlineDevice/index.vue
@@ -0,0 +1,241 @@
+
+
+
+
+ 呼叫
+ 发送信息
+
+
+
+
+
+
+
+ 1
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/6170/callPolice/index.vue b/pages/6170/callPolice/index.vue
new file mode 100644
index 0000000..70a2ff0
--- /dev/null
+++ b/pages/6170/callPolice/index.vue
@@ -0,0 +1,332 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/6170/deviceControl/index.vue b/pages/6170/deviceControl/index.vue
index e570ec8..dceb64d 100644
--- a/pages/6170/deviceControl/index.vue
+++ b/pages/6170/deviceControl/index.vue
@@ -144,7 +144,7 @@
-
+
diff --git a/pages/common/index/index.vue b/pages/common/index/index.vue
index 52acd6f..335afba 100644
--- a/pages/common/index/index.vue
+++ b/pages/common/index/index.vue
@@ -19,7 +19,7 @@
-
+ 报警
位置
发送信息
@@ -402,6 +402,23 @@
}
})
},
+ // 报警
+ callpolice(){
+ const currentTab = this.tabs[this.activeTab];
+ const deviceType = currentTab.id || 'all';
+ console.log(`跳转到发送信息页面\n当前设备类型: ${deviceType}\n设备类型名称: ${currentTab.typeName}`);
+ uni.navigateTo({
+ url: '/pages/6170/callPolice/index',
+ events: {
+ ack: function(data) {}
+ },
+ success: (res) => {
+ res.eventChannel.emit('devicePolice', {
+ data: deviceType
+ });
+ }
+ })
+ },
// 发生短信
handleSend() {
const currentTab = this.tabs[this.activeTab];
diff --git a/pages/common/send/index.vue b/pages/common/send/index.vue
index e98dd31..ef21f1e 100644
--- a/pages/common/send/index.vue
+++ b/pages/common/send/index.vue
@@ -165,6 +165,7 @@
display: flex;
align-items: center;
width: 95%;
+ margin-bottom: 20rpx;
}
.checkbox {
diff --git a/static/images/6170/bj.png b/static/images/6170/bj.png
new file mode 100644
index 0000000..9078adb
Binary files /dev/null and b/static/images/6170/bj.png differ