fix:修复进入设置后还有loading的问题
This commit is contained in:
parent
295ce15fc4
commit
862b87d5d1
@ -428,11 +428,17 @@ class ApiProvider extends BaseProvider {
|
|||||||
isUnShowLoading: isUnShowLoading);
|
isUnShowLoading: isUnShowLoading);
|
||||||
|
|
||||||
// 获取所有锁设置信息
|
// 获取所有锁设置信息
|
||||||
Future<Response> getLockSettingInfoData(String lockId) => post(
|
Future<Response> getLockSettingInfoData(
|
||||||
getLockSettingURL.toUrl,
|
String lockId, {
|
||||||
jsonEncode({
|
bool isUnShowLoading = true,
|
||||||
'lockId': lockId,
|
}) =>
|
||||||
}));
|
post(
|
||||||
|
getLockSettingURL.toUrl,
|
||||||
|
jsonEncode({
|
||||||
|
'lockId': lockId,
|
||||||
|
}),
|
||||||
|
isUnShowLoading: isUnShowLoading,
|
||||||
|
);
|
||||||
|
|
||||||
// 获取所有锁设置信息
|
// 获取所有锁设置信息
|
||||||
Future<Response> getLockSettingInfoDataIsNotLoadingIcon(String lockId) =>
|
Future<Response> getLockSettingInfoDataIsNotLoadingIcon(String lockId) =>
|
||||||
@ -2824,9 +2830,9 @@ class ApiProvider extends BaseProvider {
|
|||||||
|
|
||||||
/// 设置语音包
|
/// 设置语音包
|
||||||
Future<Response> reportBuyRequest(
|
Future<Response> reportBuyRequest(
|
||||||
int lockId,
|
int lockId,
|
||||||
String type,
|
String type,
|
||||||
) =>
|
) =>
|
||||||
post(
|
post(
|
||||||
reportBuyRequestURL.toUrl,
|
reportBuyRequestURL.toUrl,
|
||||||
jsonEncode({
|
jsonEncode({
|
||||||
@ -2836,8 +2842,6 @@ class ApiProvider extends BaseProvider {
|
|||||||
isShowNetworkErrorMsg: false,
|
isShowNetworkErrorMsg: false,
|
||||||
isShowErrMsg: false,
|
isShowErrMsg: false,
|
||||||
isUnShowLoading: true);
|
isUnShowLoading: true);
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
extension ExtensionString on String {
|
extension ExtensionString on String {
|
||||||
|
|||||||
@ -493,8 +493,11 @@ class ApiRepository {
|
|||||||
|
|
||||||
// 获取所有锁设置信息
|
// 获取所有锁设置信息
|
||||||
Future<LockSetInfoEntity> getLockSettingInfoData(
|
Future<LockSetInfoEntity> getLockSettingInfoData(
|
||||||
{required String lockId}) async {
|
{required String lockId, bool isUnShowLoading = false}) async {
|
||||||
final res = await apiProvider.getLockSettingInfoData(lockId);
|
final res = await apiProvider.getLockSettingInfoData(
|
||||||
|
lockId,
|
||||||
|
isUnShowLoading: isUnShowLoading,
|
||||||
|
);
|
||||||
return LockSetInfoEntity.fromJson(res.body);
|
return LockSetInfoEntity.fromJson(res.body);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user