This commit is contained in:
xulu
2021-09-08 09:39:17 +08:00
parent d115bd19dd
commit 4e5ff549c2
17 changed files with 1183 additions and 98 deletions

View File

@@ -9,6 +9,9 @@
<img src="../../assets/img/logo.png" />
{{ $t('system.title') }}
</div>
<div class="xq_time" v-if="this.user_id==24||this.user_id==25">
本刊为预警期刊责令限期整改 时间{{daojishi}} 倒计时: {{day}} {{hour}}:{{min}}:{{second}}
</div>
<div class="header-right">
<div class="header-user-con">
<div class="changelang">
@@ -30,13 +33,13 @@
</el-tooltip>
</div>
<!-- 消息中心 -->
<!-- 身份切换 -->
<span style="font-size: 14px;margin-right: 8px;" v-if="this.user_cap.includes('author')">View as :</span>
<el-dropdown class="link_role" trigger="click" v-if="this.user_cap.includes('author')">
<span style="color: #fff;cursor: pointer;">
Author<i class="el-icon-arrow-down el-icon--right"></i>
Author<i class="el-icon-arrow-down el-icon--right"></i>
</span>
<el-dropdown-menu :default-active="onRoutes" router slot="dropdown" style="cursor: pointer;">
<router-link :to="{path:'/dashboard'}">
@@ -45,18 +48,18 @@
<router-link :to="{path:'/managing'}" v-if="this.user_cap.includes('chief')">
<el-dropdown-item>Editor-in-Chief</el-dropdown-item>
</router-link>
<router-link :to="{path:'/editorial'}" v-if="this.user_cap.includes('board')">
<router-link :to="{path:'/editorial'}" v-if="this.user_cap.includes(',board')">
<el-dropdown-item>Editorial board member</el-dropdown-item>
</router-link>
<router-link :to="{path:'/peerewer'}" v-if="this.user_cap.includes('reviewer')">
<el-dropdown-item>Reviewer</el-dropdown-item>
</router-link>
<!-- <router-link :to="{path:'/youthed'}" v-if="this.user_cap.includes('yboard')">
<router-link :to="{path:'/youthed'}" v-if="this.user_cap.includes('yboard')">
<el-dropdown-item>Young scientist member</el-dropdown-item>
</router-link> -->
</router-link>
</el-dropdown-menu>
</el-dropdown>
<!-- 用户头像 -->
<div class="user-avator" @click="skip_link()" v-if="hasorcie">
@@ -94,6 +97,7 @@
message: 2,
hasorcie: false,
link_path: '',
user_id: localStorage.getItem('U_id'),
user_cap: localStorage.getItem('U_role'),
orcid: '',
orcidLink: 'https://orcid.org/oauth/authorize?client_id=APP-PKF0BGRP6DWM6FUB&response_type=code&scope=/authenticate&redirect_uri=https://submission.tmrjournals.com/orcidBind',
@@ -105,11 +109,27 @@
value: 'en',
label: 'English'
}
]
],
curStartTime: '2019-07-31 08:00:00',
daojishi: '',
day: '0',
hour: '00',
min: '00',
second: '00',
};
},
created() {
this.initORCID();
if (this.user_id == 24) {
this.daojishi = '2021.9.3 - 2021.9.30'
this.curStartTime = '2021-10-01 00:00:00'
this.countTime();
}
if (this.user_id == 25) {
this.daojishi = '2021.9.6 - 2021.12.31'
this.curStartTime = '2022-01-01 00:00:00'
this.countTime();
}
},
computed: {
username() {
@@ -202,7 +222,46 @@
},
skip_check() {
location.href = this.orcidLink;
}
},
// 倒计时
countTime() {
// 获取当前时间
let date = new Date()
let now = date.getTime()
// 设置截止时间
let endDate = new Date(this.curStartTime) // this.curStartTime需要倒计时的日期
let end = endDate.getTime()
// 时间差
let leftTime = end - now
// 定义变量 d,h,m,s保存倒计时的时间
if (leftTime >= 0) {
// 天
this.day = Math.floor(leftTime / 1000 / 60 / 60 / 24)
// 时
let h = Math.floor(leftTime / 1000 / 60 / 60 % 24)
this.hour = h < 10 ? '0' + h : h
// 分
let m = Math.floor(leftTime / 1000 / 60 % 60)
this.min = m < 10 ? '0' + m : m
// 秒
let s = Math.floor(leftTime / 1000 % 60)
this.second = s < 10 ? '0' + s : s
} else {
this.day = 0
this.hour = '00'
this.min = '00'
this.second = '00'
}
// 等于0的时候不调用
if (Number(this.hour) === 0 && Number(this.day) === 0 && Number(this.min) === 0 && Number(this.second) === 0) {
return
} else {
// 递归每秒调用countTime方法显示动态时间效果,
setTimeout(this.countTime, 1000)
}
},
},
mounted() {
if (document.body.clientWidth < 1000) {
@@ -322,4 +381,13 @@
#colgreen {
color: rgb(142, 150, 74);
}
.xq_time {
float: left;
line-height: 70px;
vertical-align: middle;
color: #ff200d;
margin-left: 20px;
font-size: 20px;
}
</style>

View File

@@ -5,7 +5,7 @@
<img src="../../assets/img/bit_bug.png" alt="" style="width: 80px;margin-right: 10px;">
</div>
<div class="group">
Window for manucripts <br/>of Traditional Medicine Research
Window for manucripts <br />of Traditional Medicine Research
</div>
<div class="header-right">
<div style="font-size: 18px;text-align: right;">
@@ -16,18 +16,18 @@
<span v-if="this.link_path == '/managing' || this.link_path == '/man_text'">Editor-in-Chief :</span>
<span v-if="this.link_path == '/editorial' || this.link_path == '/edit_text'">Editorial board member :</span>
<span v-if="this.link_path == '/peerewer' || this.link_path == '/per_text'">Reviewer :</span>
<!-- <span v-if="this.link_path == '/youthed'">Young scientist member :</span> -->
<span v-if="this.link_path == '/youthed' || this.link_path == '/you_text' || this.link_path == '/you_taxt'">Young scientist member :</span>
<b style="margin-left: 5px;">{{user_name}}</b>
</div>
<div class="header-user-con">
<!-- 身份切换 -->
<el-dropdown class="link_role" trigger="click">
<span>
View as :
View as :
<span v-if="this.link_path == '/managing' || this.link_path == '/man_text'">Editor-in-Chief</span>
<span v-if="this.link_path == '/editorial' || this.link_path == '/edit_text'">Editorial board member</span>
<span v-if="this.link_path == '/peerewer' || this.link_path == '/per_text'">Reviewer</span>
<!-- <span v-if="this.link_path == '/youthed'">Young scientist member</span> -->
<span v-if="this.link_path == '/youthed' || this.link_path == '/you_text' || this.link_path == '/you_taxt'">Young scientist member</span>
<i class="el-icon-arrow-down el-icon--right"></i>
</span>
<el-dropdown-menu :default-active="onRoutes" router slot="dropdown">
@@ -37,15 +37,15 @@
<router-link :to="{path:'/managing'}" v-if="this.user_cap.includes('chief')">
<el-dropdown-item>Editor-in-Chief</el-dropdown-item>
</router-link>
<router-link :to="{path:'/editorial'}" v-if="this.user_cap.includes('board')">
<router-link :to="{path:'/editorial'}" v-if="this.user_cap.includes(',board')">
<el-dropdown-item>Editorial board member</el-dropdown-item>
</router-link>
<router-link :to="{path:'/peerewer'}" v-if="this.user_cap.includes('reviewer')">
<el-dropdown-item>Reviewer</el-dropdown-item>
</router-link>
<!-- <router-link :to="{path:'/youthed'}" v-if="this.user_cap.includes('yboard')">
<router-link :to="{path:'/youthed'}" v-if="this.user_cap.includes('yboard')">
<el-dropdown-item>Young scientist member</el-dropdown-item>
</router-link> -->
</router-link>
</el-dropdown-menu>
</el-dropdown>
@@ -92,7 +92,7 @@
},
methods: {
getData() {
}
},
mounted() {},

View File

@@ -117,7 +117,7 @@
},
{
index: 'reviewerAdd',
title: this.$t('sidebar.reviewer4')
title: this.$t('sidebar.reviewer5')
}
]
}

View File

@@ -1,8 +1,8 @@
<script>
// const baseUrl = '/';
// const mediaUrl = 'http://api.tmrjournals.com/public/';
const mediaUrl = 'http://www.tougao.com/';
const baseUrl = 'http://www.tougao.com/';
const baseUrl = '/';
const mediaUrl = 'http://api.tmrjournals.com/public/';
// const mediaUrl = 'http://www.tougao.com/';
// const baseUrl = 'http://www.tougao.com/';
export default {
baseUrl,
mediaUrl

View File

@@ -48,7 +48,7 @@ const en = {
monitor: 'Monitor',
monitor1: 'Manuscript situation',
chief: 'Chief editor',
chief1: 'Editor list',
chief1: 'Chief editor list',
chief2: 'Journal list',
editmber: 'Editorial management',
editmber1: 'Editorial board list',