微信小程序切图echarts层级太高解决方案

切版网专注网页切版服务

摘要:项目中因为需求,底部的导航栏是自己写的,在开发者工具中一切正常但是在真机上页面滑动时,的层级比高,调过两者的后仍然如此。经过查找后发现和替换的后,可以解决以上的问题。

项目中因为需求,底部的tab导航栏是自己写的,在开发者工具中一切正常;但是在真机上页面滑动时,echarts的层级比tab高,调过两者的z-index后仍然如此。

经过查找后发现cover-viewcover-image替换tab的view后,可以解决以上的问题。

 

<span style=”color: #008000;”><!–</span><span style=”color: #008000;”>底部公共tabBar</span><span style=”color: #008000;”>–></span>
<span style=”color: #0000ff;”>&lt;</span><span style=”color: #800000;”>cover-view </span><span style=”color: #ff0000;”>class</span><span style=”color: #0000ff;”>=”tabbar-con”</span><span style=”color: #0000ff;”>&gt;</span>
<span style=”color: #0000ff;”>&lt;</span><span style=”color: #800000;”>cover-view </span><span style=”color: #ff0000;”>class</span><span style=”color: #0000ff;”>=”{{villageIs?nav-btn-hover:nav-btn}}”</span><span style=”color: #ff0000;”> bindtap</span><span style=”color: #0000ff;”>=”onGetVillage”</span><span style=”color: #0000ff;”>&gt;</span>
<span style=”color: #0000ff;”>&lt;</span><span style=”color: #800000;”>cover-image </span><span style=”color: #ff0000;”>class</span><span style=”color: #0000ff;”>=icon_village_after </span><span style=”color: #ff0000;”>icon wx:if</span><span style=”color: #0000ff;”>=”{{villageIs}}”</span><span style=”color: #ff0000;”> src</span><span style=”color: #0000ff;”>=</span><span style=”color: #0000ff;”>&gt;<!–</span–><span style=”color: #800000;”>cover-image</span><span style=”color: #0000ff;”>&gt;</span>
<span style=”color: #0000ff;”>&lt;</span><span style=”color: #800000;”>cover-image </span><span style=”color: #ff0000;”>class</span><span style=”color: #0000ff;”>=icon_village_before </span><span style=”color: #ff0000;”>icon wx:else src</span><span style=”color: #0000ff;”>=</span><span style=”color: #0000ff;”>&gt;<!–</span–><span style=”color: #800000;”>cover-image</span><span style=”color: #0000ff;”>&gt;</span>
<span style=”color: #0000ff;”>&lt;</span><span style=”color: #800000;”>cover-view</span><span style=”color: #0000ff;”>&gt;</span>小区<span style=”color: #0000ff;”><!–</span–><span style=”color: #800000;”>cover-view</span><span style=”color: #0000ff;”>&gt;</span>
<span style=”color: #0000ff;”><!–</span–><span style=”color: #800000;”>cover-view</span><span style=”color: #0000ff;”>&gt;</span>
<span style=”color: #0000ff;”>&lt;</span><span style=”color: #800000;”>cover-view </span><span style=”color: #ff0000;”>class</span><span style=”color: #0000ff;”>=”{{shopcarIs?nav-btn-hover:nav-btn}}”</span><span style=”color: #ff0000;”> bindtap</span><span style=”color: #0000ff;”>=”onGetShopcar”</span><span style=”color: #0000ff;”>&gt;</span>
<span style=”color: #0000ff;”>&lt;</span><span style=”color: #800000;”>cover-image </span><span style=”color: #ff0000;”>class</span><span style=”color: #0000ff;”>=icon_shop_after </span><span style=”color: #ff0000;”>icon wx:if</span><span style=”color: #0000ff;”>=”{{shopcarIs}}”</span><span style=”color: #ff0000;”> src</span><span style=”color: #0000ff;”>=</span><span style=”color: #0000ff;”>&gt;<!–</span–><span style=”color: #800000;”>cover-image</span><span style=”color: #0000ff;”>&gt;</span>
<span style=”color: #0000ff;”>&lt;</span><span style=”color: #800000;”>cover-image </span><span style=”color: #ff0000;”>class</span><span style=”color: #0000ff;”>=icon_shop_before </span><span style=”color: #ff0000;”>icon wx:else src</span><span style=”color: #0000ff;”>=</span><span style=”color: #0000ff;”>&gt;<!–</span–><span style=”color: #800000;”>cover-image</span><span style=”color: #0000ff;”>&gt;</span>
<span style=”color: #0000ff;”>&lt;</span><span style=”color: #800000;”>cover-view</span><span style=”color: #0000ff;”>&gt;</span>购物车<span style=”color: #0000ff;”><!–</span–><span style=”color: #800000;”>cover-view</span><span style=”color: #0000ff;”>&gt;</span>
<span style=”color: #0000ff;”><!–</span–><span style=”color: #800000;”>cover-view</span><span style=”color: #0000ff;”>&gt;</span>
<span style=”color: #0000ff;”>&lt;</span><span style=”color: #800000;”>cover-view </span><span style=”color: #ff0000;”>class</span><span style=”color: #0000ff;”>=”{{newsIs?nav-btn-hover:nav-btn}}”</span><span style=”color: #ff0000;”> bindtap</span><span style=”color: #0000ff;”>=”onGetNews”</span><span style=”color: #0000ff;”>&gt;</span>
<span style=”color: #0000ff;”>&lt;</span><span style=”color: #800000;”>cover-image </span><span style=”color: #ff0000;”>class</span><span style=”color: #0000ff;”>=icon_news_after </span><span style=”color: #ff0000;”>icon wx:if</span><span style=”color: #0000ff;”>=”{{newsIs}}”</span><span style=”color: #ff0000;”> src</span><span style=”color: #0000ff;”>=</span><span style=”color: #0000ff;”>&gt;<!–</span–><span style=”color: #800000;”>cover-image</span><span style=”color: #0000ff;”>&gt;</span>
<span style=”color: #0000ff;”>&lt;</span><span style=”color: #800000;”>cover-image </span><span style=”color: #ff0000;”>class</span><span style=”color: #0000ff;”>=icon_news_before </span><span style=”color: #ff0000;”>icon wx:else src</span><span style=”color: #0000ff;”>=</span><span style=”color: #0000ff;”>&gt;<!–</span–><span style=”color: #800000;”>cover-image</span><span style=”color: #0000ff;”>&gt;</span>
<span style=”color: #0000ff;”>&lt;</span><span style=”color: #800000;”>cover-view</span><span style=”color: #0000ff;”>&gt;</span>新闻<span style=”color: #0000ff;”><!–</span–><span style=”color: #800000;”>cover-view</span><span style=”color: #0000ff;”>&gt;</span>
<span style=”color: #0000ff;”><!–</span–><span style=”color: #800000;”>cover-view</span><span style=”color: #0000ff;”>&gt;</span>
<span style=”color: #0000ff;”>&lt;</span><span style=”color: #800000;”>cover-view </span><span style=”color: #ff0000;”>class</span><span style=”color: #0000ff;”>=”{{mineIs?nav-btn-hover:nav-btn}}”</span><span style=”color: #ff0000;”> bindtap</span><span style=”color: #0000ff;”>=”onGetMine”</span><span style=”color: #0000ff;”>&gt;</span>
<span style=”color: #0000ff;”>&lt;</span><span style=”color: #800000;”>cover-image </span><span style=”color: #ff0000;”>class</span><span style=”color: #0000ff;”>=icon_mine_after </span><span style=”color: #ff0000;”>icon wx:if</span><span style=”color: #0000ff;”>=”{{mineIs}}”</span><span style=”color: #ff0000;”> src</span><span style=”color: #0000ff;”>=</span><span style=”color: #0000ff;”>&gt;<!–</span–><span style=”color: #800000;”>cover-image</span><span style=”color: #0000ff;”>&gt;</span>
<span style=”color: #0000ff;”>&lt;</span><span style=”color: #800000;”>cover-image </span><span style=”color: #ff0000;”>class</span><span style=”color: #0000ff;”>=icon_mine_before </span><span style=”color: #ff0000;”>icon wx:else src</span><span style=”color: #0000ff;”>=</span><span style=”color: #0000ff;”>&gt;<!–</span–><span style=”color: #800000;”>cover-image</span><span style=”color: #0000ff;”>&gt;</span>
<span style=”color: #0000ff;”>&lt;</span><span style=”color: #800000;”>cover-view</span><span style=”color: #0000ff;”>&gt;</span>我的<span style=”color: #0000ff;”><!–</span–><span style=”color: #800000;”>cover-view</span><span style=”color: #0000ff;”>&gt;</span>
<span style=”color: #0000ff;”><!–</span–><span style=”color: #800000;”>cover-view</span><span style=”color: #0000ff;”>&gt;</span>
<span style=”color: #0000ff;”><!–</span–><span style=”color: #800000;”>cover-view</span><span style=”color: #0000ff;”>&gt;</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span>

建立您的线上前端开发部门

最高11年前端从业经验,专业只做web前端切图,只要您愿意,切版网就是您公司的前端部门。