Explorar o código

顺序和分类完成了接口替换

JXDS18FUJT hai 1 ano
pai
achega
b0b3dc2dd1

+ 1 - 1
src/otherPages/classifyChoose/index.vue

@@ -132,7 +132,7 @@ export default {
     getClassData() {
       api.exam.studentQuestion2InfoGetQuestionColumn({
         subject:`k${ this.query.subject}_2`,
-        model:'cart'
+        model:this.query.model
       }).then(res=>{
         this.classDataLeft = res.data;
       })

+ 26 - 31
src/otherPages/classifyKind/index.vue

@@ -1,40 +1,27 @@
 <template>
   <div class="cell-box">
-    <van-cell
-    title-class="uni-app-fontsize-paragraph"
-      class="cell"
-      :title="
-        item.placeIssueName ||
-        item.classIssueName ||
-        item.excellIssueName ||
-        item.sequeIssueName
-      "
-      is-link
-      @click="goExercise({
-        classIssueName:item.classIssueName,
-        classIssue:item.classIssue
-      })"
-      center
-      v-for="(item, index) in classData"
-      :key="index"
-      :border="false"
-    >
+    <van-cell title-class="uni-app-fontsize-paragraph" class="cell" :title="item.title
+        " is-link @click="goExercise({
+
+        columnAll: item.columnId,
+        chapter: item.title
+      })" center v-for="(item, index) in classData" :key="index" :border="false">
       <template #icon>
         <div class="icon">{{ index + 1 }}</div>
       </template>
     </van-cell>
-     <div style="height:40rpx;width: 750rpx;"></div>
-       <m-classify-tip :content="classifyTip"></m-classify-tip>
+    <div style="height:40rpx;width: 750rpx;"></div>
+    <m-classify-tip :content="classifyTip"></m-classify-tip>
   </div>
 </template>
 
-<script >
+<script>
 import api from "@/api/index";
 import utils from "@/utils/index";
 export default {
   data() {
     return {
-      classifyTip:['分类练习,学员可重点学习自己不懂的题目.','建议新学员直接看软件必考题技巧,快速学习'],
+      classifyTip: ['分类练习,学员可重点学习自己不懂的题目.', '建议新学员直接看软件必考题技巧,快速学习'],
       classData: [],
       query: {},
     };
@@ -51,7 +38,7 @@ export default {
           ...extraQuery,
         };
       } else {
-       
+
       }
 
       uni.navigateTo({
@@ -59,12 +46,18 @@ export default {
       });
     },
     getClassData() {
-      api.exam
-        .studentQuestionInfoSelectFlQuestionInfo(this.query)
-        .then((res) => {
-          res.data.shift()
-          this.classData = res.data;
-        });
+      api.exam.studentQuestion2InfoGetQuestionColumn({
+        subject: `k${this.query.subject}_3`,
+        model: this.query.model
+      }).then(res => {
+        this.classData = res.data;
+      })
+      // api.exam
+      //   .studentQuestionInfoSelectFlQuestionInfo(this.query)
+      //   .then((res) => {
+      //     res.data.shift()
+      //     this.classData = res.data;
+      //   });
     },
   },
   mounted() {
@@ -80,14 +73,16 @@ export default {
   flex-wrap: wrap;
   justify-content: space-between;
   background: #fff;
+
   .cell {
     width: 690rpx;
     border-bottom: 2rpx solid #E8E8E8;
     // box-shadow: 0rpx 0rpx 20rpx rgba(124, 129, 136, 0.2);
     background: #fff;
     font-size: 32rpx;
-    
+
   }
+
   //地区
   .icon {
     width: 40rpx;

+ 8 - 13
src/otherPages/classifyOrder/index.vue

@@ -7,10 +7,7 @@
           value-class="custom-right-cell"
           class="cell"
           :title="
-            item.placeIssueName ||
-            item.classIssueName ||
-            item.excellIssueName ||
-            item.sequeIssueName
+            item.title
           "
           center
           :border="false"
@@ -21,8 +18,8 @@
               @click="
                 () => {
                   goExercise({
-                    sequeIssueName: item.sequeIssueName,
-                    sequeIssue: item.sequeIssue,
+                    columnAll: item.columnId,
+      chapter:item.title
                   });
                 }
               "
@@ -113,14 +110,12 @@ export default {
     this.query = op;
   },
   mounted() {
-    api.exam.studentQuestionInfoSelectSxQuestionInfo(this.query).then((res) => {
-      if (this.query.vehicle === "摩托车") {
+    api.exam.studentQuestion2InfoGetQuestionColumn({
+        subject:`k${ this.query.subject}`,
+        model:this.query.model
+      }).then(res=>{
         this.classData = res.data;
-      } else {
-        res.data.shift();
-        this.classData = res.data;
-      }
-    });
+      })
   },
 };
 </script>

+ 5 - 5
src/pages/carVideo/index.vue

@@ -256,9 +256,9 @@ export default {
     recomVideos0: [],
     recomVideos3: [],
     tabQuery: {
-  
+      
       name: "科目一",
-      gs: "cart",
+      model: "cart",
       cert: "C1/C2/C3",
       vehicle: "小车",
       subject: 1,
@@ -561,15 +561,15 @@ export default {
           break;
         case "货车":
          
-          this.tabQuery.gs = "truck";
+          this.tabQuery.model = "truck";
           break;
         case "客车":
           
-          this.tabQuery.gs = "bus";
+          this.tabQuery.model = "bus";
           break;
         case "摩托车":
          
-          this.tabQuery.gs = "mtc";
+          this.tabQuery.model = "mtc";
           break;
         default:
           break;