|
@@ -17,7 +17,9 @@ import com.yingyangfly.baselib.ext.show
|
|
|
import com.yingyangfly.baselib.ext.toast
|
|
|
import com.yingyangfly.baselib.mvvm.BaseMVVMActivity
|
|
|
import com.yingyangfly.baselib.router.RouterUrlCommon
|
|
|
+import com.yingyangfly.baselib.utils.RxBusCodes
|
|
|
import com.yingyangfly.baselib.utils.RxTimer
|
|
|
+import gorden.rxbus2.RxBus
|
|
|
|
|
|
/**
|
|
|
* 订单支付
|
|
@@ -146,6 +148,10 @@ class PaymentActivity : BaseMVVMActivity<ActivityPaymentBinding, PaymentViewMode
|
|
|
}, success = {
|
|
|
if (it != null) {
|
|
|
val dialog = PaymentQrCodeDialog()
|
|
|
+ dialog.onQueryPaymentStatusListener = {
|
|
|
+ RxBus.get().send(RxBusCodes.SuccessfulPurchase)
|
|
|
+ finish()
|
|
|
+ }
|
|
|
dialog.setPaymentQrCodeBean(it.orderNo, it.qrCode)
|
|
|
dialog.show(supportFragmentManager, "paymentQrCodeDialog")
|
|
|
}
|