| | |
| | | sceneDelegate?.window?.addSubview(storesView) |
| | | storesView.cons_bottom.constant = 0 |
| | | storesView.tf_phone.text = model.phone |
| | | storesView.tf_height.text = model.height.string |
| | | storesView.tf_weight.text = model.weight.string |
| | | storesView.tf_height.text = "\(model.height.int)" |
| | | storesView.tf_weight.text = "\(model.weight.int)" |
| | | |
| | | UIView.animate(withDuration: 0.4) { |
| | | storesView.alpha = 1 |
| | |
| | | guard tf_weight.text!.int != 0 else {alertError(msg: "请输入正确的体重");return} |
| | | |
| | | self.endEditing(true) |
| | | Services.editParticipant(id: model!.id, height: tf_height.text!.int!, weight: tf_weight.text!.int!, phone: tf_phone.text,isStudent: model!.isStudent).subscribe(onNext: {data in |
| | | Services.editParticipant(id: model!.id, height: tf_height.text!.int ?? 0, weight: tf_weight.text!.int ?? 0, phone: tf_phone.text,isStudent: model!.isStudent).subscribe(onNext: {data in |
| | | alertSuccess(msg: "修改成功") |
| | | DispatchQueue.main.asyncAfter(deadline: .now()+1) { |
| | | NotificationCenter.default.post(name: StudentUpdate_Nofi, object: nil) |