// // ShopAuthViewController.swift // xingchuangke // // Created by Virgil on 2019/8/12. // Copyright © 2019 Virgil. All rights reserved. // import UIKit class ShopAuthViewController: BaseViewController, AVCaptureViewControllerDelegate { @IBOutlet weak var txtPhone: UITextField! @IBOutlet weak var txtBankCard: UITextField! @IBOutlet weak var txtBank: UITextField! @IBOutlet weak var txtIDCard: UITextField! @IBOutlet weak var txtName: UITextField! override func viewDidLoad() { super.viewDidLoad() self.title = "商户认证" initNavLeftBackButton() } override func KeyboardHidden(gestureRecognizer: UIGestureRecognizer) { txtName.resignFirstResponder() txtIDCard.resignFirstResponder() txtBank.resignFirstResponder() txtBankCard.resignFirstResponder() txtPhone.resignFirstResponder() } @IBAction func btnMenuClick(_ sender: AnyObject) { switch (sender as! UIButton).tag { case 1001: // 识别身份证号 let vc = AVCaptureViewController() vc.delegate = self vc.cardType = 0 self.present(vc, animated: true) { } break case 1002: // 开户行 break case 1003: // 下一步 toViewController(viewController: SettlementViewController()) break case 1004: // break case 1005: // break case 1006: // break default: break } } // MARK: =============加载数据=============== func loadData() { let url = RequestURL.qybFindBankList let params = NSMutableDictionary() params.setValue("", forKey: "subjectId") params.setValue("", forKey: "showTimeSort") params.setValue("", forKey: "priceSort") loadDataInfo(url: url, params: params, tag: 1001) } override func returnData(tag: Int) { if tag == 1001 { } } override func returnError(tag: Int, type: String) { } func avCaptureViewReData(_ iDInfo: IDInfo!, img: UIImage!) { //txtIDCard.text = iDInfo.num! //imgShow.image = img; } override func viewWillAppear(_ animated: Bool) { super.viewWillAppear(animated) } override init(nibName nibNameOrNil: String?, bundle nibBundleOrNil: Bundle?) { super.init(nibName: "ShopAuthViewController", bundle: nil) } required init?(coder aDecoder: NSCoder) { fatalError("init(coder:) has not been implemented") } }