<!--index.wxml-->
<view class="map-box" bind:tap="mapBoxTap">
<map
id="map"
class="map"
markers="{{markers}}"
controls="{{controls}}"
longitude="{{location.longitude}}"
latitude="{{location.latitude}}"
scale="12"
show-location
hidden="{{!mapShow}}"
bindmarkertap="markertap"
bindcontroltap="controltap"
bindtap="mapBoxTap"
>
<cover-view
class="time-box"
wx:if="{{filter.hasRunningOrder(userInfo)}}"
bindtap="toDoorsPage"
>
<cover-view class="tb-t">
{{i18n.duration}} >
</cover-view>
<cover-view class="tb-tim">
<cover-view>
<cover-view>{{filter.durationHour(durationTime)}}</cover-view>
<cover-view class="second">:</cover-view>
<cover-view>{{filter.durationMinute(durationTime)}}</cover-view>
</cover-view>
<cover-view>
<cover-view class="em">{{i18n.timeBoxTip}}</cover-view>
</cover-view>
</cover-view>
<cover-view class="tb-btn">
<cover-view class="a" catch:tap="showDoors">
<cover-image catch:tap="showDoors" mode="scaleToFill" src="../../images/icon_unlock@2x.png" class="lock"></cover-image>
<cover-view>{{i18n.unlock}}</cover-view>
</cover-view>
<cover-view class="out" catch:tap="checkOut">
<cover-view>{{i18n.checkOut}}</cover-view>
</cover-view>
</cover-view>
</cover-view>
<cover-view class="tran-area">
<cover-image src="../../images/img_jianbian1@2x.png"></cover-image>
</cover-view>
</map>
</view>
checkOut那个按钮点击文字会执行上面的bindtap。
只能点击 cover-view 的空白区域不会冒泡,点击里面的文字和图片会冒泡