Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
YDL-Component-Medical
Overview
Overview
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
杨凯
YDL-Component-Medical
Commits
904e75bb
Commit
904e75bb
authored
Aug 10, 2022
by
刘鹏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 判断条件减少层级
parent
fc24642f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
12 deletions
+8
-12
MineFragment.kt
m-user/src/main/java/com/yidianling/user/mine/MineFragment.kt
+8
-12
No files found.
m-user/src/main/java/com/yidianling/user/mine/MineFragment.kt
View file @
904e75bb
...
...
@@ -287,19 +287,18 @@ class MineFragment : BaseFragment(), SwipeRefreshLayout.OnRefreshListener, View.
.
subscribeOn
(
Schedulers
.
io
())
.
observeOn
(
AndroidSchedulers
.
mainThread
())
.
subscribe
({
response
->
if
(
"200"
==
response
.
code
){
val
data
=
response
.
data
if
(
data
.
isNotEmpty
())
{
val
effectivityBean
=
data
[
0
]
if
(
"200"
==
response
.
code
&&
response
.
data
.
isNotEmpty
())
{
val
effectivityBean
=
response
.
data
[
0
]
if
(
effectivityBean
.
status
==
1
)
{
//上架
me_card_vip
.
visibility
=
View
.
VISIBLE
if
(
effectivityBean
.
isEffect
==
1
){
me_vip_des
.
text
=
"${effectivityBean.packageName } 有效期至${effectivityBean.overdue}"
tv_open_vip
.
text
=
"查看详情"
}
else
{
if
(
effectivityBean
.
isEffect
==
1
)
{
me_vip_des
.
text
=
"${effectivityBean.packageName} 有效期至${effectivityBean.overdue}"
tv_open_vip
.
text
=
"查看详情"
}
else
{
me_vip_des
.
text
=
"您当前不是会员,开通立享会员特权"
tv_open_vip
.
text
=
"开通会员"
tv_open_vip
.
text
=
"开通会员"
}
}
else
{
//下架
...
...
@@ -308,9 +307,6 @@ class MineFragment : BaseFragment(), SwipeRefreshLayout.OnRefreshListener, View.
}
else
{
me_card_vip
.
visibility
=
View
.
GONE
}
}
else
{
me_card_vip
.
visibility
=
View
.
GONE
}
},
{
me_card_vip
.
visibility
=
View
.
GONE
})
...
...
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