无故事王国
2023-10-17 77041c81c325c0bc88c94dc28d732f656cc4c885
WanPai/Root/Course/VC/AddStudentVC.swift
@@ -41,9 +41,9 @@
    override func viewDidLoad() {
        super.viewDidLoad()
        if type == .course{
            title = "添加学员"
            title = "添加运动营成员"
         if studentInfo != nil{
            title = "编辑学员"
            title = "编辑运动营成员"
            tf_name.text = studentInfo!.stuName
            tf_idCard.text = studentInfo!.idCard
            tf_height.text = String(format: "%.0lf", studentInfo!.stuHeight)
@@ -84,7 +84,7 @@
    @IBAction func completeAction(_ sender: UIButton) {
      if studentInfo == nil{
         guard profileImg != nil else {alertError(msg: "请上传学员头像");return}
         guard profileImg != nil else {alertError(msg: "请上传运动营成员头像");return}
      }
        guard !tf_name.text!.isEmpty else {alertError(msg: tf_name.placeholder!);return}