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

View File

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