resources.wxml 1.92 KB
<view class="resources">
    <view wx:for="{{floors}}" wx:key="{{index}}" bindclickreport="report">
        <shop-carousel
            bindclickreport="report"
            wx:if="{{item.module_type == 'CarouselImage'}}" 
            images="{{item.data}}"
            padding-class="{{'padding-bottom-20'}}"
            floor-id="{{item.template_id}}"
            floor-name="{{item.template_name}}"
            floor-index="{{floorIndex}}">
        </shop-carousel>
        <shop-single-image
            bindclickreport="report"
            wx:if="{{item.module_type == 'SingleImage'}}" 
            images="{{item.data}}"
            padding-class="{{'padding-bottom-20'}}"
            floor-id="{{item.template_id}}"
            floor-name="{{item.template_name}}"
            floor-index="{{floorIndex}}">
        </shop-single-image>
        <shop-double-image
            bindclickreport="report"
            wx:if="{{item.module_type == 'DoubleImage'}}" 
            images="{{item.data}}"
            padding-class="{{'padding-bottom-20'}}"
            floor-id="{{item.template_id}}"
            floor-name="{{item.template_name}}"
            floor-index="{{floorIndex}}">
        </shop-double-image>
        <shop-four-image
            bindclickreport="report"
            wx:if="{{item.module_type == 'FourImage'}}" 
            images="{{item.data}}"
            padding-class="{{'padding-bottom-20'}}"
            floor-id="{{item.template_id}}"
            floor-name="{{item.template_name}}"
            floor-index="{{floorIndex}}">
        </shop-four-image>
        <shop-triple-image
            bindclickreport="report"
            wx:if="{{item.module_type == 'TripleImage'}}" 
            images="{{item.data}}"
            properties="{{item.properties}}"
            floor-id="{{item.template_id}}"
            floor-name="{{item.template_name}}"
            floor-index="{{floorIndex}}">
        </shop-triple-image>
    </view>
</view>