因为video 标签上面有wx:if判断,video的显示是异步的,即使把cover-view标签写在后面,有时也不生效,因为cover-view标签先渲染。
cover-view依旧被video遮挡真机测试上面,cover-view依旧被video遮挡,层级没有video高,下面贴上代码片段 <view class='content'> <view class='line'></view> <view class='mainCon'> <view class='search'> <image src='http://qiniu.xnsystem.com/VpaySearch.png' catchtap='doSearch'></image> <view> <input placeholder='请输入想要搜索的内容' value='{{search}}' bindinput='getInput' bindconfirm='doSearch'></input> </view> </view> <view wx:for='{{content}}' wx:key='content' class='card' data-index='{{item.id}}' catchtap='doSelect'> <view class='cardLeft'> <checkbox-group data-index='{{item.id}}' bindchange='doSelect'> <label> <checkbox checked='{{checked==item.id}}'></checkbox> <image src='{{item.image}}'></image> </label> </checkbox-group> </view> <view class='cardRight'> <view class='cardName'>{{item.nick_name}}</view> <view class='cardCon'>{{item.text_content}}</view> <view class='cardImg'> <image wx:if='{{item.media_type==1}}' wx:for='{{item.media_content}}' wx:key='{{index}}' wx:for-item='img' src='{{img}}' mode='aspectFill'></image> <video wx:if='{{item.media_type==2}}' src='{{item.media_content}}'></video> </view> <view class='cardAddress'>{{item.address}}</view> <view class='cardBot'> <view class='cardTime'>{{item.time}}</view> <view class='cardScan'> <image src='/assets/images/index/scan.png'></image> <view>{{item.look_num}}</view> </view> </view> </view> </view> </view> </view> <cover-view class='button' catchtap='doSubmit'>确定</cover-view>
2018-11-16