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