From 171687085b48c2cbf5f8d1bd4fbed894ad921991 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E7=91=9E?= Date: Sat, 13 Sep 2025 18:16:09 +0800 Subject: [PATCH] loading --- src/game_pages/list/index.tsx | 6 +++--- src/game_pages/searchResult/index.tsx | 1 - src/services/httpService.ts | 8 ++++---- 3 files changed, 7 insertions(+), 8 deletions(-) diff --git a/src/game_pages/list/index.tsx b/src/game_pages/list/index.tsx index 417a5ec..abb37d3 100644 --- a/src/game_pages/list/index.tsx +++ b/src/game_pages/list/index.tsx @@ -51,7 +51,7 @@ const ListPage = () => { // 只有当状态需要改变时才更新 if (shouldShowInputNav && !isShowInputCustomerNavBar) { updateState({ isShowInputCustomerNavBar: true }); - } else if (!shouldShowInputNav && isShowInputCustomerNavBar) { + } else { updateState({ isShowInputCustomerNavBar: false }); } }); @@ -117,7 +117,7 @@ const ListPage = () => { Taro.showToast({ title: "刷新成功", icon: "success", - duration: 1500, + duration: 1000, }); } catch (error) { // 刷新失败时也停止动画 @@ -126,7 +126,7 @@ const ListPage = () => { Taro.showToast({ title: "刷新失败,请重试", icon: "error", - duration: 1500, + duration: 1000, }); } }); diff --git a/src/game_pages/searchResult/index.tsx b/src/game_pages/searchResult/index.tsx index 0009454..8abc532 100644 --- a/src/game_pages/searchResult/index.tsx +++ b/src/game_pages/searchResult/index.tsx @@ -1,5 +1,4 @@ import { View, Image, Text } from "@tarojs/components"; -// import { useSearchResultState } from "@/store/searchResultStore"; import { useListStore } from "@/store/listStore"; import { useGlobalState } from "@/store/global"; import ListContainer from "@/container/listContainer"; diff --git a/src/services/httpService.ts b/src/services/httpService.ts index cb309c0..19c1c4a 100644 --- a/src/services/httpService.ts +++ b/src/services/httpService.ts @@ -224,10 +224,10 @@ class HttpService { // 显示加载提示 if (showLoading) { - // Taro.showLoading({ - // title: loadingText, - // mask: true - // }) + Taro.showLoading({ + title: loadingText, + mask: true + }) } try {