index.wxml 1.1 KB

123456789101112131415161718192021222324252627
  1. <!-- 加载 -->
  2. <l-overlay />
  3. <!-- 消息通知 -->
  4. <l-notify />
  5. <!-- 分享栏 -->
  6. <l-share />
  7. <!-- 导航栏 -->
  8. <van-nav-bar z-index="100" custom-class="custom {{bgc ? 'nav-custom1':'nav-custom'}}" bind:click-left="NavSuccess"
  9. fixed="{{fixed}}" title-class="nav-title" title="{{title}}">
  10. <van-icon wx:if='{{back}}' size="24" name="arrow-left" slot="left" />
  11. </van-nav-bar>
  12. <view style="margin-top: {{MarginTop}}px;" class="container">
  13. <slot name="container" />
  14. </view>
  15. <!-- tabber栏 -->
  16. <van-tabbar z-index="100" inactive-color="{{inactiveColor}}" active-color="{{activeColor}}" wx:if="{{tabber}}"
  17. active="{{ active }}" bind:change="TabberSuccess">
  18. <block wx:for="{{tabberlist}}" wx:key="index">
  19. <van-tabbar-item wx:if="{{!item.activesrc}}" info="{{item.info}}" icon="{{item.icon}}">{{item.name}}
  20. </van-tabbar-item>
  21. <van-tabbar-item wx:else info="{{item.info}}">
  22. <image slot="icon" src="{{ item.normalsrc }}" mode="aspectFit" style="width: 30px; height: 18px;" />
  23. <image slot="icon-active" src="{{ item.activesrc }}" mode="aspectFit" style="width: 30px; height: 18px;" />
  24. {{item.name}}
  25. </van-tabbar-item>
  26. </block>
  27. </van-tabbar>