index.vue 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  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. <van-tabs v-model="active" animated>
  12. <van-tab>
  13. <template #title>
  14. <van-icon name="todo-list" />
  15. <p>草稿</p>
  16. </template>
  17. <caogaoList></caogaoList>
  18. </van-tab>
  19. <van-tab>
  20. <template #title>
  21. <van-icon name="column" />
  22. <p>待审核</p>
  23. </template>
  24. <noauditList></noauditList>
  25. </van-tab>
  26. <van-tab>
  27. <template #title>
  28. <van-icon name="label" />
  29. <p>审核成功</p>
  30. </template>
  31. <auditList></auditList>
  32. </van-tab>
  33. </van-tabs>
  34. </el-col>
  35. <el-col :span="24" class="two">
  36. <van-button type="primary" @click="$router.push({ path: '/myfabu/detail' })">发布产品</van-button>
  37. </el-col>
  38. </el-col>
  39. </el-col>
  40. </el-col>
  41. </el-row>
  42. </div>
  43. </template>
  44. <script>
  45. import { mapState, createNamespacedHelpers } from 'vuex';
  46. import NavBar from '@/layout/common/topInfo.vue';
  47. import caogaoList from './parts/caogaoList.vue';
  48. import noauditList from './parts/noauditList.vue';
  49. import auditList from './parts/auditList.vue';
  50. export default {
  51. name: 'index',
  52. props: {},
  53. components: {
  54. NavBar,
  55. caogaoList,
  56. noauditList,
  57. auditList,
  58. },
  59. data: function() {
  60. return {
  61. // 头部标题
  62. title: '',
  63. // meta为true
  64. isleftarrow: '',
  65. // 返回
  66. navShow: true,
  67. // 标签
  68. active: '1',
  69. };
  70. },
  71. created() {},
  72. methods: {},
  73. computed: {
  74. ...mapState(['user']),
  75. },
  76. mounted() {
  77. this.title = this.$route.meta.title;
  78. this.isleftarrow = this.$route.meta.isleftarrow;
  79. },
  80. };
  81. </script>
  82. <style lang="less" scoped>
  83. .style {
  84. width: 100%;
  85. min-height: 667px;
  86. position: relative;
  87. background-color: #f9fafc;
  88. }
  89. .top {
  90. height: 46px;
  91. overflow: hidden;
  92. position: relative;
  93. z-index: 999;
  94. }
  95. .main {
  96. min-height: 570px;
  97. .two {
  98. position: fixed;
  99. top: 80%;
  100. left: 10px;
  101. z-index: 999;
  102. }
  103. }
  104. /deep/.van-tab {
  105. text-align: center;
  106. }
  107. /deep/.van-tabs--line .van-tabs__wrap {
  108. height: 70px;
  109. margin: 0 0 10px 0;
  110. }
  111. /deep/.van-tab--active {
  112. color: red;
  113. }
  114. .van-icon {
  115. font-size: 20px;
  116. }
  117. </style>