triple.wxml 3.7 KB
<view class="resource-shop-triple-image {{properties.isModuleMargin ? 'margin-bottom-20' : ''}}">
    <view class="style-type-1 style-type-2" wx:if="{{properties.displayType == 1 || properties.displayType == 2}}">
        <anchor 
            wx:for="{{images}}"
            wx:key="index"
            class="anchor-item"
            bindclickreport="report"
            url="{{item.url}}"
            floor-id="{{floorId}}"
            floor-name="{{floorName}}"
            floor-url="{{item.url}}"
            floor-index="{{floorIndex}}"
            floor-item-index="{{index + 1}}">
            <image class="image-item" src="{{item.pic}}" mode="widthFix"></image>
        </anchor>
    </view>
    <view class="style-type-3" wx:if="{{properties.displayType == 3}}">
        <view class="left-part">
            <anchor
                class="anchor-item"
                bindclickreport="report"
                url="{{item.url}}"
                floor-id="{{floorId}}"
                floor-name="{{floorName}}"
                floor-url="{{item.url}}"
                floor-index="{{floorIndex}}"
                floor-item-index="1">
                <image class="image-item" src="{{images[0].pic}}" mode="widthFix"></image>
            </anchor>
            <anchor
                class="anchor-item"
                bindclickreport="report"
                url="{{item.url}}"
                floor-id="{{floorId}}"
                floor-name="{{floorName}}"
                floor-url="{{item.url}}"
                floor-index="{{floorIndex}}"
                floor-item-index="2">
                <image class="image-item" src="{{images[1].pic}}" mode="widthFix"></image>
            </anchor>
        </view>
        <view class="right-part">
            <anchor
                class="anchor-item"
                bindclickreport="report"
                url="{{item.url}}"
                floor-id="{{floorId}}"
                floor-name="{{floorName}}"
                floor-url="{{item.url}}"
                floor-index="{{floorIndex}}"
                floor-item-index="3">
                <image class="image-item" src="{{images[2].pic}}" mode="widthFix"></image>
            </anchor>
        </view>
    </view>
    <view class="style-type-3 style-type-4" wx:if="{{properties.displayType == 4}}">
        <view class="left-part">
            <anchor
                class="anchor-item"
                bindclickreport="report"
                url="{{item.url}}"
                floor-id="{{floorId}}"
                floor-name="{{floorName}}"
                floor-url="{{item.url}}"
                floor-index="{{floorIndex}}"
                floor-item-index="1">
                <image class="image-item" src="{{images[0].pic}}" mode="widthFix"></image>
            </anchor>
        </view>
        <view class="right-part">
            <anchor
                class="anchor-item"
                bindclickreport="report"
                url="{{item.url}}"
                floor-id="{{floorId}}"
                floor-name="{{floorName}}"
                floor-url="{{item.url}}"
                floor-index="{{floorIndex}}"
                floor-item-index="3">
                <image class="image-item" src="{{images[1].pic}}" mode="widthFix"></image>
            </anchor>
            <anchor
                class="anchor-item"
                bindclickreport="report"
                url="{{item.url}}"
                floor-id="{{floorId}}"
                floor-name="{{floorName}}"
                floor-url="{{item.url}}"
                floor-index="{{floorIndex}}"
                floor-item-index="2">
                <image class="image-item" src="{{images[2].pic}}" mode="widthFix"></image>
            </anchor>
        </view>
    </view>
</view>