| | |
| | | return { |
| | | langTypes: [], |
| | | langSelectValue: this.$route.query.langSelectValue, |
| | | langWelcome: this.$t('langWelcomeEnglish'), |
| | | langOption: this.$t('langOptionEnglish'), |
| | | langWelcome: this.$t('langWelcomeChinese'), |
| | | langOption: this.$t('langOptionChinese'), |
| | | timer: null, |
| | | submissionLang: this.$t('submission'), |
| | | isLangKaiStyle: false |
| | |
| | | num = 0 |
| | | } |
| | | if (num === 0) { |
| | | _this.langWelcome = _this.$t('langWelcomeEnglish') |
| | | _this.langOption = _this.$t('langOptionEnglish') |
| | | _this.isLangKaiStyle = false |
| | | } |
| | | |
| | | if (num === 3) { |
| | | _this.langWelcome = _this.$t('langWelcomeChinese') |
| | | _this.langOption = _this.$t('langOptionChinese') |
| | | _this.isLangKaiStyle = true |
| | | } |
| | | |
| | | if (num === 3) { |
| | | _this.langWelcome = _this.$t('langWelcomeEnglish') |
| | | _this.langOption = _this.$t('langOptionEnglish') |
| | | _this.isLangKaiStyle = false |
| | | } |
| | | |
| | | if (num === 6) { |
| | |
| | | if (_this.reportTemplateId.trim() === '' || _this.reportTemplateId.trim() === null) { |
| | | examPaperApi.selectTokenId(_this.memberToken).then(re => { |
| | | if (re.response.finish === 1) { |
| | | _this.$router.push({ path: '/exam/finish', query: { name: '', content: _this.$t('finishMsg') } }) |
| | | _this.$router.push({ path: '/exam/finish', query: { name: '', content: _this.$t('finishMsg'), tokenId: _this.memberToken } }) |
| | | } else { |
| | | _this.setReportTemplateId(re.response.reportTemplateId) |
| | | demographyApi.queryLangList(_this.memberToken, _this.reportTemplateId).then(function (result) { |