master
张萌 3 years ago
parent 87cc037d52
commit 700ea282a1

@ -3,12 +3,12 @@ import 'package:aku_new_community_manager/const/api.dart';
// Project imports: // Project imports:
import 'package:aku_new_community_manager/const/resource.dart'; import 'package:aku_new_community_manager/const/resource.dart';
import 'package:aku_new_community_manager/provider/message_provider.dart'; import 'package:aku_new_community_manager/provider/message_provider.dart';
import 'package:aku_new_community_manager/saas_models/net_model/base_model.dart';
import 'package:aku_new_community_manager/style/app_style.dart'; import 'package:aku_new_community_manager/style/app_style.dart';
import 'package:aku_new_community_manager/ui/home/messages/comment_message.dart'; import 'package:aku_new_community_manager/ui/home/messages/comment_message.dart';
import 'package:aku_new_community_manager/ui/home/messages/system/system_message.dart'; import 'package:aku_new_community_manager/ui/home/messages/system/system_message.dart';
import 'package:aku_new_community_manager/ui/widgets/common/aku_button.dart'; import 'package:aku_new_community_manager/ui/widgets/common/aku_button.dart';
import 'package:aku_new_community_manager/ui/widgets/common/aku_scaffold.dart'; import 'package:aku_new_community_manager/ui/widgets/common/aku_scaffold.dart';
import 'package:aku_new_community_manager/saas_models/net_model/base_model.dart';
import 'package:aku_new_community_manager/utils/network/net_util.dart'; import 'package:aku_new_community_manager/utils/network/net_util.dart';
// Package imports: // Package imports:
import 'package:dio/dio.dart'; import 'package:dio/dio.dart';
@ -162,7 +162,7 @@ class _MessageState extends State<Message> {
onpressed: () async { onpressed: () async {
BaseModel baseModel = BaseModel baseModel =
await NetUtil().get(API.message.allReadSysMes); await NetUtil().get(API.message.allReadSysMes);
if (baseModel.success ?? false) { if (baseModel.success) {
messageProvider.updateMessage(); messageProvider.updateMessage();
Get.to(() => SystemMessage()); Get.to(() => SystemMessage());
} }
@ -180,7 +180,7 @@ class _MessageState extends State<Message> {
onpressed: () async { onpressed: () async {
BaseModel baseModel = BaseModel baseModel =
await NetUtil().get(API.message.allReadCommentMes); await NetUtil().get(API.message.allReadCommentMes);
if (baseModel.success ?? false) { if (baseModel.success) {
messageProvider.updateMessage(); messageProvider.updateMessage();
Get.to(() => CommentMessage()); Get.to(() => CommentMessage());
} }

@ -57,7 +57,7 @@ class _SystemMessageGreenCardState extends State<SystemMessageGreenCard> {
await NetUtil().get(API.message.getSysGreenMessageById, params: { await NetUtil().get(API.message.getSysGreenMessageById, params: {
"greenTaskId": repairId, "greenTaskId": repairId,
}); });
if (baseModel.success ?? false) { if (baseModel.success) {
return SystemMessageGreenModel.fromJson(baseModel.data); return SystemMessageGreenModel.fromJson(baseModel.data);
} else { } else {
return SystemMessageGreenModel.fail(); return SystemMessageGreenModel.fail();

@ -1,10 +1,10 @@
import 'package:aku_new_community_manager/const/api.dart'; import 'package:aku_new_community_manager/const/api.dart';
import 'package:aku_new_community_manager/json_models/message/system_message_house_keeping_model.dart'; import 'package:aku_new_community_manager/json_models/message/system_message_house_keeping_model.dart';
import 'package:aku_new_community_manager/saas_models/net_model/base_model.dart';
import 'package:aku_new_community_manager/style/app_style.dart'; import 'package:aku_new_community_manager/style/app_style.dart';
import 'package:aku_new_community_manager/ui/home/messages/message_map.dart'; import 'package:aku_new_community_manager/ui/home/messages/message_map.dart';
import 'package:aku_new_community_manager/ui/manage_pages/house_keeping/house_keeping_page.dart'; import 'package:aku_new_community_manager/ui/manage_pages/house_keeping/house_keeping_page.dart';
import 'package:aku_new_community_manager/ui/widgets/common/aku_button.dart'; import 'package:aku_new_community_manager/ui/widgets/common/aku_button.dart';
import 'package:aku_new_community_manager/saas_models/net_model/base_model.dart';
import 'package:aku_new_community_manager/utils/network/net_util.dart'; import 'package:aku_new_community_manager/utils/network/net_util.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:get/get.dart'; import 'package:get/get.dart';
@ -51,7 +51,7 @@ class _SystemMessageHouseKeepingCardState
await NetUtil().get(API.message.getSysHygienceMessageById, params: { await NetUtil().get(API.message.getSysHygienceMessageById, params: {
"housekeepingServiceId": relationId, "housekeepingServiceId": relationId,
}); });
if (baseModel.success ?? false) { if (baseModel.success) {
return SystemMessageHouseKeepingModel.fromJson(baseModel.data); return SystemMessageHouseKeepingModel.fromJson(baseModel.data);
} }
} }

@ -58,7 +58,7 @@ class _SystemMessageHygienceCardState extends State<SystemMessageHygienceCard> {
await NetUtil().get(API.message.getSysHygienceMessageById, params: { await NetUtil().get(API.message.getSysHygienceMessageById, params: {
"hygieneTaskId": repairId, "hygieneTaskId": repairId,
}); });
if (baseModel.success ?? false) { if (baseModel.success) {
return SystemMessageHygineceModel.fromJson(baseModel.data); return SystemMessageHygineceModel.fromJson(baseModel.data);
} }
} }

@ -1,7 +1,7 @@
import 'package:aku_new_community_manager/const/api.dart'; import 'package:aku_new_community_manager/const/api.dart';
import 'package:aku_new_community_manager/json_models/clock_in_out/today_clock_record_model.dart'; import 'package:aku_new_community_manager/json_models/clock_in_out/today_clock_record_model.dart';
import 'package:aku_new_community_manager/style/app_style.dart';
import 'package:aku_new_community_manager/saas_models/net_model/base_model.dart'; import 'package:aku_new_community_manager/saas_models/net_model/base_model.dart';
import 'package:aku_new_community_manager/style/app_style.dart';
import 'package:aku_new_community_manager/utils/network/net_util.dart'; import 'package:aku_new_community_manager/utils/network/net_util.dart';
import 'package:bot_toast/bot_toast.dart'; import 'package:bot_toast/bot_toast.dart';
import 'package:common_utils/common_utils.dart'; import 'package:common_utils/common_utils.dart';
@ -10,7 +10,7 @@ import 'package:flutter/material.dart';
class ClockFunc { class ClockFunc {
static Future initClockInfo() async { static Future initClockInfo() async {
BaseModel baseModel = await NetUtil().get(API.manage.todayClockRecord); BaseModel baseModel = await NetUtil().get(API.manage.todayClockRecord);
if (baseModel.success! && baseModel.data != null) { if (baseModel.success && baseModel.data != null) {
return TodayClockRecordModel.fromJson(baseModel.data); return TodayClockRecordModel.fromJson(baseModel.data);
} else { } else {
BotToast.showText(text: baseModel.msg); BotToast.showText(text: baseModel.msg);

@ -4,6 +4,7 @@ import 'dart:io';
// Flutter imports: // Flutter imports:
import 'package:aku_new_community_manager/const/api.dart'; import 'package:aku_new_community_manager/const/api.dart';
import 'package:aku_new_community_manager/models/manager/facilities/facilities_check_list_model.dart'; import 'package:aku_new_community_manager/models/manager/facilities/facilities_check_list_model.dart';
import 'package:aku_new_community_manager/saas_models/net_model/base_model.dart';
// Project imports: // Project imports:
import 'package:aku_new_community_manager/style/app_style.dart'; import 'package:aku_new_community_manager/style/app_style.dart';
import 'package:aku_new_community_manager/ui/widgets/app_widgets/aku_pick_image_widget.dart'; import 'package:aku_new_community_manager/ui/widgets/app_widgets/aku_pick_image_widget.dart';
@ -11,7 +12,6 @@ import 'package:aku_new_community_manager/ui/widgets/app_widgets/aku_single_chec
import 'package:aku_new_community_manager/ui/widgets/app_widgets/bee_grid_image_view.dart'; import 'package:aku_new_community_manager/ui/widgets/app_widgets/bee_grid_image_view.dart';
import 'package:aku_new_community_manager/ui/widgets/common/aku_button.dart'; import 'package:aku_new_community_manager/ui/widgets/common/aku_button.dart';
import 'package:aku_new_community_manager/ui/widgets/common/aku_scaffold.dart'; import 'package:aku_new_community_manager/ui/widgets/common/aku_scaffold.dart';
import 'package:aku_new_community_manager/saas_models/net_model/base_model.dart';
import 'package:aku_new_community_manager/utils/network/net_util.dart'; import 'package:aku_new_community_manager/utils/network/net_util.dart';
import 'package:bot_toast/bot_toast.dart'; import 'package:bot_toast/bot_toast.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
@ -51,11 +51,10 @@ class _FacilitiesInspectReportDetailPageState
void initState() { void initState() {
// TODO: implement initState // TODO: implement initState
super.initState(); super.initState();
if(!editEnable){ if (!editEnable) {
if(widget.model!.situation==1){ if (widget.model!.situation == 1) {
_scene = 1; _scene = 1;
} } else if (widget.model!.situation == 2) {
else if(widget.model!.situation==2){
_scene = 2; _scene = 2;
} }
} }
@ -79,9 +78,7 @@ class _FacilitiesInspectReportDetailPageState
width: double.infinity, width: double.infinity,
), ),
_descriptionCard( _descriptionCard(
widget.facilitiesType == 1 ? '设施情况' : '设备情况', widget.facilitiesType == 1 ? '设施情况' : '设备情况', widget.model),
widget.model
),
_scenePhotoCard(widget.model), _scenePhotoCard(widget.model),
], ],
), ),
@ -104,7 +101,7 @@ class _FacilitiesInspectReportDetailPageState
"detail": _describtion, "detail": _describtion,
"imgUrls": _scenePhotoUrl, "imgUrls": _scenePhotoUrl,
}); });
if (baseModel.success!) { if (baseModel.success) {
Get.back(); Get.back();
} }
BotToast.showText(text: baseModel.msg); BotToast.showText(text: baseModel.msg);
@ -136,9 +133,10 @@ class _FacilitiesInspectReportDetailPageState
// 12.w.heightBox, // 12.w.heightBox,
// _buildTile(R.ASSETS_MESSAGE_IC_PHONE_PNG, '联系电话', model!.??''), // _buildTile(R.ASSETS_MESSAGE_IC_PHONE_PNG, '联系电话', model!.??''),
// 12.w.heightBox, // 12.w.heightBox,
_buildTile(R.ASSETS_MANAGE_ADDRESS_PNG, '检查场地', model?.facilitiesName??''), _buildTile(
R.ASSETS_MANAGE_ADDRESS_PNG, '检查场地', model?.facilitiesName ?? ''),
12.w.heightBox, 12.w.heightBox,
_buildTile(R.ASSETS_MANAGE_CLOCK_PNG, '规定任务时间', model?.beginDate??''), _buildTile(R.ASSETS_MANAGE_CLOCK_PNG, '规定任务时间', model?.beginDate ?? ''),
], ],
) )
.box .box
@ -166,37 +164,32 @@ class _FacilitiesInspectReportDetailPageState
} }
Widget _descriptionCard( Widget _descriptionCard(
String title, FacilitiesCheckListModel? model, String title,
FacilitiesCheckListModel? model,
// int index, // int index,
) { ) {
return Column( return Column(
children: [ children: [
Row( Row(
children: ['$title'.text.color(kTextPrimaryColor).size(32.sp).bold.make()], children: [
'$title'.text.color(kTextPrimaryColor).size(32.sp).bold.make()
],
), ),
16.w.heightBox, 16.w.heightBox,
Row( Row(
children: [ children: [
AkuSingleCheckButton( AkuSingleCheckButton(
text: '正常', text: '正常', value: 1, gropValue: _scene, onPressed: () {}),
value: 1,
gropValue: _scene,
onPressed: () {}
),
16.w.widthBox, 16.w.widthBox,
AkuSingleCheckButton( AkuSingleCheckButton(
text: '异常', text: '异常', value: 2, gropValue: _scene, onPressed: () {}),
value: 2,
gropValue: _scene,
onPressed: () {}
),
], ],
), ),
32.w.heightBox, 32.w.heightBox,
Row( Row(
children: ['补充说明'.text.color(kTextPrimaryColor).size(32.sp).bold.make()], children: [
'补充说明'.text.color(kTextPrimaryColor).size(32.sp).bold.make()
],
), ),
16.w.heightBox, 16.w.heightBox,
Container( Container(

@ -4,6 +4,7 @@ import 'dart:io';
// Flutter imports: // Flutter imports:
import 'package:aku_new_community_manager/const/api.dart'; import 'package:aku_new_community_manager/const/api.dart';
import 'package:aku_new_community_manager/models/manager/facilities/facilities_check_list_model.dart'; import 'package:aku_new_community_manager/models/manager/facilities/facilities_check_list_model.dart';
import 'package:aku_new_community_manager/saas_models/net_model/base_model.dart';
// Project imports: // Project imports:
import 'package:aku_new_community_manager/style/app_style.dart'; import 'package:aku_new_community_manager/style/app_style.dart';
import 'package:aku_new_community_manager/ui/widgets/app_widgets/aku_pick_image_widget.dart'; import 'package:aku_new_community_manager/ui/widgets/app_widgets/aku_pick_image_widget.dart';
@ -11,7 +12,6 @@ import 'package:aku_new_community_manager/ui/widgets/app_widgets/aku_single_chec
import 'package:aku_new_community_manager/ui/widgets/app_widgets/bee_grid_image_view.dart'; import 'package:aku_new_community_manager/ui/widgets/app_widgets/bee_grid_image_view.dart';
import 'package:aku_new_community_manager/ui/widgets/common/aku_button.dart'; import 'package:aku_new_community_manager/ui/widgets/common/aku_button.dart';
import 'package:aku_new_community_manager/ui/widgets/common/aku_scaffold.dart'; import 'package:aku_new_community_manager/ui/widgets/common/aku_scaffold.dart';
import 'package:aku_new_community_manager/saas_models/net_model/base_model.dart';
import 'package:aku_new_community_manager/utils/network/net_util.dart'; import 'package:aku_new_community_manager/utils/network/net_util.dart';
import 'package:bot_toast/bot_toast.dart'; import 'package:bot_toast/bot_toast.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
@ -78,7 +78,7 @@ class _FacilitiesInspectReportPageState
"detail": _describtion, "detail": _describtion,
"imgUrls": _scenePhotoUrl, "imgUrls": _scenePhotoUrl,
}); });
if (baseModel.success!) { if (baseModel.success) {
Get.back(); Get.back();
} }
BotToast.showText(text: baseModel.msg); BotToast.showText(text: baseModel.msg);

@ -163,7 +163,7 @@ class _GreenManageCardState extends State<GreenManageCard> {
.post(API.manage.greenManageComplete, params: { .post(API.manage.greenManageComplete, params: {
"id": widget.model.id, "id": widget.model.id,
}); });
if (baseModel.success!) { if (baseModel.success) {
widget.callRefresh!(); widget.callRefresh!();
} }
BotToast.showText(text: baseModel.msg); BotToast.showText(text: baseModel.msg);

@ -95,7 +95,7 @@ class _HouseKeepingAddPageState extends State<HouseKeepingAddPage> {
}, },
showMessage: true, showMessage: true,
); );
if (baseModel.success!) { if (baseModel.success) {
Get.back(); Get.back();
} }
} }

