chen vor 3 Jahren
Ursprung
Commit
71107f9344
3 geänderte Dateien mit 15 neuen und 3 gelöschten Zeilen
  1. 8 2
      common/httpList/goods.js
  2. 1 1
      common/request.js
  3. 6 0
      pages2/bank/questionBank.vue

+ 8 - 2
common/httpList/goods.js

@@ -134,8 +134,7 @@ export default {
 		})
 	},
 	
-	
-	
+
 	goodsChapterList(data) {
 		return myRequest({
 			url: '/app/common/bank/chapter/list',
@@ -160,6 +159,13 @@ export default {
 		})
 	},
 	
+	bankExam(data) {
+		return myRequest({
+			url: '/bank/exam/'+data,
+			method: 'get',
+		})
+	},
+	
 	goodsCollectExamList(data) {
 		return myRequest({
 			url: '/collect/question/exam_list',

+ 1 - 1
common/request.js

@@ -22,7 +22,7 @@ export const myRequest = (options) => {
 			method: options.method || 'GET',
 			data: options.data,
 			header: options.noToken ? {
-				TenantId: tenantId
+				TenantId: tenantId,
 			} : {
 				AuthorizationToken: 'WX ' + (token?token:uni.getStorageSync('token_temp')),
 				TenantId: tenantId

+ 6 - 0
pages2/bank/questionBank.vue

@@ -353,12 +353,18 @@ export default {
 		this.goodsId = option.goodsid;
 		this.goodsQuestionList();
 		this.wrongRecordExamQuestionList();
+		this.bankExam();
 	},
 	onUnload() {
 		console.log(this.ans)
 		this.examRecordEdit();
 	},
 	methods: {
+		bankExam() {
+			this.$api.bankExam(this.id).then(res => {
+				console.log(res)
+			})
+		},
 		/**
 		 * 获取错题集
 		 */