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 = () => {
return ["北京", "上海", "广东", "浙江", "湖北"].map((item, index) => {
return (
<View>
<AtTag
onClick={() => {
// Taro.redirectTo({
// url: "/pages/index/index?wxid=1111111",
// });
}}
type="primary"
circle
>
{item}
</AtTag>
</View>
);
});
return ["北京", "上海", "广东", "浙江", "湖北", "云南"].map(
(item, index) => {
return (
<View className="Tags">
<AtTag
className="AtTag"
onClick={() => {
//pass
}}
type="primary"
circle
>
{item}
</AtTag>
</View>
);
}
);
};
return (

View File

@@ -17,7 +17,20 @@
flex-direction: row;
// justify-content: space-between;
align-items: center;
margin-top: 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 {
@@ -69,7 +82,7 @@
font-size: 40px;
// z-index: 99;
}
Image{
Image {
// position: absolute;
z-index: -1;
}