Ver Fonte

修复测试bug

chenxiong há 3 anos atrás
pai
commit
335b169937
2 ficheiros alterados com 7 adições e 1 exclusões
  1. 1 0
      pages2/bank/questionBank.vue
  2. 6 1
      pages2/msg/detail.vue

+ 1 - 0
pages2/bank/questionBank.vue

@@ -481,6 +481,7 @@ export default {
 		};
 	},
 	onLoad(option) {
+		this.current = +option.current || 0
 		this.id = option.id;
 		this.goodsId = option.goodsid;
 		this.chapterId = option.chapterId;

+ 6 - 1
pages2/msg/detail.vue

@@ -66,6 +66,7 @@ export default {
 	methods: {
 		//跳转页面
 		jumpFuns(item) {
+			
 			switch (item.remindId) {
 				case 1:
 				case 3:
@@ -76,7 +77,8 @@ export default {
 				case 21:
 				case 22:
 					this.$navTo.togo('/pages2/wd/course', {
-						id: item.goodsId
+						id: item.goodsId,
+						gid:item.gradeId
 					});
 					// arsty = '立刻学习';
 					break;
@@ -133,6 +135,9 @@ export default {
 		//跳转题库题目
 		jumpExam(item) {
 			console.log(item);
+			uni.navigateTo({
+				url:'/pages2/bank/questionBank?current='+(item.topicNum-1)+'&id='+item.examId+'&goodsid='+item.goodsId+'&chapterId='+item.moduleId+'&moduleId='+item.moduleId
+			})
 		},
 		isOk() {
 			this.$api.courseappinformUser({ id: this.listData.id, receiptStatus: 1 }).then(res => {