This commit is contained in:
parent
364892a6a3
commit
86fa4cc4bf
|
|
@ -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({
|
||||
|
|
|
|||
|
|
@ -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">
|
||||
|
|
|
|||
|
|
@ -69,7 +69,7 @@
|
|||
if (index > 5) { return }
|
||||
housedex.value = index;
|
||||
console.log("index", index)
|
||||
// 只有中心的四个有动画.....所以点不到监控室,等有图吧
|
||||
// 只有中心的四个有动画.....所以点不到监控室
|
||||
if (index === 5) {
|
||||
uni.navigateTo({
|
||||
url: "/pages/watch/full"
|
||||
|
|
|
|||
Loading…
Reference in New Issue