From 695149674f8b76bf841099be7c212e1a9b621f20 Mon Sep 17 00:00:00 2001 From: "34701892@qq.com" <34701892@qq.com> Date: Wed, 17 Dec 2025 10:46:59 +0800 Subject: [PATCH] =?UTF-8?q?refactor(minihome):=20=E9=87=8D=E6=9E=84?= =?UTF-8?q?=E9=A6=96=E9=A1=B5=E5=B8=83=E5=B1=80=E5=B9=B6=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 移除注释代码和未使用的组件 - 重新设计顶部标签栏和搜索框样式 - 简化banner图片数组 - 调整页面结构和间距 --- src/pages/minihome/index.vue | 84 +++++++++++++++++++++--------------- 1 file changed, 50 insertions(+), 34 deletions(-) diff --git a/src/pages/minihome/index.vue b/src/pages/minihome/index.vue index f397f53..5421dad 100644 --- a/src/pages/minihome/index.vue +++ b/src/pages/minihome/index.vue @@ -1,11 +1,7 @@ @@ -103,8 +104,8 @@ import Domestic from "@/components/domesticMini.vue"; const list1 = reactive([ "https://cankao.obs.cn-east-3.myhuaweicloud.com/mini/newmini/banner1.png", - "https://cankao.obs.cn-east-3.myhuaweicloud.com/mini/newmini/banner1.png", - "https://cankao.obs.cn-east-3.myhuaweicloud.com/mini/newmini/banner1.png", + // "https://cankao.obs.cn-east-3.myhuaweicloud.com/mini/newmini/banner1.png", + // "https://cankao.obs.cn-east-3.myhuaweicloud.com/mini/newmini/banner1.png", ]); const newsList = ref([]); @@ -160,10 +161,7 @@ onPageScroll((val) => { }); onShow(() => { - if ( - uni.getStorageSync("homeTabIndex") == 1 || - uni.getStorageSync("homeTabIndex") == 2 - ) { + if (uni.getStorageSync("homeTabIndex") == 1 || uni.getStorageSync("homeTabIndex") == 2) { tabChange(uni.getStorageSync("homeTabIndex")); } else { tabChange(0); @@ -195,7 +193,6 @@ onMounted(async () => { .r_sreach { display: flex; align-items: center; - padding: 0 30rpx; } .logo_text { @@ -207,11 +204,11 @@ onMounted(async () => { display: flex; align-items: center; padding: 0rpx 30rpx; - background-color: #fff; border-radius: 100rpx; - width: 47vw; - height: 68rpx; + width: 27vw; + height: 58rpx; margin-left: 20rpx; + background-color: #f6f6f6; } .sreach_icon { @@ -222,7 +219,6 @@ onMounted(async () => { image { width: 35rpx; height: 35rpx; - margin-top: 5rpx; } } @@ -236,4 +232,24 @@ onMounted(async () => { font-style: normal; } } + +.r_tab { + display: flex; + align-items: center; + height: 80rpx; + padding: 0 30rpx; + background-color: white; + justify-content: space-between; + padding-top: 20rpx; + + .tab_item { + font-family: PingFangSC, PingFang SC; + font-weight: bold; + font-size: 28rpx; + color: #000; + line-height: 33rpx; + text-align: left; + font-style: normal; + } +}