From 4ad4dd9df2b28e1db4defbab2096688d8e74fd78 Mon Sep 17 00:00:00 2001 From: personal827 Date: Wed, 28 Oct 2026 16:06:22 +0800 Subject: [PATCH] =?UTF-8?q?feat(template)=EF=BC=9A=E5=BA=95=E9=83=A8?= =?UTF-8?q?=E5=8A=A0=E9=86=92=E7=9B=AE=E3=80=8C=E6=9F=A5=E7=9C=8B=E6=9B=B4?= =?UTF-8?q?=E5=A4=9A=E6=A8=A1=E6=9D=BF=E3=80=8D=E6=B8=90=E5=8F=98=E5=A4=A7?= =?UTF-8?q?=E6=8C=89=E9=92=AE=EF=BC=88=E5=B8=A6=E5=89=A9=E4=BD=99=E6=95=B0?= =?UTF-8?q?=E4=B8=8E=E2=86=93=E5=8A=A8=E7=94=BB=EF=BC=8C=E5=88=B0=E5=BA=95?= =?UTF-8?q?=E7=BD=AE=E7=81=B0=EF=BC=89=EF=BC=8C=E7=82=B9=E5=87=BB=E7=BF=BB?= =?UTF-8?q?=E4=B8=8B=E4=B8=80=E9=A1=B5=E5=B9=B6=E5=9B=9E=E5=88=97=E8=A1=A8?= =?UTF-8?q?=E9=A1=B6=E9=83=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/template/index.vue | 75 ++++++++++++++++++++++++++++++++++++ 1 file changed, 75 insertions(+) diff --git a/src/views/template/index.vue b/src/views/template/index.vue index e1260c1..131a327 100644 --- a/src/views/template/index.vue +++ b/src/views/template/index.vue @@ -64,6 +64,19 @@ + + +
+ +
+ { page.value = 1; getTmplListHandel(); }; + +// 底部「查看更多」:翻到下一页,并平滑回到列表顶部 +const loadMore = () => { + if (page.value * pageSize.value >= total.value) return; + page.value += 1; + getTmplListHandel().then(() => { + document.getElementById('imgBox')?.scrollIntoView({ behavior: 'smooth', block: 'start' }); + }); +}; + getTmplListHandel(); const toInfo = (info) => { @@ -250,6 +273,58 @@ const toInfo = (info) => { } } +// 底部「查看更多」大按钮:显眼引导,让用户知道下面还有更多模板 +.load-more { + width: 1200px; + margin: 26px auto 6px; + text-align: center; + + .load-more-btn { + min-width: 420px; + height: 56px; + padding: 0 42px; + font-size: 17px; + font-weight: 700; + letter-spacing: 1px; + color: #fff; + border: none; + border-radius: 28px; + background: linear-gradient(135deg, #2d8cf0 0%, #67c6ff 100%); + box-shadow: 0 10px 24px rgba(45, 140, 240, 0.4); + transition: all 0.25s ease; + + &:hover:not(.ivu-btn-disabled) { + transform: translateY(-3px); + box-shadow: 0 14px 30px rgba(45, 140, 240, 0.5); + background: linear-gradient(135deg, #1f7de0 0%, #56bcff 100%); + } + + &.ivu-btn-disabled { + background: #f2f4f7; + color: #9aa5b1; + box-shadow: none; + opacity: 1; + } + + .arrow { + display: inline-block; + margin-left: 8px; + animation: bounce-down 1.2s infinite; + } + } +} + +@keyframes bounce-down { + 0%, + 100% { + transform: translateY(0); + } + + 50% { + transform: translateY(5px); + } +} + // 分页 .page { margin: 20px auto;