| | |
| | | } |
| | | }, |
| | | created () { |
| | | // 清除本地存储的语言选项 |
| | | localStorage.removeItem('langType') |
| | | let _this = this |
| | | _this.getLangType() |
| | | // 记录登陆日志 |
| | |
| | | }) |
| | | // 已经答完了不能答题 |
| | | examPaperApi.selectTokenId(_this.paraMemberToken).then(re => { |
| | | if (re.response.logoUrl === null || re.response.logoUrl === '') { |
| | | _this.setLogo('none') |
| | | } else { |
| | | _this.setLogo(re.response.logoUrl) |
| | | } |
| | | console.log(re.response) |
| | | _this.setProductType(re.response.productType) |
| | | if (re.response.finish === 1) { |
| | | _this.$router.push({ path: '/exam/finish', query: { name: '', content: _this.$t('finishMsg'), tokenId: _this.paraMemberToken } }) |
| | | } else if (re.response.status !== '1') { |
| | |
| | | reParam => { |
| | | if (reParam.code !== 1) { |
| | | // 职业兴趣报告特殊化处理 只有中文 |
| | | if (_this.doUrl === 'career_interests') { |
| | | if (_this.doUrl === 'career_interests' || _this.doUrl === 'job') { |
| | | _this.$i18n.locale = 'zh' |
| | | _this.setLangType('Chinese') |
| | | _this.$router.push({ path: '/demography/fill/index', query: { demographyMenber: _this.memberToken, isStart: false } }) |
| | |
| | | } |
| | | |
| | | // 先选择密码 |
| | | _this.$router.push({ path: '/demography/fill/langOption', query: { langSelectValue: _this.langType } }) |
| | | _this.$router.push({ path: '/demography/fill/langOption', query: { langSelectValue: _this.langType, fromDo: _this.fromDo } }) |
| | | _this.setMemberTocken(_this.paraMemberToken) |
| | | return |
| | | } |
| | |
| | | ...mapMutations('exam', ['setReportTemplateId']), |
| | | ...mapMutations('user', ['setLangType']), |
| | | ...mapMutations('user', ['getLangType']), |
| | | ...mapMutations('user', ['setLogo']), |
| | | ...mapMutations('exam', ['setProductType']) |
| | | |
| | | }, |