Bladeren bron

替换题目的接口前

JXDS18FUJT 1 jaar geleden
bovenliggende
commit
7534a1f2dc
2 gewijzigde bestanden met toevoegingen van 43 en 42 verwijderingen
  1. 1 1
      src/api/request.js
  2. 42 41
      src/otherPages/classifyChoose/index.vue

+ 1 - 1
src/api/request.js

@@ -13,7 +13,7 @@ const service = axios.create({
 	//#ifdef MP-WEIXIN
 	//baseURL: process.env.NODE_ENV === 'development' ? 'https://jpcj-admin1.zzxcx.net/stage-api' : 'https://jpcj-admin.zzxcx.net/prod-api',
 	//https://107j18o08.vicp.fun/
-	baseURL: process.env.NODE_ENV === 'development' ? 'https://nbjk1.zzxcx.net/nbjk-admin/' : 'https://nbjk.zzxcx.net/nbjk-admin/',
+	baseURL: process.env.NODE_ENV === 'development' ? 'http://192.168.8.97:8080/' : 'https://nbjk.zzxcx.net/nbjk-admin/',
 	
 	//#endif
 	//#ifdef MP-TOUTIAO

+ 42 - 41
src/otherPages/classifyChoose/index.vue

@@ -3,12 +3,7 @@
     <div class="cell-box" :class="{
       'is-row': isRow,
     }">
-      <van-cell title-class="uni-app-fontsize-paragraph" class="cell" :title="
-        item.excellIssueName ||
-        item.placeIssueName ||
-        item.classIssueName ||
-        item.sequeIssueName
-      " is-link center v-for="(item, index) in classDataLeft" :key="index" :border="false" @click="
+      <van-cell title-class="uni-app-fontsize-paragraph" class="cell" :title="item.title" is-link center v-for="(item, index) in classDataLeft" :key="index" :border="false" @click="
   () => {
     goExercise({
       excellIssueName: item.excellIssueName,
@@ -134,41 +129,47 @@ export default {
       });
     },
     getClassData() {
-      if (this.query.vehicle === "摩托车") {
-        api.exam
-          .studentQuestionInfoSelectJxQuestionInfo({
-            ...this.query,
-          })
-          .then((res) => {
-            this.classDataLeft = res.data;
-          });
-      } else {
-        api.exam
-          .studentQuestionInfoSelectJxQuestionInfo({
-            ...this.query,
-            excellIssueName: "选学",
-          })
-          .then((res) => {
-            this.classDataRight = res.data;
-          });
-        api.exam
-          .studentQuestionInfoSelectJxQuestionInfo({
-            ...this.query,
-            excellIssueName: "必",
-          })
-          .then((res) => {
-            // res.data.shift();
-            this.classDataLeft = res.data;
-            api.exam
-              .studentQuestionInfoSelectJxQuestionInfo({
-                ...this.query,
-                excellIssueName: "新",
-              })
-              .then((res) => {
-                this.classDataSpecial = [...res.data];
-              });
-          });
-      }
+      api.exam.studentQuestion2InfoGetQuestionColumn({
+        subject:'k1',
+        model:'cart'
+      }).then(res=>{
+        this.classDataLeft = res.data;
+      })
+      // if (this.query.vehicle === "摩托车") {
+      //   api.exam
+      //     .studentQuestionInfoSelectJxQuestionInfo({
+      //       ...this.query,
+      //     })
+      //     .then((res) => {
+      //       this.classDataLeft = res.data;
+      //     });
+      // } else {
+      //   api.exam
+      //     .studentQuestionInfoSelectJxQuestionInfo({
+      //       ...this.query,
+      //       excellIssueName: "选学",
+      //     })
+      //     .then((res) => {
+      //       this.classDataRight = res.data;
+      //     });
+      //   api.exam
+      //     .studentQuestionInfoSelectJxQuestionInfo({
+      //       ...this.query,
+      //       excellIssueName: "必",
+      //     })
+      //     .then((res) => {
+      //       // res.data.shift();
+      //       this.classDataLeft = res.data;
+      //       api.exam
+      //         .studentQuestionInfoSelectJxQuestionInfo({
+      //           ...this.query,
+      //           excellIssueName: "新",
+      //         })
+      //         .then((res) => {
+      //           this.classDataSpecial = [...res.data];
+      //         });
+      //     });
+      // }
     },
   },
 };