guhongwei há 4 anos atrás
pai
commit
bf8670df9e

+ 0 - 184
src/layout/direct/directDetail copy.vue

@@ -1,184 +0,0 @@
-<template>
-  <div id="directDetail">
-    <el-row>
-      <el-col :span="24" class="one">
-        <el-col :span="7" class="oneLeft">
-          <el-carousel trigger="click" height="210px">
-            <template v-if="directInfo.image && directInfo.image.length > 0">
-              <el-carousel-item v-for="(item, index) in directInfo.image" :key="index">
-                <el-image :src="item.url" style="height:210px"> </el-image>
-              </el-carousel-item>
-            </template>
-          </el-carousel>
-        </el-col>
-        <el-col :span="17" class="oneRight">
-          <p class="textOver">
-            {{ directInfo.name }}
-          </p>
-          <p>
-            <span>
-              产品类型:{{ directInfo.totaltype === '0' ? '技术' : directInfo.totaltype === '1' ? '产品' : directInfo.totaltype === '2' ? '服务' : '暂无' }}
-            </span>
-            <span>
-              所属领域:{{
-                `${directInfo.field}` === `0`
-                  ? '先进制造'
-                  : `${directInfo.field}` === `1`
-                  ? '新材料'
-                  : `${directInfo.field}` === `2`
-                  ? '光电子'
-                  : `${directInfo.field}` === `3`
-                  ? '信息技术'
-                  : `${directInfo.field}` === `4`
-                  ? '文化和科技融合'
-                  : '暂无'
-              }}
-            </span>
-          </p>
-          <p>
-            <span>联系人:{{ directInfo.contact_user || '暂无' }}</span>
-            <span>联系电话:{{ directInfo.contact_tel || '暂无' }}</span>
-          </p>
-        </el-col>
-        <el-col :span="24" class="oneDown">
-          <div>
-            <!-- <p><span>产品参数:</span><span @click="argsBtn(directInfo.product_args)">查看详情</span></p> -->
-          </div>
-          <div>
-            <p>服务范围:</p>
-            <p class="moreScope" v-if="scope != ''">{{ directInfo.scope || '暂无' }}</p>
-            <p class="moreScope1" v-else>{{ directInfo.scope || '暂无' }}</p>
-            <el-button size="mini" v-if="directInfo.scope != null && directInfo.scope.length > 300">
-              <span v-if="scope != ''" @click="scopeMore()">更多</span>
-              <span v-else @click="scopeMore1()">收起</span>
-            </el-button>
-          </div>
-          <div>
-            <p>产品简介:</p>
-            <p class="introduction" v-if="introduction != ''">{{ directInfo.introduction || '暂无' }}</p>
-            <p class="introduction1" v-else>{{ directInfo.introduction || '暂无' }}</p>
-            <el-button size="mini" v-if="directInfo.introduction != null && directInfo.introduction.length > 300">
-              <span v-if="introduction != ''" @click="introductionMore()">更多</span>
-              <span v-else @click="introductionMore1()">收起</span>
-            </el-button>
-          </div>
-        </el-col>
-      </el-col>
-    </el-row>
-  </div>
-</template>
-
-<script>
-export default {
-  name: 'directDetail',
-  props: {
-    directInfo: null,
-  },
-  components: {},
-  data: () => ({
-    scope: '123',
-    introduction: '123',
-  }),
-  created() {},
-  computed: {},
-  methods: {
-    // 更多
-    scopeMore() {
-      this.scope = '';
-    },
-    // 收起
-    scopeMore1() {
-      this.scope = '123';
-    },
-    // 更多
-    introductionMore() {
-      this.introduction = '';
-    },
-    // 收起
-    introductionMore1() {
-      this.introduction = '123';
-    },
-  },
-};
-</script>
-
-<style lang="less" scoped>
-.one {
-  min-height: 550px;
-  .oneLeft {
-    height: 210px;
-    overflow: hidden;
-  }
-  .oneRight {
-    padding: 0 15px;
-    p {
-      font-size: 16px;
-      padding: 0 0 20px 0;
-      span {
-        display: inline-block;
-        width: 50%;
-      }
-    }
-    p:first-child {
-      font-size: 18px;
-      font-weight: bold;
-      padding: 20px 0;
-    }
-    // p:nth-child(2) span:last-child {
-    //   color: red;
-    //   font-weight: bold;
-    // }
-  }
-  .oneDown {
-    border-top: 1px dashed #ccc;
-    margin: 30px 0 0 0;
-    padding: 30px 0 0 0;
-    div {
-      padding: 0 0 15px 0;
-      p {
-        font-size: 18px;
-      }
-      p:first-child {
-        color: #333;
-        font-weight: bold;
-        padding: 0 0 10px 0;
-      }
-    }
-    div:nth-child(2) p span:last-child {
-      color: #409eff;
-      padding: 0 10px;
-    }
-    div:nth-child(2) p span:last-child:hover {
-      cursor: pointer;
-    }
-    div:nth-child(3) .moreScope {
-      overflow: hidden;
-      text-overflow: ellipsis;
-      -webkit-line-clamp: 6;
-      word-break: break-all;
-      display: -webkit-box;
-      -webkit-box-orient: vertical;
-    }
-    div:nth-child(3) .moreScope1 {
-      overflow: none;
-    }
-    div:nth-child(3) .el-button {
-      float: right;
-    }
-    div:last-child .introduction {
-      overflow: hidden;
-      text-overflow: ellipsis;
-      -webkit-line-clamp: 6;
-      word-break: break-all;
-      display: -webkit-box;
-      -webkit-box-orient: vertical;
-    }
-    div:last-child .introduction1 {
-      overflow: none;
-    }
-    div:last-child .el-button {
-      float: right;
-    }
-  }
-}
-</style>

+ 20 - 8
src/layout/direct/directDetail.vue

@@ -2,7 +2,8 @@
   <div id="directDetail">
     <el-row>
       <el-col :span="24" class="main" v-if="directInfo.type == '0'">
-        <el-col :span="24" class="top">
+        <techDetail :detailInfo="directInfo" :displayBtn="displayBtn"></techDetail>
+        <!-- <el-col :span="24" class="top">
           <el-col :span="8" class="left">
             <el-carousel trigger="click" height="250px" :autoplay="false">
               <el-carousel-item v-for="(item, index) in directInfo.image" :key="index">
@@ -45,10 +46,10 @@
               {{ directInfo.present || '暂无' }}
             </p>
           </el-col>
-        </el-col>
+        </el-col> -->
       </el-col>
       <el-col :span="24" class="main main2" v-else-if="directInfo.type == '1'">
-        <el-col :span="24" class="top">
+        <!-- <el-col :span="24" class="top">
           <el-col :span="8" class="left">
             <el-carousel trigger="click" height="250px" :autoplay="false">
               <el-carousel-item v-for="(item, index) in directInfo.image" :key="index">
@@ -105,10 +106,11 @@
               {{ directInfo.present }}
             </p>
           </el-col>
-        </el-col>
+        </el-col> -->
+        <achiDetail :detailInfo="directInfo" :displayBtn="displayBtn"></achiDetail>
       </el-col>
       <el-col :span="24" class="main3" v-else>
-        <el-col :span="24" class="top">
+        <!-- <el-col :span="24" class="top">
           <el-col :span="24" class="name">
             {{ directInfo.name }}
           </el-col>
@@ -144,22 +146,32 @@
               {{ directInfo.businessexpect }}
             </p>
           </el-col>
-        </el-col>
+        </el-col> -->
+        <busiDetail :detailInfo="directInfo" :displayBtn="displayBtn"></busiDetail>
       </el-col>
     </el-row>
   </div>
 </template>
 
 <script>
