钱包、下载记录添加空状态

This commit is contained in:
2025-10-19 18:46:12 +08:00
parent df26f89086
commit 51e103cebc
4 changed files with 13 additions and 9 deletions

View File

@@ -5,6 +5,7 @@ import "./index.scss";
import httpService from "@/services/httpService";
import Taro, { useReachBottom } from "@tarojs/taro";
import img from "@/config/images";
import { EmptyState } from "@/components";
interface BillRecord {
id: number;
@@ -81,7 +82,7 @@ const DownloadBillRecords: React.FC = () => {
</View>
</View>
<View className="records-container">
{records.map((record) => (
{records.length ? records.map((record) => (
<View className="record-item" key={record.id}>
<View className="title-text">{record.file_name}</View>
<View className="info-item">
@@ -97,7 +98,7 @@ const DownloadBillRecords: React.FC = () => {
<Text className="btn"></Text>
</View>
</View>
))}
)) : <EmptyState text="暂无数据" />}
</View>
<View className="tips">
7

View File

@@ -2,7 +2,7 @@ import React, { useEffect, useState } from "react";
import { View, Text, Input, Button, Image } from "@tarojs/components";
import Taro, { useDidShow, useReachBottom } from "@tarojs/taro";
import "./index.scss";
import { CommonPopup } from "@/components";
import { CommonPopup, EmptyState } from "@/components";
import httpService from "@/services/httpService";
import { withAuth } from "@/components";
import { PopupPicker } from "@/components/Picker/index";
@@ -603,9 +603,10 @@ const WalletPage: React.FC = () => {
);
})
) : (
<View className="empty_state">
<Text className="empty_text"></Text>
</View>
// <View className="empty_state">
// <Text className="empty_text">暂无交易记录</Text>
// </View>
<EmptyState text="钱包空空如也,组织球局赚点球费吧" styles={{padding: "unset"}} />
)}
</View>
</View>