index.vue 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <template>
  2. <div class="supplier" style="background: #f2f1f1;padding-top:20px;">
  3. <div class="container">
  4. <div class="article">
  5. <article-two></article-two>
  6. </div>
  7. <div class="section">
  8. <banner/>
  9. <!--<carousel>-->
  10. <!--<kind-category @loadchild="loadProductKinds"></kind-category>-->
  11. <!--</carousel>-->
  12. </div>
  13. </div>
  14. </div>
  15. </template>
  16. <script>
  17. import { KindCategory, Carousel } from '~components/home'
  18. import { MerchantView, Banner, ArticleOne, ArticleTwo } from '~components/supplier'
  19. export default {
  20. name: 'SupplierView',
  21. layout: 'main',
  22. fetch ({store}) {
  23. return Promise.all([
  24. store.dispatch('supplier/loadVendorList', {page: 1, size: 10}),
  25. store.dispatch('supplier/loadVendorAll', {page: 1, size: 20}),
  26. store.dispatch('supplier/loadNewMerchant', {filter: 'page', size: 10}),
  27. store.dispatch('supplier/loadRecommend', {size: 19})
  28. ])
  29. },
  30. components: {
  31. KindCategory,
  32. Carousel,
  33. MerchantView,
  34. Banner,
  35. ArticleOne,
  36. ArticleTwo
  37. }
  38. }
  39. </script>