123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122 |
- <template>
- <div id="index">
- <el-row>
- <el-col :span="24" class="style">
- <el-col :span="24" class="top">
- <NavBar v-show="navShow" :title="title" :isleftarrow="isleftarrow"> </NavBar>
- </el-col>
- <el-col :span="24" class="main">
- <el-col :span="24" class="main">
- <el-col :span="24" class="one">
- <van-tabs v-model="active" animated>
- <van-tab>
- <template #title>
- <van-icon name="todo-list" />
- <p>草稿</p>
- </template>
- <caogaoList></caogaoList>
- </van-tab>
- <van-tab>
- <template #title>
- <van-icon name="column" />
- <p>待审核</p>
- </template>
- <noauditList></noauditList>
- </van-tab>
- <van-tab>
- <template #title>
- <van-icon name="label" />
- <p>审核成功</p>
- </template>
- <auditList></auditList>
- </van-tab>
- </van-tabs>
- </el-col>
- <el-col :span="24" class="two">
- <van-button type="primary" @click="$router.push({ path: '/myfabu/detail' })">发布产品</van-button>
- </el-col>
- </el-col>
- </el-col>
- </el-col>
- </el-row>
- </div>
- </template>
- <script>
- import { mapState, createNamespacedHelpers } from 'vuex';
- import NavBar from '@/layout/common/topInfo.vue';
- import caogaoList from './parts/caogaoList.vue';
- import noauditList from './parts/noauditList.vue';
- import auditList from './parts/auditList.vue';
- export default {
- name: 'index',
- props: {},
- components: {
- NavBar,
- caogaoList,
- noauditList,
- auditList,
- },
- data: function() {
- return {
- // 头部标题
- title: '',
- // meta为true
- isleftarrow: '',
- // 返回
- navShow: true,
- // 标签
- active: '1',
- };
- },
- created() {},
- methods: {},
- computed: {
- ...mapState(['user']),
- },
- mounted() {
- this.title = this.$route.meta.title;
- this.isleftarrow = this.$route.meta.isleftarrow;
- },
- };
- </script>
- <style lang="less" scoped>
- .style {
- width: 100%;
- min-height: 667px;
- position: relative;
- background-color: #f9fafc;
- }
- .top {
- height: 46px;
- overflow: hidden;
- position: relative;
- z-index: 999;
- }
- .main {
- min-height: 570px;
- .two {
- position: fixed;
- top: 80%;
- left: 10px;
- z-index: 999;
- }
- }
- /deep/.van-tab {
- text-align: center;
- }
- /deep/.van-tabs--line .van-tabs__wrap {
- height: 70px;
- margin: 0 0 10px 0;
- }
- /deep/.van-tab--active {
- color: red;
- }
- .van-icon {
- font-size: 20px;
- }
- </style>
|