_uuid.vue 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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. status: 601
  32. }}),
  33. store.dispatch('getUmallStoreId'),
  34. store.dispatch('product/saveStores')
  35. ])
  36. },
  37. created () {
  38. }
  39. }
  40. </script>