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
10b6ab79
Commit
10b6ab79
authored
Jun 20, 2024
by
mengcuiguang2
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
new pro
parent
42a9fb2e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
21 deletions
+8
-21
MyFragment.kt
...in/java/com/duben/happytheateru/ui/fragment/MyFragment.kt
+5
-15
fragment_main_my.xml
video/app/src/main/res/layout/fragment_main_my.xml
+3
-6
No files found.
video/app/src/main/java/com/duben/happytheateru/ui/fragment/MyFragment.kt
View file @
10b6ab79
...
@@ -149,21 +149,11 @@ class MyFragment : LazyLoadBaseFragment(), MyView, View.OnClickListener {
...
@@ -149,21 +149,11 @@ class MyFragment : LazyLoadBaseFragment(), MyView, View.OnClickListener {
private
fun
loginStatus
(
consumer
:
UserBean
)
{
private
fun
loginStatus
(
consumer
:
UserBean
)
{
// 1-匹配用户
// 1-匹配用户
if
(
consumer
.
activiteFlag
==
1
)
{
ll_my_vip
.
visibility
=
View
.
VISIBLE
// 匹配
ll_my_payrecord
.
visibility
=
View
.
VISIBLE
ll_my_vip
.
visibility
=
View
.
VISIBLE
ll_contactus
.
visibility
=
View
.
VISIBLE
ll_my_payrecord
.
visibility
=
View
.
VISIBLE
line_my_payrecord
.
visibility
=
View
.
VISIBLE
ll_contactus
.
visibility
=
View
.
VISIBLE
line_my_contactus
.
visibility
=
View
.
VISIBLE
line_my_payrecord
.
visibility
=
View
.
VISIBLE
line_my_contactus
.
visibility
=
View
.
VISIBLE
}
else
{
// 未匹配
ll_my_vip
.
visibility
=
View
.
GONE
ll_my_payrecord
.
visibility
=
View
.
GONE
ll_contactus
.
visibility
=
View
.
GONE
line_my_payrecord
.
visibility
=
View
.
GONE
line_my_contactus
.
visibility
=
View
.
GONE
}
// 2-是否有手机号
// 2-是否有手机号
if
(!
TextUtils
.
isEmpty
(
userManager
.
mobile
))
{
if
(!
TextUtils
.
isEmpty
(
userManager
.
mobile
))
{
...
...
video/app/src/main/res/layout/fragment_main_my.xml
View file @
10b6ab79
...
@@ -95,8 +95,7 @@
...
@@ -95,8 +95,7 @@
android:layout_marginRight=
"10dp"
android:layout_marginRight=
"10dp"
android:background=
"@mipmap/bg_my_vip"
android:background=
"@mipmap/bg_my_vip"
android:orientation=
"vertical"
android:orientation=
"vertical"
android:paddingLeft=
"24dp"
android:paddingLeft=
"24dp"
>
android:visibility=
"gone"
>
<TextView
<TextView
android:id=
"@+id/tv_my_vip"
android:id=
"@+id/tv_my_vip"
...
@@ -241,8 +240,7 @@
...
@@ -241,8 +240,7 @@
android:gravity=
"center_vertical"
android:gravity=
"center_vertical"
android:orientation=
"horizontal"
android:orientation=
"horizontal"
android:paddingStart=
"20dp"
android:paddingStart=
"20dp"
android:paddingEnd=
"15dp"
android:paddingEnd=
"15dp"
>
android:visibility=
"gone"
>
<TextView
<TextView
android:layout_width=
"0dp"
android:layout_width=
"0dp"
...
@@ -305,8 +303,7 @@
...
@@ -305,8 +303,7 @@
android:gravity=
"center_vertical"
android:gravity=
"center_vertical"
android:orientation=
"horizontal"
android:orientation=
"horizontal"
android:paddingStart=
"20dp"
android:paddingStart=
"20dp"
android:paddingEnd=
"15dp"
android:paddingEnd=
"15dp"
>
android:visibility=
"gone"
>
<TextView
<TextView
android:id=
"@+id/tv_contact"
android:id=
"@+id/tv_contact"
...
...
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