| | |
| | | @IBOutlet weak var tf_invitePhone: QMUITextField! |
| | | @IBOutlet weak var view_invite: UIView! |
| | | @IBOutlet weak var view_placeholder: UIView! |
| | | required init(type:GetSMSCodeType) { |
| | | |
| | | private var force:String = "" |
| | | |
| | | required init(type:GetSMSCodeType,force:String = "") { |
| | | super.init(nibName: nil, bundle: nil) |
| | | self.type = type |
| | | self.force = force |
| | | } |
| | | |
| | | required init?(coder: NSCoder) { |
| | |
| | | title = type.titleStr |
| | | tf_pwd.maximumTextLength = 18 |
| | | |
| | | tf_phone.text = force |
| | | if !force.isEmpty{alert(msg: "请修改密码")} |
| | | view_invite.isHidden = type != .register |
| | | view_placeholder.isHidden = type != .register |
| | | } |