pages/exam/examTextPage.vue
@@ -3,7 +3,6 @@
      <!-- <nav-bar-sub></nav-bar-sub> -->
      <!-- 用于提示是否确认退出考试 -->
      <u-modal v-model="show" :content="content" :show-cancel-button="true" @confirm="handleConfirm"></u-modal>
      <!-- 渲染题目 -->
      <Answer @submit='handleCommit' @timeEnd='handleConfirm' @onChange='onChange'></Answer>
@@ -30,10 +29,10 @@
         this.$store.state.questionList = []
         var that = this
         console.log(this.$store.state.UserData)
         // 理论考试
         uni.request({
            url: "http://223.82.109.183:2080/api/simulateExamRecord/beginExam",
            // url: "http://localhost:81/simulateExamRecord/beginExam",
            method: 'POST',
            data: {
               idCardNo: this.$store.state.UserData.cardid
@@ -64,7 +63,7 @@
      },
      methods: {
         /* 提交答案 显示再次确认*/
         handleCommit(questionList) {
         handleCommit() {
            // 显示是否确认交卷
            this.show = true;
         },
@@ -140,7 +139,8 @@
         },
         /* 题目答案变化
          */
         onChange(answer) {}
         onChange(answer) {
         }
      }
   }
</script>