feat: 更新头像

This commit is contained in:
eric
2022-11-13 19:38:41 +08:00
parent 7c7196345e
commit c9a21330bd
16 changed files with 115 additions and 50 deletions

View File

@@ -7,6 +7,7 @@ import {
GridItem,
Row,
Tag,
Toast,
} from "@antmjs/vantui";
import { View } from "@tarojs/components";
import React, { useCallback, useEffect } from "react";
@@ -29,14 +30,13 @@ const Home = () => {
];
useEffect(() => {
let objParams={
let objParams = {
tableName: "test",
id: "80516fb66370bcf300b8f43c5f4dd52b",
okFun: (res) => {
console.log("res", res);
},
}
};
getTableid(objParams);
}, []);
@@ -82,6 +82,16 @@ const Home = () => {
{/* 模块 */}
<Grid>
<GridItem
icon="photo-o"
text="打卡"
onClick={() => {
Toast.fail({
message: "暂未开放",
selector: "#vanToast-demo2",
});
}}
/>
<GridItem
icon="photo-o"
text="十峰"
@@ -102,8 +112,17 @@ const Home = () => {
});
}}
/>
<GridItem icon="photo-o" text="活动" />
<GridItem icon="photo-o" text="活动" />
<GridItem
icon="photo-o"
text="招募"
onClick={() => {
Toast.fail({
message: "暂未开放",
selector: "#vanToast-demo2",
});
}}
/>
</Grid>
{/* 分割线 */}
@@ -140,6 +159,8 @@ const Home = () => {
<TabbarItem icon="setting-o">我的</TabbarItem>
</Tabbar> */}
<Toast id="vanToast-demo2" />
<TabbarCom active={0} />
</View>
);

View File

@@ -2,4 +2,7 @@
// background-color: yellow;
display: flex;
flex-direction: row;
.peak_Sidebar{
width: 150px;
}
}

View File

@@ -40,17 +40,9 @@ const mountainPeak = () => {
return (
<View className={`peakContent`}>
{/* 边栏 */}
<Sidebar activeKey={0}>
<SidebarItem title="梧桐山" />
<SidebarItem title="梧桐山" />
<SidebarItem title="梧桐山" />
<SidebarItem title="梧桐山" />
<SidebarItem title="梧桐山" />
<SidebarItem title="梧桐山" />
<SidebarItem title="梧桐山" />
<SidebarItem title="梧桐山" />
<SidebarItem title="梧桐山" />
<SidebarItem title="梧桐山" />
<Sidebar activeKey={0} className={`peak_Sidebar`}>
<SidebarItem title="梧桐山" className={`peak_Sidebar`}/>
<SidebarItem title="梧桐山" className={`peak_Sidebar`} />
</Sidebar>
{/* 富文本 */}

View File

@@ -25,12 +25,14 @@ const my = (props: any) => {
return (
<View>
{/* <View className={styles?.myContent}> */}
{/* 头像 */}
<View className={`myContent`}>
<Image
round
width="100px"
height="100px"
src="https://img.yzcdn.cn/vant/cat.jpeg"
src="cloud://cloud1-5g5xrgza12a0dd6d.636c-cloud1-5g5xrgza12a0dd6d-1253665791/images/images-2.jpg"
/>
</View>