index.wxml 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <goods-card
  2. class="wr-specs-goods-card"
  3. id="{{id}}"
  4. layout="{{layout}}"
  5. data="{{data}}"
  6. currency="{{currency}}"
  7. price-fill="{{priceFill}}"
  8. lazy-load="{{lazyLoad}}"
  9. centered="{{centered}}"
  10. thumb-mode="{{thumbMode}}"
  11. thumb-width="{{thumbWidth}}"
  12. thumb-height="{{thumbHeight}}"
  13. show-cart="{{showCart}}"
  14. cart-size="{{cartSize}}"
  15. cart-color="{{cartColor}}"
  16. card-class="{{index === goodsList.length - 1 ? 'wr-goods-card__no-border' : 'wr-goods-card'}}"
  17. title-class="title-class"
  18. desc-class="desc-class"
  19. num-class="num-class"
  20. thumb-class="thumb-class"
  21. specs-class="specs-class"
  22. price-class="price-class"
  23. origin-price-class="origin-price-class"
  24. price-prefix-class="price-prefix-class"
  25. bind:thumb="onClickThumb"
  26. bind:tag="onClickTag"
  27. bind:add-cart="onClickCart"
  28. bind:click="onClick"
  29. hidden="{{hiddenInData}}"
  30. >
  31. <!-- 透传good-card组件的slot -->
  32. <slot name="thumb-cover" slot="thumb-cover" />
  33. <slot name="after-title" slot="after-title" />
  34. <slot name="after-desc" slot="after-desc" />
  35. <slot name="price-prefix" slot="price-prefix" />
  36. <slot name="append-body" slot="append-body" />
  37. <slot name="footer" slot="footer" />
  38. <slot name="append-card" slot="append-card" />
  39. </goods-card>