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
a55a3306
Commit
a55a3306
authored
Aug 28, 2023
by
mengcuiguang2
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码优化
parent
8a9b5254
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
20 deletions
+3
-20
MainFragment.kt
...main/java/com/xinfu/helivideo/ui/fragment/MainFragment.kt
+0
-1
RecommendFragment.kt
...java/com/xinfu/helivideo/ui/fragment/RecommendFragment.kt
+2
-19
item_rv_vip.xml
video/app/src/main/res/layout/item_rv_vip.xml
+1
-0
No files found.
video/app/src/main/java/com/xinfu/helivideo/ui/fragment/MainFragment.kt
View file @
a55a3306
...
@@ -129,7 +129,6 @@ class MainFragment : LazyLoadBaseFragment(), HomeView, View.OnClickListener, OnR
...
@@ -129,7 +129,6 @@ class MainFragment : LazyLoadBaseFragment(), HomeView, View.OnClickListener, OnR
//获取游客登录数据
//获取游客登录数据
homePresenter
.
userLogin
()
homePresenter
.
userLogin
()
}
else
{
}
else
{
homePresenter
.
getMyInfo
()
homePresenter
.
topTabs
()
homePresenter
.
topTabs
()
homePresenter
.
orders
()
homePresenter
.
orders
()
TrackManager
.
getInstance
().
getMyInfo
()
TrackManager
.
getInstance
().
getMyInfo
()
...
...
video/app/src/main/java/com/xinfu/helivideo/ui/fragment/RecommendFragment.kt
View file @
a55a3306
...
@@ -11,6 +11,7 @@ import com.xinfu.helivideo.R
...
@@ -11,6 +11,7 @@ import com.xinfu.helivideo.R
import
com.xinfu.helivideo.common.AppConfig
import
com.xinfu.helivideo.common.AppConfig
import
com.xinfu.helivideo.common.Constant
import
com.xinfu.helivideo.common.Constant
import
com.xinfu.helivideo.manager.AppHttpManager
import
com.xinfu.helivideo.manager.AppHttpManager
import
com.xinfu.helivideo.manager.TrackManager
import
com.xinfu.helivideo.manager.UserManager
import
com.xinfu.helivideo.manager.UserManager
import
com.xinfu.helivideo.mvp.model.BaseResponse
import
com.xinfu.helivideo.mvp.model.BaseResponse
import
com.xinfu.helivideo.mvp.model.OrderRecordBean
import
com.xinfu.helivideo.mvp.model.OrderRecordBean
...
@@ -156,28 +157,10 @@ class RecommendFragment : BaseFragment(), View.OnClickListener {
...
@@ -156,28 +157,10 @@ class RecommendFragment : BaseFragment(), View.OnClickListener {
initVp2
()
initVp2
()
}
}
getData
()
TrackManager
.
getInstance
().
getMyInfo
()
}
}
}
}
private
fun
getData
()
{
val
vo
=
HashMap
<
String
,
Any
>()
vo
[
"os"
]
=
"android"
AppHttpManager
.
getInstance
(
baseApplication
)
.
call
(
baseApplication
.
loanService
.
getMyInfo
(
vo
),
object
:
BaseSubscriber
<
BaseResponse
<
UserBean
>>()
{
override
fun
onError
(
e
:
Throwable
)
{
}
override
fun
onNext
(
t
:
BaseResponse
<
UserBean
>)
{
if
(
t
.
status
==
200
)
{
UserManager
.
getInstance
().
saveUserInfo
(
t
.
data
)
}
}
})
}
override
fun
onClick
(
v
:
View
?)
{
override
fun
onClick
(
v
:
View
?)
{
if
(
AntiShake
.
check
(
v
?.
id
))
return
if
(
AntiShake
.
check
(
v
?.
id
))
return
...
...
video/app/src/main/res/layout/item_rv_vip.xml
View file @
a55a3306
...
@@ -29,6 +29,7 @@
...
@@ -29,6 +29,7 @@
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center_horizontal"
android:layout_gravity=
"center_horizontal"
android:layout_marginTop=
"16dp"
android:layout_marginTop=
"16dp"
android:gravity=
"center_horizontal"
android:textColor=
"@color/white"
android:textColor=
"@color/white"
android:textSize=
"18sp"
android:textSize=
"18sp"
tools:text=
"包年会员"
/>
tools:text=
"包年会员"
/>
...
...
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