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
1028e151
Commit
1028e151
authored
Oct 09, 2023
by
mengcuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码优化
parent
2659aab4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
14 deletions
+24
-14
build.gradle
video/app/build.gradle
+1
-5
MyFragment.kt
...main/java/com/duben/xixiplaylet/ui/fragment/MyFragment.kt
+23
-9
No files found.
video/app/build.gradle
View file @
1028e151
...
...
@@ -112,12 +112,8 @@ android {
productFlavors
{
facai
{}
vivo
{}
xixi_jtc
{}
baidu
{}
oppo
{}
huawei
{}
xiaomi
{}
store360
{}
}
productFlavors
.
all
{
...
...
video/app/src/main/java/com/duben/xixiplaylet/ui/fragment/MyFragment.kt
View file @
1028e151
...
...
@@ -9,6 +9,8 @@ import android.view.View
import
android.widget.FrameLayout
import
com.daimajia.androidanimations.library.Techniques
import
com.daimajia.androidanimations.library.YoYo
import
com.duben.library.utils.nodoubleclick.AntiShake
import
com.duben.xixiplaylet.MintsApplication
import
com.duben.xixiplaylet.R
import
com.duben.xixiplaylet.ad.AdManager
import
com.duben.xixiplaylet.ad.AdStatusListener
...
...
@@ -28,12 +30,12 @@ import com.duben.xixiplaylet.ui.fragment.base.LazyLoadBaseFragment
import
com.duben.xixiplaylet.ui.widgets.DialogListener
import
com.duben.xixiplaylet.ui.widgets.NineContinueDialog
import
com.duben.xixiplaylet.utils.AppPreferencesManager
import
com.duben.xixiplaylet.utils.MateUtils.getAppMetaData
import
com.duben.xixiplaylet.utils.SpanUtils
import
com.duben.xixiplaylet.utils.TimeRender
import
com.duben.xixiplaylet.utils.UIUtils
import
com.duben.xixiplaylet.utils.rxutil.CommonRxTask
import
com.duben.xixiplaylet.utils.rxutil.RxjavaUtil
import
com.duben.library.utils.nodoubleclick.AntiShake
import
kotlinx.android.synthetic.main.fragment_main_my.*
/**
...
...
@@ -89,13 +91,13 @@ class MyFragment : LazyLoadBaseFragment(), MyView, View.OnClickListener {
if
(
AppConfig
.
fragmentClickFlag
==
Constant
.
FRAGMENT_CLICK_THREE
)
{
if
(
AntiShake
.
check
(
ll_my_record
?.
id
))
return
if
(
userManager
.
vipFlag
)
{
if
(
userManager
.
vipFlag
)
{
MyExpressManager
.
instance
.
preLoadAd
()
showAd
()
}
if
(
isTurnLuckyPage
)
{
isTurnLuckyPage
=
false
if
(
isTurnLuckyPage
)
{
isTurnLuckyPage
=
false
clickTurn
()
}
...
...
@@ -105,6 +107,15 @@ class MyFragment : LazyLoadBaseFragment(), MyView, View.OnClickListener {
}
else
{
myPresenter
.
userLogin
()
}
showJtcLayout
()
}
}
private
fun
showJtcLayout
()
{
val
channel
=
getAppMetaData
(
MintsApplication
.
getContext
(),
"CHANNEL_NAME"
)
if
(
TextUtils
.
equals
(
channel
,
"xixi_jtc"
))
{
}
}
...
...
@@ -137,7 +148,7 @@ class MyFragment : LazyLoadBaseFragment(), MyView, View.OnClickListener {
R
.
id
.
ll_my_payrecord
->
{
readyGo
(
OrderRecordActivity
::
class
.
java
)
}
R
.
id
.
btn_action
,
R
.
id
.
rl_lucky
->
{
R
.
id
.
btn_action
,
R
.
id
.
rl_lucky
->
{
clickTurn
()
}
}
...
...
@@ -167,13 +178,16 @@ class MyFragment : LazyLoadBaseFragment(), MyView, View.OnClickListener {
// 2-是否有手机号
if
(!
TextUtils
.
isEmpty
(
userManager
.
mobile
))
{
tv_my_account
.
text
=
"手机号:"
+
consumer
.
mobile
.
substring
(
0
,
3
)+
"****"
+
consumer
.
mobile
.
substring
(
consumer
.
mobile
.
length
-
4
)
tv_my_account
.
text
=
"手机号:"
+
consumer
.
mobile
.
substring
(
0
,
3
)
+
"****"
+
consumer
.
mobile
.
substring
(
consumer
.
mobile
.
length
-
4
)
iv_my_bind
.
visibility
=
View
.
GONE
}
else
{
tv_my_account
.
text
=
"绑定手机号"
iv_my_bind
.
visibility
=
View
.
VISIBLE
}
tv_my_id
.
text
=
"用户ID:"
+
consumer
.
idcode
tv_my_id
.
text
=
"用户ID:"
+
consumer
.
idcode
// 3-vip
if
(
consumer
.
expireTime
>
0
)
{
...
...
@@ -212,7 +226,7 @@ class MyFragment : LazyLoadBaseFragment(), MyView, View.OnClickListener {
myPresenter
.
showTurn
()
if
(
nineShowBean
!=
null
)
{
if
(
nineShowBean
!!
.
need
-
nineShowBean
!!
.
complete
-
1
>
0
)
{
if
(
nineShowBean
!!
.
need
-
nineShowBean
!!
.
complete
-
1
>
0
)
{
showContinueDialog
()
}
}
...
...
@@ -366,7 +380,7 @@ class MyFragment : LazyLoadBaseFragment(), MyView, View.OnClickListener {
val
luckyFirst
=
AppPreferencesManager
.
get
().
getBoolean
(
Constant
.
LUCKY_MY_FIRST
,
false
)
if
(!
luckyFirst
)
{
isTurnLuckyPage
=
true
isTurnLuckyPage
=
true
AppPreferencesManager
.
get
().
put
(
Constant
.
LUCKY_MY_FIRST
,
true
)
val
bundle
=
Bundle
()
bundle
.
putInt
(
NineKnowActivity
.
COMPLETE
,
nineShowBean
!!
.
complete
)
...
...
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