tijiao
This commit is contained in:
@@ -106,18 +106,31 @@
|
||||
.catch(err => {
|
||||
this.$message.error(err);
|
||||
});
|
||||
|
||||
var data={article_id: this.articleId}
|
||||
if(this.$route.query.user_id){
|
||||
data.art_aut_id=this.$route.query.user_id
|
||||
}
|
||||
this.$api
|
||||
.post('api/Article/getArticleUserDetail', {
|
||||
article_id: this.articleId
|
||||
.post(this.$route.query.user_id?'api/Workbench/getCorrespondingInfo':'api/Article/getArticleUserDetail', {
|
||||
...data
|
||||
})
|
||||
.then(res => {
|
||||
if (res.code == 0) {
|
||||
if(this.$route.query.user_id){
|
||||
if (res.status == 1) {
|
||||
this.AuthorMes = res.data.user;
|
||||
this.EmailData.topmail = 'Dear Dr. ' + this.AuthorMes.realname + ',<br/>';
|
||||
} else {
|
||||
this.$message.error(res.msg);
|
||||
}
|
||||
}else{
|
||||
if (res.code == 0) {
|
||||
this.AuthorMes = res.data.userDetail;
|
||||
this.EmailData.topmail = 'Dear Dr. ' + this.AuthorMes.realname + ',<br/>';
|
||||
} else {
|
||||
this.$message.error(res.msg);
|
||||
}
|
||||
}
|
||||
|
||||
})
|
||||
.catch(err => {
|
||||
this.$message.error(err);
|
||||
|
||||
Reference in New Issue
Block a user