|
|
@@ -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 {
|