vue 部分
<template>
<view id="patrolMap">
<map class="map" :latitude="latitude" :longitude="longitude" :markers="covers">
<!-- 浮框 -->
<cover-view class="mapTop">
<cover-view class="coverLeft">
<cover-view class="patrol-pending">搜索中</cover-view>
<cover-view class="patrol-time">15:32:08</cover-view>
</cover-view>
<cover-view class="coverRight"> 可疑现象 </cover-view>
</cover-view>
</map>
</view>
</template>
JS 部分
<script>
let interval;
export default {
data() {
return {
numRice:'',//判断打卡之间距离
interval:null,//销毁事件
latitude: 39.753174,
longitude: 116.34263,
covers: [
{
id: 1,
title: '1', // String
latitude: 39.753174,
longitude: 116.34263,
iconPath: '/static/index/xld.png'
}, {
id: 2,
title: '2', // String
latitude: 39.75753,
longitude: 116.349005,
iconPath: '/static/index/xld.png'
},
{