This commit is contained in:
parent
364892a6a3
commit
86fa4cc4bf
|
|
@ -97,15 +97,15 @@ export const waterwaterRead = (cid,address) => {
|
||||||
// })
|
// })
|
||||||
// }
|
// }
|
||||||
// 摄像头报修
|
// 摄像头报修
|
||||||
// export const humidDevicebaoxiu = (id) => {
|
export const cameraInfobaoxiu = (id) => {
|
||||||
// return request({
|
return request({
|
||||||
// url: `${uni.getStorageSync('serverUrl')}/api/iot/humidDevice/baoxiu`,
|
url: `${uni.getStorageSync('serverUrl')}/api/iot/tplink/cameraInfo/baoxiu`,
|
||||||
// method: 'post',
|
method: 'post',
|
||||||
// data: {
|
data: {
|
||||||
// id:id
|
id:id
|
||||||
// },
|
},
|
||||||
// })
|
})
|
||||||
// }
|
}
|
||||||
// 温湿度计保修
|
// 温湿度计保修
|
||||||
export const humidDevicebaoxiu = (id) => {
|
export const humidDevicebaoxiu = (id) => {
|
||||||
return request({
|
return request({
|
||||||
|
|
|
||||||
|
|
@ -465,7 +465,7 @@
|
||||||
import { ref, onMounted, onBeforeUnmount, computed, nextTick, defineProps, watch, onUnmounted } from 'vue';
|
import { ref, onMounted, onBeforeUnmount, computed, nextTick, defineProps, watch, onUnmounted } from 'vue';
|
||||||
import {
|
import {
|
||||||
electricityMeterlist, electricityMetereleReset, electricityMetereleControl, electricityMeterbaoxiu, electricityMeteleRead,
|
electricityMeterlist, electricityMetereleReset, electricityMetereleControl, electricityMeterbaoxiu, electricityMeteleRead,
|
||||||
waterwaterReset, waterwaterControl, waterbaoxiu, waterwaterRead, humidDevicebaoxiu, updateDeviceRealTime
|
waterwaterReset, waterwaterControl, waterbaoxiu, waterwaterRead, humidDevicebaoxiu, updateDeviceRealTime,cameraInfobaoxiu
|
||||||
} from "./api.js"
|
} from "./api.js"
|
||||||
import { movedirection, queryPadPageList } from '@/pages/watch/api/lunpan.js'
|
import { movedirection, queryPadPageList } from '@/pages/watch/api/lunpan.js'
|
||||||
import joysticknew from '@/component/public/newgame/joysticknew.vue';
|
import joysticknew from '@/component/public/newgame/joysticknew.vue';
|
||||||
|
|
@ -1286,6 +1286,20 @@
|
||||||
init()
|
init()
|
||||||
}, 4000)
|
}, 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>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="less">
|
<style scoped lang="less">
|
||||||
|
|
|
||||||
|
|
@ -69,7 +69,7 @@
|
||||||
if (index > 5) { return }
|
if (index > 5) { return }
|
||||||
housedex.value = index;
|
housedex.value = index;
|
||||||
console.log("index", index)
|
console.log("index", index)
|
||||||
// 只有中心的四个有动画.....所以点不到监控室,等有图吧
|
// 只有中心的四个有动画.....所以点不到监控室
|
||||||
if (index === 5) {
|
if (index === 5) {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: "/pages/watch/full"
|
url: "/pages/watch/full"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue