hldy_app/pages/watch/api/lunpan.js

19 lines
635 B
JavaScript

// 引入 request 文件
import request from '@/request/guanli.js'
// 以下 api 为博主项目示例,实际与项目相匹配
// 用你给的四个固定值
export const movedirection = (direction,startOrNot) => {
const url = `/iot/tplink/cameraInfo/motionCtrl?deviceIndex=${uni.getStorageSync('saveinit') ? uni.getStorageSync('saveinit'): 5}&direction=${direction}&startOrNot=${startOrNot}&speed=1`;
return request({ url, method: 'get' });
}
// 获取护理单元
export const queryPadPageList = () => {
return request({
url: `${uni.getStorageSync('serverUrl')}/api/pad/baseInfo/queryPadPageList`,
method: 'get'
})
}