| | |
| | | super.viewDidLoad() |
| | | title = "疗愈币充值" |
| | | |
| | | btn_handle.isEnabled = false |
| | | btn_handle.alpha = 0.6 |
| | | |
| | | view.backgroundColor = .white |
| | | |
| | | for v in 0...5{ |
| | | productList.insert("com.XQMuse.p.\(v)") |
| | | } |
| | |
| | | |
| | | override func setUI() { |
| | | view.backgroundColor = UIColor(hexString: "f6f6f6") |
| | | } |
| | | |
| | | override func viewDidLayoutSubviews() { |
| | | super.viewDidLayoutSubviews() |
| | | btn_handle.jq_gradientNibColor(colorArr: [UIColor(hexStr: "#8EA47A").cgColor,UIColor(hexStr: "#AFCA98").cgColor], cornerRadius: 20) |
| | | } |
| | | |
| | |
| | | |
| | | let product = products[selectIndexPath.row] |
| | | InPurchaseManager.purchaseProduct(ID: product.productIdentifier, applicationUsername: userId.string) { model in |
| | | |
| | | if model.status == 0{ |
| | | //需要后端监听推送后,才会更新金额,可能延迟 |
| | | NotificationCenter.default.post(name: Refreh_PaymentWallet_Noti, object: nil) |
| | | } |
| | | } errorClouse: { error in |
| | | alertError(msg: error.localizedDescription) |
| | | } |
| | |
| | | cell.selectAt(indexPath == selectIndexPath) |
| | | let product = products[indexPath.row] |
| | | cell.lable_title.text = product.localizedTitle |
| | | |
| | | btn_handle.isEnabled = true |
| | | btn_handle.alpha = 1.0 |
| | | |
| | | return cell |
| | | } |
| | | } |