ShopAuthViewController.swift 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  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 ShopAuthViewController: BaseViewController, AVCaptureViewControllerDelegate {
  10. @IBOutlet weak var txtPhone: UITextField!
  11. @IBOutlet weak var txtBankCard: UITextField!
  12. @IBOutlet weak var txtBank: UITextField!
  13. @IBOutlet weak var txtIDCard: UITextField!
  14. @IBOutlet weak var txtName: UITextField!
  15. override func viewDidLoad() {
  16. super.viewDidLoad()
  17. self.title = "商户认证"
  18. initNavLeftBackButton()
  19. }
  20. override func KeyboardHidden(gestureRecognizer: UIGestureRecognizer) {
  21. txtName.resignFirstResponder()
  22. txtIDCard.resignFirstResponder()
  23. txtBank.resignFirstResponder()
  24. txtBankCard.resignFirstResponder()
  25. txtPhone.resignFirstResponder()
  26. }
  27. @IBAction func btnMenuClick(_ sender: AnyObject) {
  28. switch (sender as! UIButton).tag {
  29. case 1001: // 识别身份证号
  30. let vc = AVCaptureViewController()
  31. vc.delegate = self
  32. vc.cardType = 0
  33. self.present(vc, animated: true) {
  34. }
  35. break
  36. case 1002: // 开户行
  37. break
  38. case 1003: // 下一步
  39. toViewController(viewController: SettlementViewController())
  40. break
  41. case 1004: //
  42. break
  43. case 1005: //
  44. break
  45. case 1006: //
  46. break
  47. default:
  48. break
  49. }
  50. }
  51. // MARK: =============加载数据===============
  52. func loadData() {
  53. let url = RequestURL.qybFindBankList
  54. let params = NSMutableDictionary()
  55. params.setValue("", forKey: "subjectId")
  56. params.setValue("", forKey: "showTimeSort")
  57. params.setValue("", forKey: "priceSort")
  58. loadDataInfo(url: url, params: params, tag: 1001)
  59. }
  60. override func returnData(tag: Int) {
  61. if tag == 1001 {
  62. }
  63. }
  64. override func returnError(tag: Int, type: String) {
  65. }
  66. func avCaptureViewReData(_ iDInfo: IDInfo!, img: UIImage!) {
  67. //txtIDCard.text = iDInfo.num!
  68. //imgShow.image = img;
  69. }
  70. override func viewWillAppear(_ animated: Bool) {
  71. super.viewWillAppear(animated)
  72. }
  73. override init(nibName nibNameOrNil: String?, bundle nibBundleOrNil: Bundle?) {
  74. super.init(nibName: "ShopAuthViewController", bundle: nil)
  75. }
  76. required init?(coder aDecoder: NSCoder) {
  77. fatalError("init(coder:) has not been implemented")
  78. }
  79. }