detail.vue 904 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <template>
  2. <div id="detail">
  3. <el-row>
  4. <el-col :span="24" class="info">
  5. <el-col :span="24" class="top">
  6. <topInfo :topTitle="pageTitle"></topInfo>
  7. </el-col>
  8. <el-col :span="24" class="main">
  9. <mainForm></mainForm>
  10. </el-col>
  11. </el-col>
  12. </el-row>
  13. </div>
  14. </template>
  15. <script>
  16. import topInfo from '@/layout/public/top.vue';
  17. import mainForm from '@/layout/user/mainForm.vue';
  18. export default {
  19. name: 'detail',
  20. props: {},
  21. components: {
  22. topInfo, //头部标题
  23. mainForm,
  24. },
  25. data: () => ({}),
  26. created() {},
  27. methods: {},
  28. computed: {
  29. pageTitle() {
  30. return `${this.$route.meta.title}`;
  31. },
  32. },
  33. metaInfo() {
  34. return { title: this.$route.meta.title };
  35. },
  36. };
  37. </script>
  38. <style lang="less" scoped>
  39. .top {
  40. height: 40px;
  41. background-color: #f5f5f5;
  42. }
  43. .main {
  44. width: 97%;
  45. margin: 0 15px;
  46. }
  47. </style>