提交 b8aaa061 authored 作者: 逄仁秀's avatar 逄仁秀

no message

上级 918a0374
...@@ -52,53 +52,5 @@ ...@@ -52,53 +52,5 @@
</Locations> </Locations>
</BreakpointContent> </BreakpointContent>
</BreakpointProxy> </BreakpointProxy>
<BreakpointProxy
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
<BreakpointContent
uuid = "9B032B8C-6F19-44E7-8A9C-C22D77B774A1"
shouldBeEnabled = "Yes"
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "iOS-2kj/home/subC/KJTransferViewController.swift"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "143"
endingLineNumber = "143"
landmarkName = "transferAction(_:)"
landmarkType = "7">
<Locations>
<Location
uuid = "9B032B8C-6F19-44E7-8A9C-C22D77B774A1 - 8d18ad34097b784a"
shouldBeEnabled = "Yes"
ignoreCount = "0"
continueAfterRunningActions = "No"
symbolName = "closure #1 @Sendable (Swift.Optional&lt;Foundation.Data&gt;, Swift.Optional&lt;__C.NSURLResponse&gt;, Swift.Optional&lt;Swift.Error&gt;) -&gt; () in iOS_2kj.KJTransferViewController.transferAction(Any) -&gt; ()"
moduleName = "iOS-2kj"
usesParentBreakpointCondition = "Yes"
urlString = "file:///Users/renxiupang/Documents/rire-tool/iOS-2kj/home/subC/KJTransferViewController.swift"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "143"
endingLineNumber = "143"
offsetFromSymbolStart = "1172">
</Location>
<Location
uuid = "9B032B8C-6F19-44E7-8A9C-C22D77B774A1 - 8d18ad34097b784a"
shouldBeEnabled = "Yes"
ignoreCount = "0"
continueAfterRunningActions = "No"
symbolName = "closure #1 @Sendable (Swift.Optional&lt;Foundation.Data&gt;, Swift.Optional&lt;__C.NSURLResponse&gt;, Swift.Optional&lt;Swift.Error&gt;) -&gt; () in iOS_2kj.KJTransferViewController.transferAction(Any) -&gt; ()"
moduleName = "iOS-2kj"
usesParentBreakpointCondition = "Yes"
urlString = "file:///Users/renxiupang/Documents/rire-tool/iOS-2kj/home/subC/KJTransferViewController.swift"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "143"
endingLineNumber = "143"
offsetFromSymbolStart = "1896">
</Location>
</Locations>
</BreakpointContent>
</BreakpointProxy>
</Breakpoints> </Breakpoints>
</Bucket> </Bucket>
...@@ -19,6 +19,7 @@ class KJBasicData: HandyJSON { ...@@ -19,6 +19,7 @@ class KJBasicData: HandyJSON {
var business_no: String? var business_no: String?
var channel_code: String? var channel_code: String?
var channel_extr_param: String? var channel_extr_param: String?
var conv_no: String?
var fee: String? var fee: String?
required init() {} required init() {}
} }
......
...@@ -140,8 +140,16 @@ class KJTransferViewController: KJBaseViewController, UITextFieldDelegate { ...@@ -140,8 +140,16 @@ class KJTransferViewController: KJBaseViewController, UITextFieldDelegate {
let dataString = String(data: data, encoding: String.Encoding.utf8) let dataString = String(data: data, encoding: String.Encoding.utf8)
let dict = self.getDictionaryFromJSONString(jsonString: dataString!) let dict = self.getDictionaryFromJSONString(jsonString: dataString!)
print(dict) print(dict)
if let arr = [KJBankCodeListModel].deserialize(from: dict["ret"] as! NSArray) { if let model = KJRechargeModel.deserialize(from: dict["ret"] as? NSDictionary) {
self.bankCodeList = arr DispatchQueue.main.async {
let alert = KJGotoPayView(frame: CGRect(x: 0, y: 0, width: kjWidth, height: kjHeight))
alert.conv_no = model.basic_data?.conv_no ?? ""
alert.show()
}
} else {
DispatchQueue.main.async {
self.mc_text(dict["msg"] as! String, duration: 2)
}
} }
} }
task.resume() task.resume()
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
import UIKit import UIKit
class KJEnterPayCodeView: UIView { class KJEnterPayCodeView: UIView, UITextFieldDelegate {
var conv_no: String = "" var conv_no: String = ""
let backView = UIView(frame: CGRect(x: 0, y: kjHeight - 170, width: kjWidth, height: 170)) let backView = UIView(frame: CGRect(x: 0, y: kjHeight - 170, width: kjWidth, height: 170))
...@@ -41,6 +41,7 @@ class KJEnterPayCodeView: UIView { ...@@ -41,6 +41,7 @@ class KJEnterPayCodeView: UIView {
tf1.textAlignment = .center tf1.textAlignment = .center
tf1.font = .systemFont(ofSize: 18) tf1.font = .systemFont(ofSize: 18)
tf1.keyboardType = .decimalPad tf1.keyboardType = .decimalPad
tf1.delegate = self
backView.addSubview(tf1) backView.addSubview(tf1)
tf2.backgroundColor = .white tf2.backgroundColor = .white
...@@ -49,6 +50,7 @@ class KJEnterPayCodeView: UIView { ...@@ -49,6 +50,7 @@ class KJEnterPayCodeView: UIView {
tf2.textAlignment = .center tf2.textAlignment = .center
tf2.font = .systemFont(ofSize: 18) tf2.font = .systemFont(ofSize: 18)
tf2.keyboardType = .decimalPad tf2.keyboardType = .decimalPad
tf2.delegate = self
backView.addSubview(tf2) backView.addSubview(tf2)
tf3.backgroundColor = .white tf3.backgroundColor = .white
...@@ -57,6 +59,7 @@ class KJEnterPayCodeView: UIView { ...@@ -57,6 +59,7 @@ class KJEnterPayCodeView: UIView {
tf3.textAlignment = .center tf3.textAlignment = .center
tf3.font = .systemFont(ofSize: 18) tf3.font = .systemFont(ofSize: 18)
tf3.keyboardType = .decimalPad tf3.keyboardType = .decimalPad
tf3.delegate = self
backView.addSubview(tf3) backView.addSubview(tf3)
tf4.backgroundColor = .white tf4.backgroundColor = .white
...@@ -65,6 +68,7 @@ class KJEnterPayCodeView: UIView { ...@@ -65,6 +68,7 @@ class KJEnterPayCodeView: UIView {
tf4.textAlignment = .center tf4.textAlignment = .center
tf4.font = .systemFont(ofSize: 18) tf4.font = .systemFont(ofSize: 18)
tf4.keyboardType = .decimalPad tf4.keyboardType = .decimalPad
tf4.delegate = self
backView.addSubview(tf4) backView.addSubview(tf4)
tf5.backgroundColor = .white tf5.backgroundColor = .white
...@@ -73,6 +77,7 @@ class KJEnterPayCodeView: UIView { ...@@ -73,6 +77,7 @@ class KJEnterPayCodeView: UIView {
tf5.textAlignment = .center tf5.textAlignment = .center
tf5.font = .systemFont(ofSize: 18) tf5.font = .systemFont(ofSize: 18)
tf5.keyboardType = .decimalPad tf5.keyboardType = .decimalPad
tf5.delegate = self
backView.addSubview(tf5) backView.addSubview(tf5)
tf6.backgroundColor = .white tf6.backgroundColor = .white
...@@ -81,8 +86,15 @@ class KJEnterPayCodeView: UIView { ...@@ -81,8 +86,15 @@ class KJEnterPayCodeView: UIView {
tf6.textAlignment = .center tf6.textAlignment = .center
tf6.font = .systemFont(ofSize: 18) tf6.font = .systemFont(ofSize: 18)
tf6.keyboardType = .decimalPad tf6.keyboardType = .decimalPad
tf6.delegate = self
backView.addSubview(tf6) backView.addSubview(tf6)
let closeBtn = UIButton(type: .custom)
backView.addSubview(closeBtn)
closeBtn.setImage(UIImage(named: "close"), for: .normal)
closeBtn.frame = CGRect(x: kjWidth - 47, y: 21.8, width: 31, height: 31)
closeBtn.addTarget(self, action: #selector(dismiss), for: .touchUpInside)
NotificationCenter.default.addObserver(self, selector: #selector(keyboardWillShow(_:)), name: UIResponder.keyboardWillChangeFrameNotification, object: nil) NotificationCenter.default.addObserver(self, selector: #selector(keyboardWillShow(_:)), name: UIResponder.keyboardWillChangeFrameNotification, object: nil)
NotificationCenter.default.addObserver(self, selector: #selector(keyboardDidHide), name: UIResponder.keyboardDidHideNotification, object: nil) NotificationCenter.default.addObserver(self, selector: #selector(keyboardDidHide), name: UIResponder.keyboardDidHideNotification, object: nil)
} }
...@@ -95,6 +107,7 @@ class KJEnterPayCodeView: UIView { ...@@ -95,6 +107,7 @@ class KJEnterPayCodeView: UIView {
// 根据键盘高度进行相应的操作 // 根据键盘高度进行相应的操作
print("键盘高度为 \(keyboardHeight)") print("键盘高度为 \(keyboardHeight)")
backView.frame = CGRect(x: 0, y: kjHeight - 170 - keyboardHeight, width: kjWidth, height: 170)
} }
} }
} }
......
...@@ -76,25 +76,27 @@ class KJGotoPayView: UIView { ...@@ -76,25 +76,27 @@ class KJGotoPayView: UIView {
getData() getData()
self.backgroundColor = UIColor(white: 0, alpha: 0.8) self.backgroundColor = UIColor(white: 0, alpha: 0.8)
whiteView.backgroundColor = .white
addSubview(whiteView) addSubview(whiteView)
titleL.font = .systemFont(ofSize: 16) titleL.font = .systemFont(ofSize: 16)
titleL.textAlignment = .center titleL.textAlignment = .center
addSubview(titleL) whiteView.addSubview(titleL)
titleL.text = "支付金额" titleL.text = "支付金额"
moneyL.font = .systemFont(ofSize: 28, weight: .medium) moneyL.font = .systemFont(ofSize: 28, weight: .medium)
moneyL.textAlignment = .center moneyL.textAlignment = .center
addSubview(moneyL) whiteView.addSubview(moneyL)
addSubview(yueBackView) whiteView.addSubview(yueBackView)
yueBackView.backgroundColor = .white yueBackView.backgroundColor = .white
yueBackView.addSubview(yueL) yueBackView.addSubview(yueL)
yueL.textColor = UIColor(hex: "#333333") yueL.textColor = UIColor(hex: "#333333")
yueL.font = .systemFont(ofSize: 16) yueL.font = .systemFont(ofSize: 16)
addSubview(toRechargeBack) whiteView.addSubview(toRechargeBack)
toRechargeBack.backgroundColor = .white toRechargeBack.backgroundColor = .white
toRechargeBack.addSubview(toRechargeBtn) toRechargeBack.addSubview(toRechargeBtn)
toRechargeBtn.frame = CGRect(x: 20, y: 0, width: kjWidth - 35, height: 40) toRechargeBtn.frame = CGRect(x: 20, y: 0, width: kjWidth - 35, height: 40)
...@@ -114,7 +116,7 @@ class KJGotoPayView: UIView { ...@@ -114,7 +116,7 @@ class KJGotoPayView: UIView {
toRechargeL.text = "去充值 >" toRechargeL.text = "去充值 >"
toRechargeL.font = .systemFont(ofSize: 16) toRechargeL.font = .systemFont(ofSize: 16)
addSubview(btn) whiteView.addSubview(btn)
btn.frame = CGRect(x: 17.5, y: 255, width: kjWidth - 35, height: 49) btn.frame = CGRect(x: 17.5, y: 255, width: kjWidth - 35, height: 49)
btn.backgroundColor = UIColor(hex: "#6747CD") btn.backgroundColor = UIColor(hex: "#6747CD")
btn.setTitle("立即支付", for: .normal) btn.setTitle("立即支付", for: .normal)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论