使用cover-view自定义头部导航页面卡顿,复现流程:在二级页面挂起10分钟后进入页面,页面出现滑动和点击卡顿现象(安卓机卡顿比较明显)。
以下是头部自定义导航代码
<cover-view class="nav-bar {{type}}" style="height: {{navHeight}}px; opacity:{{type != 'transparent' ? 1 : opacity}}">
<cover-view
style="padding-top: {{ navTop }}px; text-align: center; width: 100%; ">
<cover-view style="display:inline-block; height: {{ menuButtonHeight }}px;line-height: {{ menuButtonHeight }}px; " bindtap="dropdown">
{{title}}
<cover-view class="dropdown" wx:if="{{dropdown}}">
<cover-image wx:if="{{ arrow == 'up' }}" src="https://hmpcloud-static.oss-cn-shenzhen.aliyuncs.com/app/images/icon_up.png" />
<cover-image wx:if="{{ arrow == 'down' }}" src="https://hmpcloud-static.oss-cn-shenzhen.aliyuncs.com/app/images/icon_down.png" />
</cover-view>
</cover-view>
</cover-view>
</cover-view>
<cover-view bindtap="back" class="nav-bar-icon-box" style="top: {{navTop - 15 + menuButtonHeight/2}}px;">
<cover-view wx:if="{{ back }}" style="opacity:{{type != 'transparent' ? 1 : opacity}}" class="nav-bar-icon {{type}}">
<cover-image wx:if="{{ arrowColor == 'black' }}" src="../../../images/icon_return.png" style="opacity:{{type != 'transparent' ? 1 : opacity}}" class="img_black {{type}}"/>
<cover-image wx:else src="https://hmpcloud-static.oss-cn-shenzhen.aliyuncs.com/app/images/icon_back.png" style="opacity:{{type != 'transparent' ? 1 : opacity}}" class="nav-bar-icon {{type}}"/>
</cover-view>
<cover-image wx:if="{{ home }}" src="https://hmpcloud-static.oss-cn-shenzhen.aliyuncs.com/app/images/icon_home.png" style="opacity:{{type != 'transparent' ? 1 : opacity}}" class="nav-bar-icon {{type}}"/>
</cover-view>
<cover-view wx:if="{{type != 'transparent'}}" class="nav-bar-placeholder" style="height: {{navHeight}}px;">
</cover-view>
为什么还用cover-view现在原生组件都没了啊