|
@@ -0,0 +1,158 @@
|
|
|
+<template>
|
|
|
+ <div id="detail">
|
|
|
+ <el-row>
|
|
|
+ <el-col :span="24" class="main">
|
|
|
+ <el-col :span="24" class="top">
|
|
|
+ <NavBar v-show="navShow" :title="title" :isleftarrow="isleftarrow" @onClickLeft="back"> </NavBar>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="24" class="info">
|
|
|
+ <el-col :span="24" class="mainTop">
|
|
|
+ <van-image :src="noimage" />
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="24" class="message">
|
|
|
+ <p>
|
|
|
+ <span>专利名称</span>
|
|
|
+ <span>{{ info.name || '暂无' }}</span>
|
|
|
+ </p>
|
|
|
+ <p>
|
|
|
+ <span>申请日</span>
|
|
|
+ <span>{{ info.create_date || '暂无' }}</span>
|
|
|
+ </p>
|
|
|
+ <p>
|
|
|
+ <span> 公开(公告)号</span>
|
|
|
+ <span>{{ info.number || '暂无' }}</span>
|
|
|
+ </p>
|
|
|
+ <p>
|
|
|
+ <span> 公开(公告)日</span>
|
|
|
+ <span>{{ info.complete_date || '暂无' }}</span>
|
|
|
+ </p>
|
|
|
+ <p>
|
|
|
+ <span>发明人</span>
|
|
|
+ <span>{{ info.inventor || '暂无' }}</span>
|
|
|
+ </p>
|
|
|
+ <p>
|
|
|
+ <span>发明人地址</span>
|
|
|
+ <span>{{ info.inventor_address || '暂无' }}</span>
|
|
|
+ </p>
|
|
|
+ <p>
|
|
|
+ <span>代理人</span>
|
|
|
+ <span>{{ info.agency_person || '暂无' }}</span>
|
|
|
+ </p>
|
|
|
+ <p>
|
|
|
+ <span>代理机构</span>
|
|
|
+ <span>{{ info.agency || '暂无' }}</span>
|
|
|
+ </p>
|
|
|
+ <p>
|
|
|
+ <span>专利有效性</span>
|
|
|
+ <span style="color:#ff0000">{{ info.effective_date || '暂无' }}</span>
|
|
|
+ </p>
|
|
|
+ <p>
|
|
|
+ <span>摘要</span>
|
|
|
+ <span>{{ info.content || '暂无' }}</span>
|
|
|
+ </p>
|
|
|
+ </el-col>
|
|
|
+ </el-col>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ </div>
|
|
|
+</template>
|
|
|
+
|
|
|
+<script>
|
|
|
+// 专利信息
|
|
|
+import { patentList } from '@/util/patent.js';
|
|
|
+import NavBar from '@/layout/common/topInfo.vue';
|
|
|
+import { mapState, createNamespacedHelpers } from 'vuex';
|
|
|
+export default {
|
|
|
+ metaInfo() {
|
|
|
+ return { title: this.$route.meta.title };
|
|
|
+ },
|
|
|
+ name: 'detail',
|
|
|
+ props: {},
|
|
|
+ components: {
|
|
|
+ NavBar,
|
|
|
+ },
|
|
|
+ data: function() {
|
|
|
+ return {
|
|
|
+ // 头部标题
|
|
|
+ title: '',
|
|
|
+ // meta为true
|
|
|
+ isleftarrow: '',
|
|
|
+ // 返回
|
|
|
+ navShow: true,
|
|
|
+ noimage: require('@a/fmzl.jpg'),
|
|
|
+ info: {},
|
|
|
+ patentList: patentList,
|
|
|
+ };
|
|
|
+ },
|
|
|
+ created() {
|
|
|
+ this.search();
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+ search() {
|
|
|
+ let res = this.patentList.find(i => i.id == this.id);
|
|
|
+ console.log(res);
|
|
|
+ if (res) this.$set(this, `info`, res);
|
|
|
+ },
|
|
|
+ back() {
|
|
|
+ this.$router.push({ path: '/viewTwo/patent/index' });
|
|
|
+ },
|
|
|
+ },
|
|
|
+ computed: {
|
|
|
+ ...mapState(['user']),
|
|
|
+ id() {
|
|
|
+ return this.$route.query.id;
|
|
|
+ },
|
|
|
+ },
|
|
|
+ mounted() {
|
|
|
+ this.title = this.$route.meta.title;
|
|
|
+ this.isleftarrow = this.$route.meta.isleftarrow;
|
|
|
+ },
|
|
|
+ watch: {},
|
|
|
+};
|
|
|
+</script>
|
|
|
+
|
|
|
+<style lang="less" scoped>
|
|
|
+.main {
|
|
|
+ width: 100%;
|
|
|
+ min-height: 667px;
|
|
|
+ position: relative;
|
|
|
+ background-color: #f9fafc;
|
|
|
+ .top {
|
|
|
+ height: 46px;
|
|
|
+ overflow: hidden;
|
|
|
+ }
|
|
|
+ .info {
|
|
|
+ min-height: 570px;
|
|
|
+ .mainTop {
|
|
|
+ padding: 0px 15px;
|
|
|
+ margin-bottom: 10px;
|
|
|
+ min-height: 220px;
|
|
|
+ background-color: #fff;
|
|
|
+ .van-image {
|
|
|
+ height: 200px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .message {
|
|
|
+ background: #fff;
|
|
|
+ padding: 0 15px;
|
|
|
+ min-height: 40px;
|
|
|
+ p {
|
|
|
+ min-height: 40px;
|
|
|
+ line-height: 40px;
|
|
|
+ border-bottom: 1px solid #ccc;
|
|
|
+ span {
|
|
|
+ color: #000;
|
|
|
+ }
|
|
|
+ span:nth-child(1) {
|
|
|
+ display: inline-block;
|
|
|
+ width: 100px;
|
|
|
+ color: #ccc;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ p:last-child {
|
|
|
+ border-bottom: none;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+</style>
|