From cabde71e621d0c72e582ec5c5b96553d639bbd05 Mon Sep 17 00:00:00 2001 From: zzp <34701892@qq.com> Date: Fri, 12 Sep 2025 10:10:07 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E9=A1=B5=E9=9D=A2=E5=B8=83=E5=B1=80):=20?= =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=90=9C=E7=B4=A2=E9=A1=B5=E9=9D=A2=E5=92=8C?= =?UTF-8?q?=E5=AE=9E=E6=97=B6=E8=B5=84=E8=AE=AF=E9=A1=B5=E9=9D=A2=E7=9A=84?= =?UTF-8?q?=E5=B8=83=E5=B1=80=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在搜索页面添加返回按钮并调整输入框样式 - 重新设计实时资讯页面的搜索区域布局 - 新增index2.vue组件用于文章列表展示 - 调整多个页面的间距和边距样式 --- src/components/articleList/index2.vue | 320 ++++++++++++++++++++++++++ src/pages/realtimeInfo/index.vue | 33 +-- src/pages/sreachReq/index.vue | 23 +- 3 files changed, 351 insertions(+), 25 deletions(-) create mode 100644 src/components/articleList/index2.vue diff --git a/src/components/articleList/index2.vue b/src/components/articleList/index2.vue new file mode 100644 index 0000000..ad042da --- /dev/null +++ b/src/components/articleList/index2.vue @@ -0,0 +1,320 @@ + + + + + diff --git a/src/pages/realtimeInfo/index.vue b/src/pages/realtimeInfo/index.vue index c9c4be5..008bf80 100644 --- a/src/pages/realtimeInfo/index.vue +++ b/src/pages/realtimeInfo/index.vue @@ -79,21 +79,21 @@ - - - - - - - - - - - 搜索资讯 + + + + + + + + + + + 搜索资讯 + - @@ -468,7 +468,7 @@ onMounted(async () => { // top: 10px; // left: 0; // z-index: 9999; - background: url("https://cankao.obs.cn-east-3.myhuaweicloud.com/mini/newmini/top_bg.png"); + // background: url("https://cankao.obs.cn-east-3.myhuaweicloud.com/mini/newmini/top_bg.png"); } .logo_text { @@ -482,9 +482,12 @@ onMounted(async () => { padding: 0rpx 30rpx; background-color: #fff; border-radius: 100rpx; - width: 80vw; - height: 68rpx; + // width: 90vw; + height: 63rpx; margin-left: 20rpx; + border: 1px solid #e7e7e7; + margin-top: 5rpx; + // box-shadow: 0 0 10rpx rgba(97, 97, 97, 0.1); } .sreach_icon { diff --git a/src/pages/sreachReq/index.vue b/src/pages/sreachReq/index.vue index c5ed0f4..5175721 100644 --- a/src/pages/sreachReq/index.vue +++ b/src/pages/sreachReq/index.vue @@ -20,7 +20,9 @@ - + + + @@ -68,7 +70,7 @@ import { ref, watch } from "vue"; import { Session } from "@/utils/storage"; import { onShow, onLoad } from "@dcloudio/uni-app"; -import List from "@/components/articleList/index.vue"; +import List from "@/components/articleList/index2.vue"; import { searchNews, unlockColumn } from "@/api"; import { extractText, formatTimestamp } from "@/utils/util"; import LoginPopup from "@/components/loginPopup/index.vue"; @@ -246,7 +248,7 @@ onShow(() => { display: flex; align-items: center; // height: 60rpx; - gap: 20rpx; + // gap: 20rpx; box-sizing: border-box; padding: 12rpx 0; position: sticky; @@ -262,6 +264,7 @@ onShow(() => { border-radius: 20rpx; padding: 0 20rpx; border-radius: 100rpx; + margin-left: 10rpx; } :deep(.u-input) { @@ -306,7 +309,11 @@ onShow(() => { color: #828b92; } } - +.back_icon { + width: 50rpx; + height: 50rpx; + margin-left: 10rpx; +} .custom-bav-bar { width: 100%; height: 88rpx; @@ -316,11 +323,6 @@ onShow(() => { justify-content: center; position: relative; - .back_icon { - width: 40rpx; - height: 40rpx; - } - .logo_icon { width: 168rpx; height: 40rpx; @@ -351,5 +353,6 @@ onShow(() => { line-height: 45rpx; text-align: right; font-style: normal; + margin-left: 50rpx; }