index.wxml 1.1 KB

1234567891011121314151617
  1. <view wx:if="{{ show }}" class="l-class l-noticebar" style="color: {{ color }}; background-color: {{ backgroundcolor }}">
  2. <l-icon wx:if="{{ frontIconName }}" size="{{frontIconSize}}" color="{{frontIconColor}}" name="{{ frontIconName }}" class="l-noticebar-icon" l-class="l-icon-class"/>
  3. <swiper autoplay vertical interval="{{4*speed}}" class="l-noticebar-content-wrap" wx:if="{{type=='swip'}}">
  4. <block wx:for="{{swipArr}}" wx:key="swip">
  5. <swiper-item data-index="{{index}}" mut-bind:tap="onSwip">
  6. {{item}}
  7. </swiper-item>
  8. </block>
  9. </swiper>
  10. <view class="l-noticebar-content-wrap l-noticebar-content-wrap-view" wx:else>
  11. <view class="l-noticebar-content" mut-bind:tap="handleTap" animation="{{ animationData }}">
  12. <slot></slot>
  13. </view>
  14. </view>
  15. <l-icon wx:if="{{ endIconName && !close }}" size="{{endIconSize}}" color="{{endIconColor}}" class="l-noticebar-operation" name="{{ endIconName }}" mut-bind:tap="onIconTap"/>
  16. <l-icon wx:if="{{close}}" class="l-noticebar-operation" name="close" size="{{endIconSize}}" color="{{endIconColor}}" mut-bind:tap="onClose"/>
  17. </view>