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;
}
.iconStyle {
color: red;
color: #95de64;
}
.topHome {
display: -webkit-flex;

View File

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

View File

@@ -10,16 +10,6 @@ import moment from "moment";
const CheckinDetail = () => {
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(() => {
// 设置标题
definePageConfig({
@@ -41,7 +31,8 @@ const CheckinDetail = () => {
okFun: (res: any) => {
console.log("res", res);
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 });
@@ -70,7 +61,7 @@ const CheckinDetail = () => {
deletable={false}
disabled={true}
showUpload={false}
previewSize={400} //预览大小
previewSize={350} //预览大小
/>
{/* <Image
width="80%"
@@ -90,10 +81,8 @@ const CheckinDetail = () => {
{/* lbs定位 */}
{item?.location && <View>{item?.location}</View>}
{/* 删除按钮 */}
<View style={{color:'red',marginLeft:'10px'}}></View>
{/* {!item?.isDelete&& <View style={{color:'red',marginLeft:'10px'}}>删除</View>} */}
</View>
</View>
);
});