index.vue 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. <template>
  2. <div id="index">
  3. <el-row>
  4. <el-col :span="24" class="style">
  5. <el-col :span="24" class="top">
  6. <NavBar v-show="navShow" :title="title" :isleftarrow="isleftarrow"> </NavBar>
  7. </el-col>
  8. <el-col :span="24" class="main">
  9. <list></list>
  10. </el-col>
  11. </el-col>
  12. </el-row>
  13. </div>
  14. </template>
  15. <script>
  16. import { mapState, createNamespacedHelpers } from 'vuex';
  17. import NavBar from '@/layout/common/topInfo.vue';
  18. import list from './parts/list.vue';
  19. export default {
  20. name: 'index',
  21. props: {},
  22. components: { NavBar, list },
  23. data: () => ({
  24. // 头部标题
  25. title: '',
  26. // meta为true
  27. isleftarrow: '',
  28. // 返回
  29. navShow: true,
  30. img_path: require('@/assets/logo.png'),
  31. active: 0,
  32. show: false,
  33. newform: {},
  34. }),
  35. created() {},
  36. computed: {},
  37. methods: {},
  38. mounted() {
  39. this.title = this.$route.meta.title;
  40. this.isleftarrow = this.$route.meta.isleftarrow;
  41. },
  42. };
  43. </script>
  44. <style lang="less" scoped>
  45. .style {
  46. width: 100%;
  47. min-height: 667px;
  48. position: relative;
  49. background-color: #f9fafc;
  50. }
  51. .top {
  52. height: 46px;
  53. overflow: hidden;
  54. position: relative;
  55. z-index: 999;
  56. }
  57. .main {
  58. min-height: 570px;
  59. .two {
  60. position: fixed;
  61. top: 80%;
  62. left: 10px;
  63. z-index: 999;
  64. }
  65. }
  66. /deep/.van-tab {
  67. text-align: center;
  68. }
  69. /deep/.van-tabs--line .van-tabs__wrap {
  70. height: 70px;
  71. margin: 0 0 10px 0;
  72. }
  73. /deep/.van-tab--active {
  74. color: red;
  75. }
  76. .van-icon {
  77. font-size: 20px;
  78. }
  79. /deep/.van-popup--bottom {
  80. bottom: 0;
  81. left: 0;
  82. width: 100%;
  83. height: 300px;
  84. }
  85. </style>