diff --git a/public/img/bg1.png b/public/img/bg1.png deleted file mode 100755 index 077a963..0000000 Binary files a/public/img/bg1.png and /dev/null differ diff --git a/public/img/bg2.png b/public/img/bg2.png deleted file mode 100755 index 2598026..0000000 Binary files a/public/img/bg2.png and /dev/null differ diff --git a/public/img/bg3.png b/public/img/bg3.png deleted file mode 100755 index 0113422..0000000 Binary files a/public/img/bg3.png and /dev/null differ diff --git a/public/img/bg4.png b/public/img/bg4.png deleted file mode 100755 index 5e8adfa..0000000 Binary files a/public/img/bg4.png and /dev/null differ diff --git a/public/img/bg5.png b/public/img/bg5.png deleted file mode 100755 index e5a13d0..0000000 Binary files a/public/img/bg5.png and /dev/null differ diff --git a/public/img/bg6.png b/public/img/bg6.png deleted file mode 100755 index 191f187..0000000 Binary files a/public/img/bg6.png and /dev/null differ diff --git a/public/img/bg7.png b/public/img/bg7.png deleted file mode 100755 index 9d1810d..0000000 Binary files a/public/img/bg7.png and /dev/null differ diff --git a/public/img/bg8.png b/public/img/bg8.png deleted file mode 100755 index 34ca117..0000000 Binary files a/public/img/bg8.png and /dev/null differ diff --git a/public/img/unlock.png b/public/img/unlock.png new file mode 100644 index 0000000..ac2cc9b Binary files /dev/null and b/public/img/unlock.png differ diff --git a/src/assets/img/detail/edit.png b/src/assets/img/detail/edit.png new file mode 100644 index 0000000..af69726 Binary files /dev/null and b/src/assets/img/detail/edit.png differ diff --git a/src/components/DetailReply.vue b/src/components/DetailReply.vue index d499e09..ecf5ffb 100755 --- a/src/components/DetailReply.vue +++ b/src/components/DetailReply.vue @@ -12,11 +12,12 @@
+ :placeholder="twoCommentData ? '写回复…' : '想问啥,大胆问…'" :value="commentContent" + @input="inputCommentContent($event)" />
-
+
发布
@@ -32,14 +33,14 @@
{{ twoCommentData.content }}
- +
{{ 500 - commentContent.length }}
-
+
发布
@@ -53,30 +54,26 @@ export default { name: 'DetailReply', data() { return { - commentContent: "", openDiscussionSingleState: true, // 弹出键盘动画 }; }, - props: ["twoCommentData", "popState"], + props: ["twoCommentData", "popState", "commentContent"], mounted() { - console.log("子组件"); }, methods: { // 提交回复 - postComment(commentContent) { - this.$parent.postComment(commentContent) + postComment() { + this.$parent.postComment() }, // 关闭弹窗 handlePopCancel() { - console.log(this.$parent.popState, "this.$parent.popState"); this.$parent.twoCommentData = null this.$parent.popState = "" - }, // 清空 @@ -98,6 +95,11 @@ export default { }, 500); }, + inputCommentContent(event) { + let value = event.currentTarget.value + this.$parent.commentContent = value + } + }, }; diff --git a/src/views/detail/detailIndex.vue b/src/views/detail/detailIndex.vue index f1593ec..feb7b26 100755 --- a/src/views/detail/detailIndex.vue +++ b/src/views/detail/detailIndex.vue @@ -134,9 +134,7 @@
{{ item.author }} - +
楼主
{{ $formattedDate(item.dateline) }}
@@ -145,10 +143,13 @@ index + 2}楼` }}
{{ `${(postList.page - 1) * postList.limit + index + 1}楼` }}
+
+ +
-
+