杨锴
2024-10-24 e821bea13d9f20905bba3972c4e9c4964994db5d
XQMuse/Root/Home/VC/PaymentOrderVC.swift
@@ -134,6 +134,20 @@
            @IBAction func completeAction(_ sender: UIButton) {
                        guard let m = courseModel else {return}
        guard btn_isRead.isSelected else {
            alertError(msg: "请先阅读并同意《课程/疗愈音频购买协议》");return
        }
        if giftToOther {
            guard !tf_phone.text!.isEmpty else {
                alertError(msg: "请输入您要赠送人的手机号");return
            }
            guard giftUserId != nil else {
                alertError(msg: "请先查询赠送人是否存在");return
            }
        }
                        guard balance > m.generalPrice else{
                                    CommonAlertView.show(title: "提示", content: "当前余额不足,请先充值", cancelStr: "暂不充值", completeStr: "去充值", isSingle: false) { state in
@@ -142,16 +156,6 @@
                                                }
                                    }
                                    return
                        }
                        guard btn_isRead.isSelected else {
                                    alertError(msg: "请先阅读并同意《课程/疗愈音频购买协议》");return
                        }
                        if giftToOther {
                                    guard giftUserId != nil else {
                                                alertError(msg: "请输入您要赠送人的手机号");return
                                    }
                        }
                        let vc = PaymentOrderResultVC(courseId: courseId, price: m.generalPrice)