Commit 10beb9c2 authored by 王雪伟's avatar 王雪伟

[提交人]:王雪伟

[提交简述] :小象省钱
[实现方案] :取消支付的loading
parent 2fa02f56
...@@ -190,7 +190,7 @@ class RightsDetailActivity : BaseActivity(), RightsDetailContract.View, RightsPa ...@@ -190,7 +190,7 @@ class RightsDetailActivity : BaseActivity(), RightsDetailContract.View, RightsPa
} else { } else {
EventUtils.onEvent("wx_pay_error", obj.txt) EventUtils.onEvent("wx_pay_error", obj.txt)
} }
// showResultLoading(false) showResultLoading(false)
} }
}, Consumer<Throwable> { }) }, Consumer<Throwable> { })
} }
...@@ -211,17 +211,23 @@ class RightsDetailActivity : BaseActivity(), RightsDetailContract.View, RightsPa ...@@ -211,17 +211,23 @@ class RightsDetailActivity : BaseActivity(), RightsDetailContract.View, RightsPa
} }
override fun requestOrderFail(errorMsg: String) { override fun requestOrderFail(errorMsg: String) {
mLoading?.setResult(false, "请求失败", 1000) showResultLoading(false)
} }
override fun verifyOrderSuc(order: String) { override fun verifyOrderSuc(order: String) {
mLoading?.setResult(true, "支付成功", 1000) showResultLoading(true)
} }
override fun verifyOrderFail(errorMsg: String) { override fun verifyOrderFail(errorMsg: String) {
mLoading?.setResult(false, "支付失败", 1000) showResultLoading(false)
}
private fun showResultLoading(isPaySuc: Boolean) {
if (isPaySuc) {
mLoading?.setResult(true, "支付成功", 1000)
} else {
mLoading?.setResult(false, "支付失败", 1000)
}
} }
override fun onDestroy() { override fun onDestroy() {
super.onDestroy() super.onDestroy()
if (payResultObservable != null) if (payResultObservable != null)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment