Prechádzať zdrojové kódy

精选完成了接口替换

JXDS18FUJT 1 rok pred
rodič
commit
7b7c30086b

+ 4 - 3
src/otherPages/classifyChoose/index.vue

@@ -7,13 +7,14 @@
   () => {
     goExercise({
       model:'cart',
-      chapterId: item.columnId,
+      columnAll: item.columnId,
+      chapter:item.title
 
     });
   }
 ">
         <template #icon>
-          <div class="icon-red">{{ index + 1 }}</div>
+          <div class="icon-blue">{{ index + 1 }}</div>
         </template>
       </van-cell>
 
@@ -130,7 +131,7 @@ export default {
     },
     getClassData() {
       api.exam.studentQuestion2InfoGetQuestionColumn({
-        subject:'k1',
+        subject:`k${ this.query.subject}_2`,
         model:'cart'
       }).then(res=>{
         this.classDataLeft = res.data;

+ 1 - 6
src/otherPages/exercise/index.vue

@@ -459,12 +459,7 @@ export default {
     //liceCar=1&liceTruck=&liceBus=&liceMoto=&name=科目一&cert=C1/C2/C3&vehicle=轿车&subject=1&title=顺序练习&sort=3
     navTitle() {
       let subjectName = this.query.subject == 1 ? "科目一" : "科目四";
-      return `(${this.query.cert})/${subjectName}/${this.query.title}/${
-        this.query.classIssueName ||
-        this.query.placeIssueName ||
-        this.query.excellIssueName ||
-        this.query.sequeIssueName
-      }`;
+      return `(${this.query.cert})/${subjectName}/${this.query.title}/${this.query.chapter}`;
     },
   },
   watch: {

+ 9 - 24
src/pages/carVideo/index.vue

@@ -256,12 +256,9 @@ export default {
     recomVideos0: [],
     recomVideos3: [],
     tabQuery: {
-      liceCar: 1,
-      liceTruck: "",
-      liceBus: "",
-      liceMoto: "",
+  
       name: "科目一",
-      gs: "xc",
+      gs: "cart",
       cert: "C1/C2/C3",
       vehicle: "小车",
       subject: 1,
@@ -559,31 +556,19 @@ export default {
       this.tabQuery.cert = item.title;
       switch (item.typeName) {
         case "小车":
-          this.tabQuery.liceCar = 1;
-          this.tabQuery.liceTruck = "";
-          this.tabQuery.liceBus = "";
-          this.tabQuery.liceMoto = "";
-          this.tabQuery.gs = "xc";
+        
+          this.tabQuery.model = "cart";
           break;
         case "货车":
-          this.tabQuery.liceCar = "";
-          this.tabQuery.liceTruck = 1;
-          this.tabQuery.liceBus = "";
-          this.tabQuery.liceMoto = "";
-          this.tabQuery.gs = "hc";
+         
+          this.tabQuery.gs = "truck";
           break;
         case "客车":
-          this.tabQuery.liceCar = "";
-          this.tabQuery.liceTruck = "";
-          this.tabQuery.liceBus = 1;
-          this.tabQuery.liceMoto = "";
-          this.tabQuery.gs = "kc";
+          
+          this.tabQuery.gs = "bus";
           break;
         case "摩托车":
-          this.tabQuery.liceCar = "";
-          this.tabQuery.liceTruck = "";
-          this.tabQuery.liceBus = "";
-          this.tabQuery.liceMoto = 1;
+         
           this.tabQuery.gs = "mtc";
           break;
         default: