android cover-view catch:tap不生效
发布于 6 年前 作者 liping 16945 次浏览 来自 问答

<!–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。

1 回复

只能点击 cover-view 的空白区域不会冒泡,点击里面的文字和图片会冒泡

回到顶部