|
|
@ -402,7 +402,7 @@ class EditInfoController extends GetxController { |
|
|
SmartDialog.dismiss(); |
|
|
SmartDialog.dismiss(); |
|
|
SmartDialog.showToast('上传相册成功'); |
|
|
SmartDialog.showToast('上传相册成功'); |
|
|
|
|
|
|
|
|
// savaImgList(); |
|
|
|
|
|
|
|
|
savaImgList(); |
|
|
// for(int i = 0; i<image.length; i++){ |
|
|
// for(int i = 0; i<image.length; i++){ |
|
|
// |
|
|
// |
|
|
// await processSelectedMoreImage(File(image[i].path), type); |
|
|
// await processSelectedMoreImage(File(image[i].path), type); |
|
|
@ -516,6 +516,19 @@ class EditInfoController extends GetxController { |
|
|
userData.value?.auditProfilePhoto = { |
|
|
userData.value?.auditProfilePhoto = { |
|
|
"auditStatus": 0 |
|
|
"auditStatus": 0 |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
final result = await _userApi.getMarriageInformationDetail(); |
|
|
|
|
|
// print(result.data); |
|
|
|
|
|
if (result.data.isSuccess) { |
|
|
|
|
|
final information = result.data.data!; |
|
|
|
|
|
information.matchmakerFlag = userData.value?.matchmakerFlag ?? false; |
|
|
|
|
|
information.realName = userData.value?.realName; |
|
|
|
|
|
information.phone = userData.value?.phone; |
|
|
|
|
|
GlobalData().userData = information; |
|
|
|
|
|
|
|
|
|
|
|
await storage.write('userId', GlobalData().userId); |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
} else{ |
|
|
} else{ |
|
|
|
|
|
|
|
|
SmartDialog.showToast(avatarAuditResp.data.message); |
|
|
SmartDialog.showToast(avatarAuditResp.data.message); |
|
|
@ -540,7 +553,18 @@ class EditInfoController extends GetxController { |
|
|
|
|
|
|
|
|
final imgAuditResp = await _userApi.saveCertificationAudit(imgPayload); |
|
|
final imgAuditResp = await _userApi.saveCertificationAudit(imgPayload); |
|
|
if (imgAuditResp.data.isSuccess) { |
|
|
if (imgAuditResp.data.isSuccess) { |
|
|
|
|
|
final result = await _userApi.getMarriageInformationDetail(); |
|
|
|
|
|
// print(result.data); |
|
|
|
|
|
if (result.data.isSuccess) { |
|
|
|
|
|
final information = result.data.data!; |
|
|
|
|
|
information.matchmakerFlag = userData.value?.matchmakerFlag ?? false; |
|
|
|
|
|
information.realName = userData.value?.realName; |
|
|
|
|
|
information.phone = userData.value?.phone; |
|
|
|
|
|
GlobalData().userData = information; |
|
|
|
|
|
|
|
|
|
|
|
await storage.write('userId', GlobalData().userId); |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
} else{ |
|
|
} else{ |
|
|
|
|
|
|
|
|
SmartDialog.showToast(imgAuditResp.data.message); |
|
|
SmartDialog.showToast(imgAuditResp.data.message); |
|
|
@ -569,6 +593,19 @@ class EditInfoController extends GetxController { |
|
|
if (res.data.isSuccess) { |
|
|
if (res.data.isSuccess) { |
|
|
imgList.removeAt(index); |
|
|
imgList.removeAt(index); |
|
|
userData.value!.photoList!.removeAt(index); |
|
|
userData.value!.photoList!.removeAt(index); |
|
|
|
|
|
|
|
|
|
|
|
final result = await _userApi.getMarriageInformationDetail(); |
|
|
|
|
|
// print(result.data); |
|
|
|
|
|
if (result.data.isSuccess) { |
|
|
|
|
|
final information = result.data.data!; |
|
|
|
|
|
information.matchmakerFlag = userData.value?.matchmakerFlag ?? false; |
|
|
|
|
|
information.realName = userData.value?.realName; |
|
|
|
|
|
information.phone = userData.value?.phone; |
|
|
|
|
|
GlobalData().userData = information; |
|
|
|
|
|
|
|
|
|
|
|
await storage.write('userId', GlobalData().userId); |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
} else{ |
|
|
} else{ |
|
|
|
|
|
|
|
|
SmartDialog.showToast(res.data.message); |
|
|
SmartDialog.showToast(res.data.message); |
|
|
|