jiangping
2024-05-09 b62578f8b43f15be89b3d14f463f11aed03e6fb9
h5/pages/answer/answer.vue
@@ -59,6 +59,7 @@
</template>
<script>
   import { getProblemsVO, getSystemDictData } from '@/api'
   export default {
      name: 'answer',
@@ -70,18 +71,39 @@
            success: false,
            list: [],
            bg: require("@/static/banner_dati.jpg"),
            title: '元气森林入厂安全知识考核',
            content: '请仔细阅读并选择对应的答案,答题正确方可继续'
            title: '',
            content: ''
         }
      },
      
      onLoad() {
         this.getProblems()
         this.getInfo()
      },
      methods: {
         getInfo() {
            // title
            getSystemDictData({
               dictCode: 'SYSTEM',
               label: 'THEME'
            }).then(res => {
               if (res.code === 200) {
                  this.title = res.data.code
               }
            })
            // this.$u.api.getSystemDictData({
            getSystemDictData({
               dictCode: 'SYSTEM',
               label: 'DESCRIPTION'
            }).then(res => {
               if (res.code === 200) {
                  this.content = res.data.code
               }
            })
         },
         getProblems() {
            this.$u.api.getProblemsVO({ useType: 1 })
            getProblemsVO({ useType: 1 })
               .then(res => {
                  if (res.code === 200) {
                     res.data.forEach(item => {