Merge branch 'master' of 192.168.2.201:laiiihz/akuCommunity

* 'master' of 192.168.2.201:laiiihz/akuCommunity:
  fixed some issues
hmxc
小赖 4 years ago
commit 28f111cb9d

@ -88,6 +88,8 @@ class _Manager {
////app/ type (1.2.3.4.)
String get advice => '/user/advice/list';
///appidid
String get reportRepairFindBYLD => '/user/reportRepair/findById';
/// //
String get addAdvice => '/user/advice/insert';
}

@ -1,4 +1,3 @@
import 'dart:io';
import 'package:akuCommunity/constants/api.dart';
import 'package:akuCommunity/utils/network/base_model.dart';

@ -78,7 +78,7 @@ class _FixedSubmitPageState extends State<FixedSubmitPage> {
Widget _buildCard(FixedSubmitModel model) {
return AnimatedPositioned(
top: 0,
left: (_canSkew(model.status) && _isEdit) ? 55.w : 0,
left: (_canSkew(4) && _isEdit) ? 55.w : 0,
bottom: 0,
duration: Duration(milliseconds: 300),
curve: Curves.easeInOutCubic,
@ -179,8 +179,8 @@ class _FixedSubmitPageState extends State<FixedSubmitPage> {
.bold
.isIntrinsic
.make(),
onPressed: () {
ManagerFunc.reportRepairDelete(_selected);
onPressed: () async{
await ManagerFunc.reportRepairDelete(_selected);
Get.back();
_selected.clear();
_easyRefreshController.callRefresh();

@ -32,7 +32,7 @@ class _AddFixedSubmitPageState extends State<AddFixedSubmitPage> {
String reportText;
List<String> _buttons = ['公区保修', '家庭维修'];
int _selectType;
List<File> _files;
List<File> _files=[];
@override
void initState() {
super.initState();

@ -144,11 +144,15 @@ class NetUtil {
Future<List<String>> uploadFiles(List<File> files, String api) async {
List<String> urls = [];
if (files.isEmpty) {
return [];
} else {
for (var item in files) {
BaseFileModel model = await NetUtil().upload(api, item);
urls.add(model.url);
}
if (urls.isEmpty) return [];
}
return urls;
}

Loading…
Cancel
Save