feat: 打卡记录空态

This commit is contained in:
eric
2022-12-09 12:54:41 +08:00
parent 85d412068f
commit 09750101c6
7 changed files with 31 additions and 15 deletions

View File

@@ -1,11 +1,14 @@
import { Button, View } from "@tarojs/components";
import react, { useEffect, useState } from "react";
import { Image, Uploader } from "@antmjs/vantui";
import { Skeleton } from "@antmjs/vantui";
import "./index.scss";
import Taro from "@tarojs/taro";
import { getTable } from "../../../../utils/index";
import moment from "moment";
import { Empty } from '@antmjs/vantui'
const CheckinDetail = () => {
const [checkArr, setcheckArr] = useState([]);
@@ -88,7 +91,20 @@ const CheckinDetail = () => {
});
};
return <View className="CheckinDetail">{checkCom()}</View>;
return (
<View>
{checkArr?.length > 0 ? (
<View className="CheckinDetail">{checkCom()}</View>
) : (
<View>
{/* 骨架屏 */}
{/* <Skeleton title={true} row={3} /> */}
{/* 空态 */}
<Empty description="" />
</View>
)}
</View>
);
};
export default CheckinDetail;