修复bug

This commit is contained in:
李瑞
2025-10-12 23:49:02 +08:00
parent 35dfc7ffc8
commit 12600ebdfb
12 changed files with 45 additions and 33 deletions

View File

@@ -3,7 +3,7 @@
flex-direction: column;
align-items: center;
justify-content: center;
min-height: 400px;
height: calc(100vh - 94px - 72px - 110px);
.listLoadErrorImg {
width: 154px;

View File

@@ -1,4 +1,4 @@
import { Image, View, Text, Button } from "@tarojs/components";
import { Image, View, Text } from "@tarojs/components";
import styles from "./index.module.scss";
import img from "@/config/images";
@@ -24,10 +24,10 @@ const ListLoadError = (props: IProps) => {
/>
{text && <Text className={styles.listLoadErrorText}>{text}</Text>}
{reload && (
<Button className={styles.listLoadErrorBtn} onClick={handleReload}>
<View className={styles.listLoadErrorBtn} onClick={handleReload}>
<Image src={btnImg ? img[btnImg] : img?.ICON_LIST_RELOAD} className={styles.reloadIcon} />
{btnText ? " " + btnText : "重试"}
</Button>
</View>
)}
</View>
);