| | |
| | | type: 'video' |
| | | }, |
| | | success(res) { |
| | | console.log(res, 789) |
| | | // if(res.data.res == 0){ |
| | | |
| | | // } |
| | |
| | | |
| | | // 实时定位获取得方法 |
| | | |
| | | uni.getLocation({ |
| | | type: 'gcj02', |
| | | geocode: true, |
| | | success: function(wzres) { |
| | | uni.request({ |
| | | url: "http://223.82.109.183:2080/api/liveLocation/saveLiveLocationAndLocus", |
| | | method: "post", |
| | | data: { |
| | | type: 1, |
| | | workerId: res.data.user_id, |
| | | longitude: wzres.longitude, |
| | | latitude: wzres.latitude, |
| | | location: wzres.address.country + |
| | | wzres.address.province + wzres |
| | | .address.city + wzres.address |
| | | .district + wzres.address |
| | | .street + wzres.address |
| | | .streetNum |
| | | } |
| | | }) |
| | | } |
| | | }); |
| | | // uni.getLocation({ |
| | | // type: 'gcj02', |
| | | // geocode: true, |
| | | // success: function(wzres) { |
| | | // uni.request({ |
| | | // url: "http://223.82.109.183:2080/api/liveLocation/saveLiveLocationAndLocus", |
| | | // method: "post", |
| | | // data: { |
| | | // type: 1, |
| | | // workerId: res.data.user_id, |
| | | // longitude: wzres.longitude, |
| | | // latitude: wzres.latitude, |
| | | // location: wzres.address.country + |
| | | // wzres.address.province + wzres |
| | | // .address.city + wzres.address |
| | | // .district + wzres.address |
| | | // .street + wzres.address |
| | | // .streetNum |
| | | // } |
| | | // }) |
| | | // } |
| | | // }); |
| | | |
| | | setInterval(function() { |
| | | |
| | |
| | | useName: '过客 ', |
| | | }, |
| | | logPath: '', |
| | | piAPI: 'http://192.168.0.114:83', |
| | | piAPI: 'http://223.82.109.183:2088/api', |
| | | // piAPI: 'http://192.168.0.114:81', |
| | | api: 'http://192.168.0.114:83', |
| | | api: 'http://223.82.109.183:2088/api', |
| | | // piAPI: 'http://localhost:81/', |
| | | // piAPI: 'http://192.168.0.108:81', |
| | | puserName: '', |