index.wxml 601 Bytes
Newer Older
1 2 3 4 5 6 7
<view class="container center">
	<view class="card-swiper">
		<view
		 wx:for="{{datas.componentData.goodsList}}"
		 wx:key="index"
		 data-index="{{index}}"
		 class="{{'card-swiper-item curdistance' + (swiperCurIndex + index) +  (!!item.slideClass? item.slideClass: '')}}"
李嘉林 committed
8 9 10 11
		 bindtouchstart="touchCard.start"
		 bindtouchmove="touchCard.move"
		 bindtouchend="touchCard.end"
		 bindtouchcancel="touchCard.cancel"
12 13 14 15 16 17 18 19 20 21 22
		>
			<goods-item
			 style="width:100%"
			 datas="{{datas}}"
			 items="{{datas.componentData.goodsList[index]}}"
			 indexs="{{index}}"
			></goods-item>
		</view>
	</view>
</view>