_batchCode.vue 929 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <template>
  2. <div class="container commodity">
  3. <commodity-info />
  4. <component-info />
  5. </div>
  6. </template>
  7. <script>
  8. import { ComponentInfo, CommodityInfo } from '~components/store'
  9. export default {
  10. layout: 'shop',
  11. data () {
  12. return {
  13. uuid: this.$route.params.uuid,
  14. batchCode: this.$route.params.batchCode,
  15. breadcrumbs: [
  16. { name: '商城首页', to: {} },
  17. { name: '商城首页', to: {} },
  18. { name: '商城首页', to: {} }
  19. ]
  20. }
  21. },
  22. fetch ({ store, route }) {
  23. return Promise.all([
  24. store.dispatch('shop/findStoreInfoFromUuid', route.params),
  25. store.dispatch('shop/findCommodityOnBatchInfo', route.params)
  26. ])
  27. },
  28. components: {
  29. ComponentInfo,
  30. CommodityInfo
  31. }
  32. }
  33. </script>
  34. <style scoped>
  35. .container.commodity {
  36. width: 1190px;
  37. padding-left: 0px;
  38. padding-right: 0px;
  39. font-family: "Microsoft Yahei", "微软雅黑";
  40. }
  41. </style>