-
+
@@ -24,17 +24,18 @@
我的回答
- 编辑
- 删除
+ 编辑
+ 删除
-
+
-
-
-
-
-
+
+
+
+
+ {{ item.isAll ? '收起' : '展开全文' }}
+
@@ -42,7 +43,6 @@
回复时间:{{ item.sysCreateTimeA }}
-
@@ -100,6 +100,19 @@ export default {
};
},
methods: {
+ //展示全部
+ displayAll(item) {
+ let content = '';
+ content = item.answercontent.replace(/(\n){2,}/,'
');
+ item.answercontent = content;
+ if (!item.isAll && item.answercontent.length > 170) {
+ return item.answercontent.slice(0, 170) + "...";
+ }
+ return item.answercontent;
+ },
+ changeIsAll(item) {
+ item.isAll = !item.isAll;
+ },
// deleteData(item){
// console.log(item,"我拿到准备删除的数据")
// apiQa.delAnswer()
@@ -160,6 +173,7 @@ export default {
color: #333330;
font-weight: 400;
margin-bottom: 10px;
+ word-break:break-all;
}
.titcontent{
font-size: 14px;
@@ -293,6 +307,10 @@ export default {
.article-info-tools {
height: 30px;
position: relative;
+ ::v-deep .interact-bar-btn{
+ min-width: 80px !important;
+ text-align: right;
+ }
.article-info-tools-auth {
float: left;
height: 30px;
diff --git a/src/components/Qa/ucList.vue b/src/components/Qa/ucList.vue
index d5d5e4b3..d0ba0b2a 100644
--- a/src/components/Qa/ucList.vue
+++ b/src/components/Qa/ucList.vue
@@ -6,7 +6,7 @@
-
-
-
-