index.js 685 B

12345678910111213141516171819202122232425262728293031
  1. import { link } from '../mixins/link';
  2. import { VantComponent } from '../common/component';
  3. VantComponent({
  4. classes: ['num-class', 'desc-class', 'thumb-class', 'title-class', 'price-class', 'origin-price-class'],
  5. mixins: [link],
  6. props: {
  7. tag: String,
  8. num: String,
  9. desc: String,
  10. thumb: String,
  11. title: String,
  12. price: String,
  13. centered: Boolean,
  14. lazyLoad: Boolean,
  15. thumbLink: String,
  16. originPrice: String,
  17. thumbMode: {
  18. type: String,
  19. value: 'aspectFit'
  20. },
  21. currency: {
  22. type: String,
  23. value: '¥'
  24. }
  25. },
  26. methods: {
  27. onClickThumb: function onClickThumb() {
  28. this.jumpLink('thumbLink');
  29. }
  30. }
  31. });