diff --git a/App.vue b/App.vue index eb33ca0..0a64e24 100644 --- a/App.vue +++ b/App.vue @@ -1,8 +1,11 @@ diff --git a/pages.json b/pages.json index 04417a3..70d1c3c 100644 --- a/pages.json +++ b/pages.json @@ -17,6 +17,21 @@ "style": { "navigationStyle": "custom" } + }, + { + "path": "pages/upapp", + "style": { + "app-plus": { + "animationDuration": 200, + "animationType": "fade-in", + "background": "transparent", + "backgroundColorTop": "transparent", + "popGesture": "none", + "scrollIndicator": false, + "titleNView": false + }, + "disableScroll": true + } } diff --git a/pages/index.vue b/pages/index.vue index 05c068e..b4ee1c2 100644 --- a/pages/index.vue +++ b/pages/index.vue @@ -102,6 +102,7 @@ import passingTheCar from "./pages/passingTheCar.vue" import warningInformation from "./pages/warningInformation.vue" import qjcamera from "./pages/camera.vue" + import { nextTick, ref, @@ -113,8 +114,11 @@ } from "/appapi/index.js" import { + onBackPress, onShow } from "@dcloudio/uni-app" + + // 页面管理 const refhistory = ref() const refsetUp = ref() const refcamera = ref() @@ -124,7 +128,9 @@ const selectindex = ref("") const showout = ref(false); const showsignOut = ref(false); - + // 结束 + + // 设备 const allDevices = ref([]) const Devicesid = ref('') // 子页面状态管理 @@ -132,7 +138,18 @@ nextTick(() => { settab(0) }) - + + // 处理子页面弹窗 和详情页面打开 返回关闭详情页面不关闭应用 + let _isback=false; + uni.$on('back',(e)=>{ + _isback=e; + }) + onBackPress(()=>{ + uni.$emit('close') + return _isback + }) + + uni.$on('LOGOUT', () => { showout.value = true; }) diff --git a/pages/pages/details.vue b/pages/pages/details.vue index 57879c5..0b16679 100644 --- a/pages/pages/details.vue +++ b/pages/pages/details.vue @@ -10,19 +10,19 @@ 暂扣 - + 确认暂扣 - 是否确定暂时扣行该车辆,请点击此按钮。 + 是否确定暂时扣行该车辆,请点击此按钮。 放行 - + 确认放行 - 是否确定放行该车辆,请点击此按钮。 + 是否确定放行该车辆,请点击此按钮。 @@ -31,7 +31,7 @@ 超速信息 - 放行时间:2025-08-13 18:0 + 放行时间:{{info.releaseInfo?.releaseTime}} @@ -39,55 +39,55 @@ 车牌号码 - 晋MP6400 + {{info.basicInfo?.vehicleNumber}} 超速等级 - 超速10%-20% + {{info.overspeedInfo?.overspeedLevelInformation}} - 设备001位置 + 设备{{info.intervalInfo?.startId}}位置 - 中国内蒙古自治区锡林郭勒盟西乌珠穆沁旗巴 - 108.000000 / 109.293 + {{info.intervalInfo?.startDeviceJson?.position}} + {{info.intervalInfo?.startDeviceJson?.longitude}} / {{info.intervalInfo?.startDeviceJson?.latitude}} - 设备002位置 + 设备{{info.intervalInfo?.endId}}位置 - 中国内蒙古自治区锡林郭勒盟西乌珠穆沁旗巴 - 108.000000 / 109.293 + {{info.intervalInfo?.endDeviceJson?.position}} + {{info.intervalInfo?.endDeviceJson?.longitude}} / {{info.intervalInfo?.endDeviceJson?.latitude}} - + - 通过设备001时间 + 通过设备{{info.intervalInfo?.startId}}时间 - 2025-08-13 12:00:00 + {{info.intervalInfo?.startDeviceTime}} 区间距离 - 438公里 + {{info.intervalInfo?.zoneDistanceText}} - 通过设备001时间 + 通过设备{{info.intervalInfo?.endId}}时间 - 2025-08-13 12:00:00 + {{info.intervalInfo?.endDeviceTime}} 区间限速 - 80km/h + {{info.intervalInfo?.speedText}} @@ -95,11 +95,11 @@ 最短行驶时长 - 4小时02分钟 + {{info.intervalInfo?.passingTimeText}} 实际行驶时长 - 3小时48分钟 + {{info.overspeedInfo?.exerciseDurationText}} @@ -107,31 +107,31 @@ 平均车速 - 100km/h + {{info.overspeedInfo?.averageSpeedText}} 待休息时长 - 15分钟 + {{info.overspeedInfo?.restDurationText}} - 设备001 抓取照片 + 设备{{info.intervalInfo?.startId}} 抓取照片 - - 2025-08-13 12:00:00 + + {{info.intervalInfo?.startDeviceTime}} - 设备001 抓取照片 + 设备{{info.intervalInfo?.endId}} 抓取照片 - - 2025-08-13 12:00:00 + + {{info.intervalInfo?.endDeviceTime}} @@ -142,18 +142,18 @@ 暂扣时间 - 2025-08-13 12:00:00 + {{info.detainTime?.detainTime || '/'}} 放行时间 - / + {{info.releaseInfo?.releaseTime || '/'}} 暂扣照片 - + 放行照片 - + @@ -170,7 +170,7 @@ {{type==1?"车辆暂扣":'车辆放行'}} - 放行时间:2025-08-13 15:0 + 放行时间:{{time}} @@ -191,15 +191,41 @@