瀏覽代碼

技术培训更新

guhongwei 5 年之前
父節點
當前提交
a8255dc10a
共有 5 個文件被更改,包括 65 次插入3 次删除
  1. 12 0
      src/router/index.js
  2. 2 1
      src/store/index.js
  3. 19 0
      src/views/hall/dock/dockDetail.vue
  4. 19 0
      src/views/hall/dock/dockInfo.vue
  5. 13 2
      src/views/technical/index.vue

+ 12 - 0
src/router/index.js

@@ -90,6 +90,18 @@ const live = [
     name: 'live_home',
     component: () => import('../views/home.vue'),
   },
+  {
+    path: '/live/hall/dock/dockDetail',
+    meta: { title: '对接信息详情', subSite: true },
+    name: 'dock_Detail',
+    component: () => import('../views/hall/dock/dockDetail.vue'),
+  },
+  {
+    path: '/live/hall/dock/dockInfo',
+    meta: { title: '对接信息查看', subSite: true },
+    name: 'dock_Info',
+    component: () => import('../views/hall/dock/dockInfo.vue'),
+  },
 ];
 
 const routes = [...live];

+ 2 - 1
src/store/index.js

@@ -3,6 +3,7 @@ import Vuex from 'vuex';
 import chat from '@common/store/live/chat';
 import apply from '@common/store/live/apply';
 import dock from '@common/store/live/dock';
+import news from '@common/store/live/news';
 import market from '@common/store/market/market';
 import marketproduct from '@common/store/market/marketproduct';
 import talentExperts from '@common/store/market/talentExperts';
@@ -14,5 +15,5 @@ export default new Vuex.Store({
   state: { ...ustate },
   mutations: { ...umutations },
   actions: {},
-  modules: { marketproduct, talentExperts, market, chat, dock, apply },
+  modules: { marketproduct, talentExperts, market, chat, dock, apply, news },
 });

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

@@ -0,0 +1,19 @@
+<template>
+  <div id="dockDetail">
+    <p>dockDetail</p>
+  </div>
+</template>
+
+<script>
+export default {
+  name: 'dockDetail',
+  props: {},
+  components: {},
+  data: () => ({}),
+  created() {},
+  computed: {},
+  methods: {},
+};
+</script>
+
+<style lang="less" scoped></style>

+ 19 - 0
src/views/hall/dock/dockInfo.vue

@@ -0,0 +1,19 @@
+<template>
+  <div id="dockInfo">
+    <p>dockInfo</p>
+  </div>
+</template>
+
+<script>
+export default {
+  name: 'dockInfo',
+  props: {},
+  components: {},
+  data: () => ({}),
+  created() {},
+  computed: {},
+  methods: {},
+};
+</script>
+
+<style lang="less" scoped></style>

+ 13 - 2
src/views/technical/index.vue

@@ -56,7 +56,9 @@
 </template>
 
 <script>
+import _ from 'lodash';
 import { mapState, createNamespacedHelpers } from 'vuex';
+const { mapActions: news } = createNamespacedHelpers('news');
 export default {
   name: 'index',
   props: {},
@@ -229,8 +231,17 @@ export default {
       ],
     };
   },
-  created() {},
-  methods: {},
+  created() {
+    this.searchInfo();
+  },
+  methods: {
+    ...news(['query']),
+    async searchInfo() {
+      let res = await this.query({ skip: 0, limit: 4 });
+      console.log(res);
+      // if (this.$checkRes(res)) this.$set(this, `tecList`, res.data);
+    },
+  },
   computed: {
     ...mapState(['user']),
     pageTitle() {