From b194db193b40b54244bb708f32920e8e30654548 Mon Sep 17 00:00:00 2001 From: eric Date: Mon, 12 Dec 2022 22:43:29 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E7=A6=BB=E6=88=91=E6=9C=80=E8=BF=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dist/pages/home/index.wxss | 18 ++++++++++++++++++ src/pages/home/index.scss | 15 +++++++++++++++ src/pages/home/index.tsx | 20 +++++++++++++++++++- 3 files changed, 52 insertions(+), 1 deletion(-) diff --git a/dist/pages/home/index.wxss b/dist/pages/home/index.wxss index 1c75de0..b13ec4e 100644 --- a/dist/pages/home/index.wxss +++ b/dist/pages/home/index.wxss @@ -59,3 +59,21 @@ .Swiper-box .Swiper .SwiperImg { border-radius: 15%; } +.homeLbs { + margin-top: 20rpx; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + -webkit-flex-direction: row; + -ms-flex-direction: row; + flex-direction: row; + -webkit-align-items: center; + -ms-flex-align: center; + align-items: center; +} +.homeLbs .lbsMount { + margin-left: 30rpx; +} +.homeLbs .lbsMount .lbsMountTag { + margin-left: 10rpx; +} diff --git a/src/pages/home/index.scss b/src/pages/home/index.scss index b6e8856..29609f2 100644 --- a/src/pages/home/index.scss +++ b/src/pages/home/index.scss @@ -37,3 +37,18 @@ } } } + +.homeLbs { + margin-top: 20px; + // background-color: yellow; + // padding: 20px; + display: flex; + flex-direction: row; + align-items: center; + .lbsMount{ + margin-left: 30px; + .lbsMountTag{ + margin-left: 10px; + } + } +} diff --git a/src/pages/home/index.tsx b/src/pages/home/index.tsx index 1936922..b6399ce 100644 --- a/src/pages/home/index.tsx +++ b/src/pages/home/index.tsx @@ -300,7 +300,7 @@ const Home = () => { show={show} onClose={() => { setShow(false); - getdetails() + getdetails(); }} > @@ -553,6 +553,24 @@ const Home = () => { 周日 */} + {/* 离我最近 */} + {/* + + 理我最近 + + + + 梧桐山 5km + + + 七娘山 3km + + + 莲花山 2km + + + */} + {/* 截取数组2个活动 */} {details?.length > 0 ? (