Commit 8615453b authored by 刘俊宏's avatar 刘俊宏

修改方法名

parent 0d5050c0
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
import UIKit import UIKit
protocol GeliAlertTextFiledDelegate { protocol GeliAlertTextFiledDelegate {
func sureAction(sender:String) func sureGeliAlertTextFiledAction(sender:String)
} }
class GeliAlertTextFiled: UIView { class GeliAlertTextFiled: UIView {
...@@ -20,7 +20,7 @@ class GeliAlertTextFiled: UIView { ...@@ -20,7 +20,7 @@ class GeliAlertTextFiled: UIView {
self.removeFromSuperview() self.removeFromSuperview()
} }
@IBAction func rightAction(_ sender: UIButton) { @IBAction func rightAction(_ sender: UIButton) {
self.delegate?.sureAction(sender: textTF.text) self.delegate?.sureGeliAlertTextFiledAction(sender: textTF.text!)
print("GeliAlertTextFiled\(textTF.text)") print("GeliAlertTextFiled\(textTF.text)")
self.removeFromSuperview() self.removeFromSuperview()
} }
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
import UIKit import UIKit
protocol GeliAlertTextViewDelegate { protocol GeliAlertTextViewDelegate {
func sureAction(sender:String) func sureGeliAlertTextViewAction(sender:String)
} }
class GeliAlertTextView: UIView, UITextViewDelegate { class GeliAlertTextView: UIView, UITextViewDelegate {
var delegate: GeliAlertTextViewDelegate? var delegate: GeliAlertTextViewDelegate?
...@@ -19,7 +19,7 @@ class GeliAlertTextView: UIView, UITextViewDelegate { ...@@ -19,7 +19,7 @@ class GeliAlertTextView: UIView, UITextViewDelegate {
self.removeFromSuperview() self.removeFromSuperview()
} }
@IBAction func rightAction(_ sender: UIButton) { @IBAction func rightAction(_ sender: UIButton) {
self.delegate?.sureAction(sender: textview.text) self.delegate?.sureGeliAlertTextViewAction(sender: textview.text)
self.removeFromSuperview() self.removeFromSuperview()
} }
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
import UIKit import UIKit
protocol GeliAlertViewDelegate { protocol GeliAlertViewDelegate {
func sureAction(sender:UIButton) func sureGeliAlertViewAction(sender:UIButton)
} }
class GeliAlertView: UIView { class GeliAlertView: UIView {
var contentView:UIView! var contentView:UIView!
...@@ -24,7 +24,7 @@ class GeliAlertView: UIView { ...@@ -24,7 +24,7 @@ class GeliAlertView: UIView {
} }
@IBAction func rightAction(_ sender: UIButton) { @IBAction func rightAction(_ sender: UIButton) {
print("右→边按钮响应") print("右→边按钮响应")
self.delegate?.sureAction(sender: sender) self.delegate?.sureGeliAlertViewAction(sender: sender)
self.removeFromSuperview() self.removeFromSuperview()
} }
......
...@@ -124,7 +124,7 @@ class PayViewController: BaseViewController ,GeliAlertViewDelegate{ ...@@ -124,7 +124,7 @@ class PayViewController: BaseViewController ,GeliAlertViewDelegate{
} }
} }
func sureAction(sender: UIButton) { func sureGeliAlertViewAction(sender: UIButton) {
UIApplication.shared.openURL(NSURL.init(string: "tel://020-81338860")! as URL) UIApplication.shared.openURL(NSURL.init(string: "tel://020-81338860")! as URL)
} }
......
...@@ -262,7 +262,7 @@ class CheckWareHourseViewController: BaseViewController,UITableViewDelegate,UITa ...@@ -262,7 +262,7 @@ class CheckWareHourseViewController: BaseViewController,UITableViewDelegate,UITa
self.view.window?.addSubview(alertView) self.view.window?.addSubview(alertView)
} }
func sureAction(sender: UIButton) { func sureGeliAlertViewAction(sender: UIButton) {
self.navigationController?.popViewController(animated: true) self.navigationController?.popViewController(animated: true)
} }
@objc func removeActin(sender:UIButton){ @objc func removeActin(sender:UIButton){
......
...@@ -61,7 +61,7 @@ class LoginViewController: BaseViewController, CodeViewDelegate,GeliAlertViewDel ...@@ -61,7 +61,7 @@ class LoginViewController: BaseViewController, CodeViewDelegate,GeliAlertViewDel
alertView.titileLbl.text = "如忘记密码,请联系后台人员修改密码,请联系:" alertView.titileLbl.text = "如忘记密码,请联系后台人员修改密码,请联系:"
self.view.window?.addSubview(alertView) self.view.window?.addSubview(alertView)
} }
func sureAction(sender: UIButton) { func sureGeliAlertViewAction(sender: UIButton) {
UIApplication.shared.openURL(NSURL.init(string: "tel://020-81338860")! as URL) UIApplication.shared.openURL(NSURL.init(string: "tel://020-81338860")! as URL)
} }
......
...@@ -236,7 +236,7 @@ class OrderListVC: BaseViewController, UITableViewDelegate, UITableViewDataSourc ...@@ -236,7 +236,7 @@ class OrderListVC: BaseViewController, UITableViewDelegate, UITableViewDataSourc
} }
} }
func sureAction(sender: UIButton) { func sureGeliAlertViewAction(sender: UIButton) {
if isSrueOrder { if isSrueOrder {
let UserToken = UserDefaults.standard.value(forKey: "user_token") let UserToken = UserDefaults.standard.value(forKey: "user_token")
......
...@@ -737,7 +737,7 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa ...@@ -737,7 +737,7 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
//MARK:--确认和取消订单 //MARK:--确认和取消订单
var isSrueOrder = false var isSrueOrder = false
//MARK:--弹窗代理 --还有其他弹窗,根据tag分类 //MARK:--弹窗代理 --还有其他弹窗,根据tag分类
func sureAction(sender: UIButton) { func sureGeliAlertViewAction(sender: UIButton) {
if isSrueOrder { if isSrueOrder {
HUD.flash(.progress) HUD.flash(.progress)
let UserToken = UserDefaults.standard.value(forKey: "user_token") let UserToken = UserDefaults.standard.value(forKey: "user_token")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment