Tang před 4 roky
rodič
revize
987d31cb5f
2 změnil soubory, kde provedl 22 přidání a 6 odebrání
  1. 20 4
      pages2/bank/detail.vue
  2. 2 2
      pages2/bank/question.vue

+ 20 - 4
pages2/bank/detail.vue

@@ -422,6 +422,10 @@ export default {
 		},
 		//错题集
 		errorList() {
+			if(!this.$method.isLogin()){
+				self.errorLists = 0
+				return
+			}
 			var self = this;
 			var data = {
 				bankId: self.id
@@ -431,6 +435,9 @@ export default {
 			});
 		},
 		getBankDList(options) {
+			if(!this.$method.isLogin()){
+				return
+			}
 			var data = {
 				bankId: options.bankId
 			};
@@ -454,6 +461,9 @@ export default {
 			});
 		},
 		getBankDListSJ(options) {
+			if(!this.$method.isLogin()){
+				return
+			}
 			var data = {
 				bankId: options.bankId
 			};
@@ -469,7 +479,6 @@ export default {
 				}
 				this.getsecSJ(chaList[0]);
 				this.chapterList = chaList;
-				console.log(this.chapterList);
 			});
 		},
 		activeList(item, index) {
@@ -497,7 +506,6 @@ export default {
 				teacherIds: v
 			};
 			this.$api.teacherList(data).then(res => {
-				console.log(res);
 				this.teachersList = res.data.rows;
 			});
 		},
@@ -513,7 +521,12 @@ export default {
 			this.current = index;
 		},
 		jumpExam(v) {
-			console.log(this.infoData.bankSectionId,this.infoData.examId)
+			if(!this.$method.isLogin()){
+				uni.navigateTo({
+					url: '/pages/login/login'
+				});
+				return
+			}
 			if (this.pageData.typeId === 1) {
 				this.$navTo.togo('/pages2/bank/question', {
 					bankSectionId: this.infoData.bankSectionId,
@@ -533,8 +546,11 @@ export default {
 			}
 		},
 		favoritesStatus() {
+			if(!this.$method.isLogin()){
+				this.collecStatus = false;
+				return
+			}
 			this.$api.bankCollects(this.id).then(result => {
-				console.log(1);
 				if (result.data.data === undefined) {
 					this.collecStatus = false;
 				} else {

+ 2 - 2
pages2/bank/question.vue

@@ -201,8 +201,8 @@ export default {
 			this.examId = option.examId;
 		}
 		if(option.sc === 'false' && option.ct === 'false'){
-			if(option.examId){
-				console.log(option.examId,15235)
+			if(option.bankSectionId){
+				console.log(option.bankSectionId,15235)
 			}
 		}
 		this.titleListFn(option);