<!–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/[email protected]" 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/[email protected]"></cover-image>
</cover-view>
</map>
</view>
checkOut那个按钮点击文字会执行上面的bindtap。