index.wxml 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. <!-- components/diy-store/index.wxml -->
  2. <nav type="back" background-color="#ffffff" title="店铺主页"></nav>
  3. <block wx:if="{{style.column == 'template1'}}">
  4. <block wx:for="{{list}}" wx:key="index">
  5. <view class="two_index">
  6. <image class="two_image" src="{{item.cover}}" mode="aspectFit|aspectFill|widthFix" lazy-load="false" binderror="" bindload="" />
  7. <view class="two_info">
  8. <image class="two_avatar" src="{{item.logo}}" mode="aspectFit|aspectFill|widthFix" lazy-load="false" binderror="" bindload="" />
  9. <view class="two_right">
  10. <view class="two_name">{{item.storeName}}</view>
  11. <view class="two_desc">
  12. 所有商品:123
  13. <div class="i">|</div>
  14. 在销商品:76
  15. </view>
  16. </view>
  17. </view>
  18. </view>
  19. </block>
  20. </block>
  21. <block wx:if="{{style.column == 'template2'}}">
  22. <block wx:for="{{list}}" wx:key="index">
  23. <view class="one_index">
  24. <view class="one_info" style="background-image: url({{item.cover}})">
  25. <image class="one_image" src="{{item.logo}}" lazy-load="false" binderror="" bindload="" />
  26. <view class="one_right">
  27. <view class="one_name">{{item.storeName}}</view>
  28. <view class="one_desc">
  29. 所有商品:123
  30. <div class="i">|</div>
  31. 在销商品:76
  32. </view>
  33. </view>
  34. </view>
  35. </view>
  36. </block>
  37. </block>
  38. <block wx:if="{{style.column == 'template3'}}">
  39. <block wx:for="{{list}}" wx:key="index">
  40. <view class="three_index">
  41. <view class="three_info">
  42. <image class="three_image" src="{{item.cover}}" mode="aspectFit|aspectFill|widthFix" lazy-load="false" binderror="" bindload="" />
  43. <image class="three_avatar" src="{{item.logo}}" mode="aspectFit|aspectFill|widthFix" lazy-load="false" binderror="" bindload="" />
  44. <view class="three_name">{{item.storeName}}</view>
  45. <view class="three_desc">
  46. 所有商品:123
  47. <div class="i">|</div>
  48. 在销商品:76
  49. </view>
  50. </view>
  51. </view>
  52. </block>
  53. </block>
  54. <block wx:if="{{style.column == 'template4'}}">
  55. <block wx:for="{{list}}" wx:key="index">
  56. <view class="four_index">
  57. <view class="four_info" style="background-image: url({{item.cover}})">
  58. <image class="four_avatar" src="{{item.logo}}" mode="aspectFit|aspectFill|widthFix" lazy-load="false" binderror="" bindload="" />
  59. <view class="four_name">{{item.storeName}}</view>
  60. <view class="four_line"></view>
  61. <view class="four_desc">
  62. 所有商品:123
  63. <div class="i">|</div>
  64. 在销商品:76
  65. </view>
  66. </view>
  67. </view>
  68. </block>
  69. </block>