feat:打卡记录
This commit is contained in:
2
dist/pages/home/index.wxss
vendored
2
dist/pages/home/index.wxss
vendored
@@ -33,7 +33,7 @@
|
||||
height: 150rpx;
|
||||
}
|
||||
.iconStyle {
|
||||
color: red;
|
||||
color: #95de64;
|
||||
}
|
||||
.topHome {
|
||||
display: -webkit-flex;
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
}
|
||||
|
||||
.iconStyle{
|
||||
color: red;
|
||||
color: #95de64;
|
||||
}
|
||||
|
||||
.topHome{
|
||||
|
||||
@@ -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>
|
||||
);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user