guhongwei 4 năm trước cách đây
mục cha
commit
47225afaca
3 tập tin đã thay đổi với 72 bổ sung0 xóa
  1. 12 0
      src/router/index.js
  2. 30 0
      src/views/adminCenter/index.vue
  3. 30 0
      src/views/vipCenter/index.vue

+ 12 - 0
src/router/index.js

@@ -316,6 +316,18 @@ const live = [
     meta: { title: '个人中心', subSite: true },
     component: () => import('../views/userCenter/index.vue'),
   },
+  // 7-1新增管理展会个人中心
+  {
+    path: '/adminCenter/index',
+    meta: { title: '个人中心', subSite: true },
+    component: () => import('../views/adminCenter/index.vue'),
+  },
+  // 7-1新增平台VIP个人中心
+  {
+    path: '/vipCenter/index',
+    meta: { title: '个人中心', subSite: true },
+    component: () => import('../views/vipCenter/index.vue'),
+  },
   {
     path: '/tltest',
     meta: { title: '推流测试', subSite: true },

+ 30 - 0
src/views/adminCenter/index.vue

@@ -0,0 +1,30 @@
+<template>
+  <div id="index">
+    <p>管理者中心</p>
+  </div>
+</template>
+
+<script>
+import { mapState, createNamespacedHelpers } from 'vuex';
+export default {
+  name: 'index',
+  props: {},
+  components: {},
+  data: function() {
+    return {};
+  },
+  created() {},
+  methods: {},
+  computed: {
+    ...mapState(['user']),
+    pageTitle() {
+      return `${this.$route.meta.title}`;
+    },
+  },
+  metaInfo() {
+    return { title: this.$route.meta.title };
+  },
+};
+</script>
+
+<style lang="less" scoped></style>

+ 30 - 0
src/views/vipCenter/index.vue

@@ -0,0 +1,30 @@
+<template>
+  <div id="index">
+    <p>vip用户中心</p>
+  </div>
+</template>
+
+<script>
+import { mapState, createNamespacedHelpers } from 'vuex';
+export default {
+  name: 'index',
+  props: {},
+  components: {},
+  data: function() {
+    return {};
+  },
+  created() {},
+  methods: {},
+  computed: {
+    ...mapState(['user']),
+    pageTitle() {
+      return `${this.$route.meta.title}`;
+    },
+  },
+  metaInfo() {
+    return { title: this.$route.meta.title };
+  },
+};
+</script>
+
+<style lang="less" scoped></style>