<template>
  <div id="mechBtn">
    <van-row>
      <van-col span="24" class="main">
        <van-col span="24" class="one">
          <van-divider content-position="left" :style="{ color: '#1989fa', borderColor: '#1989fa' }">我的消息</van-divider>
          <van-col span="24" class="one_1">
            <van-cell title="审核通知" @click="pathBtn('admin/message', 'examine')" is-link />
            <van-cell title="通知管理" @click="pathBtn('mech/message', 'notice')" is-link />
          </van-col>
        </van-col>
        <van-col span="24" class="one">
          <van-divider content-position="left" :style="{ color: '#1989fa', borderColor: '#1989fa' }">我的审核</van-divider>
          <van-col span="24" class="one_1">
            <van-cell title="申请审核" @click="pathBtn('mech/examine', 'patent')" is-link />
            <van-cell title="交易审核" @click="pathBtn('mech/examine', 'trans_examine', '')" is-link />
            <van-cell title="合同审核" @click="pathBtn('mech/examine', 'contract')" is-link />
            <van-cell title="交易归档" @click="pathBtn('mech/examine', 'trans')" is-link />
          </van-col>
        </van-col>
        <van-col span="24" class="one">
          <van-divider content-position="left" :style="{ color: '#1989fa', borderColor: '#1989fa' }">我的专利</van-divider>
          <van-col span="24" class="one_1">
            <van-cell title="专利信息" @click="pathBtn('mech/patent', 'information')" is-link />
            <van-cell title="专利检索" @click="pathBtn('mech/patent', 'navigation')" is-link />
            <van-cell title="专利预警" @click="pathBtn('mech/patent', 'early')" is-link />
          </van-col>
        </van-col>
        <van-col span="24" class="one">
          <van-divider content-position="left" :style="{ color: '#1989fa', borderColor: '#1989fa' }">我的交易</van-divider>
          <van-col span="24" class="one_1">
            <van-cell title="专利交易" @click="pathBtn('mech/transaction', 'index', '')" is-link />
          </van-col>
        </van-col>
      </van-col>
    </van-row>
  </div>
</template>

<script>
import { mapState, createNamespacedHelpers } from 'vuex';
export default {
  name: 'mechBtn',
  props: {},
  components: {},
  data: function () {
    return {};
  },
  created() {},
  methods: {
    pathBtn(type, path, query) {
      this.$router.push({ path: `/patent/${type}/${path}?${query}` });
    },
  },
  computed: {
    ...mapState(['user']),
  },
  metaInfo() {
    return { title: this.$route.meta.title };
  },
  watch: {
    test: {
      deep: true,
      immediate: true,
      handler(val) {},
    },
  },
};
</script>

<style lang="less" scoped>
.main {
  .one {
    .one_1 {
      .one_1action {
        /deep/.van-info {
          background-color: #409eff;
        }
        /deep/.van-goods-action-icon {
          padding: 8px 0;
        }
        i {
          font-size: 20px;
        }
      }
    }
    /deep/.van-divider {
      margin: 10px;
    }
  }
}
</style>
