home.vue 918 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <template>
  2. <div>
  3. <!-- 轮播及店铺推荐 -->
  4. <recommend-store :isOriginal="false" :types="types"/>
  5. <excellent-suppliers :isShowMore="true"/>
  6. <hot-commodity/>
  7. </div>
  8. </template>
  9. <script>
  10. import { RecommendStore, ExcellentSuppliers, HotCommodity } from '~components/provider'
  11. export default{
  12. layout: 'main',
  13. data () {
  14. return {
  15. types: 'AGENCY-DISTRIBUTION'
  16. }
  17. },
  18. fetch ({ store }) {
  19. return Promise.all([
  20. // store.dispatch('loadBanners'),
  21. // store.dispatch('provider/loadSalesStore', { isOriginal: false })
  22. // store.dispatch('provider/loadNewStores', { types: 'AGENCY-DISTRIBUTION' }),
  23. // store.dispatch('provider/loadRecommendStores')
  24. // store.dispatch('provider/loadHotComponents')
  25. ])
  26. },
  27. components: {
  28. RecommendStore,
  29. ExcellentSuppliers,
  30. HotCommodity
  31. }
  32. }
  33. </script>
  34. <style scoped>
  35. .container{
  36. padding:0;
  37. }
  38. </style>