覆盖在原生组件之上的文本视图,可覆盖的原生组件包括map
、video
、canvas
,支持嵌套
问题:模拟器显示正常,真机运行依然不显示浮层
<map id=“myMap” longitude=“113.324520” latitude=“23.099994” scale=“14” controls="{{controls}}" bindcontroltap=“controltap” markers="{{markers}}" bindmarkertap=“markertap” polyline="{{polyline}}" bindregionchange=“regionchange” show-location style=“width:{{mapWidth}};height:{{mapHeight}};top:{{mapTop}}”
bindtap=‘bindMap’>
<cover-view class=“controls”>
<cover-view class=“play” bindtap=“play”>
<cover-image class=“img” src="/path/to/icon_play" />
</cover-view>
<cover-view class=“pause” bindtap=“pause”>
<cover-image class=“img” src="/path/to/icon_pause" />
</cover-view>
<cover-view class=“time”>00:00</cover-view>
</cover-view>
</map>