Commit 98ed8045 authored by lujunye's avatar lujunye

jasdl;fajsdl;fjas;ldjf;lafd

parent 25509395
...@@ -34,6 +34,7 @@ class XiaYunDanViewController: BaseViewController,UITableViewDelegate,UITableVie ...@@ -34,6 +34,7 @@ class XiaYunDanViewController: BaseViewController,UITableViewDelegate,UITableVie
vc.car_type = pphCarTypesArr[pph_selectCarType].name! vc.car_type = pphCarTypesArr[pph_selectCarType].name!
vc.price = totalPrice vc.price = totalPrice
vc.pay_time = (model.data?.pay_time)! vc.pay_time = (model.data?.pay_time)!
vc.userToken = UserToken as! String
self.navigationController?.pushViewController(vc, animated: true) self.navigationController?.pushViewController(vc, animated: true)
} failture: { (err) in } failture: { (err) in
......
...@@ -106,7 +106,16 @@ class PPH_SUC_VC: BaseViewController,UITableViewDelegate,UITableViewDataSource { ...@@ -106,7 +106,16 @@ class PPH_SUC_VC: BaseViewController,UITableViewDelegate,UITableViewDataSource {
var car_type = "" var car_type = ""
var price = "" var price = ""
var pay_time = "" var pay_time = ""
var userToken = ""
@IBAction func cancel_order(_ sender: Any) {
cancelOrder(["user_token":userToken as Any,"wb_no":wb_no as Any]) { (data) in
HUD.flash(.label("取消订单完成!"), delay: 1.2)
self.navigationController?.popToRootViewController(animated: true)
} failture: { (err) in
}
}
@IBOutlet weak var top_view_height: NSLayoutConstraint! @IBOutlet weak var top_view_height: NSLayoutConstraint!
@IBOutlet weak var list_view: UITableView! @IBOutlet weak var list_view: UITableView!
@IBOutlet weak var top_view: UIView! @IBOutlet weak var top_view: UIView!
......
...@@ -92,6 +92,9 @@ ...@@ -92,6 +92,9 @@
<real key="value" value="3"/> <real key="value" value="3"/>
</userDefinedRuntimeAttribute> </userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes> </userDefinedRuntimeAttributes>
<connections>
<action selector="cancel_order:" destination="-1" eventType="touchUpInside" id="SWr-oM-zlv"/>
</connections>
</button> </button>
</subviews> </subviews>
<viewLayoutGuide key="safeArea" id="fnl-2z-Ty3"/> <viewLayoutGuide key="safeArea" id="fnl-2z-Ty3"/>
......
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