+import techDetail from '@/views/market/detail/techDetail.vue';
+import achiDetail from '@/views/market/detail/achiDetail.vue';
+import busiDetail from '@/views/market/detail/busiDetail.vue';
 import { mapState, createNamespacedHelpers } from 'vuex';
 export default {
   name: 'directDetail',
   props: {
     directInfo: { type: Object },
   },
-  components: {},
+  components: {
+    techDetail,
+    achiDetail,
+    busiDetail,
+  },
   data: function() {
-    return {};
+    return {
+      displayBtn: false,
+    };
   },
   created() {},
   methods: {},

+ 6 - 6
src/router/index.js

@@ -301,12 +301,12 @@ const live = [
     name: 'dock_Detail',
     component: () => import('../views/hall/dock/dockDetail.vue'),
   },
-  {
-    path: '/live/hall/dock/zhuanjiaDetail',
-    meta: { title: '专家信息详情', subSite: true },
-    name: 'zhuanjiaDetail',
-    component: () => import('../views/hall/dock/zhuanjiaDetail.vue'),
-  },
+  // {
+  //   path: '/live/hall/dock/zhuanjiaDetail',
+  //   meta: { title: '专家信息详情', subSite: true },
+  //   name: 'zhuanjiaDetail',
+  //   component: () => import('../views/hall/dock/zhuanjiaDetail.vue'),
+  // },
   {
     path: '/live/hall/dock/zhanjiaduijie',
     meta: { title: '专家信息详情', subSite: true },

+ 6 - 2
src/views/hall/direct.vue

@@ -409,7 +409,7 @@
       <directDetail :directInfo="directInfo"></directDetail>
     </el-dialog>
     <el-dialog title="专家信息" :visible.sync="dialogExport" width="50%" :before-close="handleCloseExport">
-      <exportDetail :exportInfo="exportInfo"></exportDetail>
+      <expeDetail :detailInfo="directInfo" :displayBtn="displayBtn"></expeDetail>
     </el-dialog>
   </div>
 </template>
@@ -423,6 +423,8 @@ import liveFoot from '@/layout/live/foot.vue';
 import chat from '@/components/parts/chat.vue';
 import directDetail from '@/layout/direct/directDetail.vue';
 import exportDetail from '@/layout/direct/exportDetail.vue';
+// 专家
+import expeDetail from '@/views/market/detail/expeDetail.vue';
 import { mapState, createNamespacedHelpers } from 'vuex';
 const { mapActions: transaction } = createNamespacedHelpers('transaction');
 const { mapActions: mapProduct } = createNamespacedHelpers('marketproduct');
@@ -450,7 +452,8 @@ export default {
     chat,
     liveFoot,
     directDetail, //技术,产品,服务详情
-    exportDetail, //专家详情
+    // exportDetail, //专家详情
+    expeDetail,
     // videoPlayer,
   },
   data: () => ({
@@ -467,6 +470,7 @@ export default {
     expertList: [],
     // 详情显示
     dialogVisible: false,
+    displayBtn: false,
     // 技术,产品,服务详情
     directInfo: {},
     // 专家详情

+ 19 - 8
src/views/hall/dock/dockDetail.vue

@@ -14,7 +14,7 @@
                 <el-button type="primary" size="mini" @click="back()">返回</el-button>
               </el-col>
               <el-col :span="24" class="one" v-if="type == '0'">
-                <el-col :span="24" class="top">
+                <!-- <el-col :span="24" class="top">
                   <el-col :span="8" class="left">
                     <el-carousel trigger="click" height="250px" :autoplay="false">
                       <el-carousel-item v-for="(item, index) in detailInfo.image" :key="index">
@@ -57,10 +57,11 @@
                       {{ detailInfo.present }}
                     </p>
                   </el-col>
-                </el-col>
+                </el-col> -->
+                <techDetail :detailInfo="detailInfo" @onSubmit="onSubmit" :displayBtn="displayBtn"></techDetail>
               </el-col>
               <el-col :span="24" class="two" v-else-if="type == '1'">
-                <el-col :span="24" class="top">
+                <!-- <el-col :span="24" class="top">
                   <el-col :span="8" class="left">
                     <el-carousel trigger="click" height="250px" :autoplay="false">
                       <el-carousel-item v-for="(item, index) in detailInfo.image" :key="index">
@@ -117,10 +118,11 @@
                       {{ detailInfo.present }}
                     </p>
                   </el-col>
-                </el-col>
+                </el-col> -->
+                <achiDetail :detailInfo="detailInfo" @onSubmit="onSubmit" :displayBtn="displayBtn"></achiDetail>
               </el-col>
               <el-col :span="24" class="three" v-else>
-                <el-col :span="24" class="top">
+                <!-- <el-col :span="24" class="top">
                   <el-col :span="24" class="name">
                     {{ detailInfo.name }}
                   </el-col>
@@ -156,12 +158,13 @@
                       {{ detailInfo.businessexpect }}
                     </p>
                   </el-col>
-                </el-col>
+                </el-col> -->
+                <busiDetail :detailInfo="detailInfo" @onSubmit="onSubmit" :displayBtn="displayBtn"></busiDetail>
               </el-col>
-              <el-col :span="24" class="anniu">
+              <!-- <el-col :span="24" class="anniu">
                 <el-button type="primary" size="mini" v-if="this.user.uid != detailInfo.userid" @click="btnPhone()">对接聊天</el-button>
                 <el-button type="success" size="mini" v-if="this.user.uid != detailInfo.userid" @click="onSubmit()">洽谈交易</el-button>
-              </el-col>
+              </el-col> -->
             </el-col>
           </div>
         </el-col>
@@ -174,6 +177,9 @@
 </template>
 
 <script>
+import techDetail from '@/views/market/detail/techDetail.vue';
+import achiDetail from '@/views/market/detail/achiDetail.vue';
+import busiDetail from '@/views/market/detail/busiDetail.vue';
 import _ from 'lodash';
 import { mapState, createNamespacedHelpers } from 'vuex';
 import chat from './parts/chat.vue';
@@ -186,6 +192,9 @@ export default {
   props: {},
   components: {
     chat,
+    techDetail,
+    achiDetail,
+    busiDetail,
   },
   data: function() {
     return {
@@ -198,6 +207,8 @@ export default {
       // 对接聊天
       dialogTableVisible: false,
       room: {},
+      // 显示按钮
+      displayBtn: true,
     };
   },
   created() {

+ 9 - 5
src/views/hall/dock/zhanjiaduijie.vue

@@ -13,7 +13,10 @@
               <el-col :span="24" class="btn">
                 <el-button type="primary" size="mini" @click="back()">返回</el-button>
               </el-col>
-              <el-col :span="24" class="top">
+              <el-col :span="24">
+                <expeDetail :detailInfo="detailInfo" @onSubmit="onSubmit" :displayBtn="displayBtn"></expeDetail>
+              </el-col>
+              <!-- <el-col :span="24" class="top">
                 <el-col :span="8" class="left">
                   <el-image v-if="detailInfo.expertimage != ''" :src="detailInfo.expertimage" style="width:100%;height:220px;"></el-image>
                   <el-image v-else :src="expertimage" style="width:100%;height:220px;"></el-image>
@@ -65,12 +68,9 @@
                 </el-col>
               </el-col>
               <el-col :span="24" class="anniu">
-                <!-- <el-button type="primary" size="mini" v-if="this.user.uid != detailInfo.userid" @click="btnPhone()">对接聊天</el-button>
-                <el-button type="success" size="mini" v-if="this.user.uid != detailInfo.userid" @click="onSubmit()">洽谈交易</el-button> -->
-
                 <el-button type="primary" size="mini" v-if="this.user.uid != detailInfo.userid" @click="btnPhone()">对接聊天</el-button>
                 <el-button type="success" size="mini" v-if="this.user.uid != detailInfo.userid" @click="onSubmit()">洽谈交易</el-button>
-              </el-col>
+              </el-col> -->
             </el-col>
           </div>
         </el-col>
@@ -83,6 +83,7 @@
 </template>
 
 <script>
+import expeDetail from '@/views/market/detail/expeDetail.vue';
 import _ from 'lodash';
 import { mapState, createNamespacedHelpers } from 'vuex';
 import chat from './parts/chat.vue';
@@ -95,6 +96,7 @@ export default {
   props: {},
   components: {
     chat,
+    expeDetail,
   },
   data: function() {
     return {
@@ -107,6 +109,8 @@ export default {
       // 对接聊天
       dialogTableVisible: false,
       room: {},
+      // 显示按钮
+      displayBtn: true,
     };
   },
   created() {

+ 0 - 221
src/views/hall/dock/zhuanjiaDetail.vue

@@ -1,221 +0,0 @@
-<template>
-  <div id="dockDetail">
-    <el-row>
-      <el-col :span="24" class="style">
-        <el-image :src="beijingPic"></el-image>
-        <el-col :span="24" class="info">
-          <div class="w_1200">
-            <el-col :span="24" class="top">
-              <p>吉林省计算中心对接直播大厅</p>
-              <p>主办方:吉林省计算中心</p>
-            </el-col>
-            <el-col :span="24" class="main">
-              <el-col :span="6" class="btn">
-                <el-col :span="24">
-                  <el-button type="primary" icon="el-icon-tickets" @click="btnInfo">项目信息</el-button>
-                </el-col>
-                <el-col :span="24">
-                  <el-button type="danger" icon="el-icon-phone-outline" @click="btnPhone">线下对接</el-button>
-                </el-col>
-              </el-col>
-              <el-col :span="18" class="mainInfo">
-                <el-col :span="24" v-if="display === '1'">
-                  <p class="name textOver">{{ productInfo.name }}</p>
-                  <div class="brief">
-                    <p>
-                      <span>职务:{{ productInfo.position }}</span>
-                      <span>从事领域:{{ productInfo.field }}</span>
-                    </p>
-
-                    <p>
-                      <span>学术成就:{{ productInfo.achievement }}</span>
-                      <span>毕业院校:{{ productInfo.school }}</span>
-                    </p>
-                    <p>
-                      <span> 民族:{{ productInfo.nation }}</span
-                      ><span> 学术成就:{{ productInfo.achievement }}</span>
-                    </p>
-                    <p>
-                      <span> 身份证号:{{ productInfo.cardnumber }} </span><span>学位:{{ productInfo.degree }}</span> 职务:{{ productInfo.position }}
-                    </p>
-                  </div>
-
-                  <p class="intro">
-                    <span><i class="el-icon-date"></i>业务工作简介</span>
-                    <span>{{ productInfo.job_profile }} </span>
-                  </p>
-                </el-col>
-                <el-col :span="24" v-if="display === '2'" class="contact">
-                  <p>
-                    专家姓名:<span style="color:red;">{{ productInfo.name }}</span>
-                  </p>
-                  <p>
-                    专家电话:<span style="color:red;">{{ productInfo.phone }}</span>
-                  </p>
-                </el-col>
-              </el-col>
-            </el-col>
-          </div>
-        </el-col>
-      </el-col>
-    </el-row>
-  </div>
-</template>
-
-<script>
-import { mapState, createNamespacedHelpers } from 'vuex';
-const { mapActions: talentExperts } = createNamespacedHelpers('talentExperts');
-export default {
-  name: 'dockDetail',
-  props: {},
-  components: {},
-  data: () => ({
-    beijingPic: require('@a/live/top_3.png'),
-    display: '1',
-    productInfo: {},
-  }),
-  created() {
-    if (this.$route.query.id) {
-      this.searchInfo();
-    }
-  },
-  methods: {
-    ...talentExperts(['fetch']),
-
-    async searchInfo() {
-      let res = await this.fetch(this.$route.query.id);
-      console.log(res.data);
-
-      if (res.errcode === 0) {
-        this.$set(this, `productInfo`, res.data);
-      }
-    },
-    // 项目信息
-    btnInfo() {
-      this.display = '1';
-    },
-    // 线下对接
-    btnPhone() {
-      this.display = '2';
-    },
-  },
-  computed: {
-    ...mapState(['user']),
-    pageTitle() {
-      return `${this.$route.meta.title}`;
-    },
-  },
-  metaInfo() {
-    return { title: this.$route.meta.title };
-  },
-};
-</script>
-
-<style lang="less" scoped>
-.w_1200 {
-  width: 1200px;
-  margin: 0 auto;
-}
-p {
-  padding: 0;
-  margin: 0;
-}
-.style {
-  height: 100vh;
-}
-.style .info {
-  position: relative;
-  top: -450px;
-}
-.style .top {
-  position: relative;
-  top: 0;
-  width: 100%;
-  text-align: center;
-  z-index: 999;
-  height: 230px;
-  margin: 0 0 20px 0;
-}
-.style .top p:first-child {
-  font-size: 50px;
-  color: #fff;
-}
-.style .top p:last-child {
-  font-size: 30px;
-  color: #fff;
-  position: absolute;
-  width: 100%;
-  top: 170px;
-}
-.style .main {
-  height: 670px;
-  border: 1px solid red;
-  background: #fff;
-  overflow: hidden;
-  padding: 30px 20px;
-}
-.main .btn div {
-  padding: 30px 0 0px 0;
-}
-/deep/.main .btn .el-button {
-  float: left;
-  margin: 0 40px;
-  width: 70%;
-}
-.main .mainInfo {
-  border: 1px solid red;
-  height: 610px;
-}
-.mainInfo .name {
-  font-size: 25px;
-  text-align: center;
-  height: 90px;
-  line-height: 90px;
-  border-bottom: 2px solid red;
-  margin: 0 60px;
-}
-.mainInfo .brief {
-  float: left;
-  padding: 0 88px 15px 88px;
-  color: red;
-  margin: 15px 20px 0 19px;
-  width: 75%;
-  border-bottom: 1px dashed red;
-}
-.mainInfo .brief p {
-  float: left;
-  width: 100%;
-  padding: 0 0 15px 0;
-}
-.mainInfo .brief p span:first-child {
-  float: left;
-  width: 50%;
-}
-.mainInfo .intro {
-  float: left;
-  padding: 20px;
-  width: 95%;
-}
-.mainInfo .intro span:first-child {
-  display: inline-block;
-  width: 100%;
-  font-size: 20px;
-  color: red;
-}
-.mainInfo .intro span:last-child {
-  display: inline-block;
-  line-height: 25px;
-  color: #666;
-  text-indent: 2rem;
-  overflow: hidden;
-  text-overflow: ellipsis;
-  -webkit-line-clamp: 13;
-  word-break: break-all;
-  display: -webkit-box;
-  -webkit-box-orient: vertical;
-}
-.mainInfo .contact {
-  padding: 20px;
-  font-size: 18px;
-}
-</style>

+ 2 - 1
src/views/market/detail/achiDetail.vue

@@ -108,7 +108,7 @@
             </el-col>
           </el-col>
         </el-col>
-        <el-col :span="24" class="anniu">
+        <el-col :span="24" class="anniu" v-if="displayBtn">
           <el-button type="primary" size="mini" v-if="this.user.uid != detailInfo.userid" @click="btnPhone()">对接聊天</el-button>
           <el-button type="success" size="mini" v-if="this.user.uid != detailInfo.userid" @click="onSubmit()">洽谈交易</el-button>
         </el-col>
@@ -130,6 +130,7 @@ export default {
   name: 'achiDetail',
   props: {
     detailInfo: { type: Object },
+    displayBtn: { type: Boolean },
   },
   components: { chat },
   data: function() {

+ 2 - 1
src/views/market/detail/busiDetail.vue

@@ -47,7 +47,7 @@
             </el-col>
           </el-col>
         </el-col>
-        <el-col :span="24" class="anniu">
+        <el-col :span="24" class="anniu" v-if="displayBtn">
           <el-button type="primary" size="mini" v-if="this.user.uid != detailInfo.userid" @click="btnPhone()">对接聊天</el-button>
           <el-button type="success" size="mini" v-if="this.user.uid != detailInfo.userid" @click="onSubmit()">洽谈交易</el-button>
         </el-col>
@@ -69,6 +69,7 @@ export default {
   name: 'busiDetail',
   props: {
     detailInfo: { type: Object },
+    displayBtn: { type: Boolean },
   },
   components: { chat },
   data: function() {

+ 2 - 1
src/views/market/detail/expeDetail.vue

@@ -63,7 +63,7 @@
             </el-col>
           </el-col>
         </el-col>
-        <el-col :span="24" class="anniu">
+        <el-col :span="24" class="anniu" v-if="displayBtn">
           <el-button type="primary" size="mini" v-if="this.user.uid != detailInfo.userid" @click="btnPhone()">对接聊天</el-button>
           <el-button type="success" size="mini" v-if="this.user.uid != detailInfo.userid" @click="onSubmit()">洽谈交易</el-button>
         </el-col>
@@ -85,6 +85,7 @@ export default {
   name: 'techDetail',
   props: {
     detailInfo: { type: Object },
+    displayBtn: { type: Boolean },
   },
   components: { chat },
   data: function() {

+ 2 - 1
src/views/market/detail/techDetail.vue

@@ -58,7 +58,7 @@
             </el-col>
           </el-col>
         </el-col>
-        <el-col :span="24" class="anniu">
+        <el-col :span="24" class="anniu" v-if="displayBtn">
           <el-button type="primary" size="mini" v-if="this.user.uid != detailInfo.userid" @click="btnPhone()">对接聊天</el-button>
           <el-button type="success" size="mini" v-if="this.user.uid != detailInfo.userid" @click="onSubmit()">洽谈交易</el-button>
         </el-col>
@@ -80,6 +80,7 @@ export default {
   name: 'techDetail',
   props: {
     detailInfo: { type: Object },
+    displayBtn: { type: Boolean },
   },
   components: {
     chat,

+ 6 - 4
src/views/market/marketlists.vue

@@ -43,7 +43,7 @@
                   <el-button type="primary" size="mini" @click="display = 'list'">返回</el-button>
                 </el-col>
                 <el-col :span="24">
-                  <techDetail :detailInfo="techDetail" @onSubmit="techSubmit"></techDetail>
+                  <techDetail :detailInfo="techDetail" @onSubmit="techSubmit" :displayBtn="displayBtn"></techDetail>
                 </el-col>
               </span>
               <span v-else-if="column_name == '技术成果'">
@@ -51,7 +51,7 @@
                   <el-button type="primary" size="mini" @click="display = 'list'">返回</el-button>
                 </el-col>
                 <el-col :span="24">
-                  <achiDetail :detailInfo="achiDetail" @onSubmit="techSubmit"></achiDetail>
+                  <achiDetail :detailInfo="achiDetail" @onSubmit="techSubmit" :displayBtn="displayBtn"></achiDetail>
                 </el-col>
               </span>
               <span v-else-if="column_name == '商务信息'">
@@ -59,7 +59,7 @@
                   <el-button type="primary" size="mini" @click="display = 'list'">返回</el-button>
                 </el-col>
                 <el-col :span="24">
-                  <busiDetail :detailInfo="busiDetail" @onSubmit="techSubmit"></busiDetail>
+                  <busiDetail :detailInfo="busiDetail" @onSubmit="techSubmit" :displayBtn="displayBtn"></busiDetail>
                 </el-col>
               </span>
               <span v-else-if="column_name == '专家服务'">
@@ -67,7 +67,7 @@
                   <el-button type="primary" size="mini" @click="display = 'list'">返回</el-button>
                 </el-col>
                 <el-col :span="24">
-                  <expeDetail :detailInfo="expeDetail" @onSubmit="expertSuubmit"></expeDetail>
+                  <expeDetail :detailInfo="expeDetail" @onSubmit="expertSuubmit" :displayBtn="displayBtn"></expeDetail>
                 </el-col>
               </span>
             </span>
@@ -141,6 +141,8 @@ export default {
       expertList: [],
       expertTotal: 0,
       expeDetail: {},
+      // 显示按钮
+      displayBtn: true,
     };
   },
   created() {