From 428519bd36af8e719e56abbc5f1ba0b37cdadb8c Mon Sep 17 00:00:00 2001 From: zhongshujie <2862698242@qq.com> Date: 星期一, 28 四月 2025 14:49:32 +0800 Subject: [PATCH] 样式调整 --- src/views/achievements/index.vue | 28 +++++++++++++++++++++++++--- 1 files changed, 25 insertions(+), 3 deletions(-) diff --git a/src/views/achievements/index.vue b/src/views/achievements/index.vue index eb71247..c1ab2ea 100644 --- a/src/views/achievements/index.vue +++ b/src/views/achievements/index.vue @@ -160,7 +160,7 @@ </li> <li class="main-title" :title="item.cleanAbstract" v-if="item.abstract"> <span>鎽樿: </span> - <span class="page-main-abstract" v-html="item.abstract"></span> + <span class="page-main-abstract" v-html="item.cleanAbstract"></span> </li> <li class="main-keyword" v-if="item.keyWords && item.keyWords.length > 0"> <span>鍏抽敭璇嶏細</span> @@ -208,6 +208,7 @@ { value: "all", label: "鍏ㄩ儴" }, { value: "Name", label: "鏍囬" }, { value: "author", label: "浣滆��" }, + // { value: "year", label: "骞翠唤" }, { value: "keyWords", label: "鍏抽敭璇�" }, { value: "abstract", label: "鎽樿" }, { value: "source", label: "鏉ユ簮" }, @@ -669,7 +670,21 @@ this.resultList = res.datas this.total = res.total; this.loading = false; + }).catch((error) => { + // 鎵撳嵃閿欒淇℃伅 + console.error("鑾峰彇鏁版嵁澶辫触:", error); }); + + // 婊氬姩鍒伴〉闈㈤《閮� + this.$nextTick(() => { + const pageMain = document.querySelector('.page-main-father'); + if (pageMain) { + pageMain.scrollTo({ + top: 0, + behavior: 'smooth' + }); + } + }); }, // 澶勭悊椤电爜鍙樺寲 handleCurrentChange(newPage) { @@ -1096,6 +1111,10 @@ color: #937950; margin-bottom: 5px; + p { + overflow: hidden; + } + ::v-deep .el-button { font-size: 14px; background-color: transparent; @@ -1145,7 +1164,7 @@ border-left: 1px solid #2c2c2c; } - margin-bottom: 10px; + margin-bottom: 15px; } .main-author { @@ -1166,7 +1185,7 @@ overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; - -webkit-line-clamp: 4; + -webkit-line-clamp: 3; span { font-family: Source Han Sans; @@ -1247,6 +1266,9 @@ border-radius: 5px; border: 1px solid #cccccc; } +:deep.el-pagination.is-background .el-pager li:not(.disabled):hover{ + color: #937950 +} </style> <style> -- Gitblit v1.9.1