feat: 新建componments文件夹

This commit is contained in:
hackrobot
2024-03-19 19:39:50 +08:00
parent f75a861cc1
commit f96694adb2
4 changed files with 25 additions and 23 deletions

View File

View File

View File

@@ -57,36 +57,36 @@ export default function Index() {
customCom: "test", customCom: "test",
}, },
// 双数插入 // 双数插入
{ // {
cityName: "上海", // cityName: "上海",
imagePath: shanghai, // imagePath: shanghai,
isCustom: true, // isCustom: true,
customCom: <CustomTest />, // customCom: <CustomTest />,
}, // },
{ {
cityName: "上海", cityName: "上海",
imagePath: shanghai, imagePath: shanghai,
isCustom: false, isCustom: false,
customCom: "test", customCom: "test",
}, },
{ // {
cityName: "上海", // cityName: "上海",
imagePath: shanghai, // imagePath: shanghai,
isCustom: true, // isCustom: true,
customCom: <CustomTest />, // customCom: <CustomTest />,
}, // },
{ {
cityName: "广州", cityName: "广州",
imagePath: guangzhou, imagePath: guangzhou,
isCustom: false, isCustom: false,
customCom: "test", customCom: "test",
}, },
{ // {
cityName: "上海", // cityName: "上海",
imagePath: shanghai, // imagePath: shanghai,
isCustom: true, // isCustom: true,
customCom: <CustomTest />, // customCom: <CustomTest />,
}, // },
{ {
cityName: "深圳", cityName: "深圳",
imagePath: shenzhen, imagePath: shenzhen,
@@ -123,7 +123,7 @@ export default function Index() {
}; };
const ProvinceTag = () => { const ProvinceTag = () => {
return ["北京", "上海", "广州", "深圳", "武汉"].map((item, index) => { return ["北京", "上海", "广东", "浙江", "湖北"].map((item, index) => {
return ( return (
<View> <View>
<AtTag type="primary" circle> <AtTag type="primary" circle>
@@ -143,7 +143,9 @@ export default function Index() {
<AtAvatar circle image={touxiang}></AtAvatar> <AtAvatar circle image={touxiang}></AtAvatar>
{/* color="#F00" */} {/* color="#F00" */}
<AtIcon value="chevron-down" size="30"></AtIcon> <AtIcon value="chevron-down" size="30"></AtIcon>
<AtButton
{/* <AtButton
type="primary" type="primary"
onClick={() => { onClick={() => {
Taro.request({ Taro.request({
@@ -163,7 +165,7 @@ export default function Index() {
}} }}
> >
发起请求 发起请求
</AtButton> </AtButton> */}
</View> </View>
{/* 省份标签 */} {/* 省份标签 */}

View File

@@ -2,7 +2,7 @@
.indexHome { .indexHome {
padding-left: 20px; padding-left: 20px;
padding-right: 20px; padding-right: 20px;
background-color: aquamarine; // background-color: aquamarine;
.indexHeader { .indexHeader {
margin-top: 10px; margin-top: 10px;
display: flex; display: flex;
@@ -32,7 +32,7 @@
height: 250px; height: 250px;
display: flex; display: flex;
flex-direction: row; flex-direction: row;
background-color: aqua; // background-color: aqua;
// justify-content: space-between; // justify-content: space-between;
// align-items: center; // align-items: center;
.homeCard { .homeCard {