index.wxml 1.1 KB

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