index.wxml 2.4 KB

1234567891011121314151617181920212223242526272829303132333435
  1. <!-- components/diy-intro/index.wxml -->
  2. <view class="intro_index">
  3. <block wx:if="{{column == 'row'}}">
  4. <view class="intro" style="width:{{style.width}}%;margin:{{style.areaMargin.top * 2}}rpx {{style.areaMargin.right * 2}}rpx {{style.areaMargin.bottom * 2}}rpx {{style.areaMargin.left * 2}}rpx;background:{{style.backgroundColor}}">
  5. <block wx:for="{{list}}" wx:key="index">
  6. <view class="intro_info" style="padding:{{style.padding.top * 2}}rpx {{style.padding.right * 2}}rpx {{style.padding.bottom * 2}}rpx {{style.padding.left * 2}}rpx">
  7. <image class="image" src="{{item.image}}" style="width:{{style.imageHeight * 2}}rpx;height:{{style.imageWidth * 2}}rpx;border-radius:{{style.borderRadius}}%" mode="aspectFit|aspectFill|widthFix" lazy-load="false" binderror="" bindload="" />
  8. <view class="name" style="font-size:{{style.fontSize * 2}}rpx">
  9. {{item.name}}
  10. </view>
  11. <view class="desc" style="font-size:{{style.descSize * 2}}rpx">
  12. {{item.desc}}
  13. </view>
  14. </view>
  15. </block>
  16. </view>
  17. </block>
  18. <block wx:if="{{column == 'slide'}}">
  19. <view class="slide_info" style="width:{{style.width}}%;margin:{{style.areaMargin.top * 2}}rpx {{style.areaMargin.right * 2}}rpx {{style.areaMargin.bottom * 2}}rpx {{style.areaMargin.left * 2}}rpx;background:{{style.backgroundColor}}">
  20. <scroll-view class="" scroll-x="true">
  21. <block wx:for="{{list}}" wx:key="index">
  22. <view class="intro_info" style="padding:{{style.padding.top * 2}}rpx {{style.padding.right * 2}}rpx {{style.padding.bottom * 2}}rpx {{style.padding.left * 2}}rpx">
  23. <image class="image" src="{{item.image}}" style="width:{{style.imageHeight * 2}}rpx;height:{{style.imageWidth * 2}}rpx;border-radius:{{style.borderRadius}}%" mode="aspectFit|aspectFill|widthFix" lazy-load="false" binderror="" bindload="" />
  24. <view class="name" style="font-size:{{style.fontSize * 2}}rpx">
  25. {{item.name}}
  26. </view>
  27. <view class="desc" style="font-size:{{style.descSize * 2}}rpx">
  28. {{item.desc}}
  29. </view>
  30. </view>
  31. </block>
  32. </scroll-view>
  33. </view>
  34. </block>
  35. </view>