lsc 3 年 前
コミット
9364be6a48

+ 37 - 0
src/components/pages/examine.vue

@@ -0,0 +1,37 @@
+<template>
+  <div class="pb_content2" style="background: #fff">
+    <div class="pb_head">
+      <van-icon
+        name="arrow-left"
+        color="#fff"
+        class="pb_back"
+        size="1.2rem"
+        @click="goBack"
+      />
+      <span>义工团审核</span>
+    </div>
+    <div class="pb_content_body"></div>
+  </div>
+</template>
+
+<script>
+export default {
+  data() {
+    return {};
+  },
+  methods: {
+    goBack() {
+      this.$router.isBack = true;
+      if (window.history.length <= 1) {
+        this.$router.push({ path: "/" });
+        return false;
+      } else {
+        this.$router.go(-1);
+      }
+    },
+  },
+};
+</script>
+
+<style scoped>
+</style>

+ 37 - 0
src/components/pages/examineWork.vue

@@ -0,0 +1,37 @@
+<template>
+  <div class="pb_content2" style="background: #fff">
+    <div class="pb_head">
+      <van-icon
+        name="arrow-left"
+        color="#fff"
+        class="pb_back"
+        size="1.2rem"
+        @click="goBack"
+      />
+      <span>吴佳琪的义工任务</span>
+    </div>
+    <div class="pb_content_body"></div>
+  </div>
+</template>
+
+<script>
+export default {
+  data() {
+    return {};
+  },
+  methods: {
+    goBack() {
+      this.$router.isBack = true;
+      if (window.history.length <= 1) {
+        this.$router.push({ path: "/" });
+        return false;
+      } else {
+        this.$router.go(-1);
+      }
+    },
+  },
+};
+</script>
+
+<style scoped>
+</style>

+ 37 - 0
src/components/pages/findDetail.vue

@@ -0,0 +1,37 @@
+<template>
+  <div class="pb_content2" style="background: #fff">
+    <div class="pb_head">
+      <van-icon
+        name="arrow-left"
+        color="#fff"
+        class="pb_back"
+        size="1.2rem"
+        @click="goBack"
+      />
+      <span>创新</span>
+    </div>
+    <div class="pb_content_body"></div>
+  </div>
+</template>
+
+<script>
+export default {
+  data() {
+    return {};
+  },
+  methods: {
+    goBack() {
+      this.$router.isBack = true;
+      if (window.history.length <= 1) {
+        this.$router.push({ path: "/" });
+        return false;
+      } else {
+        this.$router.go(-1);
+      }
+    },
+  },
+};
+</script>
+
+<style scoped>
+</style>

+ 37 - 0
src/components/pages/myDetail.vue

@@ -0,0 +1,37 @@
+<template>
+  <div class="pb_content2" style="background: #fff">
+    <div class="pb_head">
+      <van-icon
+        name="arrow-left"
+        color="#fff"
+        class="pb_back"
+        size="1.2rem"
+        @click="goBack"
+      />
+      <span>个人资料</span>
+    </div>
+    <div class="pb_content_body"></div>
+  </div>
+</template>
+
+<script>
+export default {
+  data() {
+    return {};
+  },
+  methods: {
+    goBack() {
+      this.$router.isBack = true;
+      if (window.history.length <= 1) {
+        this.$router.push({ path: "/" });
+        return false;
+      } else {
+        this.$router.go(-1);
+      }
+    },
+  },
+};
+</script>
+
+<style scoped>
+</style>

+ 37 - 0
src/components/pages/myWorkDetail.vue

@@ -0,0 +1,37 @@
+<template>
+  <div class="pb_content2" style="background: #fff">
+    <div class="pb_head">
+      <van-icon
+        name="arrow-left"
+        color="#fff"
+        class="pb_back"
+        size="1.2rem"
+        @click="goBack"
+      />
+      <span>详情</span>
+    </div>
+    <div class="pb_content_body"></div>
+  </div>
+</template>
+
+<script>
+export default {
+  data() {
+    return {};
+  },
+  methods: {
+    goBack() {
+      this.$router.isBack = true;
+      if (window.history.length <= 1) {
+        this.$router.push({ path: "/" });
+        return false;
+      } else {
+        this.$router.go(-1);
+      }
+    },
+  },
+};
+</script>
+
+<style scoped>
+</style>

+ 37 - 0
src/components/pages/release.vue

@@ -0,0 +1,37 @@
+<template>
+  <div class="pb_content2" style="background: #fff">
+    <div class="pb_head">
+      <van-icon
+        name="arrow-left"
+        color="#fff"
+        class="pb_back"
+        size="1.2rem"
+        @click="goBack"
+      />
+      <span>发布内容</span>
+    </div>
+    <div class="pb_content_body"></div>
+  </div>
+</template>
+
+<script>
+export default {
+  data() {
+    return {};
+  },
+  methods: {
+    goBack() {
+      this.$router.isBack = true;
+      if (window.history.length <= 1) {
+        this.$router.push({ path: "/" });
+        return false;
+      } else {
+        this.$router.go(-1);
+      }
+    },
+  },
+};
+</script>
+
+<style scoped>
+</style>

+ 37 - 0
src/components/pages/submitWork.vue

