fix
younger_times
2023-07-28 1639e83c543ea728592570bfa824702e0dca1d63
WanPai/Root/Course/VC/AddStudentVC.swift
@@ -46,8 +46,8 @@
        }
        
        let idCardView = IDCardView()
        idCardView.box.bind { text in
            self.tf_idCard.text = text
        idCardView.box.bind { [weak self] text in
            self?.tf_idCard.text = text
        }
        tf_idCard.inputView = idCardView
@@ -145,8 +145,8 @@
extension AddStudentVC:UITextFieldDelegate{
    func textFieldShouldBeginEditing(_ textField: UITextField) -> Bool {
        if textField == tf_birthday{
            CommonDatePickerView.show(before: 18, after: 0, type: .YMD) { year, month, day in
                textField.text = String(format: "%ld-%02ld-%02ld", year,month,day!)
            CommonDatePickerView.show(before: 18, after: 0, type: .YMD) { year, month, day,_,_ in
                textField.text = String(format: "%ld-%02ld-%02ld", year!,month!,day!)
            }
            return false
        }