1
This commit is contained in:
@@ -25,9 +25,10 @@
|
||||
<el-col :span="12" style="text-align: right">
|
||||
<el-link :underline="false" type="primary" @click="doRegister()">{{ $t('system.register') }}</el-link>
|
||||
</el-col>
|
||||
<el-col :span="24" style="margin-top: 5px;">
|
||||
<el-link :underline="false" type="primary" @click="doRetrieve()">
|
||||
<img class="orcid" src="../../assets/img/orcid.png" style="float: left;margin: -1px 5px 0 0;"/>Login with your orcid
|
||||
<el-col :span="24" style="margin-top: 5px">
|
||||
<el-link :underline="false" type="primary" @click="skip_check()">
|
||||
<img class="orcid" src="../../assets/img/orcid.png" style="float: left; margin: -1px 5px 0 0" />Login with your
|
||||
orcid
|
||||
</el-link>
|
||||
</el-col>
|
||||
</el-row>
|
||||
@@ -41,21 +42,27 @@
|
||||
data: function () {
|
||||
return {
|
||||
aa: localStorage.getItem('ms_journal'),
|
||||
orcidLink:
|
||||
'https://orcid.org/oauth/authorize?client_id=APP-PKF0BGRP6DWM6FUB&response_type=code&scope=/authenticate&redirect_uri=https://submission.tmrjournals.com/orcidLink',
|
||||
param: {
|
||||
username: '',
|
||||
password: ''
|
||||
},
|
||||
rules: {
|
||||
username: [{
|
||||
username: [
|
||||
{
|
||||
required: true,
|
||||
message: 'enter one user name',
|
||||
trigger: 'blur'
|
||||
}],
|
||||
password: [{
|
||||
}
|
||||
],
|
||||
password: [
|
||||
{
|
||||
required: true,
|
||||
message: 'Please input a password',
|
||||
trigger: 'blur'
|
||||
}]
|
||||
}
|
||||
]
|
||||
}
|
||||
};
|
||||
},
|
||||
@@ -105,6 +112,10 @@
|
||||
this.$router.push({
|
||||
path: '/retrieve'
|
||||
});
|
||||
},
|
||||
|
||||
skip_check() {
|
||||
location.href = this.orcidLink;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
@@ -99,12 +99,12 @@
|
||||
registerRules: {
|
||||
username: [{
|
||||
required: true,
|
||||
message: '请输入用户名',
|
||||
message: 'Please enter your username.',
|
||||
trigger: 'blur'
|
||||
}],
|
||||
password: [{
|
||||
required: true,
|
||||
message: '请输入密码',
|
||||
message: 'Please enter your password.',
|
||||
trigger: 'blur'
|
||||
}],
|
||||
name: [{
|
||||
|
||||
Reference in New Issue
Block a user