Browse Source

Merge branch 'master' of http://git.cc-lotus.info/article-system/article-mobile

guhongwei 4 years ago
parent
commit
a489fbd35e
2 changed files with 53 additions and 0 deletions
  1. 5 0
      src/router/index.js
  2. 48 0
      src/views/adminCenter/refute/index.vue

+ 5 - 0
src/router/index.js

@@ -15,6 +15,11 @@ const admin = [
     meta: { title: '文章辟谣', isleftarrow: false },
     component: () => import('../views/adminCenter/adminRefute.vue'),
   },
+  {
+    path: '/adminRefute/edit',
+    meta: { title: '文章辟谣', isleftarrow: false },
+    component: () => import('../views/adminCenter/refute/edit.vue'),
+  },
   {
     path: '/adminCommunity',
     meta: { title: '社区话题', isleftarrow: false },

+ 48 - 0
src/views/adminCenter/refute/index.vue

@@ -0,0 +1,48 @@
+<template>
+  <div id="index">
+    <!-- <top topType="2" @upBack="toBack"></top> -->
+    <van-nav-bar :title="pageTitle" left-text="返回" left-arrow @click-left="toBack">
+      <template #right>
+        <van-icon name="plus" size="18" />
+      </template>
+    </van-nav-bar>
+    <page :total="total" :limit="limit" @search="search"></page>
+  </div>
+</template>
+
+<script>
+import top from '@/layout/common/top.vue';
+import page from '@/layout/common/page.vue';
+import { mapState, createNamespacedHelpers } from 'vuex';
+export default {
+  name: 'index',
+  props: {},
+  components: { page }, //top
+  data: function() {
+    return {
+      total: 10,
+      limit: 10,
+    };
+  },
+  created() {},
+  methods: {
+    async search({ skip = 0 } = {}) {
+      // TODO接口
+    },
+    toBack() {
+      this.$router.push('/admin/index');
+    },
+  },
+  computed: {
+    ...mapState(['user', 'menuParams']),
+    pageTitle() {
+      return `${this.$route.meta.title}`;
+    },
+  },
+  metaInfo() {
+    return { title: this.$route.meta.title };
+  },
+};
+</script>
+
+<style lang="less" scoped></style>