谢杰标 2 vuotta sitten
vanhempi
commit
5bb73b5d5e
1 muutettua tiedostoa jossa 2 lisäystä ja 5 poistoa
  1. 2 5
      src/pages/bank-exam/index.vue

+ 2 - 5
src/pages/bank-exam/index.vue

@@ -787,12 +787,10 @@ export default {
       current: 0,
       bankType: 0,
       timer: null,
-      examData: {},
       orderGoodsId: "",
       collectList: [],
       isSubmit: false,
       postTimer: null,
-      examName: "",
       number: '',
     };
   },
@@ -1160,7 +1158,7 @@ export default {
             return;
           }
           this.examId = res.data.examId
-          this.bankType = res.data.type
+          this.bankExam()
           res.data.questionList.forEach((item, index) => {
             item.jsonStr = JSON.parse(item.jsonStr);
 
@@ -1461,8 +1459,6 @@ export default {
       return new Promise((resolve) => {
         this.$request.bankExam(this.examId).then((res) => {
           this.bankType = res.data.doType;
-          this.examName = res.data.examName;
-          this.examData = res.data;
           if (this.bankType == 2) {
             this.needBack = true;
           }
@@ -1598,6 +1594,7 @@ export default {
      * 判断点击确认
      */
     judgeSelect(question, questionIndex, index) {
+      console.log(this.bankType)
       // if (question.ques) return;
       if (question.ques && this.bankType == 1) {
         return;