This commit is contained in:
wyf
2025-05-20 14:00:44 +08:00
parent 75ddfca402
commit 0a8cffa4c6
48 changed files with 5221 additions and 1733 deletions

View File

@@ -56,6 +56,7 @@ class PersonController extends GetControllerEx<PersonModel> {
RxInt gender = 1.obs;
RxString birthday = "".obs;
RxInt weight = 65.obs;
RxInt height = 175.obs;
DateTime? dateTime = DateTime.now(); //选择时间
RxList diseaseList = [].obs;
@@ -89,6 +90,10 @@ class PersonController extends GetControllerEx<PersonModel> {
apiResponse.msg = "请输入体重".tr;
return apiResponse;
}
if (height.value == 0) {
apiResponse.msg = "请输入身高".tr;
return apiResponse;
}
var data = {
"id": currentPersonId.value,
@@ -98,6 +103,7 @@ class PersonController extends GetControllerEx<PersonModel> {
? MyUtils.formatBindTime(dateTime!)
: birthday.value,
"weight": weight.value,
"height": height.value,
"disease": selectedDiseaseIds.value,
};
var response =