From 92343181397a9724d6de57f9fab32fd8f9c64c5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A7=8B=E4=BA=8E=E5=88=9D=E8=A7=81?= <752204717@qq.com> Date: Wed, 29 Apr 2026 12:49:55 +0800 Subject: [PATCH] =?UTF-8?q?=E8=87=AA=E4=B8=BB=E4=BF=AE=E6=94=B9=E9=82=AE?= =?UTF-8?q?=E7=AE=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/common/common.vue | 10 +-- src/components/common/langs/en.js | 7 ++ src/components/common/langs/zh.js | 7 ++ src/components/page/Dashboard_.vue | 20 +++++- src/components/page/articleAdd.vue | 67 ++++++++++++++++++- src/components/page/cenper_ter.vue | 4 +- .../PromotionFactoryTaskDialog.vue | 13 +++- 7 files changed, 117 insertions(+), 11 deletions(-) diff --git a/src/components/common/common.vue b/src/components/common/common.vue index 9bac70a..a1781ec 100644 --- a/src/components/common/common.vue +++ b/src/components/common/common.vue @@ -2,14 +2,14 @@ //记得切换 //正式 -const mediaUrl = '/public/'; -const baseUrl = '/'; +// const mediaUrl = '/public/'; +// const baseUrl = '/'; //正式环境 -// const mediaUrl = 'https://submission.tmrjournals.com/public/'; -// // const mediaUrl = 'http://zmzm.tougao.dev.com/public/'; -// const baseUrl = '/api' +const mediaUrl = 'https://submission.tmrjournals.com/public/'; +// const mediaUrl = 'http://zmzm.tougao.dev.com/public/'; +const baseUrl = '/api' //测试环境 diff --git a/src/components/common/langs/en.js b/src/components/common/langs/en.js index 8de3fff..73edf4b 100644 --- a/src/components/common/langs/en.js +++ b/src/components/common/langs/en.js @@ -20,6 +20,13 @@ const en = { info: { realname: 'English names can only contain uppercase and lowercase letters, "-", and spaces' }, + articleAdd: { + qqEmailAlertLine1: 'The publisher does not currently accept submissions from QQ Mail.', + qqEmailAlertLine2Before: 'Please go to', + qqEmailDashboardLink: 'Personal Center (Dashboard)', + qqEmailAlertLine2After: ' to change your registered email.', + qqEmailSubmitBlockedMsg: 'QQ Mail is not supported for submission. Please go to Personal Center (Dashboard) and change your email.' + }, total: { author: 'author', editor: 'editor', diff --git a/src/components/common/langs/zh.js b/src/components/common/langs/zh.js index 91bd8a5..ea13872 100644 --- a/src/components/common/langs/zh.js +++ b/src/components/common/langs/zh.js @@ -19,6 +19,13 @@ const zh = { }, info: { realname: '英文名字只能包含大小写英文字母、"-" 、和 空格' }, + articleAdd: { + qqEmailAlertLine1: '出版社暂不支持qq邮箱投稿。', + qqEmailAlertLine2Before: '请前往', + qqEmailDashboardLink: '个人中心(Dashboard)', + qqEmailAlertLine2After: '更换邮箱账号。', + qqEmailSubmitBlockedMsg: '出版社暂不支持qq邮箱投稿,请去个人中心更换邮箱账号' + }, total: { author: '作者', editor: '编辑', diff --git a/src/components/page/Dashboard_.vue b/src/components/page/Dashboard_.vue index 40a729d..b107938 100644 --- a/src/components/page/Dashboard_.vue +++ b/src/components/page/Dashboard_.vue @@ -859,8 +859,8 @@ {{ coreForm.account }} - - {{ coreForm.email }} + + @@ -1610,6 +1610,14 @@ this.applyCvitaTable = data; .then((res) => { if (res.code == 0) { this.coreTable = res.data.baseInfo; + try { + if (this.coreTable && this.coreTable.email != null && this.coreTable.email !== undefined) { + localStorage.setItem('U_email', String(this.coreTable.email)); + } + if (this.coreTable && this.coreTable.realname != null && this.coreTable.realname !== undefined) { + localStorage.setItem('U_relname', String(this.coreTable.realname)); + } + } catch (e) {} this.majorsList=res.data.baseInfo.majors; this.cvitaForm.user_id = res.data.baseInfo.user_id; this.reviewForm.user_id = res.data.baseInfo.user_id; @@ -1901,6 +1909,14 @@ this.applyCvitaTable = data; .then((res) => { if (res.code == 0) { this.$message.success('Personal information modified successfully!'); + try { + if (this.coreForm.email != null && this.coreForm.email !== undefined) { + localStorage.setItem('U_email', String(this.coreForm.email)); + } + if (this.coreForm.realname != null && this.coreForm.realname !== undefined) { + localStorage.setItem('U_relname', String(this.coreForm.realname)); + } + } catch (e) {} this.coreVisible = false; this.tipVisible = false; this.getPersonData(); diff --git a/src/components/page/articleAdd.vue b/src/components/page/articleAdd.vue index 47dcb1d..d017398 100644 --- a/src/components/page/articleAdd.vue +++ b/src/components/page/articleAdd.vue @@ -810,9 +810,37 @@ > + + +
Save as draft - Confirm Submit + + Confirm Submit +
@@ -1612,6 +1640,17 @@ export default { }, upload_qualifications: function () { return this.baseUrl + 'api/Admin/up_file'; + }, + /** 投稿页第四步:登录邮箱为 QQ 邮箱时不允许正式提交 */ + articleAddQqEmailSubmitBlocked() { + try { + const raw = localStorage.getItem('U_email') || ''; + const email = String(raw).trim().toLowerCase(); + if (!email || !email.includes('@')) return false; + return /@qq\.com$/i.test(email) || /@vip\.qq\.com$/i.test(email); + } catch (e) { + return false; + } } }, methods: { @@ -1907,6 +1946,10 @@ export default { } }, async onSubmit() { + if (this.articleAddQqEmailSubmitBlocked) { + this.$message.warning(this.$t('articleAdd.qqEmailSubmitBlockedMsg')); + return false; + } // 1. 校验协议勾选 if (!this.agreechecked) { this.$message.error( @@ -4063,6 +4106,28 @@ export default {