|
@@ -0,0 +1,143 @@
|
|
|
+<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="message">
|
|
|
+ <p>
|
|
|
+ <span>产品名称</span>
|
|
|
+ <span>{{ info.name || '暂无' }}</span>
|
|
|
+ </p>
|
|
|
+ <p>
|
|
|
+ <span>信息属性</span>
|
|
|
+ <span>{{ info.messattribute || '暂无' }}</span>
|
|
|
+ </p>
|
|
|
+ <p>
|
|
|
+ <span>需求程度</span>
|
|
|
+ <span>{{ info.demand || '暂无' }}</span>
|
|
|
+ </p>
|
|
|
+ <p>
|
|
|
+ <span>联系人</span>
|
|
|
+ <span>{{ info.contacts || '暂无' }}</span>
|
|
|
+ </p>
|
|
|
+ <p>
|
|
|
+ <span>联系方式</span>
|
|
|
+ <span>{{ info.qqwx || '暂无' }}</span>
|
|
|
+ </p>
|
|
|
+ <p>
|
|
|
+ <span>信息描述</span>
|
|
|
+ <span>{{ info.informationdesc || '暂无' }}</span>
|
|
|
+ </p>
|
|
|
+ <p>
|
|
|
+ <span>核心要素</span>
|
|
|
+ <span>{{ info.coreelements || '暂无' }}</span>
|
|
|
+ </p>
|
|
|
+
|
|
|
+ <p>
|
|
|
+ <span>价格信息</span>
|
|
|
+ <span>{{ info.priceinfo || '暂无' }}</span>
|
|
|
+ </p>
|
|
|
+ <p>
|
|
|
+ <span>商务预期</span>
|
|
|
+ <span>{{ info.businessexpect || '暂无' }}</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/service/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;
|
|
|
+ .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>
|