BJShopDetailViewController.swift 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. //
  2. // ShopAuthViewController.swift
  3. // xingchuangke
  4. //
  5. // Created by Virgil on 2019/8/12.
  6. // Copyright © 2019 Virgil. All rights reserved.
  7. //
  8. import UIKit
  9. class BJShopDetailViewController: BaseViewController, AVCaptureViewControllerDelegate {
  10. @IBOutlet weak var txtPhone: UITextField!
  11. @IBOutlet weak var txtBankCard: UITextField!
  12. @IBOutlet weak var txtIDCard: UITextField!
  13. @IBOutlet weak var txtName: UITextField!
  14. override func viewDidLoad() {
  15. super.viewDidLoad()
  16. self.title = "店铺信息"
  17. initNavLeftBackButton()
  18. }
  19. override func KeyboardHidden(gestureRecognizer: UIGestureRecognizer) {
  20. txtName.resignFirstResponder()
  21. txtIDCard.resignFirstResponder()
  22. txtBankCard.resignFirstResponder()
  23. txtPhone.resignFirstResponder()
  24. }
  25. //btnAddTarget(view: self.view, selector: #selector(self.btnMenuClick))
  26. @IBAction func btnMenuClick(_ sender: AnyObject) {
  27. switch (sender as! UIButton).tag {
  28. case 1001: // 识别身份证号
  29. let vc = AVCaptureViewController()
  30. vc.delegate = self
  31. self.present(vc, animated: true) {
  32. }
  33. break
  34. case 1002: // 开户行
  35. break
  36. case 1003: // 下一步
  37. toViewController(viewController: BJBindViewController())
  38. break
  39. case 1004: //
  40. break
  41. case 1005: //
  42. break
  43. case 1006: //
  44. break
  45. default:
  46. break
  47. }
  48. }
  49. func avCaptureViewReData(_ iDInfo: IDInfo!, img: UIImage!) {
  50. txtIDCard.text = iDInfo.num!
  51. //imgShow.image = img;
  52. }
  53. override func viewWillAppear(_ animated: Bool) {
  54. super.viewWillAppear(animated)
  55. }
  56. override init(nibName nibNameOrNil: String?, bundle nibBundleOrNil: Bundle?) {
  57. super.init(nibName: "BJShopDetailViewController", bundle: nil)
  58. }
  59. required init?(coder aDecoder: NSCoder) {
  60. fatalError("init(coder:) has not been implemented")
  61. }
  62. }