feat: 我的页面

This commit is contained in:
eric
2022-11-20 10:17:42 +08:00
parent 0933d2a614
commit 83dd1cbafb
10 changed files with 56 additions and 19 deletions

View File

@@ -20,3 +20,12 @@
// background-color: yellow;
}
}
.imagesArr{
display: flex;
flex-direction: row;
padding: 10px;
align-items: center;
// justify-content: space-between;
}

View File

@@ -43,7 +43,7 @@ const details = () => {
<View>{`活动标题活动标题活动标题活动标题活动标题活动标题活动标题`}</View>
<Image
width="100%"
height="120px"
height="180px"
fit="cover"
src="https://img.yzcdn.cn/vant/cat.jpeg"
/>
@@ -55,7 +55,7 @@ const details = () => {
linkType="navigateTo"
url="/pages/dashboard/index"
/>
<Cell
<Cell
isLink
icon="location"
title="广东省深圳市龙华区你好"
@@ -65,16 +65,21 @@ const details = () => {
</View>
{/* 头像列表 */}
{[1, 2, 3, 4].map((item: any) => {
return (
<Image
round
width="30px"
height="30px"
src="https://img.yzcdn.cn/vant/cat.jpeg"
/>
);
})}
<View className="imagesArr">
{[1, 2, 3, 4].map((item: any) => {
return (
<Image
round
width="30px"
height="30px"
src="https://img.yzcdn.cn/vant/cat.jpeg"
style={{marginRight:'5px'}}
/>
);
})}
</View>
</View>
{/* 富文本 */}
<View onClick={() => {}} className="RichText">

View File

@@ -157,7 +157,8 @@ const Home = () => {
<Divider />
</View> */}
{[1, 2,3,4].map((item: any) => {
{/* 截取数组2个活动 */}
{[1, 2, 3, 4].splice(0, 2).map((item: any) => {
return (
<View
onClick={() => {

View File

@@ -8,4 +8,8 @@
flex-direction: row;
align-items: center;
justify-content: center;
}
.cellArr{
margin-top: 20px;
}

View File

@@ -55,11 +55,12 @@ const my = (props: any) => {
</Tabs>
</View>
<View>
<Cell title="个人资料" isLink />
<View className="cellArr">
<Cell icon='manager' title="个人资料" isLink />
{/* <Cell title="收藏" isLink /> */}
<Cell
title="微信客服"
icon='wechat'
isLink
value=""
onClick={() => {
@@ -72,7 +73,8 @@ const my = (props: any) => {
});
}}
/>
{/* <Cell title="单元格" isLink value="内容" arrowDirection="down" /> */}
<Cell icon='friends' title="关于我们" isLink />
<Cell icon='setting' title="版本日志" isLink />
</View>
<TabbarCom active={2} />