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.) ////app/ type (1.2.3.4.)
String get advice => '/user/advice/list'; String get advice => '/user/advice/list';
///appidid
String get reportRepairFindBYLD => '/user/reportRepair/findById';
/// // /// //
String get addAdvice => '/user/advice/insert'; String get addAdvice => '/user/advice/insert';
} }

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

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

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

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

Loading…
Cancel
Save