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
2821c685
Commit
2821c685
authored
Dec 15, 2020
by
Li
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[李俊岐]修改提现列表ui
parent
5ca39b5d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
13 deletions
+24
-13
WithdrawAdapter.kt
...in/java/com/ym/userinfo/module/adapter/WithdrawAdapter.kt
+1
-2
UserPresenter.kt
...in/java/com/ym/userinfo/module/presenter/UserPresenter.kt
+11
-11
shape_user_item_fbffe6_r6_bg.xml
...fo/src/main/res/drawable/shape_user_item_fbffe6_r6_bg.xml
+12
-0
No files found.
userinfo/src/main/java/com/ym/userinfo/module/adapter/WithdrawAdapter.kt
View file @
2821c685
...
...
@@ -61,7 +61,7 @@ class WithdrawAdapter :
// holder.ivAlreadyCashed.visibility = View.VISIBLE
holder
.
ivNewerOnly
.
setImageResource
(
R
.
drawable
.
icon_item_yitixian
)
// holder.ivAlreadyCashed.visibility = View.VISIBLE
holder
.
layoutRoot
.
setBackgroundResource
(
R
.
drawable
.
icon_user_tip_already_cashed
)
holder
.
layoutRoot
.
setBackgroundResource
(
R
.
drawable
.
shape_user_item_fbffe6_r6_bg
)
holder
.
tvText
.
setTextColor
(
Color
.
parseColor
(
"#999999"
))
}
else
{
// type "1 新人提现 2 打卡提现 3大额提现 4 福利专享 5 订单提现"
...
...
@@ -83,7 +83,6 @@ class WithdrawAdapter :
}
else
{
holder
.
layoutRoot
.
setBackgroundResource
(
R
.
drawable
.
icon_fragment_withdraw_select
)
}
}
}
...
...
userinfo/src/main/java/com/ym/userinfo/module/presenter/UserPresenter.kt
View file @
2821c685
...
...
@@ -43,17 +43,17 @@ class UserPresenter : UserContract.Presenter {
//我的抽奖/提现列表
override
fun
requestGuessMusicLottery
()
{
UserApiClient
.
userApi
.
getGuessMusicLottery
()
.
compose
(
RxSchedulers
.
observableIO2Main
())
.
subscribe
(
object
:
BaseObserver
<
List
<
LotteryEntity
>>()
{
override
fun
onSuccess
(
result
:
List
<
LotteryEntity
>)
{
mView
.
setGuessMusicLotterySuccess
(
result
)
}
override
fun
onFailure
(
e
:
Throwable
,
code
:
String
,
errorMsg
:
String
?)
{
mView
.
setGuessMusicLotteryFailure
()
}
})
//
UserApiClient.userApi.getGuessMusicLottery()
//
.compose(RxSchedulers.observableIO2Main())
//
.subscribe(object : BaseObserver<List<LotteryEntity>>() {
//
override fun onSuccess(result: List<LotteryEntity>) {
//
mView.setGuessMusicLotterySuccess(result)
//
}
//
//
override fun onFailure(e: Throwable, code: String, errorMsg: String?) {
//
mView.setGuessMusicLotteryFailure()
//
}
//
})
}
//抽奖配置
...
...
userinfo/src/main/res/drawable/shape_user_item_fbffe6_r6_bg.xml
0 → 100644
View file @
2821c685
<?xml version="1.0" encoding="utf-8"?>
<shape
xmlns:android=
"http://schemas.android.com/apk/res/android"
xmlns:tools=
"http://schemas.android.com/tools"
android:shape=
"rectangle"
>
<stroke
android:width=
"2dp"
android:color=
"#666666"
/>
<solid
android:color=
"#fbffe6"
/>
<corners
android:radius=
"6dp"
/>
</shape>
\ No newline at end of file
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