Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
android_vedio
Project
Project
Details
Activity
Releases
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
android
android_vedio
Commits
ae2b8224
Commit
ae2b8224
authored
Sep 25, 2023
by
mengcuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码优化
parent
17fc4c26
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
20 deletions
+26
-20
RedpkgFragment.kt
...n/java/com/duben/dayplaylet/ui/fragment/RedpkgFragment.kt
+19
-17
DrawCashFragment.kt
...com/duben/dayplaylet/ui/fragment/draw/DrawCashFragment.kt
+7
-3
No files found.
video/app/src/main/java/com/duben/dayplaylet/ui/fragment/RedpkgFragment.kt
View file @
ae2b8224
...
...
@@ -109,6 +109,25 @@ class RedpkgFragment : LazyLoadBaseFragment(), View.OnClickListener, RedpkgView
// R.mipmap.bg_redpkg_unenable,
// view as ImageView
// )
if
(!
UserManager
.
getInstance
().
alipaySet
)
{
// 去授权
showToast
(
"发起支付宝授权.."
)
AlipayAuthManager
.
authV2
(
requireActivity
(),
object
:
AlipayAuthManager
.
AuthListener
{
override
fun
authSuccess
()
{
showToast
(
"支付宝授权成功"
)
}
override
fun
authFail
(
resultStatus
:
String
)
{
showToast
(
"支付宝授权失败 "
+
resultStatus
)
}
})
return
}
currentClickRedpkg
=
position
redpkgPresenter
.
rdHongbaoClick
()
}
...
...
@@ -302,23 +321,6 @@ class RedpkgFragment : LazyLoadBaseFragment(), View.OnClickListener, RedpkgView
}
override
fun
rdHongbaoClickSuc
(
isCash
:
Boolean
,
cash
:
Double
,
unitId
:
String
)
{
if
(!
UserManager
.
getInstance
().
alipaySet
)
{
// 去授权
showToast
(
"发起支付宝授权.."
)
AlipayAuthManager
.
authV2
(
requireActivity
(),
object
:
AlipayAuthManager
.
AuthListener
{
override
fun
authSuccess
()
{
showToast
(
"支付宝授权成功"
)
}
override
fun
authFail
(
resultStatus
:
String
)
{
showToast
(
"支付宝授权失败 "
+
resultStatus
)
}
})
return
}
val
bundle
=
Bundle
()
bundle
.
putString
(
LoadingActivity
.
TEXT
,
"正在为您发放奖励.."
)
readyGo
(
LoadingActivity
::
class
.
java
,
bundle
)
...
...
video/app/src/main/java/com/duben/dayplaylet/ui/fragment/draw/DrawCashFragment.kt
View file @
ae2b8224
...
...
@@ -313,13 +313,17 @@ class DrawCashFragment : LazyLoadBaseFragment(), DrawCashView, DrawCashAdapter.O
TrackManager
.
getInstance
().
addCashoutReq
(
currentDrawInfo
?.
unitId
)
Handler
(
Looper
.
getMainLooper
()).
postDelayed
({
showToast
(
"提现成功"
)
},
8
00
)
},
10
00
)
}
Constant
.
CARRIERTYPE_REWARD_COIN
->
{
Handler
(
Looper
.
getMainLooper
()).
postDelayed
({
onFragmentResume
()
},
1000
)
}
Constant
.
CARRIERTYPE_REWARD_DI
->
{
Handler
(
Looper
.
getMainLooper
()).
postDelayed
({
onFragmentResume
()
},
1000
)
}
}
}
...
...
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