|
@@ -15,10 +15,9 @@ import CheckLoginPopup from "@/components/CheckLoginPopup";
|
|
import BlurContainer from "@/components/BlurContainer";
|
|
import BlurContainer from "@/components/BlurContainer";
|
|
import SliderAction from "@/components/SliderAction";
|
|
import SliderAction from "@/components/SliderAction";
|
|
import PageTitle from '@/components/PageTitle'
|
|
import PageTitle from '@/components/PageTitle'
|
|
-
|
|
|
|
export default function Index() {
|
|
export default function Index() {
|
|
const [searchValue, setSearchValue] = useState("");
|
|
const [searchValue, setSearchValue] = useState("");
|
|
- const [scrollIng, setScrolling] = useState(false);
|
|
|
|
|
|
+ // const [scrollIng, setScrolling] = useState(false);
|
|
|
|
|
|
const fetcher = async ([_url, params, keyword]) => {
|
|
const fetcher = async ([_url, params, keyword]) => {
|
|
params = params || {};
|
|
params = params || {};
|
|
@@ -139,7 +138,7 @@ export default function Index() {
|
|
if (list?.length) {
|
|
if (list?.length) {
|
|
return list.map((item) => (
|
|
return list.map((item) => (
|
|
<View className={`rounded-12 overflow-hidden truncate`}>
|
|
<View className={`rounded-12 overflow-hidden truncate`}>
|
|
- <SliderAction actions={createSliderButtons(item)}>
|
|
|
|
|
|
+ <SliderAction actions={createSliderButtons(item)} key={item.contactId}>
|
|
<ContactCard
|
|
<ContactCard
|
|
refresh={mutate}
|
|
refresh={mutate}
|
|
deleteable={true}
|
|
deleteable={true}
|
|
@@ -178,12 +177,11 @@ export default function Index() {
|
|
</View>
|
|
</View>
|
|
<BlurContainer className="flex flex-col overflow-hidden">
|
|
<BlurContainer className="flex flex-col overflow-hidden">
|
|
<View className="px-16 text-gray-45 text-12 leading-20 mb-20 pt-16">
|
|
<View className="px-16 text-gray-45 text-12 leading-20 mb-20 pt-16">
|
|
- 共 {totalCount} 个联系人 {scrollIng ? 'true': 'false'}
|
|
|
|
|
|
+ 共 {totalCount} 个联系人
|
|
</View>
|
|
</View>
|
|
<View className="flex-1 h-full overflow-hidden">
|
|
<View className="flex-1 h-full overflow-hidden">
|
|
<ScrollView
|
|
<ScrollView
|
|
scrollY
|
|
scrollY
|
|
- onScrollEnd={handleScrollEnd}
|
|
|
|
onScrollToUpper={onScrollToUpper}
|
|
onScrollToUpper={onScrollToUpper}
|
|
style={{
|
|
style={{
|
|
flex: 1,
|
|
flex: 1,
|