#### 高德地图定位
- 解决北电科学生上课打卡H5应用
- 实战 http://scjoyedu.eicp.net:9121/xg/dxg/front/trainDiscount/blob/290efbe5fd1ee08386e6f6d99f1c8d0e85aded34/src/pages/attendanceCheckIn/clockIn.js

- demo
```javascript
import mapLoaderConfig from '@/H5Public/HighStateComponent/Amap/loader';
// 高德地图定位功能 
useEffect(() => {
  if (!window.AMap) {
    mapLoaderConfig().then((res) => {
      if (res) {
        loader.current = res;
        loader.current.load().then(() => {
          // console.log('加载成功');
          getLocation();
        }).catch(e => {
          console.error(e);
        });
      }
    });
  } else {
    getLocation();
  }
}, []);



```
