Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
android_vediosocial
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_vediosocial
Commits
20d21274
Commit
20d21274
authored
Feb 12, 2025
by
mengcuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码优化
parent
fa371d3b
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
48 additions
and
15 deletions
+48
-15
UserBean.java
.../main/java/com/duben/loveplayletd/mvp/model/UserBean.java
+9
-0
MyFragment.kt
...ain/java/com/duben/loveplayletd/ui/fragment/MyFragment.kt
+36
-13
SquareFragment.kt
...java/com/duben/loveplayletd/ui/fragment/SquareFragment.kt
+2
-2
fragment_main_my.xml
video/app/src/main/res/layout/fragment_main_my.xml
+1
-0
No files found.
video/app/src/main/java/com/duben/loveplayletd/mvp/model/UserBean.java
View file @
20d21274
...
@@ -28,6 +28,7 @@ public class UserBean implements Serializable {
...
@@ -28,6 +28,7 @@ public class UserBean implements Serializable {
private
int
idcardStatus
;
//认证状态,1 已认证
private
int
idcardStatus
;
//认证状态,1 已认证
private
int
beans
;
//金币,买各种虚拟资产证
private
int
beans
;
//金币,买各种虚拟资产证
private
int
rewardCoin
;
//奖励金额
private
int
rewardCoin
;
//奖励金额
private
int
planSex
;
//1男2女,0没匹配上
private
String
city
;
//城市
private
String
city
;
//城市
private
String
age
;
//年龄
private
String
age
;
//年龄
private
String
headerUrl
;
//头像
private
String
headerUrl
;
//头像
...
@@ -207,4 +208,12 @@ public class UserBean implements Serializable {
...
@@ -207,4 +208,12 @@ public class UserBean implements Serializable {
public
int
getActiviteFlag
()
{
public
int
getActiviteFlag
()
{
return
activiteFlag
;
return
activiteFlag
;
}
}
public
int
getPlanSex
()
{
return
planSex
;
}
public
void
setPlanSex
(
int
planSex
)
{
this
.
planSex
=
planSex
;
}
}
}
video/app/src/main/java/com/duben/loveplayletd/ui/fragment/MyFragment.kt
View file @
20d21274
...
@@ -65,7 +65,7 @@ class MyFragment : LazyLoadBaseFragment(), MyView, View.OnClickListener {
...
@@ -65,7 +65,7 @@ class MyFragment : LazyLoadBaseFragment(), MyView, View.OnClickListener {
}
}
if
(!
TextUtils
.
isEmpty
(
userManager
?.
userID
))
{
if
(!
TextUtils
.
isEmpty
(
userManager
?.
userID
))
{
myPresenter
.
getBaseMsg
()
myPresenter
.
getBaseMsg
()
myPresenter
.
getUserHallMsg
()
}
else
{
}
else
{
myPresenter
.
userLogin
()
myPresenter
.
userLogin
()
}
}
...
@@ -77,7 +77,10 @@ class MyFragment : LazyLoadBaseFragment(), MyView, View.OnClickListener {
...
@@ -77,7 +77,10 @@ class MyFragment : LazyLoadBaseFragment(), MyView, View.OnClickListener {
when
(
v
?.
id
)
{
when
(
v
?.
id
)
{
R
.
id
.
ll_edit_profile
,
R
.
id
.
civ_my_avatar
->
{
R
.
id
.
ll_edit_profile
,
R
.
id
.
civ_my_avatar
->
{
readyGo
(
EditProfileActivity
::
class
.
java
)
if
(
UserManager
.
getInstance
().
newFlag
){
readyGo
(
EditProfileActivity
::
class
.
java
)
}
}
}
R
.
id
.
rl_my_vip
->
{
R
.
id
.
rl_my_vip
->
{
if
(!
userManager
.
vipFlag
)
{
if
(!
userManager
.
vipFlag
)
{
...
@@ -157,24 +160,44 @@ class MyFragment : LazyLoadBaseFragment(), MyView, View.OnClickListener {
...
@@ -157,24 +160,44 @@ class MyFragment : LazyLoadBaseFragment(), MyView, View.OnClickListener {
tv_vip_btn
.
text
=
"立即升级"
tv_vip_btn
.
text
=
"立即升级"
}
}
if
(
data
.
sex
==
1
)
{
if
(
data
.
activiteFlag
==
1
)
{
// 男性无认证页面
// 匹配
ll_my_auth
.
visibility
=
View
.
GONE
if
(
data
.
sex
==
1
)
{
// 男性展示充值的金币
// 男性无认证页面
tv_my_coin
.
text
=
""
+
data
.
beans
ll_my_auth
.
visibility
=
View
.
GONE
}
else
{
// 男性展示充值的金币
if
(
data
.
idcardStatus
==
2
||
data
.
idcardStatus
==
0
)
{
tv_my_coin
.
text
=
""
+
data
.
beans
ll_my_auth
.
visibility
=
View
.
VISIBLE
}
else
{
}
if
(
data
.
idcardStatus
==
2
||
data
.
idcardStatus
==
0
)
{
// 女性展示奖励的金币
ll_my_auth
.
visibility
=
View
.
VISIBLE
tv_my_coin
.
text
=
""
+
data
.
rewardCoin
}
// 女性展示奖励的金币
tv_my_coin
.
text
=
""
+
data
.
rewardCoin
// if (data.idcardStatus == 0) {
// if (data.idcardStatus == 0) {
// // 女性展示认证页面
// // 女性展示认证页面
// ll_my_auth.visibility = View.VISIBLE
// ll_my_auth.visibility = View.VISIBLE
// } else {
// } else {
// ll_my_auth.visibility = View.GONE
// ll_my_auth.visibility = View.GONE
// }
// }
}
tv_edit_profile
.
visibility
=
View
.
VISIBLE
ll_my_likeroot
.
visibility
=
View
.
VISIBLE
ll_my_wallet
.
visibility
=
View
.
VISIBLE
ll_my_invite
.
visibility
=
View
.
VISIBLE
ll_my_album
.
visibility
=
View
.
VISIBLE
ll_my_auth
.
visibility
=
View
.
VISIBLE
myPresenter
.
getUserHallMsg
()
}
else
{
tv_edit_profile
.
visibility
=
View
.
GONE
ll_my_likeroot
.
visibility
=
View
.
GONE
ll_my_wallet
.
visibility
=
View
.
GONE
ll_my_invite
.
visibility
=
View
.
GONE
ll_my_album
.
visibility
=
View
.
GONE
ll_my_auth
.
visibility
=
View
.
GONE
}
}
}
}
override
fun
getUserHallMsgSuc
(
data
:
UserHallMsg
)
{
override
fun
getUserHallMsgSuc
(
data
:
UserHallMsg
)
{
...
...
video/app/src/main/java/com/duben/loveplayletd/ui/fragment/SquareFragment.kt
View file @
20d21274
...
@@ -343,10 +343,10 @@ class SquareFragment : LazyLoadBaseFragment(), SquareView, View.OnClickListener
...
@@ -343,10 +343,10 @@ class SquareFragment : LazyLoadBaseFragment(), SquareView, View.OnClickListener
}
}
override
fun
getBaseMsgSuc
(
data
:
UserBean
)
{
override
fun
getBaseMsgSuc
(
data
:
UserBean
)
{
if
(
data
.
s
ex
==
1
)
{
if
(
data
.
planS
ex
==
1
)
{
// 男
// 男
ll_user_root
.
visibility
=
View
.
GONE
ll_user_root
.
visibility
=
View
.
GONE
}
else
{
}
else
if
(
data
.
planSex
==
2
)
{
// 女
// 女
if
(
AppConfig
.
basicUserProfileFlag
||
UserManager
.
getInstance
().
userHasBasic
())
{
if
(
AppConfig
.
basicUserProfileFlag
||
UserManager
.
getInstance
().
userHasBasic
())
{
ll_user_root
.
visibility
=
View
.
GONE
ll_user_root
.
visibility
=
View
.
GONE
...
...
video/app/src/main/res/layout/fragment_main_my.xml
View file @
20d21274
...
@@ -95,6 +95,7 @@
...
@@ -95,6 +95,7 @@
</LinearLayout>
</LinearLayout>
<LinearLayout
<LinearLayout
android:id=
"@+id/ll_my_likeroot"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"100dp"
android:layout_height=
"100dp"
android:gravity=
"center_vertical"
android:gravity=
"center_vertical"
...
...
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