mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-16 14:26:43 +08:00
调整几个详细页面
This commit is contained in:
@@ -7,12 +7,10 @@
|
||||
|
||||
<div class="xrow" style="display: flex;justify-content: space-between;">
|
||||
<div style="flex: 1;" class="xcol content-div">
|
||||
<el-row v-if="noData" >
|
||||
<div>
|
||||
<div v-if="noData" >
|
||||
<!--文章详细内容-->
|
||||
|
||||
<!-- <div v-else>我四娘娘</div> -->
|
||||
<!-- <el-card :body-style="{ padding: '0px',background: '#f6f7fb' }" class="detail"> -->
|
||||
<div class="detail">
|
||||
<div class="detail">
|
||||
<div class="xpage-detail-crumbs">
|
||||
<router-link to="/article"><span class="crumbs-first">文章列表</span></router-link>
|
||||
<span class="crumbs-line">/</span>
|
||||
@@ -21,13 +19,14 @@
|
||||
<div class="title">{{articleDetailData.title}}</div>
|
||||
<div class="label">
|
||||
<div style="margin-top: 5px;">
|
||||
<author :avatar="articleDetailData.avatar" :name="articleDetailData.name" :sex="articleDetailData.sex"></author>
|
||||
<author :avatar="articleDetailData.avatar" :name="articleDetailData.name" :sex="articleDetailData.sex"></author>
|
||||
{{authorSign}}
|
||||
</div>
|
||||
<div style="margin-top: 8px;">
|
||||
<!-- <time-show :time="articleDetailData.sysCreateTime"></time-show> -->
|
||||
</div>
|
||||
<!-- <author :avatar="articleDetailData.avatar" :name="articleDetailData.name" :info="articleDetailData.orgInfo" ></author> -->
|
||||
<!-- :readonly="true" -->
|
||||
<!-- :readonly="true" -->
|
||||
<!-- <interactBar v-if="articleDetailData.id" :type="2" :data="articleDetailData" :comments="false" :praises="false" :views="false"></interactBar> -->
|
||||
<!-- <div style="padding-top: 5px;padding-left: 5px;"> 作者:{{ articleDetailData.name }}  部门:{{ articleDetailData.orgInfo }}  发布时间:<time-show :time="articleDetailData.sysCreateTime"></time-show> </div> -->
|
||||
</div>
|
||||
@@ -40,14 +39,12 @@
|
||||
<div style="margin-top:10px;">
|
||||
<interactBar :type="2" :data="articleDetailData" :theme='1' :shares="false" ></interactBar>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<!--评论-->
|
||||
<!--评论, 修改边距调整-->
|
||||
<div>
|
||||
<comments v-if="articleId!=''" @success="success" :obj-type="2" :obj-id="articleId" :toUsers="toUsers" :authorId="articleDetailData.sysCreateAid"></comments>
|
||||
</div>
|
||||
</el-row>
|
||||
</div>
|
||||
<div v-else>
|
||||
<el-empty :image-size="200"></el-empty>
|
||||
</div>
|
||||
@@ -141,6 +138,7 @@ export default {
|
||||
load:false,
|
||||
list:[]
|
||||
},
|
||||
authorSign:'',//个性签名
|
||||
shareShow:false,
|
||||
toUsers: [],
|
||||
articleId:'',
|
||||
@@ -262,6 +260,7 @@ export default {
|
||||
let ids=[data.sysCreateAid]
|
||||
apiUser.getByIds(ids).then(res=>{
|
||||
if(res.status==200){
|
||||
this.authorSign=res.result[0].sign;
|
||||
this.articleDetailData=Object.assign(this.articleDetailData,res.result[0])
|
||||
this.toUsers = [
|
||||
{name: res.result[0].name, aid:res.result[0].aid ,sex:res.result[0].sex}
|
||||
@@ -334,7 +333,7 @@ export default {
|
||||
}
|
||||
.detail {
|
||||
background-color: #fff;
|
||||
padding: 54px;
|
||||
padding: 50px;
|
||||
.title {
|
||||
font-size: 22px;
|
||||
text-align: center;
|
||||
|
||||
Reference in New Issue
Block a user