Selaa lähdekoodia

Merge branch 'master' of http://git.cc-lotus.info/service-platform/web-test

guhongwei 4 vuotta sitten
vanhempi
commit
ac5d572d06
3 muutettua tiedostoa jossa 39 lisäystä ja 0 poistoa
  1. 6 0
      src/router/index.js
  2. 2 0
      src/views/dynamic/index.vue
  3. 31 0
      src/views/dynamic/product.vue

+ 6 - 0
src/router/index.js

@@ -46,6 +46,12 @@ const live = [
         meta: { title: '动态监测列表', subSite: true },
         component: () => import('../views/dynamic/index.vue'),
       },
+      {
+        path: '/dynamic/product',
+        name: 'product',
+        meta: { title: '发布产品', subSite: true },
+        component: () => import('../views/dynamic/product.vue'),
+      },
       // 技术交流
       {
         path: '/technical/index',

+ 2 - 0
src/views/dynamic/index.vue

@@ -95,6 +95,8 @@ export default {
         this.jyxcdialog = true;
       } else if (data.title == '网上调查') {
         this.wsdcialog = true;
+      } else if (data.title == '我要发布') {
+        this.$router.push({ path: '/dynamic/product' });
       }
     },
     // 公共关闭

+ 31 - 0
src/views/dynamic/product.vue

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