wx-program
parent
ac5bca0418
commit
80f6a17a79
|
@ -64,6 +64,9 @@ let api = {
|
||||||
|
|
||||||
equip_chartdata:'/equip/chartdata',//气象站实时数据折线图
|
equip_chartdata:'/equip/chartdata',//气象站实时数据折线图
|
||||||
|
|
||||||
|
camera_start:'/camera/start',//摄像头开始
|
||||||
|
camera_stop:'/camera/stop',//摄像头结束
|
||||||
|
|
||||||
|
|
||||||
//countType计算类型 0是原数据 1是原数据-400 2是原数据/10 3是(原数据-400) / 10 4是(原数据-1000)/10
|
//countType计算类型 0是原数据 1是原数据-400 2是原数据/10 3是(原数据-400) / 10 4是(原数据-1000)/10
|
||||||
typeList: [{
|
typeList: [{
|
||||||
|
|
|
@ -114,45 +114,59 @@
|
||||||
}else if(num == 9){
|
}else if(num == 9){
|
||||||
this.flag2 = false;
|
this.flag2 = false;
|
||||||
}
|
}
|
||||||
let that = this;
|
// let that = this;
|
||||||
uni.request({
|
// uni.request({
|
||||||
url: 'https://open.ys7.com/api/lapp/device/ptz/start',
|
// 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',
|
method: 'POST',
|
||||||
data:{
|
}).then(res=>{
|
||||||
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);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
},
|
},
|
||||||
|
|
||||||
touchend(num){
|
touchend(num){
|
||||||
this.directionFlag = 5
|
this.directionFlag = 5
|
||||||
let that = this;
|
// let that = this;
|
||||||
uni.request({
|
// uni.request({
|
||||||
url:'https://open.ys7.com/api/lapp/device/ptz/stop',
|
// 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',
|
method: 'POST',
|
||||||
data:{
|
}).then(res=>{
|
||||||
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);
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
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",
|
sel_user: "/api/sel/user",
|
||||||
//根据id查询用户信息
|
//根据id查询用户信息
|
||||||
getFs_rtdata: "/getFs/rtdata"
|
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: '无意义的传感器',
|
label: '无意义的传感器',
|
||||||
value: 0,
|
value: 0,
|
||||||
countType: 0,
|
countType: 0,
|
||||||
|
|
|
@ -158,7 +158,7 @@ __webpack_require__.r(__webpack_exports__);
|
||||||
/***/ (function(module, exports, __webpack_require__) {
|
/***/ (function(module, exports, __webpack_require__) {
|
||||||
|
|
||||||
"use strict";
|
"use strict";
|
||||||
/* WEBPACK VAR INJECTION */(function(uni) {
|
|
||||||
|
|
||||||
Object.defineProperty(exports, "__esModule", {
|
Object.defineProperty(exports, "__esModule", {
|
||||||
value: true
|
value: true
|
||||||
|
@ -279,50 +279,59 @@ var _default = {
|
||||||
} else if (num == 9) {
|
} else if (num == 9) {
|
||||||
this.flag2 = false;
|
this.flag2 = false;
|
||||||
}
|
}
|
||||||
var that = this;
|
// let that = this;
|
||||||
uni.request({
|
// uni.request({
|
||||||
url: 'https://open.ys7.com/api/lapp/device/ptz/start',
|
// url: 'https://open.ys7.com/api/lapp/device/ptz/start',
|
||||||
method: 'POST',
|
// method: 'POST',
|
||||||
data: {
|
// data:{
|
||||||
accessToken: that.accesstoken,
|
// accessToken: that.accesstoken,
|
||||||
deviceSerial: that.cameraSerialNumber,
|
// deviceSerial: that.cameraSerialNumber,
|
||||||
channelNo: that.cameraChannelNumber,
|
// channelNo: that.cameraChannelNumber,
|
||||||
direction: num,
|
// direction:num,
|
||||||
speed: 1
|
// speed: 1,
|
||||||
},
|
// },
|
||||||
header: {
|
// header: {
|
||||||
'Content-Type': 'application/x-www-form-urlencoded'
|
// 'Content-Type': 'application/x-www-form-urlencoded',
|
||||||
},
|
// },
|
||||||
success: function success(res) {
|
// success: (res) => {
|
||||||
// console.log(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) {
|
touchend: function touchend(num) {
|
||||||
this.directionFlag = 5;
|
this.directionFlag = 5;
|
||||||
var that = this;
|
// let that = this;
|
||||||
uni.request({
|
// uni.request({
|
||||||
url: 'https://open.ys7.com/api/lapp/device/ptz/stop',
|
// url:'https://open.ys7.com/api/lapp/device/ptz/stop',
|
||||||
method: 'POST',
|
// method: 'POST',
|
||||||
data: {
|
// data:{
|
||||||
accessToken: that.accesstoken,
|
// accessToken: that.accesstoken,
|
||||||
deviceSerial: that.cameraSerialNumber,
|
// deviceSerial: that.cameraSerialNumber,
|
||||||
channelNo: that.cameraChannelNumber,
|
// channelNo: that.cameraChannelNumber,
|
||||||
direction: num,
|
// direction:num,
|
||||||
speed: 1
|
// speed: 1,
|
||||||
},
|
// },
|
||||||
header: {
|
// header: {
|
||||||
'Content-Type': 'application/x-www-form-urlencoded'
|
// 'Content-Type': 'application/x-www-form-urlencoded',
|
||||||
},
|
// },
|
||||||
success: function success(res) {
|
// success: (res) => {
|
||||||
// console.log(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;
|
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",
|
"description": "项目私有配置文件。此文件中的内容将覆盖 project.config.json 中的相同字段。项目的改动优先同步到此文件中。详见文档:https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html",
|
||||||
"projectname": "wszhyWx",
|
"projectname": "wszhyWx",
|
||||||
"setting": {
|
"setting": {
|
||||||
"compileHotReLoad": true
|
"compileHotReLoad": true,
|
||||||
|
"urlCheck": false
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue