resources.wxml
1.38 KB
<view class="resources">
<view wx:for="{{floors}}" wx:key="{{index}}">
<focus-image wx:if="{{item.template_name == 'focus'}}"
swiper-list="{{item}}"></focus-image>
<divide-image wx:if="{{item.template_name == 'divideImage'}}" floor-data="{{item.data}}"></divide-image>
<!-- floor-data="{{item.data}}" 因埋点需要修改-->
<new-single-image wx:if="{{item.template_name == 'newSingleImage'}}" floor-data="{{item}}" floor-index="{{index + 2}}"></new-single-image>
<!-- 均分楼层 -->
<splitImage wx:elif="{{item.template_name=='splitJointImg'}}" floor-data="{{item}}"
floor-idx="{{index}}"></splitImage>
<horizon-scroll-imgs wx:if="{{item.template_name == '4:3ImageListFloor'}}"
floor-data="{{item.data}}"></horizon-scroll-imgs>
<horizon-scroll-imgs wx:if="{{item.template_name == '3:4ImageListFloor'}}"
floor-data="{{item.data}}"></horizon-scroll-imgs>
<!-- floor-data="{{item.data.list}} 因埋点需要修改-->
<resource-matrix wx:if="{{item.template_name == 'image_list'}}" floor-data="{{item}}" floor-index="{{index + 2}}"></resource-matrix> <!--因为存在焦点图,所以从2层开始-->
<resource-text wx:if="{{item.template_name == 'text'}}" floor-data="{{item.data}}"></resource-text>
</view>
</view>