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
a62d4791
Commit
a62d4791
authored
Jun 14, 2022
by
王雪伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[提交人]:王雪伟
[提交简述] :1.1.0 [实现方案] :调整UI
parent
c98ad084
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
PhoneVouchersActivity.kt
...ava/com/zxbw/modulemain/activity/PhoneVouchersActivity.kt
+5
-5
No files found.
moduleMain/src/main/java/com/zxbw/modulemain/activity/PhoneVouchersActivity.kt
View file @
a62d4791
...
@@ -54,19 +54,19 @@ class PhoneVouchersActivity : BaseActivity() {
...
@@ -54,19 +54,19 @@ class PhoneVouchersActivity : BaseActivity() {
.
subscribe
(
object
:
BaseObserver
<
List
<
CouponsEntity
>>()
{
.
subscribe
(
object
:
BaseObserver
<
List
<
CouponsEntity
>>()
{
override
fun
onSuccess
(
result
:
List
<
CouponsEntity
>?)
{
override
fun
onSuccess
(
result
:
List
<
CouponsEntity
>?)
{
if
(
result
.
isNullOrEmpty
())
{
if
(
result
.
isNullOrEmpty
())
{
id_phone_voucher_empty
?.
visibility
=
View
.
GONE
id_rl_phone_voucher
?.
visibility
=
View
.
VISIBLE
}
else
{
id_phone_voucher_empty
?.
visibility
=
View
.
VISIBLE
id_phone_voucher_empty
?.
visibility
=
View
.
VISIBLE
id_rl_phone_voucher
?.
visibility
=
View
.
GONE
id_rl_phone_voucher
?.
visibility
=
View
.
GONE
}
else
{
id_phone_voucher_empty
?.
visibility
=
View
.
GONE
id_rl_phone_voucher
?.
visibility
=
View
.
VISIBLE
mAdapter
?.
clear
()
mAdapter
?.
clear
()
mAdapter
?.
appendToList
(
result
)
mAdapter
?.
appendToList
(
result
)
}
}
}
}
override
fun
onFailure
(
e
:
Throwable
?,
code
:
String
?,
errorMsg
:
String
?)
{
override
fun
onFailure
(
e
:
Throwable
?,
code
:
String
?,
errorMsg
:
String
?)
{
id_phone_voucher_empty
?.
visibility
=
View
.
GON
E
id_phone_voucher_empty
?.
visibility
=
View
.
VISIBL
E
id_rl_phone_voucher
?.
visibility
=
View
.
VISIBL
E
id_rl_phone_voucher
?.
visibility
=
View
.
GON
E
}
}
})
})
}
}
...
...
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