| | |
| | | @IBOutlet weak var tf_phone: QMUITextField! |
| | | @IBOutlet weak var tf_code: QMUITextField! |
| | | @IBOutlet weak var btn_code: UIButton! |
| | | @IBOutlet weak var tf_invitePhone: QMUITextField! |
| | | private var wxUserInfoModel:WechatUserInfoModel! |
| | | private var token:String! |
| | | |
| | |
| | | alert(msg: "请输入验证码");return |
| | | } |
| | | |
| | | Services.wxPhoneBind(phone: tf_phone.text!, code: tf_code.text!, openId: wxUserInfoModel.openid).subscribe(onNext: {[weak self] data in |
| | | var invitePhone:String? |
| | | if !tf_invitePhone.isEmpty{ |
| | | guard tf_phone.text!.jq_isPhone else { |
| | | alert(msg: "请输入正确的推广手机号码");return |
| | | } |
| | | } |
| | | |
| | | Services.wxPhoneBind(phone: tf_phone.text!, code: tf_code.text!, openId: wxUserInfoModel.openid,invitePhone: invitePhone).subscribe(onNext: {[weak self] data in |
| | | guard let weakSelf = self else { return } |
| | | if data.code == 200{ |
| | | alertSuccess(msg: "绑定成功") |