notice.wxml 794 B

123456789101112131415
  1. <template name="notice">
  2. <view style="margin-top: {{item.marginTop}}px;">
  3. <view class="top-msg" style="color: {{item.textColor}};background:{{item.backgroundColor}};">
  4. <image wx:if="{{item.leftImg!='/static/diycomponent/notice/img/notice.png'}}" src="{{item.leftImg}}"></image>
  5. <text wx:else class="iconfont icon-laba"></text>
  6. <swiper class='notice-swipe' autoplay interval="3000" vertical circular>
  7. <block wx:for="{{item.list}}" wx:for-item="noticeItem" wx:key="id">
  8. <swiper-item class='notice-swipe-item' data-content="{{noticeItem.title}}">
  9. {{noticeItem.title}}
  10. </swiper-item>
  11. </block>
  12. </swiper>
  13. </view>
  14. </view>
  15. </template>