Browse Source

修改考试积分页面

aaa 3 years ago
parent
commit
2238aa9cd5

+ 6 - 1
src/router/index.js

@@ -78,7 +78,12 @@ let routes = [
     path: "/learn-point-rule",
     name: "LearnPointRule",
     component: () => import("@/views/home/person/learn-point-rule")
-  } // 学习积分规则
+  }, // 学习积分规则
+  {
+    path: "/exam-point-rule",
+    name: "ExamPointRule",
+    component: () => import("@/views/home/person/exam-point-rule")
+  } // 考试积分规则
 ];
 
 export default new Router({

+ 20 - 1
src/views/home/person/exam-history.vue

@@ -10,6 +10,10 @@
         <div class="exam-history-description" @click="clickExamRule">
           积分说明
         </div>
+        <div class="exam-history-class-box">
+          <div class="exam-history-class-item">专项考试积分:XX</div>
+          <div class="exam-history-class-item">普通考试积分:XX</div>
+        </div>
       </div>
 
       <div class="exam-history-list">
@@ -110,7 +114,9 @@ export default {
           this.$store.commit("toggleLoading", false);
         });
     },
-    clickExamRule() {}
+    clickExamRule() {
+      this.$router.push({ name: "ExamPointRule" });
+    }
   }
 };
 </script>
@@ -150,6 +156,18 @@ export default {
         border-radius: 0.25rem;
         color: #7cc8ff;
       }
+      .exam-history-class-box {
+        margin-top: 0.5rem;
+        width: 100%;
+        display: flex;
+        flex-direction: row;
+        justify-content: space-between;
+        align-items: center;
+      }
+      .exam-history-class-item {
+        color: #0088e9;
+        font-size: 0.65rem;
+      }
     }
     .exam-history-list {
       padding: 0.5rem 0;
@@ -165,6 +183,7 @@ export default {
             font-weight: bold;
             word-break: break-all;
             word-wrap: break-word;
+            font-size: 0.5rem;
           }
           .exam-history-item-left-percentage {
             display: flex;

+ 16 - 6
src/views/home/person/learn-point-rule.vue

@@ -25,18 +25,28 @@ export default {
   data() {
     return {
       ruleList: [
-        { name: "登录", content: "每日首次登录1积分" },
+        { name: "登录", content: "每日首次登录获得1积分" },
         {
           name: "今日必读",
-          content:
-            "每次阅读完成今日必读获取1积分,每篇文章只能获取1次积分,只有在今日必读时才能够获取积分,其他情况不能获取积分,切记切记切记"
+          content: "有效阅读完今日必学的一篇文章获得2积分"
+        },
+        {
+          name: "今日必答",
+          content: "完成今日必答的所有题目获得2积分"
         },
         {
-          name: "今日必考",
+          name: "阅读文章",
           content:
-            "每次考试完成今日必考获取1积分,每次考试只能获取1次积分,只有在今日必考时才能够获取积分,其他情况不能获取积分,切记切记切记"
+            "完成今日必学的文章之后每有效阅读一篇其他文章获得一积分,上限10积分"
         },
-        { name: "今日必学", content: "学习上线5积分" }
+        {
+          name: "答题",
+          content: "每答对一道非今日必答的题目获得1积分,上限10积分"
+        },
+        {
+          name: "专项答题",
+          content: "每答对一道专项必答的题目获得1积分,上限10积分"
+        }
       ]
     };
   },