MrShi
2024-01-16 c824e3bcb34f8b6f3c1435ddca91130367dc3729
h5/pages/answer/answer.vue
@@ -70,16 +70,36 @@
            success: false,
            list: [],
            bg: require("@/static/banner_dati.jpg"),
            title: '元气森林入厂安全知识考核',
            content: '请仔细阅读并选择对应的答案,答题正确方可继续'
            title: '',
            content: ''
         }
      },
      
      onLoad() {
         this.getProblems()
         this.getInfo()
      },
      methods: {
         getInfo() {
            // title
            this.$u.api.getSystemDictData({
               dictCode: 'SYSTEM',
               label: 'THEME'
            }).then(res => {
               if (res.code === 200) {
                  this.title = res.data.code
               }
            })
            this.$u.api.getSystemDictData({
               dictCode: 'SYSTEM',
               label: 'DESCRIPTION'
            }).then(res => {
               if (res.code === 200) {
                  this.content = res.data.code
               }
            })
         },
         getProblems() {
            this.$u.api.getProblemsVO({ useType: 1 })
               .then(res => {