guhongwei 4 years ago
parent
commit
1c17548907

+ 13 - 0
src/router/index.js

@@ -92,6 +92,19 @@ const live = [
     meta: { title: '直播大厅-展会详情', subSite: true },
     meta: { title: '直播大厅-展会详情', subSite: true },
     component: () => import('../views/achieveLive/detail.vue'),
     component: () => import('../views/achieveLive/detail.vue'),
   },
   },
+  {
+    path: '/achieveLive/expert/index',
+    name: 'achieveLive_expert',
+    meta: { title: '直播大厅-参展专家', subSite: true },
+    component: () => import('../views/achieveLive/expert/index.vue'),
+  },
+  {
+    path: '/achieveLive/product/index',
+    name: 'achieveLive_product',
+    meta: { title: '直播大厅-参展项目', subSite: true },
+    component: () => import('../views/achieveLive/product/index.vue'),
+  },
+
   {
   {
     path: '/website',
     path: '/website',
     name: 'website',
     name: 'website',

+ 8 - 1
src/views/achieveLive/detail/expertData.vue

@@ -25,7 +25,7 @@
               </el-col>
               </el-col>
             </el-col>
             </el-col>
             <el-col :span="24" class="btn">
             <el-col :span="24" class="btn">
-              <el-button type="primary" size="mini">查看更多专家</el-button>
+              <el-button type="primary" size="mini" @click="moreBtn">查看更多专家</el-button>
             </el-col>
             </el-col>
           </el-tab-pane>
           </el-tab-pane>
         </el-tabs>
         </el-tabs>
@@ -64,9 +64,16 @@ export default {
         this.$set(this, `expertList`, res.data);
         this.$set(this, `expertList`, res.data);
       }
       }
     },
     },
+    // 查看更多项目
+    moreBtn() {
+      this.$router.push({ path: '/achieveLive/expert/index', query: { dock_id: this.id } });
+    },
   },
   },
   computed: {
   computed: {
     ...mapState(['user']),
     ...mapState(['user']),
+    id() {
+      return this.$route.query.id;
+    },
   },
   },
   watch: {},
   watch: {},
 };
 };

+ 6 - 2
src/views/achieveLive/detail/productData.vue

@@ -19,7 +19,7 @@
               </el-col>
               </el-col>
             </el-col>
             </el-col>
             <el-col :span="24" class="btn">
             <el-col :span="24" class="btn">
-              <el-button type="primary" size="mini">查看更多项目</el-button>
+              <el-button type="primary" size="mini" @click="moreBtn('1')">查看更多项目</el-button>
             </el-col>
             </el-col>
           </el-tab-pane>
           </el-tab-pane>
           <el-tab-pane label="科技需求" name="second">
           <el-tab-pane label="科技需求" name="second">
@@ -36,7 +36,7 @@
               </el-col>
               </el-col>
             </el-col>
             </el-col>
             <el-col :span="24" class="btn">
             <el-col :span="24" class="btn">
-              <el-button type="primary" size="mini">查看更多项目</el-button>
+              <el-button type="primary" size="mini" @click="moreBtn('0')">查看更多项目</el-button>
             </el-col>
             </el-col>
           </el-tab-pane>
           </el-tab-pane>
         </el-tabs>
         </el-tabs>
@@ -77,6 +77,10 @@ export default {
       res = await this.productQuery({ skip, limit, type: '0', dock_id: this.id, ...info });
       res = await this.productQuery({ skip, limit, type: '0', dock_id: this.id, ...info });
       if (this.$checkRes(res)) this.$set(this, `techolList`, res.data);
       if (this.$checkRes(res)) this.$set(this, `techolList`, res.data);
     },
     },
+    // 查看更多项目
+    moreBtn(type) {
+      this.$router.push({ path: '/achieveLive/product/index', query: { dock_id: this.id, type } });
+    },
   },
   },
   computed: {
   computed: {
     ...mapState(['user']),
     ...mapState(['user']),

+ 32 - 0
src/views/achieveLive/expert/index.vue

@@ -0,0 +1,32 @@
+<template>
+  <div id="index">
+    <el-row>
+      <el-col :span="24">
+        <p>专家列表</p>
+      </el-col>
+    </el-row>
+  </div>
+</template>
+
+<script>
+import { mapState, createNamespacedHelpers } from 'vuex';
+export default {
+  metaInfo() {
+    return { title: this.$route.meta.title };
+  },
+  name: 'index',
+  props: {},
+  components: {},
+  data: function() {
+    return {};
+  },
+  created() {},
+  methods: {},
+  computed: {
+    ...mapState(['user']),
+  },
+  watch: {},
+};
+</script>
+
+<style lang="less" scoped></style>

+ 32 - 0
src/views/achieveLive/product/index.vue

@@ -0,0 +1,32 @@
+<template>
+  <div id="index">
+    <el-row>
+      <el-col :span="24">
+        <p>index</p>
+      </el-col>
+    </el-row>
+  </div>
+</template>
+
+<script>
+import { mapState, createNamespacedHelpers } from 'vuex';
+export default {
+  metaInfo() {
+    return { title: this.$route.meta.title };
+  },
+  name: 'index',
+  props: {},
+  components: {},
+  data: function() {
+    return {};
+  },
+  created() {},
+  methods: {},
+  computed: {
+    ...mapState(['user']),
+  },
+  watch: {},
+};
+</script>
+
+<style lang="less" scoped></style>