收藏
回答

map组件中cover-view层级BUG

框架类型 问题类型 API/组件名称 终端类型 微信版本 基础库版本
小程序 Bug cover-view 客户端 7.0.4 2.6.6

- 当前 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='markertap' data-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>


回答关注问题邀请回答
收藏

2 个回答

  • 禾店短剧系统
    禾店短剧系统
    2021-06-07

    遇到同样的问题,地图层级不可控,带了开发上的很多不遍历,还有vconsole的层级居然比map低

    2021-06-07
    有用 1
    回复
  • 疯狂的小辣椒
    疯狂的小辣椒
    2019-05-09

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

    2019-05-09
    有用
    回复 2
登录 后发表内容