12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 |
- //
- // ShopAuthViewController.swift
- // xingchuangke
- //
- // Created by Virgil on 2019/8/12.
- // Copyright © 2019 Virgil. All rights reserved.
- //
- import UIKit
- class BJShopDetailViewController: BaseViewController, AVCaptureViewControllerDelegate {
- @IBOutlet weak var txtPhone: UITextField!
- @IBOutlet weak var txtBankCard: 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()
- txtBankCard.resignFirstResponder()
- txtPhone.resignFirstResponder()
- }
- //btnAddTarget(view: self.view, selector: #selector(self.btnMenuClick))
- @IBAction func btnMenuClick(_ sender: AnyObject) {
- switch (sender as! UIButton).tag {
- case 1001: // 识别身份证号
- let vc = AVCaptureViewController()
- vc.delegate = self
- self.present(vc, animated: true) {
- }
- break
- case 1002: // 开户行
- break
- case 1003: // 下一步
- toViewController(viewController: BJBindViewController())
- break
- case 1004: //
- break
- case 1005: //
- break
- case 1006: //
- break
- default:
- break
- }
- }
- 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: "BJShopDetailViewController", bundle: nil)
- }
- required init?(coder aDecoder: NSCoder) {
- fatalError("init(coder:) has not been implemented")
- }
- }
|