From d0e4a1bdf9920188cdc1ff6a26ace0536d49eee3 Mon Sep 17 00:00:00 2001 From: daihh Date: Wed, 28 Sep 2022 16:51:35 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E5=87=A0=E4=B8=AA=E8=AF=A6?= =?UTF-8?q?=E7=BB=86=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/styles/portal.scss | 2 +- src/components/Portal/comments.vue | 14 +++--- src/views/portal/article/Detail.vue | 23 +++++---- src/views/portal/case/Detail.vue | 45 +++++++++--------- src/views/portal/qa/Answer.vue | 72 +++++++---------------------- src/views/portal/qa/Detail.vue | 22 ++++----- 6 files changed, 68 insertions(+), 110 deletions(-) diff --git a/src/assets/styles/portal.scss b/src/assets/styles/portal.scss index 278b798d..146cf49e 100644 --- a/src/assets/styles/portal.scss +++ b/src/assets/styles/portal.scss @@ -40,7 +40,7 @@ body { } .xpage-detail-content{ - padding: 54px; + padding: 50px; background-color: #fff; } // 详细页面的面包屑 diff --git a/src/components/Portal/comments.vue b/src/components/Portal/comments.vue index 67f1c3e5..c5355823 100644 --- a/src/components/Portal/comments.vue +++ b/src/components/Portal/comments.vue @@ -9,7 +9,7 @@ -->
-
案例评论 文章评论 +
案例评论 文章评论 只看作者 {{'只看案主'}} @案主 @@ -64,7 +64,7 @@
- +
@@ -88,10 +88,10 @@
- + - + @@ -843,9 +843,9 @@ margin-top: 5px; } .comments{ - margin-top: 10px; + margin-top: 20px; background-color: #FFFFFF; - padding: 5px 15px; + padding: 40px 40px; .comment-time{ display: flex; justify-content: space-between; @@ -883,7 +883,7 @@ } } .comments-input{ - padding: 20px 15px 10px 15px; + padding: 20px 15px 50px 15px; } .comments-items{ padding: 5px 15px; diff --git a/src/views/portal/article/Detail.vue b/src/views/portal/article/Detail.vue index 0daa765f..b049db93 100644 --- a/src/views/portal/article/Detail.vue +++ b/src/views/portal/article/Detail.vue @@ -7,12 +7,10 @@
- -
+
+ - - -
+
文章列表 / @@ -21,13 +19,14 @@
{{articleDetailData.title}}
- + + {{authorSign}}
- +
@@ -40,14 +39,12 @@
-
-
- +
- +
@@ -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; diff --git a/src/views/portal/case/Detail.vue b/src/views/portal/case/Detail.vue index 80bba27a..868e5568 100644 --- a/src/views/portal/case/Detail.vue +++ b/src/views/portal/case/Detail.vue @@ -4,21 +4,22 @@
- - 案例列表 - 案例详情 -
- - - +
+
+
+ 案例列表 + / + 案例详情 +
{{ caseDetail.title }}
案主:{{ authorInfo.name }} 工号:{{ authorInfo.code }} - 组织:{{ authorInfo.orgInfo }} + 组织:{{ authorInfo.orgInfo }} + {{authorInfo.sign}} {{ caseDetail.sysCreateTime.substring(0,10) }}
{{ caseDetail.summary }}
- - - - +
+ +
- +
十分抱歉,您当前的网络环境不符合观看要求。
@@ -89,10 +87,10 @@
- +
-
-
+ +
@@ -189,6 +187,7 @@ export default { resonimg:{}, Internet:3,//1是成功 2是是失败 3是检测中 noData:true, + authorSign:'',//提问人的个性签名 zoomShow:true, isTopBoxShow:true, toUsers:[], @@ -259,7 +258,7 @@ export default { let key = 'case'; apiPlace.detail(key).then(res=>{ console.log(res) - let lmj = JSON.parse(res.result.content) + let lmj = JSON.parse(res.result.content) // console.log(lmj) this.resonimg = lmj[0] console.log(this.resonimg.image) @@ -455,10 +454,10 @@ export default { title:'', }) } - + } // console.log(this.Positive); - + } }) @@ -488,6 +487,7 @@ export default { apiUser.getByIds([this.caseDetail.authorId]).then(res => { if (res.status == 200 && res.result.length>0) { this.authorInfo = res.result[0]; + this.authorInfo.orgInfo=cutFullName(this.authorInfo.orgInfo,1); this.toUsers = [ @@ -618,11 +618,12 @@ export default { } .detail { background-color: #fff; - padding: 5px 20px 10px 20px; + padding: 50px; .title { font-size: 20px; line-height: 45px; font-weight: 600; + margin: 10px 0px; word-break:break-all; } .label { diff --git a/src/views/portal/qa/Answer.vue b/src/views/portal/qa/Answer.vue index aa91a73e..4a1ac573 100644 --- a/src/views/portal/qa/Answer.vue +++ b/src/views/portal/qa/Answer.vue @@ -4,43 +4,15 @@
- - 问答列表 - 问答详情 -
- - +
+
+ 问答列表 + / + 问答详情 +
{{ detailData.sysCreateBy }}提问了问题 @@ -60,24 +32,11 @@
-
- +
+
- - - +
@@ -97,7 +56,7 @@ --> - +
@@ -225,7 +184,7 @@
- + {{ row.isAll ? '收起' : '全文' }} @@ -271,13 +230,13 @@
- +
- +
@@ -428,7 +387,7 @@ export default { let key = 'qa'; apiPlace.detail(key).then(res=>{ console.log(res) - let lmj = JSON.parse(res.result.content) + let lmj = JSON.parse(res.result.content) this.resonimg = lmj[0] console.log(this.resonimg.image) }) @@ -688,7 +647,7 @@ export default { this.loadAnswer(); this.content = ""; let event = { - key: "AnswerQuestion",//后台的事件key + key: "AnswerQuestion",//后台的事件key title: "回答问题",//事件的标题 parameters:"",//用户自定义参数 name:value,name:value content: '回答了问题',//事件的内容 @@ -944,6 +903,7 @@ export default { color: #666666; font-weight: 400; margin-bottom: 20px; + margin-top:20px; } .qust-title{ font-size: 16px; diff --git a/src/views/portal/qa/Detail.vue b/src/views/portal/qa/Detail.vue index 9432015a..154544f0 100644 --- a/src/views/portal/qa/Detail.vue +++ b/src/views/portal/qa/Detail.vue @@ -1,17 +1,14 @@