_uuid.vue 957 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. <template>
  2. <div class="detail">
  3. <component-menu/>
  4. <component-detail/>
  5. <store-info/>
  6. </div>
  7. </template>
  8. <script>
  9. import { ComponentMenu, ComponentDetail, StoreInfo } from '~components/product'
  10. export default {
  11. layout: 'main',
  12. components: {
  13. ComponentMenu,
  14. ComponentDetail,
  15. StoreInfo
  16. },
  17. fetch ({ store, route }) {
  18. return Promise.all([
  19. store.dispatch('loadComponentDetail', {id: route.params.uuid}),
  20. store.dispatch('loadComponentStore', {uuid: route.params.uuid}),
  21. store.dispatch('loadComponentInformation',
  22. {
  23. count: 10,
  24. page: 1,
  25. sorting: {'minPriceRMB': 'ASC'},
  26. filter: {
  27. uuid: route.params.uuid,
  28. ignoreUMall: false,
  29. ignoreStore: false,
  30. storeIds: ''
  31. }}),
  32. store.dispatch('getUmallStoreId')
  33. ])
  34. },
  35. created () {
  36. }
  37. }
  38. </script>