<!--component/imageSwiper/imageSwiper.wxml-->
<wxs src="../../wxs/utils.wxs" module="utils" />
<swiper
 class="image-swiper"
 indicator-dots="{{indicatorDots}}"
 autoplay="{{autoplay}}"
 interval="{{interval}}"
 circular="{{circular}}"
 duration="{{duration}}"
 style="height: {{maxHeight}}px;"
>
	<block wx:for="{{imageList}}" wx:key="swiper{{index}}" wx:for-item="item">
		<swiper-item class="swiper-item" >
			<view wx:if="{{item.needAuth}}">
				<view wx:if="{{!currentHasUserInfo}}">
					<image
					 bindload="imageLoad"
					 src="{{utils.formateUrl(item.imageUrl,baseImgUrl)}}"
					 id="swiperImg{{index}}"
					 mode="widthFix"
					 class="slide-image"
					/>
				</view>
				<view wx:else>
					<view
					 data-appid="{{item.link.appid}}"
					 data-path="{{item.link.url}}"
					 data-link="{{item.link}}"
					 data-item="{{item}}"
					 bindtap='preview'
					>
						<image
						 bindload="imageLoad"
						 src="{{utils.formateUrl(item.imageUrl,baseImgUrl)}}"
						 id="swiperImg{{index}}"
						 mode="widthFix"
						 class="slide-image"
						/>
					</view>
				</view>
			</view>

			<view wx:else>
				<view
				 data-appid="{{item.link.appid}}"
				 data-path="{{item.link.url}}"
				 data-link="{{item.link}}"
				 data-item="{{item}}"
				 bindtap='preview'
				>
					<image
					 bindload="imageLoad"
					 src="{{utils.formateUrl(item.imageUrl,baseImgUrl)}}"
					 id="swiperImg{{index}}"
					 mode="widthFix"
					 class="slide-image"
					/>
				</view>
			</view>
		</swiper-item>
	</block>
</swiper>

