无故事王国
2023-11-08 5f9cd3ae516f510a9475fd11f440fedf027aa4df
WanPai/Root/Activity/View/StudentUpdateInfoView.swift
@@ -56,8 +56,8 @@
      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
@@ -74,7 +74,7 @@
        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)