|
|
@@ -20,6 +20,7 @@ import com.yingyangfly.baselib.mvvm.BaseMVVMActivity
|
|
|
import com.yingyangfly.baselib.router.RouterUrlCommon
|
|
|
import com.yingyangfly.baselib.utils.LiveEventBusUtil
|
|
|
import com.yingyangfly.baselib.utils.RxBusCodes
|
|
|
+import com.yingyangfly.baselib.utils.User
|
|
|
|
|
|
/**
|
|
|
* 订单支付
|
|
|
@@ -33,18 +34,25 @@ class PaymentActivity : BaseMVVMActivity<ActivityPaymentBinding, PaymentViewMode
|
|
|
private var doctorBean: DoctorBean? = null
|
|
|
private var orderNo = ""
|
|
|
private var method = ""
|
|
|
+ private var patientInfo = ""
|
|
|
private var paymentQrCodeDialog: PaymentQrCodeDialog? = null
|
|
|
private var purchaseConsultationBean: PurchaseConsultationBean? = null
|
|
|
|
|
|
override fun onCreate(savedInstanceState: Bundle?) {
|
|
|
id = intent.getStringExtra("id") ?: ""
|
|
|
price = intent.getStringExtra("price") ?: ""
|
|
|
+ patientInfo = intent.getStringExtra("patientInfo") ?: ""
|
|
|
purchaseConsultationBean =
|
|
|
intent.getSerializableExtra("purchaseConsultationBean") as PurchaseConsultationBean
|
|
|
super.onCreate(savedInstanceState)
|
|
|
}
|
|
|
|
|
|
override fun initViews() {
|
|
|
+ if (TextUtils.isEmpty(patientInfo)) {
|
|
|
+ User.savePatientInfo("")
|
|
|
+ } else {
|
|
|
+ User.savePatientInfo(patientInfo)
|
|
|
+ }
|
|
|
if (doctorDao != null) {
|
|
|
doctorBean = doctorDao?.getDoctor(id)
|
|
|
if (doctorBean != null) {
|