_uuid.vue 822 B

123456789101112131415161718192021222324252627282930
  1. <template>
  2. <component-detail></component-detail>
  3. </template>
  4. <script>
  5. import ComponentDetail from '~components/mobile/brand/ComponentDetail.vue'
  6. export default {
  7. layout: 'main',
  8. components: {
  9. ComponentDetail
  10. },
  11. fetch ({ store, params }) {
  12. return Promise.all([
  13. store.dispatch('loadComponentDetail', {id: params.uuid}),
  14. // store.dispatch('loadComponentStore', {uuid: params.uuid}),
  15. store.dispatch('loadComponentInformation',
  16. {
  17. count: 10,
  18. page: 1,
  19. sorting: {'minPriceRMB': 'ASC'},
  20. filter: {
  21. uuid: params.uuid,
  22. ignoreUMall: false,
  23. ignoreStore: false,
  24. storeIds: ''
  25. }}),
  26. store.dispatch('product/saveStores')
  27. ])
  28. }
  29. }
  30. </script>