_uuid.vue 893 B

12345678910111213141516171819202122232425262728
  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('loadComponentInformation', {count: 10, filter: { uuid: route.params.uuid.uuid, ignoreUMall: route.params.uuid.ignoreUMall, ignoreStore: route.params.uuid.ignoreStore, storeIds: route.params.uuid.storeIds }, page: 1, sorting: {minPriceRMB: route.params.uuid.minPriceRMB}})
  22. ])
  23. },
  24. created () {
  25. console.log(this.$route.params.uuid)
  26. }
  27. }
  28. </script>