无故事王国
2023-10-18 e86e19e5e5909f46e09adec1df430e0214a81590
WanPai/Root/Course/VC/AddStudentVC.swift
@@ -44,6 +44,11 @@
            title = "添加运动营成员"
         if studentInfo != nil{
            title = "编辑运动营成员"
            tf_name.placeholder = "请输入运动营成员姓名"
            tf_height.placeholder = "请输入运动营成员身高"
            tf_weight.placeholder = "请输入运动营成员体重"
            tf_phone.placeholder = "请输入运动营成员联系方式"
            tf_idCard.placeholder = "请输入运动营成员身份证号"
            tf_name.text = studentInfo!.stuName
            tf_idCard.text = studentInfo!.idCard
            tf_height.text = String(format: "%.0lf", studentInfo!.stuHeight)
@@ -56,6 +61,11 @@
         }
        }else{
            title = "添加人员"
         tf_name.placeholder = "请输入人员姓名"
         tf_height.placeholder = "请输入人员身高"
         tf_weight.placeholder = "请输入人员体重"
         tf_phone.placeholder = "请输入人员联系方式"
         tf_idCard.placeholder = "请输入人员身份证号"
        }
        
        let idCardView = IDCardView()