map组件中cover-view层级BUG
发布于 5 年前 作者 xiaxue 12945 次浏览 来自 问答
  • 当前 Bug 的表现(可附上截图)
  • 预期表现

层级显示BUG

  • 复现路径
  • 提供一个最简复现 Demo

<map id=“map” class=“map” scale=“12” longitude="{{longitude}}" latitude="{{latitude}}" bindmarkertap=“markertap” show-location=“true” markers="{{markers}}">

<!-- 点位选择 -->

<cover-view class=“controls” animation="{{animation}}">

<cover-view class=‘points’>

<cover-view class=‘pointmain’ style=‘width:{{linewidth}};’>

<repeat wx:for="{{markers}}" wx:for-item=“item” wx:key=“key”>

<cover-view class=“pointitems {{selected==item.content?‘cur’:’’}}” style=‘width:{{width}};’ @tap=‘markertapdata-point="{{item}}">{{item.content}}</cover-view>

</repeat>

</cover-view>

</cover-view>

</cover-view>

<!-- title -->

<cover-view class=‘title’ @tap=‘showpoint>

<cover-view style=‘line-height:40px’>点击选择路段</cover-view>

<cover-image class=“img” wx:if="{{showpointicon}}" src=’{{uppngurl}}’/>

<cover-image class=“img” wx:else src=’{{downpngurl}}’/>

</cover-view>

</map>

1 回复

你好,麻烦提供出现问题的具体机型、微信版本号、系统版本号,以及能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)

回到顶部