feat: 更新头像
This commit is contained in:
@@ -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>
|
||||
);
|
||||
|
||||
@@ -2,4 +2,7 @@
|
||||
// background-color: yellow;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
.peak_Sidebar{
|
||||
width: 150px;
|
||||
}
|
||||
}
|
||||
@@ -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>
|
||||
|
||||
{/* 富文本 */}
|
||||
|
||||
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user