Commit 18f04098 by 姜雷

添加请求提示

parent dde90b0f
...@@ -47,6 +47,10 @@ function ShowerAppointment() { ...@@ -47,6 +47,10 @@ function ShowerAppointment() {
setSearchString(search.value); setSearchString(search.value);
}; };
const appointingEquipmentHandle = (deviceCode: string) => { const appointingEquipmentHandle = (deviceCode: string) => {
Taro.showLoading({
title: '',
mask: true,
});
return appointingEquipment({ return appointingEquipment({
account: userInfo.customerId.toString(), account: userInfo.customerId.toString(),
phone: userInfo.customerPhone, phone: userInfo.customerPhone,
...@@ -61,6 +65,7 @@ function ShowerAppointment() { ...@@ -61,6 +65,7 @@ function ShowerAppointment() {
}); });
}) })
.catch(err => { .catch(err => {
Taro.hideLoading();
console.log(err); console.log(err);
}); });
}; };
......
...@@ -31,7 +31,10 @@ const useAppointRecordsList = ( ...@@ -31,7 +31,10 @@ const useAppointRecordsList = (
}; };
const fetchMoreList = () => { const fetchMoreList = () => {
Taro.showLoading(); Taro.showLoading({
title: '',
mask: true,
});
fetchList(pageNum + 1) fetchList(pageNum + 1)
.then(res => { .then(res => {
Taro.hideLoading(); Taro.hideLoading();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment