<view>
<template is="name" data="{{ item }}"></template>
</view>
<template name="zan">
<view bindtap='zanFun' data-option='1' data-idx='{{ index }}' data-item="{{item.data}}" >
<image src="{{ item.data.aaaUrl}}" wx:if="{{ showIcon }}" catchtap='onCollectionTap'></image>
<image src="{{item.data.bbbUrl }}" wx:else catchtap='onCollectionTap'></image>
</view>
</template>