|
@@ -0,0 +1,192 @@
|
|
|
+<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="main">
|
|
|
+ <el-col :span="24" class="mainTop">
|
|
|
+ <van-swipe style="height: 220px;" vertical>
|
|
|
+ <template v-if="info.image && info.image.length > 0">
|
|
|
+ <van-swipe-item v-for="(item, index) in info.image" :key="index">
|
|
|
+ <van-image :src="item.url" />
|
|
|
+ </van-swipe-item>
|
|
|
+ </template>
|
|
|
+ <template v-else>
|
|
|
+ <van-image :src="noimage" />
|
|
|
+ </template>
|
|
|
+ </van-swipe>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="24" class="message">
|
|
|
+ <p>
|
|
|
+ <span>产品名称</span>
|
|
|
+ <span>{{ info.name || '暂无' }}</span>
|
|
|
+ </p>
|
|
|
+ <p>
|
|
|
+ <span>需求方</span>
|
|
|
+ <span>{{ info.company || '暂无' }}</span>
|
|
|
+ </p>
|
|
|
+ <p>
|
|
|
+ <span>所属领域</span>
|
|
|
+ <span>{{ info.field || '暂无' }}</span>
|
|
|
+ </p>
|
|
|
+ <p>
|
|
|
+ <span>注册类型</span>
|
|
|
+ <span>{{ info.companytype || '暂无' }}</span>
|
|
|
+ </p>
|
|
|
+ <p>
|
|
|
+ <span>注册时间</span>
|
|
|
+ <span>{{ info.companydate || '暂无' }}</span>
|
|
|
+ </p>
|
|
|
+ <p>
|
|
|
+ <span>注册资金</span>
|
|
|
+ <span>{{ info.companycapital || '暂无' }}</span>
|
|
|
+ </p>
|
|
|
+ <p>
|
|
|
+ <span>投资预算</span>
|
|
|
+ <span>{{ info.budget || '暂无' }}</span>
|
|
|
+ </p>
|
|
|
+
|
|
|
+ <p>
|
|
|
+ <span>紧急程度</span>
|
|
|
+ <span>{{ info.degreeurgency || '暂无' }}</span>
|
|
|
+ </p>
|
|
|
+ <p>
|
|
|
+ <span>合作方式</span>
|
|
|
+ <span>{{ info.cooperation || '暂无' }}</span>
|
|
|
+ </p>
|
|
|
+ <p>
|
|
|
+ <span>联系人</span>
|
|
|
+ <span>{{ info.contacts || '暂无' }}</span>
|
|
|
+ </p>
|
|
|
+ <p>
|
|
|
+ <span>电子邮箱</span>
|
|
|
+ <span>{{ info.email || '暂无' }}</span>
|
|
|
+ </p>
|
|
|
+ <p>
|
|
|
+ <span>需求说明</span>
|
|
|
+ <span>{{ info.requirementdesc || '暂无' }}</span>
|
|
|
+ </p>
|
|
|
+ <p>
|
|
|
+ <span>预期目标</span>
|
|
|
+ <span>{{ info.expect || '暂无' }}</span>
|
|
|
+ </p>
|
|
|
+ <p>
|
|
|
+ <span>需求现状</span>
|
|
|
+ <span>{{ info.present || '暂无' }}</span>
|
|
|
+ </p>
|
|
|
+ <p>
|
|
|
+ <span>合作要求</span>
|
|
|
+ <span>{{ info.condition || '暂无' }}</span>
|
|
|
+ </p>
|
|
|
+ </el-col>
|
|
|
+ </el-col>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ </div>
|
|
|
+</template>
|
|
|
+
|
|
|
+<script>
|
|
|
+import NavBar from '@/layout/common/topInfo.vue';
|
|
|
+const { mapActions: product } = createNamespacedHelpers('product');
|
|
|
+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('@/assets/noimage.jpg'),
|
|
|
+ info: {},
|
|
|
+ };
|
|
|
+ },
|
|
|
+ async created() {
|
|
|
+ await this.search();
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+ ...product(['fetch']),
|
|
|
+ async search() {
|
|
|
+ const res = await this.fetch(this.id);
|
|
|
+ if (this.$checkRes(res)) {
|
|
|
+ this.$set(this, `info`, res.data);
|
|
|
+ }
|
|
|
+ },
|
|
|
+ back() {
|
|
|
+ this.$router.push({ path: '/viewTwo/techol/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>
|
|
|
+.detail {
|
|
|
+ width: 100%;
|
|
|
+ min-height: 667px;
|
|
|
+ position: relative;
|
|
|
+ background-color: #f9fafc;
|
|
|
+}
|
|
|
+.top {
|
|
|
+ height: 46px;
|
|
|
+ overflow: hidden;
|
|
|
+}
|
|
|
+.main {
|
|
|
+ min-height: 570px;
|
|
|
+ .mainTop {
|
|
|
+ padding: 0px 15px;
|
|
|
+ margin-bottom: 10px;
|
|
|
+ min-height: 220px;
|
|
|
+ background-color: #fff;
|
|
|
+ .van-swipe {
|
|
|
+ padding: 10px 0px;
|
|
|
+ box-sizing: border-box;
|
|
|
+ .van-image {
|
|
|
+ height: 200px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .message {
|
|
|
+ background: #fff;
|
|
|
+ padding: 0 15px;
|
|
|
+ min-height: 50px;
|
|
|
+ p {
|
|
|
+ min-height: 50px;
|
|
|
+ line-height: 50px;
|
|
|
+ border-bottom: 1px solid #ccc;
|
|
|
+ span {
|
|
|
+ color: #000;
|
|
|
+ }
|
|
|
+ span:nth-child(1) {
|
|
|
+ display: inline-block;
|
|
|
+ width: 80px;
|
|
|
+ color: #ccc;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ p:last-child {
|
|
|
+ border-bottom: none;
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+</style>
|