wx-program
parent
ac5bca0418
commit
80f6a17a79
|
@ -63,6 +63,9 @@ let api = {
|
|||
readControl_interiorthermalinsulation:'/readControl/interiorthermalinsulation',//读取(内保温)控制器
|
||||
|
||||
equip_chartdata:'/equip/chartdata',//气象站实时数据折线图
|
||||
|
||||
camera_start:'/camera/start',//摄像头开始
|
||||
camera_stop:'/camera/stop',//摄像头结束
|
||||
|
||||
|
||||
//countType计算类型 0是原数据 1是原数据-400 2是原数据/10 3是(原数据-400) / 10 4是(原数据-1000)/10
|
||||
|
|
|
@ -114,45 +114,59 @@
|
|||
}else if(num == 9){
|
||||
this.flag2 = false;
|
||||
}
|
||||
let that = this;
|
||||
uni.request({
|
||||
url: 'https://open.ys7.com/api/lapp/device/ptz/start',
|
||||
// let that = this;
|
||||
// uni.request({
|
||||
// url: 'https://open.ys7.com/api/lapp/device/ptz/start',
|
||||
// method: 'POST',
|
||||
// data:{
|
||||
// accessToken: that.accesstoken,
|
||||
// deviceSerial: that.cameraSerialNumber,
|
||||
// channelNo: that.cameraChannelNumber,
|
||||
// direction:num,
|
||||
// speed: 1,
|
||||
// },
|
||||
// header: {
|
||||
// 'Content-Type': 'application/x-www-form-urlencoded',
|
||||
// },
|
||||
// success: (res) => {
|
||||
// // console.log(res);
|
||||
// }
|
||||
// });
|
||||
|
||||
this.$http({
|
||||
url: this.api.camera_start + '?cameraid=' + this.cameraSerialNumber + '&channelid=' + this.cameraChannelNumber + '&direction=' + num,
|
||||
method: 'POST',
|
||||
data:{
|
||||
accessToken: that.accesstoken,
|
||||
deviceSerial: that.cameraSerialNumber,
|
||||
channelNo: that.cameraChannelNumber,
|
||||
direction:num,
|
||||
speed: 1,
|
||||
},
|
||||
header: {
|
||||
'Content-Type': 'application/x-www-form-urlencoded',
|
||||
},
|
||||
success: (res) => {
|
||||
// console.log(res);
|
||||
}
|
||||
});
|
||||
}).then(res=>{
|
||||
|
||||
})
|
||||
},
|
||||
|
||||
touchend(num){
|
||||
this.directionFlag = 5
|
||||
let that = this;
|
||||
uni.request({
|
||||
url:'https://open.ys7.com/api/lapp/device/ptz/stop',
|
||||
// let that = this;
|
||||
// uni.request({
|
||||
// url:'https://open.ys7.com/api/lapp/device/ptz/stop',
|
||||
// method: 'POST',
|
||||
// data:{
|
||||
// accessToken: that.accesstoken,
|
||||
// deviceSerial: that.cameraSerialNumber,
|
||||
// channelNo: that.cameraChannelNumber,
|
||||
// direction:num,
|
||||
// speed: 1,
|
||||
// },
|
||||
// header: {
|
||||
// 'Content-Type': 'application/x-www-form-urlencoded',
|
||||
// },
|
||||
// success: (res) => {
|
||||
// // console.log(res);
|
||||
// }
|
||||
// })
|
||||
|
||||
this.$http({
|
||||
url: this.api.camera_stop + '?cameraid=' + this.cameraSerialNumber + '&channelid=' + this.cameraChannelNumber + '&direction=' + num,
|
||||
method: 'POST',
|
||||
data:{
|
||||
accessToken: that.accesstoken,
|
||||
deviceSerial: that.cameraSerialNumber,
|
||||
channelNo: that.cameraChannelNumber,
|
||||
direction:num,
|
||||
speed: 1,
|
||||
},
|
||||
header: {
|
||||
'Content-Type': 'application/x-www-form-urlencoded',
|
||||
},
|
||||
success: (res) => {
|
||||
// console.log(res);
|
||||
}
|
||||
}).then(res=>{
|
||||
|
||||
})
|
||||
},
|
||||
}
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -12006,7 +12006,7 @@ var api = (_api = {
|
|||
sel_user: "/api/sel/user",
|
||||
//根据id查询用户信息
|
||||
getFs_rtdata: "/getFs/rtdata"
|
||||
}, (0, _defineProperty2.default)(_api, "selFs_time", "/selFs/time"), (0, _defineProperty2.default)(_api, "sel_eqbyid", "/sel/eqbyid/"), (0, _defineProperty2.default)(_api, "chart_fsdata", "/chart/fsdata"), (0, _defineProperty2.default)(_api, "user_update_pwd", "/user/update/pwd"), (0, _defineProperty2.default)(_api, "readFs_state", "/readFs/state"), (0, _defineProperty2.default)(_api, "writeFs", "/writeFs"), (0, _defineProperty2.default)(_api, "readFs_reg", "/readFs/reg"), (0, _defineProperty2.default)(_api, "readJinHuaControl_reg", "/readJinHuaControl/reg"), (0, _defineProperty2.default)(_api, "writeJinHuaControl_write", "/writeJinHuaControl/write"), (0, _defineProperty2.default)(_api, "getcontrol_rtdata", "/getcontrol/rtdata"), (0, _defineProperty2.default)(_api, "getcontrol_fsdata", "/getcontrol/fsdata"), (0, _defineProperty2.default)(_api, "getcontrol_cpermission", '/getcontrol/cpermission'), (0, _defineProperty2.default)(_api, "getControl_getState", '/readControl/getState'), (0, _defineProperty2.default)(_api, "getReadControlliShuiControl", '/readControl/liShuiControl'), (0, _defineProperty2.default)(_api, "readControl_fiveControl", '/readControl/fiveControl'), (0, _defineProperty2.default)(_api, "getcontrol_wxgetpermission", '/getcontrol/wxgetpermission'), (0, _defineProperty2.default)(_api, "readControl_solenoidValve1", '/readControl/solenoidValve1'), (0, _defineProperty2.default)(_api, "readControl_solenoidValve2", '/readControl/solenoidValve2'), (0, _defineProperty2.default)(_api, "readControl_solenoidValve3", '/readControl/solenoidValve3'), (0, _defineProperty2.default)(_api, "readControl_solenoidValve4", '/readControl/solenoidValve4'), (0, _defineProperty2.default)(_api, "readControl_solenoidValve5", '/readControl/solenoidValve5'), (0, _defineProperty2.default)(_api, "readControl_solenoidValve6", '/readControl/solenoidValve6'), (0, _defineProperty2.default)(_api, "readControl_solenoidValve7", '/readControl/solenoidValve7'), (0, _defineProperty2.default)(_api, "readControl_solenoidValve8", '/readControl/solenoidValve8'), (0, _defineProperty2.default)(_api, "readControl_readfilllight", '/readControl/readfilllight'), (0, _defineProperty2.default)(_api, "readControl_readcirculationfan", '/readControl/readcirculationfan'), (0, _defineProperty2.default)(_api, "readControl_fanwetcurtain", '/readControl/fanwetcurtain'), (0, _defineProperty2.default)(_api, "readControl_innercurtain", '/readControl/innercurtain'), (0, _defineProperty2.default)(_api, "readControl_externalsunshade", '/readControl/externalsunshade'), (0, _defineProperty2.default)(_api, "readControl_readskylight", '/readControl/readskylight'), (0, _defineProperty2.default)(_api, "camera_gethls", '/camera/gethls'), (0, _defineProperty2.default)(_api, "camera_getphonehls", '/camera/getphonehls'), (0, _defineProperty2.default)(_api, "readFs_byid", '/readFs/byid'), (0, _defineProperty2.default)(_api, "getcontrol_geteqetdata", '/getcontrol/geteqetdata'), (0, _defineProperty2.default)(_api, "getcontrol_rtDatastation", '/getcontrol/rtDatastation'), (0, _defineProperty2.default)(_api, "readControl_interiorthermalinsulation", '/readControl/interiorthermalinsulation'), (0, _defineProperty2.default)(_api, "equip_chartdata", '/equip/chartdata'), (0, _defineProperty2.default)(_api, "typeList", [{
|
||||
}, (0, _defineProperty2.default)(_api, "selFs_time", "/selFs/time"), (0, _defineProperty2.default)(_api, "sel_eqbyid", "/sel/eqbyid/"), (0, _defineProperty2.default)(_api, "chart_fsdata", "/chart/fsdata"), (0, _defineProperty2.default)(_api, "user_update_pwd", "/user/update/pwd"), (0, _defineProperty2.default)(_api, "readFs_state", "/readFs/state"), (0, _defineProperty2.default)(_api, "writeFs", "/writeFs"), (0, _defineProperty2.default)(_api, "readFs_reg", "/readFs/reg"), (0, _defineProperty2.default)(_api, "readJinHuaControl_reg", "/readJinHuaControl/reg"), (0, _defineProperty2.default)(_api, "writeJinHuaControl_write", "/writeJinHuaControl/write"), (0, _defineProperty2.default)(_api, "getcontrol_rtdata", "/getcontrol/rtdata"), (0, _defineProperty2.default)(_api, "getcontrol_fsdata", "/getcontrol/fsdata"), (0, _defineProperty2.default)(_api, "getcontrol_cpermission", '/getcontrol/cpermission'), (0, _defineProperty2.default)(_api, "getControl_getState", '/readControl/getState'), (0, _defineProperty2.default)(_api, "getReadControlliShuiControl", '/readControl/liShuiControl'), (0, _defineProperty2.default)(_api, "readControl_fiveControl", '/readControl/fiveControl'), (0, _defineProperty2.default)(_api, "getcontrol_wxgetpermission", '/getcontrol/wxgetpermission'), (0, _defineProperty2.default)(_api, "readControl_solenoidValve1", '/readControl/solenoidValve1'), (0, _defineProperty2.default)(_api, "readControl_solenoidValve2", '/readControl/solenoidValve2'), (0, _defineProperty2.default)(_api, "readControl_solenoidValve3", '/readControl/solenoidValve3'), (0, _defineProperty2.default)(_api, "readControl_solenoidValve4", '/readControl/solenoidValve4'), (0, _defineProperty2.default)(_api, "readControl_solenoidValve5", '/readControl/solenoidValve5'), (0, _defineProperty2.default)(_api, "readControl_solenoidValve6", '/readControl/solenoidValve6'), (0, _defineProperty2.default)(_api, "readControl_solenoidValve7", '/readControl/solenoidValve7'), (0, _defineProperty2.default)(_api, "readControl_solenoidValve8", '/readControl/solenoidValve8'), (0, _defineProperty2.default)(_api, "readControl_readfilllight", '/readControl/readfilllight'), (0, _defineProperty2.default)(_api, "readControl_readcirculationfan", '/readControl/readcirculationfan'), (0, _defineProperty2.default)(_api, "readControl_fanwetcurtain", '/readControl/fanwetcurtain'), (0, _defineProperty2.default)(_api, "readControl_innercurtain", '/readControl/innercurtain'), (0, _defineProperty2.default)(_api, "readControl_externalsunshade", '/readControl/externalsunshade'), (0, _defineProperty2.default)(_api, "readControl_readskylight", '/readControl/readskylight'), (0, _defineProperty2.default)(_api, "camera_gethls", '/camera/gethls'), (0, _defineProperty2.default)(_api, "camera_getphonehls", '/camera/getphonehls'), (0, _defineProperty2.default)(_api, "readFs_byid", '/readFs/byid'), (0, _defineProperty2.default)(_api, "getcontrol_geteqetdata", '/getcontrol/geteqetdata'), (0, _defineProperty2.default)(_api, "getcontrol_rtDatastation", '/getcontrol/rtDatastation'), (0, _defineProperty2.default)(_api, "readControl_interiorthermalinsulation", '/readControl/interiorthermalinsulation'), (0, _defineProperty2.default)(_api, "equip_chartdata", '/equip/chartdata'), (0, _defineProperty2.default)(_api, "camera_start", '/camera/start'), (0, _defineProperty2.default)(_api, "camera_stop", '/camera/stop'), (0, _defineProperty2.default)(_api, "typeList", [{
|
||||
label: '无意义的传感器',
|
||||
value: 0,
|
||||
countType: 0,
|
||||
|
|
|
@ -158,7 +158,7 @@ __webpack_require__.r(__webpack_exports__);
|
|||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
/* WEBPACK VAR INJECTION */(function(uni) {
|
||||
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
|
@ -279,50 +279,59 @@ var _default = {
|
|||
} else if (num == 9) {
|
||||
this.flag2 = false;
|
||||
}
|
||||
var that = this;
|
||||
uni.request({
|
||||
url: 'https://open.ys7.com/api/lapp/device/ptz/start',
|
||||
method: 'POST',
|
||||
data: {
|
||||
accessToken: that.accesstoken,
|
||||
deviceSerial: that.cameraSerialNumber,
|
||||
channelNo: that.cameraChannelNumber,
|
||||
direction: num,
|
||||
speed: 1
|
||||
},
|
||||
header: {
|
||||
'Content-Type': 'application/x-www-form-urlencoded'
|
||||
},
|
||||
success: function success(res) {
|
||||
// console.log(res);
|
||||
}
|
||||
});
|
||||
// let that = this;
|
||||
// uni.request({
|
||||
// url: 'https://open.ys7.com/api/lapp/device/ptz/start',
|
||||
// method: 'POST',
|
||||
// data:{
|
||||
// accessToken: that.accesstoken,
|
||||
// deviceSerial: that.cameraSerialNumber,
|
||||
// channelNo: that.cameraChannelNumber,
|
||||
// direction:num,
|
||||
// speed: 1,
|
||||
// },
|
||||
// header: {
|
||||
// 'Content-Type': 'application/x-www-form-urlencoded',
|
||||
// },
|
||||
// success: (res) => {
|
||||
// // console.log(res);
|
||||
// }
|
||||
// });
|
||||
|
||||
this.$http({
|
||||
url: this.api.camera_start + '?cameraid=' + this.cameraSerialNumber + '&channelid=' + this.cameraChannelNumber + '&direction=' + num,
|
||||
method: 'POST'
|
||||
}).then(function (res) {});
|
||||
},
|
||||
touchend: function touchend(num) {
|
||||
this.directionFlag = 5;
|
||||
var that = this;
|
||||
uni.request({
|
||||
url: 'https://open.ys7.com/api/lapp/device/ptz/stop',
|
||||
method: 'POST',
|
||||
data: {
|
||||
accessToken: that.accesstoken,
|
||||
deviceSerial: that.cameraSerialNumber,
|
||||
channelNo: that.cameraChannelNumber,
|
||||
direction: num,
|
||||
speed: 1
|
||||
},
|
||||
header: {
|
||||
'Content-Type': 'application/x-www-form-urlencoded'
|
||||
},
|
||||
success: function success(res) {
|
||||
// console.log(res);
|
||||
}
|
||||
});
|
||||
// let that = this;
|
||||
// uni.request({
|
||||
// url:'https://open.ys7.com/api/lapp/device/ptz/stop',
|
||||
// method: 'POST',
|
||||
// data:{
|
||||
// accessToken: that.accesstoken,
|
||||
// deviceSerial: that.cameraSerialNumber,
|
||||
// channelNo: that.cameraChannelNumber,
|
||||
// direction:num,
|
||||
// speed: 1,
|
||||
// },
|
||||
// header: {
|
||||
// 'Content-Type': 'application/x-www-form-urlencoded',
|
||||
// },
|
||||
// success: (res) => {
|
||||
// // console.log(res);
|
||||
// }
|
||||
// })
|
||||
|
||||
this.$http({
|
||||
url: this.api.camera_stop + '?cameraid=' + this.cameraSerialNumber + '&channelid=' + this.cameraChannelNumber + '&direction=' + num,
|
||||
method: 'POST'
|
||||
}).then(function (res) {});
|
||||
}
|
||||
}
|
||||
};
|
||||
exports.default = _default;
|
||||
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
|
||||
|
||||
/***/ }),
|
||||
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
"description": "项目私有配置文件。此文件中的内容将覆盖 project.config.json 中的相同字段。项目的改动优先同步到此文件中。详见文档:https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html",
|
||||
"projectname": "wszhyWx",
|
||||
"setting": {
|
||||
"compileHotReLoad": true
|
||||
"compileHotReLoad": true,
|
||||
"urlCheck": false
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue