1
This commit is contained in:
@@ -6,6 +6,7 @@ import { withAuth, GeneralNavbar } from "@/components";
|
||||
import "./index.scss";
|
||||
import httpService from "@/services/httpService";
|
||||
import Taro, { useReachBottom } from "@tarojs/taro";
|
||||
import { useGlobalState } from "@/store/global";
|
||||
interface Transaction {
|
||||
id: number;
|
||||
user_id: number;
|
||||
@@ -30,6 +31,9 @@ interface TransactionLoadParams {
|
||||
}
|
||||
|
||||
const QueryTransactions = () => {
|
||||
// 获取导航栏高度信息
|
||||
const { statusNavbarHeightInfo } = useGlobalState() || {};
|
||||
const { totalHeight = 98 } = statusNavbarHeightInfo || {};
|
||||
// 获取当前页面的配置
|
||||
const currentPage = Taro.getCurrentInstance();
|
||||
const pageConfig = currentPage.page?.config;
|
||||
@@ -271,7 +275,10 @@ const QueryTransactions = () => {
|
||||
}}
|
||||
/>
|
||||
{/* 搜索 */}
|
||||
<View className="topSearchWrapper">
|
||||
<View
|
||||
className="topSearchWrapper"
|
||||
style={{ marginTop: `${totalHeight}px` }}
|
||||
>
|
||||
<View className="topSearch">
|
||||
<Image className="searchIcon" src={img.ICON_LIST_SEARCH_SEARCH} />
|
||||
<Input
|
||||
|
||||
Reference in New Issue
Block a user