@ -13,7 +13,7 @@ class HouseKeepingFunc {
int id) async { int id) async {
BaseModel baseModel = await NetUtil().get(API.manage.newHouseKeepingProcess, BaseModel baseModel = await NetUtil().get(API.manage.newHouseKeepingProcess,
params: {"housekeepingServiceId": id}); params: {"housekeepingServiceId": id});
if (baseModel.success ?? false) { if (baseModel.success) {
return (baseModel.data as List) return (baseModel.data as List)
.map((e) => HouseKeepingProcessModel.fromJson(e)) .map((e) => HouseKeepingProcessModel.fromJson(e))
.toList(); .toList();
@ -28,7 +28,7 @@ class HouseKeepingFunc {
await NetUtil().get(API.manage.newHouseKeepingUrgeWork, params: { await NetUtil().get(API.manage.newHouseKeepingUrgeWork, params: {
"housekeepingServiceId": id, "housekeepingServiceId": id,
}); });
if (baseModel.success ?? false) { if (baseModel.success) {
BotToast.showText(text: '已成功催单,请耐心等候'); BotToast.showText(text: '已成功催单,请耐心等候');
return true; return true;
} else { } else {
@ -42,7 +42,7 @@ class HouseKeepingFunc {
await NetUtil().post(API.manage.newHouseKeepingOrderReceive, params: { await NetUtil().post(API.manage.newHouseKeepingOrderReceive, params: {
"id": id, "id": id,
}); });
if (baseModel.success ?? false) { if (baseModel.success) {
BotToast.showText(text: '接单成功'); BotToast.showText(text: '接单成功');
return true; return true;
} else { } else {
@ -54,7 +54,7 @@ class HouseKeepingFunc {
static Future newHouseKeepingPickStaffList() async { static Future newHouseKeepingPickStaffList() async {
BaseModel baseModel = BaseModel baseModel =
await NetUtil().get(API.manage.newHouseKeepingPickStaffList); await NetUtil().get(API.manage.newHouseKeepingPickStaffList);
if (baseModel.success ?? false) { if (baseModel.success) {
return (baseModel.data as List) return (baseModel.data as List)
.map((e) => HouseKeepingPickStaffModel.fromJson(e)) .map((e) => HouseKeepingPickStaffModel.fromJson(e))
.toList(); .toList();
@ -70,7 +70,7 @@ class HouseKeepingFunc {
"id": id, "id": id,
"handler": handlerId, "handler": handlerId,
}); });
if (baseModel.success ?? false) { if (baseModel.success) {
BotToast.showText(text: '派单成功'); BotToast.showText(text: '派单成功');
return true; return true;
} else { } else {
@ -108,7 +108,7 @@ class HouseKeepingFunc {
"payFee": payFee, "payFee": payFee,
"handlerImgUrls": urls, "handlerImgUrls": urls,
}); });
if (baseModel.success ?? false) { if (baseModel.success) {
BotToast.showText(text: '提交成功'); BotToast.showText(text: '提交成功');
return true; return true;
} else { } else {

@ -1,6 +1,7 @@
// Flutter imports: // Flutter imports:
import 'package:aku_new_community_manager/const/api.dart'; import 'package:aku_new_community_manager/const/api.dart';
import 'package:aku_new_community_manager/models/manager/hygience_manage/heygience_list_model.dart'; import 'package:aku_new_community_manager/models/manager/hygience_manage/heygience_list_model.dart';
import 'package:aku_new_community_manager/saas_models/net_model/base_model.dart';
// Project imports: // Project imports:
import 'package:aku_new_community_manager/style/app_style.dart'; import 'package:aku_new_community_manager/style/app_style.dart';
import 'package:aku_new_community_manager/tools/aku_divider.dart'; import 'package:aku_new_community_manager/tools/aku_divider.dart';
@ -9,7 +10,6 @@ import 'package:aku_new_community_manager/tools/widget_tool.dart';
import 'package:aku_new_community_manager/ui/manage_pages/hygience_manage/hygience_manage_detail_page.dart'; import 'package:aku_new_community_manager/ui/manage_pages/hygience_manage/hygience_manage_detail_page.dart';
import 'package:aku_new_community_manager/ui/manage_pages/hygience_manage/hygience_manage_map.dart'; import 'package:aku_new_community_manager/ui/manage_pages/hygience_manage/hygience_manage_map.dart';
import 'package:aku_new_community_manager/ui/widgets/common/aku_button.dart'; import 'package:aku_new_community_manager/ui/widgets/common/aku_button.dart';
import 'package:aku_new_community_manager/saas_models/net_model/base_model.dart';
import 'package:aku_new_community_manager/utils/network/net_util.dart'; import 'package:aku_new_community_manager/utils/network/net_util.dart';
import 'package:bot_toast/bot_toast.dart'; import 'package:bot_toast/bot_toast.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
@ -161,7 +161,7 @@ class _HyginecManageCardState extends State<HyginecManageCard> {
.post(API.manage.hygienceComplete, params: { .post(API.manage.hygienceComplete, params: {
"id": widget.model.id, "id": widget.model.id,
}); });
if (baseModel.success!) { if (baseModel.success) {
widget.callRefresh!(); widget.callRefresh!();
} }
BotToast.showText(text: baseModel.msg); BotToast.showText(text: baseModel.msg);

@ -168,7 +168,7 @@ class _InspectionManageDetailsPageState
BaseModel _baseModel = await NetUtil().get( BaseModel _baseModel = await NetUtil().get(
SAASAPI.inspection.startInspection, SAASAPI.inspection.startInspection,
params: {"executeId": widget.executeId}); params: {"executeId": widget.executeId});
if (_baseModel.success!) { if (_baseModel.success) {
BotToast.showText(text: _baseModel.msg); BotToast.showText(text: _baseModel.msg);
_refreshController!.callRefresh(); _refreshController!.callRefresh();
_startTimer(5000); _startTimer(5000);
@ -182,7 +182,7 @@ class _InspectionManageDetailsPageState
BaseModel baseModel = BaseModel baseModel =
await ManageFunc.getInspectionFindCheckDetailByQr( await ManageFunc.getInspectionFindCheckDetailByQr(
_detailModel!.id!, result.code); _detailModel!.id!, result.code);
if (baseModel.success!) { if (baseModel.success) {
Get.to(() => InspectionPointInputPage( Get.to(() => InspectionPointInputPage(
inspectionName: _detailModel!.name, inspectionName: _detailModel!.name,
qrModel: InspectionQRCodeModel.fromJson( qrModel: InspectionQRCodeModel.fromJson(
@ -525,7 +525,7 @@ class _InspectionManageDetailsPageState
if (_canUploadLocation) { if (_canUploadLocation) {
BaseModel baseModel = await (_uploadLocation(widget.executeId, BaseModel baseModel = await (_uploadLocation(widget.executeId,
argument.latLng.longitude, argument.latLng.latitude)); argument.latLng.longitude, argument.latLng.latitude));
if (!baseModel.success!) { if (!baseModel.success) {
BotToast.showText(text: baseModel.msg); BotToast.showText(text: baseModel.msg);
} else { } else {
_canUploadLocation = false; _canUploadLocation = false;

@ -99,7 +99,7 @@ class _InspectionPointInputPageState extends State<InspectionPointInputPage> {
_scenePhots!, API.upload.uploadInspectionSpace); _scenePhots!, API.upload.uploadInspectionSpace);
BaseModel baseModel = BaseModel baseModel =
await (ManageFunc.getSubmitPoint(_submitModel)); await (ManageFunc.getSubmitPoint(_submitModel));
if (baseModel.success!) { if (baseModel.success) {
BotToast.showText(text: baseModel.msg); BotToast.showText(text: baseModel.msg);
Get.to(() => InspectionPointSubmitPage()); Get.to(() => InspectionPointSubmitPage());
} else { } else {

@ -57,7 +57,7 @@ class _InterviewFeedBackPageState extends State<InterviewFeedBackPage> {
}, },
showMessage: true, showMessage: true,
); );
if (baseModel.success!) { if (baseModel.success) {
Get.back(); Get.back();
} }
}, },

@ -137,7 +137,7 @@ class _AddPackagePageState extends State<AddPackagePage> {
}, },
); );
if (!baseModel.success!) { if (!baseModel.success) {
BotToast.showText(text: baseModel.msg); BotToast.showText(text: baseModel.msg);
return; return;
} }

@ -128,7 +128,7 @@ class _PackageManageCardState extends State<PackageManageCard> {
Future _remindPackage(int packageCollectionId) async { Future _remindPackage(int packageCollectionId) async {
BaseModel baseModel = await NetUtil().get(API.manage.packageManageRemind, BaseModel baseModel = await NetUtil().get(API.manage.packageManageRemind,
params: {"packageCollectionId": packageCollectionId}); params: {"packageCollectionId": packageCollectionId});
if (!baseModel.success!) { if (!baseModel.success) {
BotToast.showText(text: baseModel.msg); BotToast.showText(text: baseModel.msg);
} else { } else {
BotToast.showText(text: '已成功提醒领取'); BotToast.showText(text: '已成功提醒领取');

@ -88,7 +88,7 @@ class _SettingFeedBackPageState extends State<SettingFeedBackPage> {
"content": _content, "content": _content,
"fileUrls": _imgeUrls, "fileUrls": _imgeUrls,
}); });
if (baseModel.success!) { if (baseModel.success) {
BotToast.showText(text: baseModel.msg); BotToast.showText(text: baseModel.msg);
Get.back(); Get.back();
} else { } else {

@ -1,24 +1,22 @@
// Dart imports: // Dart imports:
import 'dart:async'; import 'dart:async';
// Flutter imports: // Project imports:
import 'package:flutter/material.dart'; import 'package:aku_new_community_manager/provider/user_provider.dart';
import 'package:flutter/services.dart'; import 'package:aku_new_community_manager/saas_models/net_model/base_model.dart';
import 'package:aku_new_community_manager/ui/settings/update_userinfo_func.dart';
import 'package:aku_new_community_manager/ui/widgets/common/aku_scaffold.dart';
// Package imports: // Package imports:
import 'package:bot_toast/bot_toast.dart'; import 'package:bot_toast/bot_toast.dart';
import 'package:common_utils/common_utils.dart'; import 'package:common_utils/common_utils.dart';
// Flutter imports:
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get.dart'; import 'package:get/get.dart';
import 'package:provider/provider.dart'; import 'package:provider/provider.dart';
import 'package:velocity_x/velocity_x.dart'; import 'package:velocity_x/velocity_x.dart';
// Project imports:
import 'package:aku_new_community_manager/provider/user_provider.dart';
import 'package:aku_new_community_manager/ui/settings/update_userinfo_func.dart';
import 'package:aku_new_community_manager/ui/widgets/common/aku_scaffold.dart';
import 'package:aku_new_community_manager/saas_models/net_model/base_model.dart';
class TelChangePage extends StatefulWidget { class TelChangePage extends StatefulWidget {
TelChangePage({Key? key}) : super(key: key); TelChangePage({Key? key}) : super(key: key);
@ -112,7 +110,7 @@ class _TelChangePageState extends State<TelChangePage> {
BaseModel baseModel = BaseModel baseModel =
await UpdateUserInfoFunc.sendTelUpdateCode( await UpdateUserInfoFunc.sendTelUpdateCode(
_newTelController!.text); _newTelController!.text);
if (baseModel.success!) { if (baseModel.success) {
startTick(); startTick();
} else {} } else {}
} }
@ -187,7 +185,7 @@ class _TelChangePageState extends State<TelChangePage> {
_oldTelController!.text, _oldTelController!.text,
_newTelController!.text, _newTelController!.text,
_codeController!.text); _codeController!.text);
if (baseModel.success!) { if (baseModel.success) {
userProvider.setTel(_newTelController!.text); userProvider.setTel(_newTelController!.text);
Get.back(); Get.back();
} else { } else {

@ -423,7 +423,7 @@ class _FixWorkFinishPageState extends State<FixWorkFinishPage> {
humanPrice! + materialPrice!, humanPrice! + materialPrice!,
1, 1,
urls)); urls));
if (baseModel.success!) { if (baseModel.success) {
FixSubmitFinishPage( FixSubmitFinishPage(
model: widget.fixModel, model: widget.fixModel,
).to(); ).to();

@ -87,7 +87,7 @@ class _FixerDepartmentPageState extends State<FixerDepartmentPage> {
if (widget.changeType) { if (widget.changeType) {
BaseModel baseModel = await (ManageFunc.repairReassignment( BaseModel baseModel = await (ManageFunc.repairReassignment(
_reportModel!.dispatchListId!, _reportModel!.operato)); _reportModel!.dispatchListId!, _reportModel!.operato));
if (baseModel.success!) { if (baseModel.success) {
BotToast.showText(text: '改派成功'); BotToast.showText(text: '改派成功');
Get.back(); Get.back();
} else { } else {

@ -80,7 +80,7 @@ class _NewRenovationFinishSubmitPageState
"isQualified": _isQualified, "isQualified": _isQualified,
}, },
showMessage: true); showMessage: true);
if (baseModel.success ?? false) { if (baseModel.success) {
Get.back(); Get.back();
} }
}, },

Loading…
Cancel
Save