TiXianAlertViewController.swift 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. //
  2. // TiXianAlertViewController.swift
  3. // xingchuangke
  4. //
  5. // Created by Virgil on 2019/4/21.
  6. // Copyright © 2019 Virgil. All rights reserved.
  7. //
  8. import UIKit
  9. class TiXianAlertViewController: BaseViewController {
  10. @IBOutlet weak var btnViewRecrod: UIButton!
  11. var machineTypeId: String = ""
  12. override func viewDidLoad() {
  13. super.viewDidLoad()
  14. self.title = "提示"
  15. initNavLeftBackButton()
  16. btnViewRecrod.setLayer(borderWidth: 1, color: 0xf7f7f9)
  17. btnViewRecrod.setCornerRadius(size: 4)
  18. }
  19. override func handleBack() {
  20. if !CommonUntils.reBackView(controller: self, aclass: MyWalletViewController.classForCoder()) {
  21. self.navigationController?.popToRootViewController(animated: true)
  22. }
  23. }
  24. //btnAddTarget(view: self.view, selector: #selector(self.btnMenuClick))
  25. @IBAction func btnMenuClick(_ sender: AnyObject) {
  26. switch (sender as! UIButton).tag {
  27. case 1001: // 查看提现记录
  28. let vc = TiXianRecordListViewController()
  29. vc.backType = 1
  30. vc.machineTypeId = machineTypeId
  31. toViewController(viewController: vc)
  32. break
  33. case 1002: //
  34. break
  35. case 1003: //
  36. break
  37. case 1004: //
  38. break
  39. case 1005: //
  40. break
  41. case 1006: //
  42. break
  43. default:
  44. break
  45. }
  46. }
  47. override func viewWillAppear(_ animated: Bool) {
  48. super.viewWillAppear(animated)
  49. }
  50. override init(nibName nibNameOrNil: String?, bundle nibBundleOrNil: Bundle?) {
  51. super.init(nibName: "TiXianAlertViewController", bundle: nil)
  52. }
  53. required init?(coder aDecoder: NSCoder) {
  54. fatalError("init(coder:) has not been implemented")
  55. }
  56. }