loading
This commit is contained in:
@@ -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,
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
@@ -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";
|
||||
|
||||
@@ -224,10 +224,10 @@ class HttpService {
|
||||
|
||||
// 显示加载提示
|
||||
if (showLoading) {
|
||||
// Taro.showLoading({
|
||||
// title: loadingText,
|
||||
// mask: true
|
||||
// })
|
||||
Taro.showLoading({
|
||||
title: loadingText,
|
||||
mask: true
|
||||
})
|
||||
}
|
||||
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user