style: 省份css

This commit is contained in:
hackrobot
2024-03-25 03:00:58 +08:00
parent 6bc38e01b0
commit a31346f404
2 changed files with 33 additions and 18 deletions

View File

@@ -240,23 +240,25 @@ export default function Index() {
}; };
const ProvinceTag = () => { const ProvinceTag = () => {
return ["北京", "上海", "广东", "浙江", "湖北"].map((item, index) => {
return ( return ["北京", "上海", "广东", "浙江", "湖北", "云南"].map(
<View> (item, index) => {
<AtTag return (
onClick={() => { <View className="Tags">
// Taro.redirectTo({ <AtTag
// url: "/pages/index/index?wxid=1111111", className="AtTag"
// }); onClick={() => {
}} //pass
type="primary" }}
circle type="primary"
> circle
{item} >
</AtTag> {item}
</View> </AtTag>
); </View>
}); );
}
);
}; };
return ( return (

View File

@@ -17,7 +17,20 @@
flex-direction: row; flex-direction: row;
// justify-content: space-between; // justify-content: space-between;
align-items: center; align-items: center;
margin-top: 10px;
margin-bottom: 10px; margin-bottom: 10px;
flex-wrap: wrap;
// background-color: red;
.Tags {
display: flex;
flex-direction: row;
flex-wrap: wrap;
// background-color: yellow;
.AtTag {
margin-right: 10px;
margin-bottom: 10px;
}
}
} }
.homeCards { .homeCards {
@@ -69,7 +82,7 @@
font-size: 40px; font-size: 40px;
// z-index: 99; // z-index: 99;
} }
Image{ Image {
// position: absolute; // position: absolute;
z-index: -1; z-index: -1;
} }