Commit 2c03f58c by hank

修改bug

parent cfcb5fd8
......@@ -47,6 +47,7 @@
<script src="https://cache.amap.com/lbs/static/es5.min.js"></script>
<script src="https://cdn.bootcss.com/jquery/3.3.1/jquery.min.js"></script>
<script src="./js/api.js"></script>
<script src="https://webapi.amap.com/maps?v=1.4.15&key=ee7327615de4d673c4e455a772da45fd&plugin=Map3D,AMap.DistrictSearch,ElasticMarker,AMap.MarkerClusterer"></script>
<script src="https://webapi.amap.com/ui/1.0/main.js?v=1.0.11"></script>
<!-- <script src="https://cdnjs.cloudflare.com/ajax/libs/axios/0.18.0/axios.min.js"></script> -->
......@@ -135,7 +136,7 @@
oldi1 = i1, oldi2 = i2
}
if (i1 == 1 && i2 == 2) {//北斗
addPoiByApi(`http://123.56.149.208:8091/external/get/early/warn/setEipment/two?code=${urlParams.adcode}&clientStyle=3`,'setEquipmentPoint', 'Single')
addPoiByApi(`http://123.56.149.208:8091/external/get/early/warn/equipment/two?code=${urlParams.adcode}&clientStyle=3`,'setEquipmentPoint', 'Single')
oldi1 = i1, oldi2 = i2
}
......
(function (e) {
let BASE_API = 'http://123.56.149.208:8091'
// 获取设备信息
function getCityDevice(code, clientStyle = 0) {
return $.get('/external/get/early/warn/equipment/two', { code, clientStyle })
}
// 获取联系人信息员
function getWarnPeopleInfo() {
return $.get('/external/get/early/warn/people/two/info/' + code)
}
// 获取联系人 应急责任人
function getWarnPeoplePrincipal() {
return $.get('/external/get/early/warn/people/two/principal/' + code)
}
e.$API = {
getCityDevice,
getWarnPeopleInfo,
getWarnPeoplePrincipal
}
})(this)
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment