fixed some issues

hmxc
张萌 4 years ago
parent bd869e6d3c
commit 8e13cfbb0e

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

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

Loading…
Cancel
Save