chenxiong hace 3 años
padre
commit
87f18c88fb

+ 9 - 0
pages2/bank/questionBank.vue

@@ -481,6 +481,15 @@ export default {
 		this.isFromVideo = option.isFromVideo||'';
 		this.gradeId = option.gradeId || '';
 		let isBack = option.isback;
+		
+		let showDialog = uni.getStorageSync('showDialog');
+		
+		if(showDialog) {
+			this.showDialog = false;
+		} else {
+			this.showDialog = true;
+			uni.setStorageSync('showDialog','1');
+		}
 
 		if (isBack) {
 			console.log(getApp());

+ 9 - 0
pages2/bank/questionBankExplain.vue

@@ -383,6 +383,15 @@ export default {
 		this.moduleId = option.moduleId;
 		this.recordId = option.recordId;
 		this.isHistory = option.isHistory;
+		
+		let showDialog = uni.getStorageSync('showDialog');
+		
+		if(showDialog) {
+			this.showDialog = false;
+		} else {
+			this.showDialog = true;
+			uni.setStorageSync('showDialog','1');
+		}
 		this.goodsQuestionList();
 	},
 	onUnload() {

+ 10 - 0
pages2/bank/questionBankExplainDetail.vue

@@ -386,6 +386,16 @@ export default {
 		this.chapterId = option.chapterId;
 		this.moduleId = option.moduleId;
 		// this.goodsQuestionList();
+		
+		let showDialog = uni.getStorageSync('showDialog');
+		
+		if(showDialog) {
+			this.showDialog = false;
+		} else {
+			this.showDialog = true;
+			uni.setStorageSync('showDialog','1');
+		}
+		
 		if(this.tabCurrent == 0) {
 			this.examRecordRightList();
 		} else {

+ 10 - 0
pages2/bank/questionBankTest.vue

@@ -362,6 +362,16 @@ export default {
 		this.id = option.id;
 		this.goodsId = option.goodsid;
 		this.num = +option.num;
+		
+		let showDialog = uni.getStorageSync('showDialog');
+		
+		if(showDialog) {
+			this.showDialog = false;
+		} else {
+			this.showDialog = true;
+			uni.setStorageSync('showDialog','1');
+		}
+		
 		this.goodsQuestionList();
 	},
 	onUnload() {

+ 9 - 0
pages2/class/questionBank.vue

@@ -500,6 +500,15 @@ export default {
 		this.isFromVideo = option.isFromVideo||'';
 		this.gradeId = option.gradeId || '';
 		let isBack = option.isback;
+		
+		let showDialog = uni.getStorageSync('showDialog');
+		
+		if(showDialog) {
+			this.showDialog = false;
+		} else {
+			this.showDialog = true;
+			uni.setStorageSync('showDialog','1');
+		}
 
 		if (isBack) {
 			console.log(getApp());

+ 10 - 0
pages2/subject/collectBank.vue

@@ -348,6 +348,16 @@ export default {
 	onLoad(option){
 		this.id = option.id;
 		this.explain = option.explain;
+		
+		let showDialog = uni.getStorageSync('showDialog');
+		
+		if(showDialog) {
+			this.showDialog = false;
+		} else {
+			this.showDialog = true;
+			uni.setStorageSync('showDialog','1');
+		}
+		
 		this.goodsQuestionList();
 	},
 	onUnload() {

+ 10 - 0
pages2/subject/collectTypeBank.vue

@@ -348,6 +348,16 @@ export default {
 	onLoad(option){
 		this.type = option.type;
 		this.explain = option.explain;
+		
+		let showDialog = uni.getStorageSync('showDialog');
+		
+		if(showDialog) {
+			this.showDialog = false;
+		} else {
+			this.showDialog = true;
+			uni.setStorageSync('showDialog','1');
+		}
+		
 		this.goodsCollectList();
 	},
 	onUnload() {

+ 9 - 0
pages2/subject/wrongBank.vue

@@ -359,6 +359,15 @@ export default {
 		this.isFromReport = option.isFromReport;
 		this.explain = option.explain || '';
 		
+		let showDialog = uni.getStorageSync('showDialog');
+		
+		if(showDialog) {
+			this.showDialog = false;
+		} else {
+			this.showDialog = true;
+			uni.setStorageSync('showDialog','1');
+		}
+		
 		// if(this.isFromReport) { //通过答题报告查询错题列表
 		// 	console.log(2)
 		// 	this.wrongRecordList();

+ 8 - 0
pages2/subject/wrongTypeBank.vue

@@ -353,6 +353,14 @@ export default {
 	onLoad(option){
 		this.type = option.type;
 		this.explain = option.explain;
+		let showDialog = uni.getStorageSync('showDialog');
+		
+		if(showDialog) {
+			this.showDialog = false;
+		} else {
+			this.showDialog = true;
+			uni.setStorageSync('showDialog','1');
+		}
 		this.wrongRecordTypeQuestionList();
 	},
 	onUnload() {