添加两个接口,初始化界面设备控制界面
This commit is contained in:
parent
b43cdc6ccb
commit
e9154239e4
|
|
@ -20,3 +20,21 @@ export function bstDevice(data) {
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export function sendCommand(data) {
|
||||||
|
return request({
|
||||||
|
url: "/app/memorial/sendCommand",
|
||||||
|
method: "POST",
|
||||||
|
data: data,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
export function getDeviceData(mac) {
|
||||||
|
return request({
|
||||||
|
url: "/app/memorial/getDeviceData",
|
||||||
|
method: "GET",
|
||||||
|
params: {
|
||||||
|
mac: mac,
|
||||||
|
},
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
|
||||||
13
page_user/deviceControl/deviceControl.vue
Normal file
13
page_user/deviceControl/deviceControl.vue
Normal file
|
|
@ -0,0 +1,13 @@
|
||||||
|
<template>
|
||||||
|
<view class="">
|
||||||
|
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script setup>
|
||||||
|
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
|
||||||
|
</style>
|
||||||
|
|
@ -282,6 +282,13 @@
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": ""
|
"navigationBarTitleText": ""
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path" : "deviceControl/deviceControl",
|
||||||
|
"style" :
|
||||||
|
{
|
||||||
|
"navigationBarTitleText" : ""
|
||||||
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user