<template>
  <div class="pcb-product-detail">
    <detail></detail>
  </div>
</template>
<script>
  import { Detail } from '~components/pcb'
  export default {
    layout: 'pcb',
    components: {
      Detail
    },
    fetch ({store, params}) {
      return Promise.all([
        store.dispatch('pcb/getPcbProduct', {productId: params.productId}),
        store.dispatch('shop/findCommodityOnBatchInfo', {batchCode: params.batchCode})
      ])
    }
  }
</script>
<style scoped>
    .pcb-product-detail {
      width: 1190px;
      margin: 0 auto;
    }
</style>
