diff --git a/src/dealer/customer/trading.tsx b/src/dealer/customer/trading.tsx index 43d8ca4..08d4178 100644 --- a/src/dealer/customer/trading.tsx +++ b/src/dealer/customer/trading.tsx @@ -91,10 +91,6 @@ const CustomerTrading = () => { // 搜索处理函数 const handleSearch = (keyword: string) => { if(keyword.length < 4){ - Taro.showToast({ - title: '请输入至少4个字符', - icon: 'none' - }); return; } setSearchValue(keyword); @@ -105,13 +101,13 @@ const CustomerTrading = () => { }; // 清空搜索 - const handleClearSearch = () => { - setSearchValue(''); - setList([]); - setPage(1); - setHasMore(true); - fetchCustomerData(true, 1, ''); - }; + // const handleClearSearch = () => { + // setSearchValue(''); + // setList([]); + // setPage(1); + // setHasMore(true); + // fetchCustomerData(true, 1, ''); + // }; // 渲染客户项 const renderCustomerItem = (customer: CustomerUser) => ( @@ -192,8 +188,7 @@ const CustomerTrading = () => { handleSearch(value)} - onClear={() => handleClearSearch()} + onChange={(value) => handleSearch(value)} />