|
|
@ -21,9 +21,8 @@ import 'package:common_utils/common_utils.dart';
|
|
|
|
import 'package:flutter/cupertino.dart';
|
|
|
|
import 'package:flutter/cupertino.dart';
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
import 'package:flutter/services.dart';
|
|
|
|
import 'package:flutter/services.dart';
|
|
|
|
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
|
|
|
|
|
|
|
import 'package:get/get.dart';
|
|
|
|
import 'package:get/get.dart';
|
|
|
|
import 'package:velocity_x/velocity_x.dart';
|
|
|
|
import 'package:power_logger/power_logger.dart';
|
|
|
|
|
|
|
|
|
|
|
|
import 'add_appointment_address_page.dart';
|
|
|
|
import 'add_appointment_address_page.dart';
|
|
|
|
|
|
|
|
|
|
|
@ -75,6 +74,7 @@ class _PublishTaskPageState extends State<PublishTaskPage> {
|
|
|
|
_rewardController.dispose();
|
|
|
|
_rewardController.dispose();
|
|
|
|
_nameController.dispose();
|
|
|
|
_nameController.dispose();
|
|
|
|
_telController.dispose();
|
|
|
|
_telController.dispose();
|
|
|
|
|
|
|
|
BotToast.closeAllLoading();
|
|
|
|
super.dispose();
|
|
|
|
super.dispose();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -142,25 +142,30 @@ class _PublishTaskPageState extends State<PublishTaskPage> {
|
|
|
|
print(e.toString());
|
|
|
|
print(e.toString());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
var re = await TaskFunc.publish(
|
|
|
|
try {
|
|
|
|
type: _type,
|
|
|
|
var re = await TaskFunc.publish(
|
|
|
|
sex: _sex,
|
|
|
|
type: _type,
|
|
|
|
servicePersonnel: _service,
|
|
|
|
sex: _sex,
|
|
|
|
readyStartTime: _appointDate.toString(),
|
|
|
|
servicePersonnel: _service,
|
|
|
|
readyEndTime: _appointEndDate.toString(),
|
|
|
|
readyStartTime: _appointDate.toString(),
|
|
|
|
contact: _nameController.text,
|
|
|
|
readyEndTime: _appointEndDate.toString(),
|
|
|
|
tel: _telController.text,
|
|
|
|
contact: _nameController.text,
|
|
|
|
accessAddress: _accessAddress!,
|
|
|
|
tel: _telController.text,
|
|
|
|
accessAddressDetail: _accessAddressDetail!,
|
|
|
|
accessAddress: _accessAddress!,
|
|
|
|
serviceAddress: _serviceAddress,
|
|
|
|
accessAddressDetail: _accessAddressDetail!,
|
|
|
|
serviceAddressDetail: _serviceAddressDetail,
|
|
|
|
serviceAddress: _serviceAddress,
|
|
|
|
remarks: _content,
|
|
|
|
serviceAddressDetail: _serviceAddressDetail,
|
|
|
|
voiceUrl: _voiceUrl,
|
|
|
|
remarks: _content,
|
|
|
|
imgUrls: imgs,
|
|
|
|
voiceUrl: _voiceUrl,
|
|
|
|
rewardType: _rewardType,
|
|
|
|
imgUrls: imgs,
|
|
|
|
reward: _rewardController.text);
|
|
|
|
rewardType: _rewardType,
|
|
|
|
if (re) {
|
|
|
|
reward: _rewardController.text);
|
|
|
|
Get.back();
|
|
|
|
if (re) {
|
|
|
|
|
|
|
|
Get.back();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
} catch (e) {
|
|
|
|
|
|
|
|
print(e.toString());
|
|
|
|
|
|
|
|
LoggerData.addData(e.toString());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
cancel();
|
|
|
|
cancel();
|
|
|
|
},
|
|
|
|
},
|
|
|
|