From bab8eda21fc362d1b35aaa26d10df6dc4f4b2c90 Mon Sep 17 00:00:00 2001 From: XiaoMo Date: Fri, 31 Mar 2023 11:40:11 +0800 Subject: [PATCH] =?UTF-8?q?a1300399510@qq.com=20=E6=8F=90=E4=BA=A4?= =?UTF-8?q?=E4=BA=8E=202023/03/31=20-11:40:02?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 9 + src/components/DetailReply.vue | 75 ++--- .../SearchResult-冲突-肖荣豪_Win10.vue | 267 ------------------ .../search/searchResult/SearchResult.vue | 3 - 4 files changed, 48 insertions(+), 306 deletions(-) delete mode 100755 src/views/search/searchResult/SearchResult-冲突-肖荣豪_Win10.vue diff --git a/src/App.vue b/src/App.vue index 925ab5b..4534b35 100755 --- a/src/App.vue +++ b/src/App.vue @@ -109,4 +109,13 @@ export default { justify-content: flex-end; overflow: auto; } + +// 清除 input 和 textarea 的默认样式 +input, +textarea { + border: none; + outline: none; + background: transparent; + resize: none; +} diff --git a/src/components/DetailReply.vue b/src/components/DetailReply.vue index 31db5d8..a5b9df9 100755 --- a/src/components/DetailReply.vue +++ b/src/components/DetailReply.vue @@ -15,7 +15,7 @@
-
@@ -23,7 +23,6 @@
- @@ -31,20 +30,15 @@
- +
{{ twoCommentData.content }}
- -
{{ commentContent ? - commentContent : (twoCommentData ? '写回复…' : '想问啥,大胆问…') }}
- + +
{{ 500 - commentContent.length }}
@@ -69,10 +63,13 @@ export default { }, popState: "discussionSingle", - openDiscussionSingleState: "" + openDiscussionSingleState: false, // 弹出键盘动画 + }; }, + props: ["twoCommentData"], + mounted() { console.log("gjklgjklg"); }, @@ -84,6 +81,16 @@ export default { console.log("dffgkgfk"); }, + // 关闭弹窗 + handlePopCancel(){ + this.twoCommentData = null + }, + + // 切换简单的切换数据 + setValue(key, value) { + this[key] = value + }, + }, }; @@ -130,9 +137,6 @@ export default { .discussion-single-input { height: 100%; - background: transparent; - border: none; - outline: none; } .discussion-header { @@ -168,34 +172,33 @@ export default { .discussion-multi-box { .discussion-header { - padding-bottom: 24rpx; - border-bottom: 1rpx solid #dbdcdd; + padding-bottom: .32rem; + border-bottom: .0133rem solid #dbdcdd; } .discussion-multi-content { position: relative; - height: 663rpx; + height: 8.84rem; box-sizing: border-box; } .discussion-multi-textarea { - font-size: 30rpx; - padding: 24rpx; - /* height: 663rpx; */ + font-size: .4rem; + padding: .32rem; box-sizing: border-box; height: 50vh; overflow: auto; word-break: break-word; - line-height: 36rpx; + line-height: .48rem; } .discussion-multi-icom { - width: 36rpx; - height: 36rpx; - padding: 24rpx; + width: .48rem; + height: .48rem; + padding: .32rem; position: absolute; top: 0; right: 0; @@ -206,25 +209,25 @@ export default { position: absolute; bottom: 0; right: 0; - padding: 24rpx; - font-size: 21rpx; + padding: .32rem; + font-size: .28rem; color: #aaaaaa; } .discussion-multi-bottom { - height: 96rpx; - border-top: 1rpx solid #dbdcdd; + height: 1.28rem; + border-top: .0133rem solid #dbdcdd; justify-content: flex-end; - padding-right: 24rpx; + padding-right: .32rem; } .discussion-multi-btn { background-color: rgba(80, 227, 194, 1); - border-radius: 12rpx; - width: 105rpx; - height: 66rpx; - margin: 15rpx 0; - font-size: 27rpx; + border-radius: .16rem; + width: 1.4rem; + height: .88rem; + margin: .2rem 0; + font-size: .36rem; } } diff --git a/src/views/search/searchResult/SearchResult-冲突-肖荣豪_Win10.vue b/src/views/search/searchResult/SearchResult-冲突-肖荣豪_Win10.vue deleted file mode 100755 index 03656f4..0000000 --- a/src/views/search/searchResult/SearchResult-冲突-肖荣豪_Win10.vue +++ /dev/null @@ -1,267 +0,0 @@ - - - - - diff --git a/src/views/search/searchResult/SearchResult.vue b/src/views/search/searchResult/SearchResult.vue index e737919..04ec52f 100755 --- a/src/views/search/searchResult/SearchResult.vue +++ b/src/views/search/searchResult/SearchResult.vue @@ -120,9 +120,6 @@ export default { .search-input-input { height: 100%; - background: transparent; - border: none; - outline: none; } }