uservendor.vue 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <template>
  2. <div id="main" class="uservendor">
  3. <header-view v-if="!isInFrame"></header-view>
  4. <vendor-header></vendor-header>
  5. <nuxt/>
  6. <footer-view></footer-view>
  7. <right-bar></right-bar>
  8. </div>
  9. </template>
  10. <script>
  11. import { Header, Footer, RightBar } from '~components/default'
  12. import { VendorHeader } from '~components/main'
  13. export default {
  14. name: 'mainView',
  15. components: {
  16. HeaderView: Header,
  17. FooterView: Footer,
  18. RightBar,
  19. VendorHeader
  20. },
  21. head () {
  22. return {
  23. title: this.title,
  24. meta: [
  25. {hid: 'description', name: 'description', content: this.description},
  26. {hid: 'keywords', name: 'keywords', content: this.keywords}
  27. ]
  28. }
  29. },
  30. computed: {
  31. title () {
  32. return '卖家中心-优软商城'
  33. },
  34. description () {
  35. return '优软商城,电子元器件搜索引擎'
  36. },
  37. keywords () {
  38. return '软商城,B2B,B2C,行业门户,网上贸易,电子商务,网上贸易,网上交易,交易市场,在线交易,供求信息,采购,求购信息,供应信息'
  39. },
  40. kinds () {
  41. return this.$store.state.product.kind.kindsParentWithBother.data
  42. },
  43. componentDetail () {
  44. return this.$store.state.componentDetail.detail.data
  45. },
  46. brandDetail () {
  47. return this.$store.state.brandDetail.detail.data
  48. },
  49. newsDetail () {
  50. return this.$store.state.newsData.detailNews.detailNews.data
  51. }
  52. }
  53. }
  54. </script>
  55. <style lang="scss" scoped>
  56. .uservendor {
  57. background: #f7f7f7;
  58. }
  59. </style>