无故事王国
2024-03-13 919d1d6bb0ec4043ec25b58a492618239ca37529
WanPai/Root/Course/VC/AddStudentVC.swift
@@ -140,12 +140,10 @@
                        guard !tf_birthday.text!.isEmpty else {alertError(msg: "请选择生日");return}
                        guard !tf_gender.text!.isEmpty else {alertError(msg: "请选择性别");return}
                        if type == .course{
                                    guard !tf_height.text!.isEmpty else {alertError(msg: tf_height.placeholder!);return}
                                    guard !tf_weight.text!.isEmpty else {alertError(msg: tf_weight.placeholder!);return}
                                    guard tf_height.text != "0" else {alertError(msg: "请输入正确的身高");return}
                                    guard tf_weight.text != "0" else {alertError(msg: "请输入正确的体重");return}
                        }
                        if !tf_phone.isEmpty{
                                    guard tf_phone.text!.jq_isPhone else {alertError(msg: "请输入正确的手机号");return}