index.wxml 1.1 KB

12345678910111213141516171819202122
  1. <!-- 弹出框 -->
  2. <van-dialog id="van-dialog" />
  3. <!-- 导航栏 -->
  4. <van-nav-bar custom-class="{{bgc ? 'nav-custom1':'nav-custom'}}" bind:click-left="NavSuccess" fixed="{{fixed}}"
  5. title-class="nav-title" title="{{title}}">
  6. <van-icon wx:if='{{back}}' size="24" name="arrow-left" slot="left" />
  7. </van-nav-bar>
  8. <view style="margin-top: {{MarginTop}}px;" class="container">
  9. <slot />
  10. </view>
  11. <van-tabbar inactive-color="{{inactiveColor}}" active-color="{{activeColor}}" wx:if="{{tabber}}"
  12. bind:change="TabberSuccess" active="{{ active }}" bind:change="TabberSuccess">
  13. <block wx:for="{{tabberlist}}" wx:key="index">
  14. <van-tabbar-item wx:if="{{!item.activesrc}}" info="{{item.info}}" icon="{{item.icon}}">{{item.name}}
  15. </van-tabbar-item>
  16. <van-tabbar-item wx:else info="{{item.info}}">
  17. <image slot="icon" src="{{ item.normalsrc }}" mode="aspectFit" style="width: 30px; height: 18px;" />
  18. <image slot="icon-active" src="{{ item.activesrc }}" mode="aspectFit" style="width: 30px; height: 18px;" />
  19. {{item.name}}
  20. </van-tabbar-item>
  21. </block>
  22. </van-tabbar>