feat: 打卡记录样式

This commit is contained in:
huxiaoshuang
2022-11-25 15:37:39 +08:00
parent 954f781cf9
commit 41d4f4c813
4 changed files with 78 additions and 63 deletions

File diff suppressed because one or more lines are too long

View File

@@ -8,9 +8,20 @@
margin-top: 40px; margin-top: 40px;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
.checkBottom{
width: 100%;
// background-color: yellow;
display: flex;
flex-direction: row;
align-items: center;
} }
} }
}
--uploader-size{ --uploader-size{
// size: 260px; // size: 260px;
} }

View File

@@ -70,7 +70,7 @@ const CheckinDetail = () => {
deletable={false} deletable={false}
disabled={true} disabled={true}
showUpload={false} showUpload={false}
previewSize={300} //预览大小 previewSize={400} //预览大小
/> />
{/* <Image {/* <Image
width="80%" width="80%"
@@ -80,7 +80,7 @@ const CheckinDetail = () => {
/> */} /> */}
</View> </View>
<View> <View className="checkBottom">
{/* 打卡日期 */} {/* 打卡日期 */}
{item?.checkTime && ( {item?.checkTime && (
<View> <View>
@@ -90,8 +90,10 @@ const CheckinDetail = () => {
{/* lbs定位 */} {/* lbs定位 */}
{item?.location && <View>{item?.location}</View>} {item?.location && <View>{item?.location}</View>}
{/* 删除按钮 */} {/* 删除按钮 */}
<View><Button>删除</Button></View> <View style={{color:'red',marginLeft:'10px'}}>删除</View>
</View> </View>
</View> </View>
); );
}); });

View File

@@ -203,6 +203,29 @@ const my = (props: any) => {
</Tabs> </Tabs>
</View> */} </View> */}
<View className="cellArr">
{type !== "people" ||
(true && (
<Cell
icon="manager"
title="打卡记录"
isLink
onClick={() => {
if (isin) {
// 跳转到目的页面,打开新页面
Taro.navigateTo({
url: "/pages/my/components/CheckinDetail/index",
});
} else {
Toast.fail({
message: "请先登录",
selector: "#vanToast-demo2",
});
}
}}
/>
))}
<Cell <Cell
icon="star" icon="star"
title="我参与的" title="我参与的"
@@ -241,27 +264,6 @@ const my = (props: any) => {
}} }}
/> />
<View className="cellArr">
{type !== "people" ||true && (
<Cell
icon="manager"
title="打卡记录"
isLink
onClick={() => {
if (isin) {
// 跳转到目的页面,打开新页面
Taro.navigateTo({
url: "/pages/my/components/CheckinDetail/index",
});
} else {
Toast.fail({
message: "请先登录",
selector: "#vanToast-demo2",
});
}
}}
/>
)}
{/* <Cell icon="manager" title="个人资料" isLink /> */} {/* <Cell icon="manager" title="个人资料" isLink /> */}
{/* 个人客服 */} {/* 个人客服 */}