index.wxml 1.47 KB
Newer Older
程智春 committed
1
<!--static/nativeComponents/Notice/index.wxml-->
侯体倬 committed
2 3
<view class="notice" style="border-radius:{{datas.componentData.borderRadius}}px;background-color:{{datas.componentData.backgroundColor}};margin:{{NoticeMargin}};padding:{{NoticePadding}};height:{{(CommonHeight)}}">
  <swiper autoplay interval="3000" vertical style="height:{{CommonHeight}}" circular>
李嘉林 committed
4
    <swiper-item wx:for="{{datas.componentData.noticeList}}" wx:key="index">
侯体倬 committed
5 6 7
      <view class="container" bindtap="onclickHandle" data-index="{{index}}" style="width: 100%;height:{{CommonHeight}}">
        <block wx:if="{{item.imageUrl||datas.componentData.singleImage}}">
          <view wx:if="{{datas.componentData.styleType===1}}">
李嘉林 committed
8
            <image class="notice-icon" mode="widthFix" style="width:{{datas.componentData.imageWidth}}px !important;height:{{datas.componentData.imageWidth}}px;" src="{{item.imageUrl}}" />
侯体倬 committed
9 10 11 12 13 14 15 16 17 18 19 20
          </view>
          <view wx:else>
            <image class="notice-icon" style="width:{{datas.componentData.imageWidth}}px !important;height:{{datas.componentData.imageWidth}}px;" src="{{singleImg}}" />
          </view>
        </block>
        <view class="notice-content" style="font-size:{{datas.componentData.fontSize}}px;color:{{datas.componentData.fontColor}}">
          <text class="content">{{item.title}}</text>
        </view>
        <van-icon class="notice-arrowhead" name="arrow" color="#000" wx:if="{{!datas.componentData.showArrow}}"></van-icon>
      </view>
    </swiper-item>
  </swiper>
程智春 committed
21
</view>