list.vue 583 B

123456789101112131415161718192021222324
  1. <template>
  2. <div>
  3. <excellent-suppliers :isShowMore="false"/>
  4. <suppliers :types="'AGENCY-DISTRIBUTION'"/>
  5. </div>
  6. </template>
  7. <script>
  8. import { ExcellentSuppliers, Suppliers } from '~components/provider'
  9. export default {
  10. layout: 'main',
  11. fetch ({ store }) {
  12. return Promise.all([
  13. store.dispatch('provider/loadRecommendStores', { types: 'AGENCY-DISTRIBUTION', num: 5 }),
  14. store.dispatch('provider/findSimilarStoreList', { page: 1, count: 10, types: 'AGENCY-DISTRIBUTION' })
  15. ])
  16. },
  17. components: {
  18. ExcellentSuppliers,
  19. Suppliers
  20. }
  21. }
  22. </script>