index.wxml 1.0 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" />
  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}}" bindtap="onSwip">
  6. {{item}}
  7. </swiper-item>
  8. </block>
  9. </swiper>
  10. <view class="l-noticebar-content-wrap" wx:else>
  11. <view class="l-noticebar-content" bindtap="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 }}" bindtap="onIconTap" />
  16. <l-icon wx:if="{{close}}" class="l-noticebar-operation" name="close" size="{{endIconSize}}" color="{{endIconColor}}" bindtap="onClose"/>
  17. </view>