12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697 |
- //
- // 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")
- }
- }
|