| | |
| | | label: '平安志愿者', |
| | | value: 1494565079268491266 |
| | | } |
| | | ], |
| | | region: [{ |
| | | label: '民警', |
| | | value: 1417092295132561409 |
| | | }, |
| | | { |
| | | label: '治保会队伍', |
| | | value: 1424615693403414529 |
| | | }, |
| | | { |
| | | label: '内保干部队伍', |
| | | value: 1424615773594312705 |
| | | }, |
| | | { |
| | | label: '治安巡防队伍', |
| | | value: 1424615835435130881 |
| | | }, |
| | | { |
| | | label: '信息员队伍', |
| | | value: 1424615909959524354 |
| | | }, |
| | | { |
| | | label: '保安员队伍', |
| | | value: 1424615972718895106 |
| | | }, |
| | | { |
| | | label: '警务辅助队伍', |
| | | value: 1424616047083905026 |
| | | }, |
| | | { |
| | | label: '平安志愿者', |
| | | value: 1494565079268491266 |
| | | } |
| | | ] |
| | | }; |
| | | }, |
| | |
| | | that.regionName = name.replace('市', '市派出所'); |
| | | } |
| | | |
| | | |
| | | }, |
| | | openLoginMap() { |
| | | var that = this |
| | | uni.getLocation({ |
| | | type: 'wgs84', |
| | | success: function(res) { |
| | | console.log('当前位置的经度:' + res.longitude); |
| | | console.log('当前位置的纬度:' + res.latitude); |
| | | that.latitude = res.latitude |
| | | that.longitude = res.longitude |
| | | that.marker = [{ |
| | | id: 0, |
| | | latitude: res.latitude, //纬度 |
| | | longitude: res.longitude, //经度 |
| | | iconPath: '/static/img/map/location.png', //显示的图标 |
| | | rotate: 0, // 旋转度数 |
| | | width: 20, //宽 |
| | | height: 20, //高 |
| | | title: '位置', //标注点名 |
| | | alpha: 1, //透明度 |
| | | }] |
| | | |
| | | var data = [{ |
| | | "id": '100000', |
| | | "place": '无数据', |
| | | "state": '0', |
| | | "dtype": '0', |
| | | "size": '300', |
| | | "jd": res.longitude, |
| | | "wd": res.latitude |
| | | }] |
| | | |
| | | uni.navigateTo({ |
| | | url: '/pages/currentMap/currentMap?data=' + JSON.stringify(data) |
| | | }) |
| | | |
| | | |
| | | // that.loginMapUrl = |
| | | // 'http://192.168.0.115:5500/leafletMapOur/loginMap/loginMap.html?data=' + data |
| | | |
| | | // // that.loginMapUrl = 'http://223.82.109.183:2082/loginMap/loginMap.html?data=' + data |
| | | // that.mapShow = true |
| | | } |
| | | }) |
| | | |
| | | }, |
| | | zc() { |