feat:打卡记录

This commit is contained in:
huxiaoshuang
2022-11-25 15:48:51 +08:00
parent 41d4f4c813
commit 21fb4c4cee
3 changed files with 6 additions and 17 deletions

View File

@@ -33,7 +33,7 @@
height: 150rpx; height: 150rpx;
} }
.iconStyle { .iconStyle {
color: red; color: #95de64;
} }
.topHome { .topHome {
display: -webkit-flex; display: -webkit-flex;

View File

@@ -16,7 +16,7 @@
} }
.iconStyle{ .iconStyle{
color: red; color: #95de64;
} }
.topHome{ .topHome{

View File

@@ -10,16 +10,6 @@ import moment from "moment";
const CheckinDetail = () => { const CheckinDetail = () => {
const [checkArr, setcheckArr] = useState([]); const [checkArr, setcheckArr] = useState([]);
const [value, setValue] = react.useState([
{
url: "https://img.yzcdn.cn/vant/leaf.jpg",
name: "图片1",
},
{
url: "https://img.yzcdn.cn/vant/tree.jpg",
},
]);
useEffect(() => { useEffect(() => {
// 设置标题 // 设置标题
definePageConfig({ definePageConfig({
@@ -41,7 +31,8 @@ const CheckinDetail = () => {
okFun: (res: any) => { okFun: (res: any) => {
console.log("res", res); console.log("res", res);
let _id = res?.data?._id; let _id = res?.data?._id;
setcheckArr(res?.data?.[0]?.checkInArr ?? []); setcheckArr(res?.data?.[0]?.checkInArr?.splice(-4) ?? []); //最近4条记录
// setcheckArr(res?.data?.[0]?.checkInArr ?? []); //全部记录
}, },
}; };
getTable({ ...postData }); getTable({ ...postData });
@@ -70,7 +61,7 @@ const CheckinDetail = () => {
deletable={false} deletable={false}
disabled={true} disabled={true}
showUpload={false} showUpload={false}
previewSize={400} //预览大小 previewSize={350} //预览大小
/> />
{/* <Image {/* <Image
width="80%" width="80%"
@@ -90,10 +81,8 @@ const CheckinDetail = () => {
{/* lbs定位 */} {/* lbs定位 */}
{item?.location && <View>{item?.location}</View>} {item?.location && <View>{item?.location}</View>}
{/* 删除按钮 */} {/* 删除按钮 */}
<View style={{color:'red',marginLeft:'10px'}}>删除</View> {/* {!item?.isDelete&& <View style={{color:'red',marginLeft:'10px'}}>删除</View>} */}
</View> </View>
</View> </View>
); );
}); });