From 74579f09e32d3e1eabc301f6900ccec5f3f42de8 Mon Sep 17 00:00:00 2001 From: "eleanor.mao" Date: Tue, 20 May 2025 23:19:46 +0800 Subject: [PATCH] feat: search city --- src/components/search-city/index.less | 18 ++++++++++++++++++ src/components/search-city/index.tsx | 8 +++++++- 2 files changed, 25 insertions(+), 1 deletion(-) diff --git a/src/components/search-city/index.less b/src/components/search-city/index.less index caeedd0..f028d72 100644 --- a/src/components/search-city/index.less +++ b/src/components/search-city/index.less @@ -1,4 +1,5 @@ @import '@/styles/variables.less'; +@import '@/styles/common.less'; .search-city { background: #fff; @@ -140,5 +141,22 @@ font-size: 28px; line-height: 40px; color: @blHighlightColor; + .flex-row(); + + .text { + padding: 0 12px; + flex: 0 1 auto; + } + .dash { + height: 1px; + flex: 1; + + &:first-child { + background: linear-gradient(270deg, #6d3df5 0%, #f7f4ff 100%); + } + &:last-child { + background: linear-gradient(90deg, #6d3df5 0%, #f7f4ff 100%); + } + } } } diff --git a/src/components/search-city/index.tsx b/src/components/search-city/index.tsx index aacef38..3463812 100644 --- a/src/components/search-city/index.tsx +++ b/src/components/search-city/index.tsx @@ -134,7 +134,13 @@ export default function SearchCity({ onSelectCity, currentCity = '', forGroup =
- {forGroup &&
点击城市名称,进本地通告群,免费招主播
} + {forGroup && ( +
+
+
点击城市名称,进本地通告群,免费招主播
+
+
+ )}