feat: search city
This commit is contained in:
parent
276107722e
commit
74579f09e3
@ -1,4 +1,5 @@
|
|||||||
@import '@/styles/variables.less';
|
@import '@/styles/variables.less';
|
||||||
|
@import '@/styles/common.less';
|
||||||
|
|
||||||
.search-city {
|
.search-city {
|
||||||
background: #fff;
|
background: #fff;
|
||||||
@ -140,5 +141,22 @@
|
|||||||
font-size: 28px;
|
font-size: 28px;
|
||||||
line-height: 40px;
|
line-height: 40px;
|
||||||
color: @blHighlightColor;
|
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%);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -134,7 +134,13 @@ export default function SearchCity({ onSelectCity, currentCity = '', forGroup =
|
|||||||
<div className={PREFIX}>
|
<div className={PREFIX}>
|
||||||
<ScrollView scrollY style={{ height: winHeight - offset }} scrollIntoView={touchAnchor}>
|
<ScrollView scrollY style={{ height: winHeight - offset }} scrollIntoView={touchAnchor}>
|
||||||
<div className={`${PREFIX}__search-wrapper ${forGroup ? 'group' : ''}`}>
|
<div className={`${PREFIX}__search-wrapper ${forGroup ? 'group' : ''}`}>
|
||||||
{forGroup && <div className={`${PREFIX}__banner`}>点击城市名称,进本地通告群,免费招主播</div>}
|
{forGroup && (
|
||||||
|
<div className={`${PREFIX}__banner`}>
|
||||||
|
<div className="dash"></div>
|
||||||
|
<div className="text">点击城市名称,进本地通告群,免费招主播</div>
|
||||||
|
<div className="dash"></div>
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
<Search
|
<Search
|
||||||
className={`${PREFIX}__search`}
|
className={`${PREFIX}__search`}
|
||||||
placeholder="输入城市名称"
|
placeholder="输入城市名称"
|
||||||
|
Loading…
Reference in New Issue
Block a user