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

修改方法名

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