Commit c8863fdf authored by xulili's avatar xulili

修改时间显示

parent 3530561f
...@@ -11,11 +11,11 @@ ...@@ -11,11 +11,11 @@
</p> </p>
</div> </div>
<div class="message-panel-box-right"> <div class="message-panel-box-right">
<span>{{item.createDate}}</span> <span>{{item.create_date | filterTime}}</span>
</div> </div>
</div> </div>
</div> </div>
<div class="btn-plus" @click="handleAddMessage"> <span>+</span> </div> <div class="btn-plus" @click="handleAddMessage"><span>+</span></div>
</div> </div>
</template> </template>
...@@ -31,9 +31,15 @@ ...@@ -31,9 +31,15 @@
} }
}, },
mounted() { mounted() {
this.userId = sessionStorage.getItem('userId') // this.userId = sessionStorage.getItem('userId')
this.userId = "ManGuanEr"
this.handleGetMessageByClerkId() this.handleGetMessageByClerkId()
}, },
filters: {
filterTime(val) {
return val.replace(',', ' ')
}
},
methods: { methods: {
handleGetMessageByClerkId() { handleGetMessageByClerkId() {
let _this = this let _this = this
...@@ -51,7 +57,7 @@ ...@@ -51,7 +57,7 @@
}) })
}, },
handleAddMessage(){ handleAddMessage() {
this.$router.push('/addMessage') this.$router.push('/addMessage')
} }
} }
...@@ -59,22 +65,22 @@ ...@@ -59,22 +65,22 @@
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">
.message-container{ .message-container {
height: 100%; height: 100%;
padding: 20px 10px 20px 20px; padding: 20px 10px 20px 20px;
.message-panel-box{ .message-panel-box {
font-size: 14px; font-size: 14px;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
padding: 5px 0 ; padding: 5px 0;
.message-panel-box-left{ .message-panel-box-left {
width: calc(100% - 135px); width: calc(100% - 155px);
.message-title,.message-content{ .message-title, .message-content {
width: 100%; width: 100%;
overflow: hidden; overflow: hidden;
} }
.message-title{ .message-title {
font-size: 16px; font-size: 16px;
font-weight: 500; font-weight: 500;
color: black; color: black;
...@@ -82,7 +88,7 @@ ...@@ -82,7 +88,7 @@
text-overflow: ellipsis; text-overflow: ellipsis;
white-space: nowrap; white-space: nowrap;
} }
.message-content{ .message-content {
font-size: 12px; font-size: 12px;
color: #2d2a2a; color: #2d2a2a;
display: -webkit-box; display: -webkit-box;
...@@ -90,14 +96,15 @@ ...@@ -90,14 +96,15 @@
-webkit-line-clamp: 2; -webkit-line-clamp: 2;
} }
} }
.message-panel-box-right{ .message-panel-box-right {
color: #ccc; color: #908888;
white-space: nowrap;
} }
&:not(last-child){ &:not(last-child) {
border-bottom: 1px solid #f3eaea; border-bottom: 1px solid #f3eaea;
} }
} }
.btn-plus{ .btn-plus {
position: fixed; position: fixed;
right: 30px; right: 30px;
bottom: 30px; bottom: 30px;
...@@ -111,5 +118,5 @@ ...@@ -111,5 +118,5 @@
color: green; color: green;
line-height: 1; line-height: 1;
} }
} }
</style> </style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment