From d9e74666ce84b0f32c5cd6f9799d61bd0b009f10 Mon Sep 17 00:00:00 2001 From: yj <2077506045@qq.com> Date: 星期四, 04 七月 2024 09:28:27 +0800 Subject: [PATCH] 1.修复填写人口学变量页面刷新后变为英文的问题 2.更新JAQ文字,打开岗位说明 -> 问卷作答说明 --- src/views/demography/login.vue | 39 ++++++++++++++++++++++++++++++++++++--- 1 files changed, 36 insertions(+), 3 deletions(-) diff --git a/src/views/demography/login.vue b/src/views/demography/login.vue index 9d624c6..38b8c51 100644 --- a/src/views/demography/login.vue +++ b/src/views/demography/login.vue @@ -18,10 +18,13 @@ parasInfos: [], parasInfoIds: {}, formDo: {}, + reportTemplateType: null, statusInfo: { '2': this.$t('statusInfo2'), '3': this.$t('statusInfo3'), '4': this.$t('statusInfo4') } } }, created () { + // 娓呴櫎鏈湴瀛樺偍鐨勮瑷�閫夐」 + localStorage.removeItem('langType') let _this = this _this.getLangType() // 璁板綍鐧婚檰鏃ュ織 @@ -30,11 +33,21 @@ }) // 宸茬粡绛斿畬浜嗕笉鑳界瓟棰� 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') { _this.$router.push({ path: '/exam/exception', query: { name: '', content: _this.statusInfo[re.response.status] } }) } else { + // _this.doUrl = re.response.doUrl + _this.reportTemplateType = re.response.productType + _this.setProductType(re.response.productType) _this.setMemberTocken(_this.paraMemberToken) _this.setDoUrl(re.response.doUrl) _this.setReportTemplateId(re.response.reportTemplateId) @@ -50,8 +63,24 @@ demographyApi.queryDemographyParamInfo(_this.paraMemberToken).then( reParam => { if (reParam.code !== 1) { + // 鑱屼笟鍏磋叮鎶ュ憡鐗规畩鍖栧鐞� 鍙湁涓枃 + 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 } }) + return + } + + // APIFan鍋氱壒娈婂鐞� 鍙湁涓枃 + if (_this.reportTemplateType === 'API_Fan') { + _this.$i18n.locale = 'zh' + _this.setLangType('Chinese') + _this.$router.push({ path: '/demography/fill/logo', query: { demographyMenber: _this.memberToken, isStart: false } }) + return + } + // 鍏堥�夋嫨瀵嗙爜 - _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 } @@ -88,14 +117,18 @@ ...mapMutations('exam', ['setDoUrl']), ...mapMutations('exam', ['setReportTemplateId']), ...mapMutations('user', ['setLangType']), - ...mapMutations('user', ['getLangType']) + ...mapMutations('user', ['getLangType']), + ...mapMutations('user', ['setLogo']), + ...mapMutations('exam', ['setProductType']) + }, computed: { ...mapState('user', { memberToken: state => state.memberToken }), ...mapState('user', { memberId: state => state.memberId }), ...mapState('exam', { doUrl: state => state.doUrl }), ...mapState('exam', { reportTemplateId: state => state.reportTemplateId }), - ...mapState('user', { langType: state => state.langType }) + ...mapState('user', { langType: state => state.langType }), + ...mapState('exam', { productType: state => state.productType }) } } </script> -- Gitblit v1.9.1