_id.vue 997 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <template>
  2. <div class="details">
  3. <div class="information">
  4. <brand-detail :isPcb="true"/>
  5. <div class="comm-list">
  6. <categories-list :isPcb="true" @kindSelectAction="onKindSelect"/>
  7. <brand-list :kindid="kindid"></brand-list>
  8. </div>
  9. </div>
  10. </div>
  11. </template>
  12. <script>
  13. import { BrandDetail, CategoriesList } from '~components/product'
  14. import { BrandList } from '~components/pcb'
  15. export default {
  16. layout: 'pcb',
  17. data () {
  18. return {
  19. code: '',
  20. kindid: ''
  21. }
  22. },
  23. components: {
  24. BrandDetail,
  25. CategoriesList,
  26. BrandList
  27. },
  28. fetch ({ store, params }) {
  29. return Promise.all([
  30. store.dispatch('loadBrandDetail', { id: params.id, isPcb: true })
  31. ])
  32. },
  33. methods: {
  34. onKindSelect: function (kindid) {
  35. this.kindid = kindid || null
  36. }
  37. }
  38. }
  39. </script>
  40. <style scoped>
  41. .comm-list{
  42. width: 1190px;
  43. margin: 0 auto;
  44. overflow: hidden;
  45. }
  46. </style>