index.axml 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. <wrapper>
  2. <!-- <view style="display: none">
  3. <component
  4. is="dynamic-plugin://2021002165686069/components/store/index"
  5. a:if="{{isReady}}"
  6. shopType="{{componentData.componentExtInfo.shopType || 'ALL'}}"
  7. onChangeStore="onChangeStore"
  8. ></component>
  9. </view> -->
  10. <!-- 爆品样式 -->
  11. <view
  12. a:if="{{hotGoodsList && hotGoodsList.length}}"
  13. class="hot-goods-container"
  14. >
  15. <view class="hot-goods-head">
  16. <image
  17. class="hot-goods-head-icon"
  18. src="{{fireImg}}"
  19. />
  20. <view class="title">爆款商品</view>
  21. </view>
  22. <view
  23. a:if="{{styleType === '4'}}"
  24. class="hot-goods-body"
  25. style="flex-direction: row; margin-left: -{{styleConfig2.boxMarginLeft}}"
  26. >
  27. <block a:for="{{hotGoodsList}}">
  28. <view class="style-border">
  29. <hot-goods-item
  30. goodsItem="{{item.bigItem}}"
  31. componentData="{{componentData}}"
  32. styleConfig="{{styleConfig[0]}}"
  33. styleType="{{styleType}}"
  34. />
  35. <view class="hot-goods-style-four">
  36. <block a:for="{{item.smallList}}">
  37. <hot-goods-item
  38. a:if="{{item}}"
  39. componentData="{{componentData}}"
  40. goodsItem="{{item}}"
  41. styleConfig="{{styleConfig[1]}}"
  42. styleType="{{styleType}}"
  43. />
  44. </block>
  45. </view>
  46. </view>
  47. </block>
  48. </view>
  49. <!-- 样式1、2、3 -->
  50. <view
  51. a:else
  52. class="hot-goods-body"
  53. style="flex-direction: {{styleConfig.outFlexDirection}};margin-left: -{{styleConfig.boxMarginLeft}}"
  54. >
  55. <block a:for="{{hotGoodsList}}">
  56. <hot-goods-item
  57. componentData="{{componentData}}"
  58. styleConfig="{{styleConfig}}"
  59. goodsItem="{{item}}"
  60. styleType="{{styleType}}"
  61. />
  62. </block>
  63. </view>
  64. </view>
  65. <view a:else style="background: #fff;padding: 24rpx">
  66. <empty-page
  67. title="欢迎光临"
  68. height="300rpx"
  69. message="欢迎来到云小店,快去商城选购商品吧~"
  70. imgHeight="200rpx"
  71. imgWidth="200rpx"
  72. imgMargin="33rpx auto 40rpx"
  73. emptyImage="https://gw.alipayobjects.com/mdn/rms_0e8a29/afts/img/A*y8RsRoC7SmYAAAAAAAAAAAAAARQnAQ"
  74. />
  75. </view>
  76. </wrapper>