| | |
| | | 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) |
| | |
| | | } |
| | | }else{ |
| | | title = "添加人员" |
| | | tf_name.placeholder = "请输入人员姓名" |
| | | tf_height.placeholder = "请输入人员身高" |
| | | tf_weight.placeholder = "请输入人员体重" |
| | | tf_phone.placeholder = "请输入人员联系方式" |
| | | tf_idCard.placeholder = "请输入人员身份证号" |
| | | } |
| | | |
| | | let idCardView = IDCardView() |