index.vue 1.7 KB

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