liukangdong
2024-06-18 3281f440d007e464d911c1c4051b30d416b30ef3
h5/pages/answer/answer.vue
@@ -218,7 +218,7 @@
</template>
<script>
import { getProblemsVO, getSystemDictData } from '@/api'
import { getProblemsVO, getSystemDictData, saveProblemsVO } from '@/api'
export default {
  name: 'answer',
@@ -292,6 +292,7 @@
    },
    // 单选选择中题目
    select(line, i) {
      if(this.status === '2') return
      this.list.forEach((item, index) => {
        if (index === i) {
          item.selAnswer = line.code
@@ -300,6 +301,7 @@
      // this.problemIndex = index
    },
    changeBox(index, jeck) {
      if(this.status === '2') return
      this.list.forEach((item, i) => {
        if (index === i) {
          item.options.forEach((item2, j) => {
@@ -375,9 +377,16 @@
      this.getProblems()
    },
    next() {
      uni.navigateTo({
        url: `/pages/userinfo/userinfo`
      saveProblemsVO({
        openId: this.$store.state.openId,
        useType: '1',
        content: ''
      }).then(res => {
        uni.navigateTo({
          url: `/pages/userinfo/userinfo`
        })
      })
    }
  }
}