_uuid.vue 902 B

1234567891011121314151617181920212223242526272829
  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. console.log(route.params.uuid)
  19. return Promise.all([
  20. store.dispatch('loadComponentDetail', {id: route.params.uuid}),
  21. store.dispatch('loadComponentStore', {id: route.params.uuid}),
  22. store.dispatch('loadComponentInformation', {count: 10, filter: { uuid: 332233434, ignoreUMall: false, ignoreStore: true, storeIds: route.params.uuid.storeIds }, page: 1, sorting: {minPriceRMB: route.params.uuid.minPriceRMB}})
  23. ])
  24. },
  25. created () {
  26. console.log(this.$route.params.uuid)
  27. }
  28. }
  29. </script>