cover-view 在开发者工具可以实现展示
用工具预览 苹果上没有问题
安卓机 无法显示 (不用这种推送好像就没有问题)
数据是在onShow中执行 获取ws推送过来的
<cover-view class=“cover-view”>
<cover-view class=“containers”>
<cover-view class=“flex-wrp”>
<block wx:for="{{warnDataList}}" wx:for-item=“warnTeam”>
<cover-view id="{{warnTeam.deviceId}}" class=‘warn-view {{warnTeam.colorClass}}’ style=‘display:{{show}}’>
<cover-image src=’…/…/assets/img/notice.png’ class=‘img-view’></cover-image>
<cover-view class=‘position-view’>{{warnTeam.name}}</cover-view>
<cover-view class=‘close-view’ bindtap=“close” data-id="{{warnTeam.id}}">x</cover-view>
<cover-view class=‘data-view’>{{warnTeam.sensorDataValue}}{{warnTeam.unitName}}</cover-view>
</cover-view>
</block>
<cover-view class=‘more-view’ bindtap=‘moreWarnData’ id=’{{warnDataList[0].companyId}}’ hidden="{{hidden}}">
<cover-image src=’…/…/assets/img/more-warn.png’ class=‘more-img-view’></cover-image>
</cover-view>
</cover-view>
</cover-view>
</cover-view>