1234567891011121314151617 |
- <view wx:if="{{ show }}" class="l-class l-noticebar" style="color: {{ color }}; background-color: {{ backgroundcolor }}">
- <l-icon wx:if="{{ frontIconName }}" size="{{frontIconSize}}" color="{{frontIconColor}}" name="{{ frontIconName }}" class="l-noticebar-icon" />
- <swiper autoplay vertical interval="{{4*speed}}" class="l-noticebar-content-wrap" wx:if="{{type=='swip'}}">
- <block wx:for="{{swipArr}}" wx:key="swip">
- <swiper-item data-index="{{index}}" bindtap="onSwip">
- {{item}}
- </swiper-item>
- </block>
- </swiper>
- <view class="l-noticebar-content-wrap" wx:else>
- <view class="l-noticebar-content" bindtap="handleTap" animation="{{ animationData }}">
- <slot></slot>
- </view>
- </view>
- <l-icon wx:if="{{ endIconName && !close }}" size="{{endIconSize}}" color="{{endIconColor}}" class="l-noticebar-operation" name="{{ endIconName }}" bindtap="onIconTap" />
- <l-icon wx:if="{{close}}" class="l-noticebar-operation" name="close" size="{{endIconSize}}" color="{{endIconColor}}" bindtap="onClose"/>
- </view>
|