void _uploadImage() async{
EasyLoading.show(status: "正在上传图片");
LCFile file = await LCFile.fromPath('oldgoods', _oldGoodsImageFilePath);
file.save().then((value) {
EasyLoading.dismiss();
_submitForm(file);
}).catchError((error) {
EasyLoading.showToast("上传文件失败");
});
}
void _submitForm(LCFile file){
String goodName = _goodsNameController.text;
String goodDes = _goodsDesController.text;
DeviceInfoPlugin().androidInfo.then((onValue){
LCObject object = new LCObject("oldGoods");
object["name"] = goodName; // String
object["des"] = goodDes; // String
object["uid"] = onValue.androidId; //String
object.add("pics", file);