Browse Source

课程学段列表

natasha 1 year ago
parent
commit
8ba250759d
2 changed files with 44 additions and 10 deletions
  1. 2 2
      src/components/Header.vue
  2. 42 8
      src/views/bookStore/all.vue

+ 2 - 2
src/components/Header.vue

@@ -254,8 +254,8 @@ export default {
       font-size: 0;
       z-index: 2;
       .svg-icon {
-        width: 224px;
-        height: 32px;
+        width: 286px;
+        height: 35px;
         color: #ffffff;
       }
     }

+ 42 - 8
src/views/bookStore/all.vue

@@ -342,8 +342,49 @@ export default {
       ],
       studyList: [
         {
-          study_phase: -1,
           study_phase_name: "全部",
+          study_phase: -1,
+        },
+        {
+          study_phase_name: "全学段",
+          study_phase: 100,
+        },
+        {
+          study_phase_name: "小学",
+          study_phase: 11,
+        },
+        {
+          study_phase_name: "初中",
+          study_phase: 20,
+        },
+        {
+          study_phase_name: "初一",
+          study_phase: 21,
+        },
+
+        {
+          study_phase_name: "初二",
+          study_phase: 22,
+        },
+        {
+          study_phase_name: "初三",
+          study_phase: 23,
+        },
+        {
+          study_phase_name: "高中",
+          study_phase: 30,
+        },
+        {
+          study_phase_name: "高一",
+          study_phase: 31,
+        },
+        {
+          study_phase_name: "高二",
+          study_phase: 32,
+        },
+        {
+          study_phase_name: "高三",
+          study_phase: 33,
         },
       ],
       baozhiStudyList: [],
@@ -632,13 +673,6 @@ export default {
       getLogin(MethodName, {})
         .then((res) => {
           if (res.status === 1) {
-            let studyList = [
-              {
-                study_phase: -1,
-                study_phase_name: "全部",
-              },
-            ];
-            this.studyList = studyList.concat(res.study_phase_list);
             this.baozhiStudyList = res.study_phase_list;
             this.baozhiForm.studyValue = window.localStorage.getItem(
               "baozhiFormstudyValue"