From ea714bd0c3d37198914caa949b9dd1bcd87f0773 Mon Sep 17 00:00:00 2001 From: terwer Date: Mon, 18 Jul 2022 14:04:05 +0800 Subject: [PATCH] feat:fix ing --- .../components/themes/default/HeaderMenu.vue | 12 ++++ jvue-front/pages/essay.css | 8 +-- jvue-front/pages/essay/index.vue | 72 +++++++++++++++---- jvue-front/pages/note.vue | 6 +- jvue-front/pages/post/_id.vue | 6 +- .../service/impl/PostServiceImpl.java | 13 +++- 6 files changed, 92 insertions(+), 25 deletions(-) diff --git a/jvue-front/components/themes/default/HeaderMenu.vue b/jvue-front/components/themes/default/HeaderMenu.vue index 5309b22..62c9cf9 100644 --- a/jvue-front/components/themes/default/HeaderMenu.vue +++ b/jvue-front/components/themes/default/HeaderMenu.vue @@ -50,6 +50,18 @@ export default { link: "/", icon: "fa fa-home" }, + { + id: 1, + name: "笔记", + link: "/note", + icon: "fa fa-pencil" + }, + { + id: 1, + name: "随笔", + link: "/essay", + icon: "fa fa-bolt" + }, { id: 2, name: "关于", diff --git a/jvue-front/pages/essay.css b/jvue-front/pages/essay.css index 1eb1b08..85d657f 100644 --- a/jvue-front/pages/essay.css +++ b/jvue-front/pages/essay.css @@ -31,7 +31,7 @@ .lay-blog .container .item .comment{width: 100%; line-height: 56px; background: #f9f9f9; font-size: 14px; overflow:hidden;} .lay-blog .container .item .comment a{display:inline-block;width:50%;text-align:center;float: left;} .lay-blog .container .item .comment a+a{border-left:1px solid #efefef;margin-left:-1px;} -.lay-blog .container .item-btn{text-align:center;margin-top:20px;} +.lay-blog .container .item-btn{text-align:center;/*margin-top:20px;*/} @media only screen and (max-width: 750px) { @@ -52,8 +52,8 @@ .lay-blog .container-message .item-btn{ text-align: right; } -.lay-blog .container-message .item-btn{margin-bottom: 50px;} -.lay-blog .container-message .info-item{font-size:14px;margin-bottom: 16px;} +.lay-blog .container-message .item-btn{/*margin-bottom: 50px;*/} +.lay-blog .container-message .info-item{font-size:14px;margin-bottom: 16px;clear: both;} .lay-blog .container-message .info-img{cursor: pointer;float: left;padding-right:20px;width: 50px; margin-top: 20px;margin-left: 20px;} .lay-blog .container-message .info-text{padding-left: 60px;border: solid 1px #ffffff;border-radius: 4px;} .lay-blog .container-message .title{overflow:hidden;} @@ -61,4 +61,4 @@ .info-intr{padding-left: 10px;line-height: 24px;margin-bottom: 5px;} .lay-blog .container-message .title .info-img{float: right;color:#4b5a75; width: auto;} .lay-blog .container-message .title .info-img i{font-size: 24px;padding-right: 5px;position: relative;top: 4px;} -.lay-blog .container-message .paging{text-align:center;} \ No newline at end of file +.lay-blog .container-message .paging{text-align:center;} diff --git a/jvue-front/pages/essay/index.vue b/jvue-front/pages/essay/index.vue index 83b5208..03cdf60 100644 --- a/jvue-front/pages/essay/index.vue +++ b/jvue-front/pages/essay/index.vue @@ -37,20 +37,22 @@
- +
-

{{ timeline.postDate }}

+

+ {{ + new Date( + timeline.created + ).toLocaleString() + }} +

倚楼听雨
- 阅读全文 + +

阅读全文

+
@@ -108,12 +123,14 @@   - +   + -