diff --git a/src/assets/scss/modules/index.scss b/src/assets/scss/modules/index.scss index ee59af828..c3ff9044a 100644 --- a/src/assets/scss/modules/index.scss +++ b/src/assets/scss/modules/index.scss @@ -323,6 +323,16 @@ border-radius: 2px; overflow: hidden; + .empty { + text-align: center; + color: #999; + img { + display: block; + width: 120px; + margin: 100px auto 20px; + } + } + .item { padding: 16px 0 12px; border-bottom: 1px dashed #f0f5fa; diff --git a/src/views/modules/home/index.vue b/src/views/modules/home/index.vue index 87fb3a3e0..0e9e0a6e6 100644 --- a/src/views/modules/home/index.vue +++ b/src/views/modules/home/index.vue @@ -1,215 +1,282 @@ diff --git a/src/views/modules/home/notice.vue b/src/views/modules/home/notice.vue index 48f12419a..0cc1a9f72 100644 --- a/src/views/modules/home/notice.vue +++ b/src/views/modules/home/notice.vue @@ -1,50 +1,59 @@ @@ -142,82 +153,93 @@ export default { @import "~@/assets/scss/c/function.scss"; .m-tx { - position: relative; - margin: 10px 6px; - padding: 12px 20px; - background: #ffffff; - box-shadow: 0px 6px 16px 0px rgba(0, 0, 0, 0.08), - 0px 3px 6px -4px rgba(0, 0, 0, 0.12); - border-radius: 2px; - - .cnt { - box-sizing: border-box; - border-radius: 2px; - overflow: hidden; - padding: 0 12px; - - .z-readed { - opacity: 0.5; - } - - .item { - display: flex; - align-items: center; - padding: 16px 0 12px; - border-bottom: 1px dashed #f0f5fa; - &:last-child { - border-bottom: none; - } - - .item-tag { - display: block; - margin-right: 15px; - width: 24px; - height: 24px; - } - .item-title { - // @include toe; - width: 60%; - margin-right: 100px; - font-size: 14px; - font-family: PingFangSC-Regular, PingFang SC; - font-weight: 400; - color: rgba(0, 0, 0, 0.85); - line-height: 22px; - } - .item-date { - font-size: 12px; - font-family: PingFangSC-Regular, PingFang SC; - font-weight: 400; - color: rgba(0, 0, 0, 0.45); - line-height: 17px; - } - } - } - .btn-clear { - position: absolute; - top: 14px; - right: 15px; - width: 32px; - height: 12px; - width: 75px; - height: 25px; - background: linear-gradient(0deg, #db3b3b 1%, #ff8080 100%); - border-radius: 3px; - font-size: 14px; - font-weight: 500; - color: #ffffff; - line-height: 25px; - text-align: center; - } + position: relative; + margin: 10px 6px; + padding: 12px 20px; + background: #ffffff; + box-shadow: 0px 6px 16px 0px rgba(0, 0, 0, 0.08), + 0px 3px 6px -4px rgba(0, 0, 0, 0.12); + border-radius: 2px; + + .cnt { + box-sizing: border-box; + border-radius: 2px; + overflow: hidden; + padding: 0 12px; + + .empty { + margin: 100px 0; + text-align: center; + color: #999; + img { + display: block; + width: 120px; + margin: 20px auto; + } + } + + .z-readed { + opacity: 0.5; + } + + .item { + display: flex; + align-items: center; + padding: 16px 0 12px; + border-bottom: 1px dashed #f0f5fa; + &:last-child { + border-bottom: none; + } + + .item-tag { + display: block; + margin-right: 15px; + width: 24px; + height: 24px; + } + .item-title { + // @include toe; + width: 60%; + margin-right: 100px; + font-size: 14px; + font-family: PingFangSC-Regular, PingFang SC; + font-weight: 400; + color: rgba(0, 0, 0, 0.85); + line-height: 22px; + } + .item-date { + font-size: 12px; + font-family: PingFangSC-Regular, PingFang SC; + font-weight: 400; + color: rgba(0, 0, 0, 0.45); + line-height: 17px; + } + } + } + .btn-clear { + position: absolute; + top: 14px; + right: 15px; + width: 32px; + height: 12px; + width: 75px; + height: 25px; + background: linear-gradient(0deg, #db3b3b 1%, #ff8080 100%); + border-radius: 3px; + font-size: 14px; + font-weight: 500; + color: #ffffff; + line-height: 25px; + text-align: center; + } } /deep/ .el-tabs__nav-wrap::after { - height: 1px; - background-color: #f0f5fa; + height: 1px; + background-color: #f0f5fa; } /deep/ .el-pagination__total { - // float: left; + // float: left; }