@@ -0,0 +1,37 @@
+<template>
+  <div class="pb_content2" style="background: #fff">
+    <div class="pb_head">
+      <van-icon
+        name="arrow-left"
+        color="#fff"
+        class="pb_back"
+        size="1.2rem"
+        @click="goBack"
+      />
+      <span>提交作业</span>
+    </div>
+    <div class="pb_content_body"></div>
+  </div>
+</template>
+
+<script>
+export default {
+  data() {
+    return {};
+  },
+  methods: {
+    goBack() {
+      this.$router.isBack = true;
+      if (window.history.length <= 1) {
+        this.$router.push({ path: "/" });
+        return false;
+      } else {
+        this.$router.go(-1);
+      }
+    },
+  },
+};
+</script>
+
+<style scoped>
+</style>

+ 37 - 0
src/components/pages/workDetail.vue

@@ -0,0 +1,37 @@
+<template>
+  <div class="pb_content2" style="background: #fff">
+    <div class="pb_head">
+      <van-icon
+        name="arrow-left"
+        color="#fff"
+        class="pb_back"
+        size="1.2rem"
+        @click="goBack"
+      />
+      <span>作业详情</span>
+    </div>
+    <div class="pb_content_body"></div>
+  </div>
+</template>
+
+<script>
+export default {
+  data() {
+    return {};
+  },
+  methods: {
+    goBack() {
+      this.$router.isBack = true;
+      if (window.history.length <= 1) {
+        this.$router.push({ path: "/" });
+        return false;
+      } else {
+        this.$router.go(-1);
+      }
+    },
+  },
+};
+</script>
+
+<style scoped>
+</style>

+ 4 - 4
src/components/tools/bottomNav.vue

@@ -33,21 +33,21 @@
       </van-col>
     </van-row> -->
     <!-- @change="onChange" -->
-    <van-tabbar v-model="active" active-color="#46bb65" inactive-color="#000">
+    <van-tabbar v-model="active" active-color="#1d1d1d" inactive-color="#b4b4b4">
       <van-tabbar-item to="/">
-        <span>首页</span>
+        <span>家校社</span>
         <template #icon="props">
           <img :src="props.active ? home.active : home.inactive" />
         </template>
       </van-tabbar-item>
       <van-tabbar-item to="/learning">
-        <span>学习中心</span>
+        <span>五育融合</span>
         <template #icon="props">
           <img :src="props.active ? learning.active : learning.inactive" />
         </template>
       </van-tabbar-item>
       <van-tabbar-item to="/find">
-        <span>发现</span>
+        <span>创新</span>
         <template #icon="props">
           <img :src="props.active ? find.active : find.inactive" />
         </template>

+ 67 - 11
src/router/index.js

@@ -16,7 +16,7 @@ export default new Router({
       name: 'Home',
       component: home,
       meta: {
-        title: '首页',
+        title: '家校社',
         requireAuth: ''  // 是否需要判断是否登录,这里是需要判断
       }
     },
@@ -25,7 +25,7 @@ export default new Router({
       name: 'learning',
       component: learning,
       meta: {
-        title: '学习中心',
+        title: '五育融合',
         requireAuth: true  // 是否需要判断是否登录,这里是需要判断
       }
     },
@@ -43,18 +43,74 @@ export default new Router({
       name: 'find',
       component: find,
       meta: {
-        title: '发现',
+        title: '创新',
         requireAuth: true  // 是否需要判断是否登录,这里是需要判断
       }
     },
-    // {
-    //   path: '/find/findDetail',
-    //   name: 'findDetail',
-    //   component: () => import('@/components/pages/findDetail'),
-    //   meta: {
-    //     title: '发现详情',
-    //   }
-    // }
+    {
+      path: '/workDetail',
+      name: 'workDetail',
+      component: () => import('@/components/pages/workDetail'),
+      meta: {
+        title: '作业详情',
+      }
+    },
+    {
+      path: '/submitWork',
+      name: 'submitWork',
+      component: () => import('@/components/pages/submitWork'),
+      meta: {
+        title: '提交作业',
+      }
+    },
+    {
+      path: '/examine',
+      name: 'examine',
+      component: () => import('@/components/pages/examine'),
+      meta: {
+        title: '义工团审核',
+      }
+    },
+    {
+      path: '/myDetail',
+      name: 'myDetail',
+      component: () => import('@/components/pages/myDetail'),
+      meta: {
+        title: '个人资料',
+      }
+    },
+    {
+      path: '/examineWork',
+      name: 'examineWork',
+      component: () => import('@/components/pages/examineWork'),
+      meta: {
+        title: '义工任务审核',
+      }
+    },
+    {
+      path: '/release',
+      name: 'release',
+      component: () => import('@/components/pages/release'),
+      meta: {
+        title: '发布内容',
+      }
+    },
+    {
+      path: '/findDetail',
+      name: 'findDetail',
+      component: () => import('@/components/pages/findDetail'),
+      meta: {
+        title: '创新',
+      }
+    },
+    {
+      path: '/myWorkDetail',
+      name: 'myWorkDetail',
+      component: () => import('@/components/pages/myWorkDetail'),
+      meta: {
+        title: '详情',
+      }
+    }
   ]
 })