Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
L
LuckyFarm
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
王雪伟
LuckyFarm
Commits
5ca39b5d
Commit
5ca39b5d
authored
Dec 15, 2020
by
Li
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[李俊岐] 优化提现列表
parent
57a1250e
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
13 deletions
+23
-13
dialog_layout_warehouse.xml
app/src/main/res/layout/dialog_layout_warehouse.xml
+1
-1
GameDialog.kt
library/src/main/java/com/ym/library/utils/GameDialog.kt
+9
-3
WithdrawAdapter.kt
...in/java/com/ym/userinfo/module/adapter/WithdrawAdapter.kt
+13
-9
No files found.
app/src/main/res/layout/dialog_layout_warehouse.xml
View file @
5ca39b5d
...
...
@@ -15,7 +15,7 @@
android:layout_height=
"360dp"
android:layout_marginTop=
"6dp"
android:layout_marginRight=
"5dp"
android:background=
"@drawable/icon_base_dialog_bg"
>
android:background=
"@drawable/icon_base_dialog_bg
_360
"
>
<com.ym.library.widget.FontTextView
android:layout_width=
"wrap_content"
...
...
library/src/main/java/com/ym/library/utils/GameDialog.kt
View file @
5ca39b5d
...
...
@@ -650,15 +650,21 @@ object GameDialog : BaseDialog() {
tvcashcontent
.
text
=
result
?.
reason
id_img_dialog_close
?.
setOnClickListener
{
mDialog
?
.
dismiss
()
mDialog
.
dismiss
()
}
btm_wihdraw_status
?.
setOnClickListener
{
if
(
result
?.
buttonStatus
==
0
)
{
}
else
if
(
result
?.
buttonStatus
==
1
)
{
JumpUtils
.
jumpWelfareActivity
()
}
else
if
(
result
?.
buttonStatus
==
2
)
{
activity
?.
finish
()
}
mDialog
?.
dismiss
()
}
when
(
result
?.
status
)
{
1
,
5
,
6
->
{
1
,
2
,
5
,
6
->
{
btm_wihdraw_status
.
setImageResource
(
R
.
drawable
.
icon_dialog_zuanqian
)
if
(
result
?.
status
==
1
)
{
when
(
result
?.
type
)
{
...
...
@@ -680,7 +686,7 @@ object GameDialog : BaseDialog() {
}
}
}
2
,
4
->
{
4
->
{
btm_wihdraw_status
.
setImageResource
(
R
.
drawable
.
icon_dialog_lingzhuanshi
)
}
3
->
{
...
...
userinfo/src/main/java/com/ym/userinfo/module/adapter/WithdrawAdapter.kt
View file @
5ca39b5d
package
com.ym.userinfo.module.adapter
import
android.content.Context
import
android.graphics.Color
import
android.view.LayoutInflater
import
android.view.View
import
android.view.ViewGroup
...
...
@@ -56,9 +57,12 @@ class WithdrawAdapter :
holder.ivNewerOnly.visibility = View.GONE
}*/
if
(
data
.
ifUse
==
1
)
{
holder
.
ivNewerOnly
.
visibility
=
View
.
GONE
holder
.
ivNewerOnly
.
visibility
=
View
.
VISIBLE
// holder.ivAlreadyCashed.visibility = View.VISIBLE
holder
.
ivNewerOnly
.
setImageResource
(
R
.
drawable
.
icon_item_yitixian
)
// holder.ivAlreadyCashed.visibility = View.VISIBLE
holder
.
layoutRoot
.
setBackgroundResource
(
R
.
drawable
.
icon_item_yitixian
)
holder
.
layoutRoot
.
setBackgroundResource
(
R
.
drawable
.
icon_user_tip_already_cashed
)
holder
.
tvText
.
setTextColor
(
Color
.
parseColor
(
"#999999"
))
}
else
{
// type "1 新人提现 2 打卡提现 3大额提现 4 福利专享 5 订单提现"
if
(
data
.
type
==
3
)
{
...
...
@@ -74,17 +78,17 @@ class WithdrawAdapter :
}
}
}
}
if
(
position
==
mSelectPosition
)
{
// holder.ivSelectedImg.visibility = View.VISIBLE
holder
.
layoutRoot
.
setBackgroundResource
(
R
.
drawable
.
icon_fragment_withdraw_selected
)
}
else
{
holder
.
layoutRoot
.
setBackgroundResource
(
R
.
drawable
.
icon_fragment_withdraw_select
)
// holder.ivSelectedImg.visibility = View.GONE
}
}
}
holder
.
itemView
.
setOnClickListener
{
listener
?.
onItemClick
(
it
,
position
,
mList
[
position
])
}
...
...
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