Переглянути джерело

接口层部分接口改为题库新接口

JXDS18FUJT 1 рік тому
батько
коміт
fa227f22aa
4 змінених файлів з 34 додано та 10 видалено
  1. BIN
      node_modules.zip
  2. 0 1
      package.json
  3. 21 5
      src/api/modules/exam.js
  4. 13 4
      src/api/modules/open.js

BIN
node_modules.zip


+ 0 - 1
package.json

@@ -74,7 +74,6 @@
     "qs": "^6.10.1",
     "regenerator-runtime": "^0.12.1",
     "sass-loader": "^7.3.1",
-    "uni-vant": "^1.1.13",
     "vant-weapp-convert-uniapp": "0.1.0-alpha.17",
     "vue": "^2.6.11",
     "vuex": "^3.2.0"

+ 21 - 5
src/api/modules/exam.js

@@ -51,7 +51,7 @@ const exam = {
 		})
 
 	},
-	//查询模拟考试题库
+	//查询模拟考试题库(旧)
 	studentQuestionInfoSelectTestQuestionInfo(params) {
 		return request({
 			url: "open-api/question/info/selectTestK14QuestionInfoList",
@@ -59,7 +59,15 @@ const exam = {
 			params
 		})
 	},
-	//查询题库
+	//查询模拟考试题库(新)
+	studentQuestion2InfoSelectTestQuestionInfo(params) {
+		return request({
+			url: "open-api/question2/info/selectTestK14QuestionInfoList",
+			method: 'get',
+			params
+		})
+	},
+	//查询题库(旧)
 	studentQuestionInfoList(params) {
 		return request({
 			url: "student/question/info/list",
@@ -67,6 +75,14 @@ const exam = {
 			params
 		})
 	},
+	//查询题库(新)
+	studentQuestionInfoList(params) {
+		return request({
+			url: "student/question2/info/list",
+			method: 'get',
+			params
+		})
+	},
 
 	//新增模拟考成绩
 	studentScoreInfo(data) {
@@ -274,7 +290,7 @@ const exam = {
 
 	},
 	//根据城市获取区县
-	studentExamInfoCountyCityId(cityId){
+	studentExamInfoCountyCityId(cityId) {
 		return request({
 			url: `student/exam/info/county/${cityId}`,
 			method: "get"
@@ -298,11 +314,11 @@ const exam = {
 
 	},
 	// 获取三力测试模拟考题
-	studentThreeForceSelectTestQuestionInfoList(){
+	studentThreeForceSelectTestQuestionInfoList() {
 		return request({
 			url: `student/three/force/selectTestQuestionInfoList`,
 			method: "get",
-		
+
 		})
 	}
 	//

+ 13 - 4
src/api/modules/open.js

@@ -3,7 +3,7 @@ import request from '../request'
 const openApi = process.env.NODE_ENV === 'development' ? 'https://nbjk1.zzxcx.net/nbjk-admin/' : 'https://nbjk1.zzxcx.net/nbjk-admin/'
 const open = {
     //open-api/teachingVideo/info/treeList
-    //获取免费的题库
+    //获取免费的题库(旧)
     questionInfoSelectFreeQuestionInfo(params) {
         return request({
             url: openApi + "/open-api/question/info/selectFreeQuestionInfo",
@@ -11,6 +11,15 @@ const open = {
         })
 
 
+    },
+    //获取免费的题库(新)
+    question2InfoSelectFreeQuestionInfo(params) {
+        return request({
+            url: openApi + "/open-api/question2/info/selectFreeQuestionInfo",
+            params
+        })
+
+
     },
     //获取视频列表
     teachingVideoInfoTreeList(params) {
@@ -47,16 +56,16 @@ const open = {
         })
     },
     //批量取题
-    questionInfoGetQuestionInfoByIds(params){
+    questionInfoGetQuestionInfoByIds(params) {
         return request({
             url: "/question/info/getQuestionInfoByIds",
             params
         })
     },
     //根据字典类型查询字典数据信息
-    systemDictDataType(dictType){
+    systemDictDataType(dictType) {
         return request({
-            url: "open-api/system/dict/data/type/"+dictType
+            url: "open-api/system/dict/data/type/" + dictType
         })
 
     }