From f7e33a3255d9f87b20e4a06fc32012eaad77cad5 Mon Sep 17 00:00:00 2001 From: 无故事王国 <841720330@qq.com> Date: 星期三, 11 十月 2023 14:52:37 +0800 Subject: [PATCH] 完善 --- WanPai/Root/Other/VC/PaymentResultVC.swift | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/WanPai/Root/Other/VC/PaymentResultVC.swift b/WanPai/Root/Other/VC/PaymentResultVC.swift index b92962a..a292306 100644 --- a/WanPai/Root/Other/VC/PaymentResultVC.swift +++ b/WanPai/Root/Other/VC/PaymentResultVC.swift @@ -23,7 +23,8 @@ } - @IBOutlet weak var img_paymentState: UIImageView! + @IBOutlet weak var label_title: UILabel! + @IBOutlet weak var img_paymentState: UIImageView! @IBOutlet weak var label_content: UILabel! @IBOutlet weak var collectionView: UICollectionView! @IBOutlet weak var btn_backHome: UIButton! @@ -83,11 +84,13 @@ } switch result { case .fail(let str): + label_title.text = "支付失败" btn_again.setTitle("再次支付", for: .normal) btn_back.setTitle("返回", for: .normal) img_paymentState.image = UIImage(named: "icon_fail") label_content.text = str case .success: + label_title.text = "支付成功" btn_again.setTitle("立即预约", for: .normal) btn_back.setTitle("返回首页", for: .normal) img_paymentState.image = UIImage(named: "icon_success") -- Gitblit v1.7.1