feat(credit): 重构订单管理页面并优化公司模块功能
- 新增 company/add 和 company/edit 页面路由配置 - 移除 Banner.tsx 中的调试日志 - 从 find.tsx 中移除未使用的 total 状态变量 - 更新 credit/order/index.config.ts 页面标题为订单管理并添加自定义导航栏样式 - 从 credit/company/index.tsx 中移除内联添加客户的对话框相关代码 - 将添加客户按钮跳转到独立的 /credit/company/add 页面 - 为公司列表项添加编辑功能点击事件,可跳转至 /credit/company/edit?id=xx - 优化信用订单页面结构,替换为新的订单管理界面 - 实现订单搜索、筛选、日期范围选择等功能 - 添加订单统计信息展示(总数、本金、利息) - 实现模拟数据加载和分页功能
This commit is contained in:
@@ -56,7 +56,6 @@ const Find = () => {
|
||||
const [storeList, setStoreList] = useState<ShopStoreView[]>([])
|
||||
const [loading, setLoading] = useState(false)
|
||||
const [hasMore, setHasMore] = useState(true)
|
||||
const [total, setTotal] = useState(0)
|
||||
const [userLngLat, setUserLngLat] = useState<LngLat | null>(null)
|
||||
|
||||
const pageRef = useRef(1)
|
||||
@@ -86,7 +85,6 @@ const Find = () => {
|
||||
latestListRef.current = []
|
||||
setStoreList([])
|
||||
setHasMore(true)
|
||||
setTotal(0)
|
||||
}
|
||||
|
||||
try {
|
||||
@@ -112,7 +110,6 @@ const Find = () => {
|
||||
setStoreList(nextList)
|
||||
|
||||
const count = typeof res?.count === 'number' ? res.count : nextList.length
|
||||
setTotal(count)
|
||||
setHasMore(nextList.length < count)
|
||||
|
||||
if (resList.length > 0) {
|
||||
|
||||
@@ -16,6 +16,7 @@ const MyPage = () => {
|
||||
}
|
||||
|
||||
const bannerHeight = toCssSize(ad?.height)
|
||||
console.log(bannerHeight)
|
||||
|
||||
const reload = async () => {
|
||||
const flash = await getCmsAdByCode('flash')
|
||||
|
||||
@@ -19,7 +19,7 @@ function User() {
|
||||
}
|
||||
// TabBar 页在小程序里通常不会销毁;从“注册/申请”页返回时需要触发子组件重新初始化/拉取最新状态。
|
||||
const [dealerViewKey, setDealerViewKey] = useState(0)
|
||||
|
||||
console.log(dealerViewKey)
|
||||
// 下拉刷新处理
|
||||
const handleRefresh = async () => {
|
||||
if (userCardRef.current?.handleRefresh) {
|
||||
|
||||
Reference in New Issue
Block a user