This commit is contained in:
Teng 2025-10-29 09:08:02 +08:00
parent 364892a6a3
commit 86fa4cc4bf
3 changed files with 26 additions and 14 deletions

View File

@ -97,15 +97,15 @@ export const waterwaterRead = (cid,address) => {
// })
// }
// 摄像头报修
// export const humidDevicebaoxiu = (id) => {
// return request({
// url: `${uni.getStorageSync('serverUrl')}/api/iot/humidDevice/baoxiu`,
// method: 'post',
// data: {
// id:id
// },
// })
// }
export const cameraInfobaoxiu = (id) => {
return request({
url: `${uni.getStorageSync('serverUrl')}/api/iot/tplink/cameraInfo/baoxiu`,
method: 'post',
data: {
id:id
},
})
}
// 温湿度计保修
export const humidDevicebaoxiu = (id) => {
return request({

View File

@ -465,7 +465,7 @@
import { ref, onMounted, onBeforeUnmount, computed, nextTick, defineProps, watch, onUnmounted } from 'vue';
import {
electricityMeterlist, electricityMetereleReset, electricityMetereleControl, electricityMeterbaoxiu, electricityMeteleRead,
waterwaterReset, waterwaterControl, waterbaoxiu, waterwaterRead, humidDevicebaoxiu, updateDeviceRealTime
waterwaterReset, waterwaterControl, waterbaoxiu, waterwaterRead, humidDevicebaoxiu, updateDeviceRealTime,cameraInfobaoxiu
} from "./api.js"
import { movedirection, queryPadPageList } from '@/pages/watch/api/lunpan.js'
import joysticknew from '@/component/public/newgame/joysticknew.vue';
@ -1286,6 +1286,20 @@
init()
}, 4000)
})
}else if (typeNow.value == 0) {
cameraInfobaoxiu(tempmessage.value.id).then((res : any) => {
uni.showToast({
title: res.message,
icon: 'none', // 'success' | 'none' 'loading'
duration: 1500,
mask: false
})
// console.log("!1", res)
setTimeout(() => {
init()
}, 4000)
})
}
@ -1723,9 +1737,7 @@
}
}
onUnmounted(() => {
clearInterval(timer)
})
</script>
<style scoped lang="less">

View File

@ -69,7 +69,7 @@
if (index > 5) { return }
housedex.value = index;
console.log("index", index)
// .....
// .....
if (index === 5) {
uni.navigateTo({
url: "/pages/watch/full"