Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
X
xxsq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
王雪伟
xxsq
Commits
10beb9c2
Commit
10beb9c2
authored
May 23, 2022
by
王雪伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[提交人]:王雪伟
[提交简述] :小象省钱 [实现方案] :取消支付的loading
parent
2fa02f56
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
5 deletions
+11
-5
RightsDetailActivity.kt
...java/com/zxbw/modulemain/activity/RightsDetailActivity.kt
+11
-5
No files found.
moduleMain/src/main/java/com/zxbw/modulemain/activity/RightsDetailActivity.kt
View file @
10beb9c2
...
...
@@ -190,7 +190,7 @@ class RightsDetailActivity : BaseActivity(), RightsDetailContract.View, RightsPa
}
else
{
EventUtils
.
onEvent
(
"wx_pay_error"
,
obj
.
txt
)
}
//
showResultLoading(false)
showResultLoading
(
false
)
}
},
Consumer
<
Throwable
>
{
})
}
...
...
@@ -211,17 +211,23 @@ class RightsDetailActivity : BaseActivity(), RightsDetailContract.View, RightsPa
}
override
fun
requestOrderFail
(
errorMsg
:
String
)
{
mLoading
?.
setResult
(
false
,
"请求失败"
,
1000
)
showResultLoading
(
false
)
}
override
fun
verifyOrderSuc
(
order
:
String
)
{
mLoading
?.
setResult
(
true
,
"支付成功"
,
1000
)
showResultLoading
(
true
)
}
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
()
{
super
.
onDestroy
()
if
(
payResultObservable
!=
null
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment