diff --git a/src/user/ticket/orders/index.config.ts b/src/user/ticket/orders/index.config.ts index 454fe17..d891ee3 100644 --- a/src/user/ticket/orders/index.config.ts +++ b/src/user/ticket/orders/index.config.ts @@ -1,5 +1,5 @@ export default definePageConfig({ - navigationBarTitleText: '我的送水订单', + navigationBarTitleText: '送水订单', navigationBarTextStyle: 'black', navigationBarBackgroundColor: '#ffffff' }) diff --git a/src/user/ticket/orders/index.tsx b/src/user/ticket/orders/index.tsx index f1affe2..e8b1412 100644 --- a/src/user/ticket/orders/index.tsx +++ b/src/user/ticket/orders/index.tsx @@ -1,8 +1,7 @@ import { useEffect, useState } from 'react' import Taro, { useDidShow } from '@tarojs/taro' import { View, Text } from '@tarojs/components' -import { NavBar, Cell, CellGroup, InfiniteLoading, PullToRefresh, Empty, Loading } from '@nutui/nutui-react-taro' -import { ArrowLeft } from '@nutui/icons-react-taro' +import { Cell, CellGroup, InfiniteLoading, PullToRefresh, Empty, Loading } from '@nutui/nutui-react-taro' import dayjs from 'dayjs' import { pageGltTicketOrder } from '@/api/glt/gltTicketOrder' @@ -11,7 +10,6 @@ import type { GltTicketOrder } from '@/api/glt/gltTicketOrder/model' const PAGE_SIZE = 10 export default function TicketOrdersPage() { - const [statusBarHeight, setStatusBarHeight] = useState(0) const [list, setList] = useState([]) const [loading, setLoading] = useState(false) const [hasMore, setHasMore] = useState(true) @@ -57,9 +55,6 @@ export default function TicketOrdersPage() { } useEffect(() => { - Taro.getSystemInfo({ - success: (res) => setStatusBarHeight(res.statusBarHeight ?? 0) - }) }, []) useDidShow(() => { @@ -71,16 +66,8 @@ export default function TicketOrdersPage() { return ( - - Taro.navigateBack()} />} - > - 我的送水订单 - - + reload(true)}> {list.length === 0 && !loading ? (