Преглед изворни кода

试卷报告页-重新做题时加随机做题的数量

xuqiaoying пре 2 година
родитељ
комит
266cb592ff
2 измењених фајлова са 5 додато и 2 уклоњено
  1. 1 1
      pages2/bank/questionBank.vue
  2. 4 1
      pages2/bank/question_report.vue

+ 1 - 1
pages2/bank/questionBank.vue

@@ -2243,7 +2243,7 @@ export default {
                   "&id=" +
                   this.recordId +
                   "&orderGoodsId=" +
-                  this.orderGoodsId + '&entryType=' + this.entryType,
+                  this.orderGoodsId + '&entryType=' + this.entryType + '&bankNum=' + this.bankNum,
               });
             }, 1000);
           }

+ 4 - 1
pages2/bank/question_report.vue

@@ -169,6 +169,7 @@ export default {
 			pageSize: 10,
 			total: 0,
 			entryType: '', // 进入做题页面的入口类型,daily-每日一练进来,其他的-题库做题进入
+			bankNum: 5, // 随机练习的题目数量
 		};
 	},
 	onUnload() {},
@@ -183,6 +184,7 @@ export default {
 	async onLoad(option) {
 		console.log(option)
 		this.entryType = option.entryType
+		this.bankNum = option.bankNum
 		this.orderGoodsId = option.orderGoodsId
 		this.recordId = option.id;
 		this.examId = option.examId;
@@ -383,7 +385,8 @@ export default {
 			var prepage = pages[pages.length - 2]; //上一个页面
 			prepage.$vm.isRepeat = true;
 			uni.redirectTo({
-				url: '/pages2/bank/questionBank?orderGoodsId='+this.orderGoodsId+'&id=' + id + '&goodsid=' + goodsId + '&moduleId=' + moduleId + '&chapterId=' + chapterId + ''
+				url: '/pages2/bank/questionBank?orderGoodsId='+this.orderGoodsId+'&id=' + id + '&goodsid=' + goodsId + '&moduleId=' + moduleId + '&chapterId=' + chapterId
+				+ '&entryType=' + this.entryType + '&bankNum=' + this.bankNum
 			});
 		},
 		/**