提交 b6ea9b5b 作者: 毛细亚

优化summaryList.vue代码格式及性能

上级 75b4e03e
<template> <template>
<div class="summaryListContainer "> <div class="summaryListContainer ">
<div <div v-scroll:50="requestDataList" v-loading="loading" class="messageDetailsScroll">
v-scroll:50="requestDataList"
v-loading="loading"
class="messageDetailsScroll"
>
<div v-if="messageList.length > 0"> <div v-if="messageList.length > 0">
<div <div v-for="(item, index) in messageList" :key="index" class="messageListItem">
v-for="(item, index) in messageList"
:key="index"
class="messageListItem"
>
<div class="itemTop"> <div class="itemTop">
{{ item.date }} {{ item.date }}
</div> </div>
...@@ -24,13 +16,13 @@ ...@@ -24,13 +16,13 @@
</div> </div>
</div> </div>
</div> </div>
</template> </template>
<script> <script>
import { mapMutations, mapState } from 'vuex' import { mapMutations, mapState } from 'vuex'
import { corp_follow_up_summary_index } from '@/api/works' import { corp_follow_up_summary_index } from '@/api/works'
import { throttle } from '@/utils' import { throttle } from '@/utils'
import noContent from '@/components/noContent.vue' import noContent from '@/components/noContent.vue'
export default { export default {
components: { components: {
noContent noContent
}, },
...@@ -101,26 +93,29 @@ import noContent from '@/components/noContent.vue' ...@@ -101,26 +93,29 @@ import noContent from '@/components/noContent.vue'
} }
}, 500) }, 500)
} }
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.summaryListContainer { .summaryListContainer {
width: 100%; width: 100%;
height: 100%; height: 100%;
background: #fff; background: #fff;
position: relative; position: relative;
overflow: hidden; overflow: hidden;
.messageDetailsScroll{
.messageDetailsScroll {
width: 100%; width: 100%;
height: 100%; height: 100%;
overflow: auto; overflow: auto;
overflow-x: hidden; overflow-x: hidden;
padding-bottom: 50px; padding-bottom: 50px;
} }
.messageListItem { .messageListItem {
width: 100%; width: 100%;
height: auto; height: auto;
margin-bottom: 10px; margin-bottom: 10px;
.itemTop { .itemTop {
font-family: PingFang SC, PingFang SC; font-family: PingFang SC, PingFang SC;
font-weight: 400; font-weight: 400;
...@@ -132,6 +127,7 @@ import noContent from '@/components/noContent.vue' ...@@ -132,6 +127,7 @@ import noContent from '@/components/noContent.vue'
text-transform: none; text-transform: none;
margin-bottom: 5px; margin-bottom: 5px;
} }
.itemCenter { .itemCenter {
width: 100%; width: 100%;
background: #F9FAFF; background: #F9FAFF;
...@@ -149,10 +145,10 @@ import noContent from '@/components/noContent.vue' ...@@ -149,10 +145,10 @@ import noContent from '@/components/noContent.vue'
word-break: break-all word-break: break-all
} }
} }
.no-content-main{
.no-content-main {
width: 320px; width: 320px;
margin: 0 auto; margin: 0 auto;
} }
} }
</style> </style>
\ No newline at end of file
\ No newline at end of file
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论