收藏
回答

pc端小程序,在有webview的页面自定义tabbar无法显示?

pc端小程序,在有webview的页面自定义tabbar无法显示?

回答关注问题邀请回答
收藏

2 个回答

  • 社区技术运营专员--阳光
    社区技术运营专员--阳光
    2024-08-14

    appid和复现方式提供下呢

    2024-08-14
    有用
    回复 9
    查看更多(4)
  • 转身的朝阳
    转身的朝阳
    04-28

    自定义tabbar要用cover-view,就不会被覆盖了

    <!--miniprogram/custom-tab-bar/index.wxml-->

    <cover-view class="tab-bar">

      <cover-view class="tab-bar-border"></cover-view>

      <cover-view wx:for="{{list}}" wx:key="index" class="tab-bar-item" data-path="{{item.pagePath}}" data-index="{{index}}" bindtap="switchTab">

        <cover-image src="{{selected === index ? item.selectedIconPath : item.iconPath}}" style="width: 40rpx;height: 40rpx;"></cover-image>

        <cover-view style="color: {{selected === index ? selectedColor : color}}">{{item.text}}</cover-view>

      </cover-view>

    </cover-view>

    04-28
    有用
    回复
登录 后发表内容