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
d547032b
Commit
d547032b
authored
Jul 23, 2024
by
mengcuiguang2
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
兼容vip页面,vip返回弹窗,视频详情页中的金额显示
parent
7d2e7c60
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
13 additions
and
13 deletions
+13
-13
build.gradle
video/app/build.gradle
+2
-2
VipAdapter.kt
...ain/java/com/duben/speedplayletu/ui/adapter/VipAdapter.kt
+3
-3
PayYesDialog.kt
...n/java/com/duben/speedplayletu/ui/widgets/PayYesDialog.kt
+2
-2
TxVideoAdapter.kt
...om/duben/speedplayletu/video/tx/adapter/TxVideoAdapter.kt
+3
-3
NewTxVideoAdapter.kt
.../speedplayletu/video/tx/newrecommend/NewTxVideoAdapter.kt
+3
-3
No files found.
video/app/build.gradle
View file @
d547032b
...
...
@@ -10,8 +10,8 @@ android {
applicationId
"com.duben.speedplayletu"
minSdkVersion
rootProject
.
ext
.
androidMinSdkVersion
targetSdkVersion
rootProject
.
ext
.
androidTargetSdkVersion
versionCode
71
5
versionName
"7.1.
5
"
versionCode
71
7
versionName
"7.1.
7
"
flavorDimensions
"default"
// dex突破65535的限制
...
...
video/app/src/main/java/com/duben/speedplayletu/ui/adapter/VipAdapter.kt
View file @
d547032b
...
...
@@ -117,11 +117,11 @@ class VipAdapter(val vipList: MutableList<VipBean.ListBean>) :
if
(
vipBean
.
payToModel
==
2
)
{
// 跳转小程序领券
holder
.
tvVipItemCurMoney
.
text
=
SpanUtils
()
.
append
(
vipBean
.
oldPrice
.
to
In
t
().
toString
())
.
append
(
vipBean
.
oldPrice
.
to
Floa
t
().
toString
())
.
setFontSize
(
BubbleUtils
.
sp2px
(
34
))
.
append
(
" 元\n"
)
.
setFontSize
(
BubbleUtils
.
sp2px
(
14
))
.
append
(
"原价:"
+
vipBean
.
price
.
to
In
t
().
toString
()
+
" 元"
)
.
append
(
"原价:"
+
vipBean
.
price
.
to
Floa
t
().
toString
()
+
" 元"
)
.
setFontSize
(
BubbleUtils
.
sp2px
(
12
))
.
setStrikethrough
()
.
create
()
...
...
@@ -134,7 +134,7 @@ class VipAdapter(val vipList: MutableList<VipBean.ListBean>) :
.
create
()
}
else
{
holder
.
tvVipItemCurMoney
.
text
=
SpanUtils
()
.
append
(
vipBean
.
price
.
to
Int
().
to
String
())
.
append
(
vipBean
.
price
.
toString
())
.
setFontSize
(
BubbleUtils
.
sp2px
(
34
))
.
append
(
"元"
)
.
create
()
...
...
video/app/src/main/java/com/duben/speedplayletu/ui/widgets/PayYesDialog.kt
View file @
d547032b
...
...
@@ -60,11 +60,11 @@ class PayYesDialog(
if
(
vipBean
.
payToModel
==
2
)
{
// 跳转小程序领券
tv_dialog_vip_count
.
text
=
SpanUtils
()
.
append
(
vipBean
.
oldPrice
.
to
In
t
().
toString
())
.
append
(
vipBean
.
oldPrice
.
to
Floa
t
().
toString
())
.
setFontSize
(
BubbleUtils
.
sp2px
(
30
))
.
append
(
" 元\n"
)
.
setFontSize
(
BubbleUtils
.
sp2px
(
16
))
.
append
(
"原价:"
+
vipBean
.
price
.
to
In
t
().
toString
()
+
" 元"
)
.
append
(
"原价:"
+
vipBean
.
price
.
to
Floa
t
().
toString
()
+
" 元"
)
.
setFontSize
(
BubbleUtils
.
sp2px
(
12
))
.
setStrikethrough
()
.
create
()
...
...
video/app/src/main/java/com/duben/speedplayletu/video/tx/adapter/TxVideoAdapter.kt
View file @
d547032b
...
...
@@ -113,13 +113,13 @@ class TxVideoAdapter : BaseMultiItemQuickAdapter<VideoMultiItemEntity, BaseViewH
vipBtn
.
visibility
=
View
.
GONE
adBtn
.
visibility
=
View
.
VISIBLE
holder
.
getView
<
TextView
>(
R
.
id
.
tv_title
).
text
=
if
(
AppConfig
.
firstVipPrice
==
0.0
)
"解锁后续剧集"
else
"${AppConfig.firstVipPrice.to
In
t()}元解锁后续剧集"
if
(
AppConfig
.
firstVipPrice
==
0.0
)
"解锁后续剧集"
else
"${AppConfig.firstVipPrice.to
Floa
t()}元解锁后续剧集"
}
else
{
// 开通会员解锁
adBtn
.
visibility
=
View
.
GONE
vipBtn
.
visibility
=
View
.
VISIBLE
holder
.
getView
<
TextView
>(
R
.
id
.
tv_title
).
text
=
if
(
AppConfig
.
firstVipPrice
==
0.0
)
"解锁后续剧集"
else
"${AppConfig.firstVipPrice.to
In
t()}元解锁后续剧集"
if
(
AppConfig
.
firstVipPrice
==
0.0
)
"解锁后续剧集"
else
"${AppConfig.firstVipPrice.to
Floa
t()}元解锁后续剧集"
}
}
else
{
...
...
@@ -127,7 +127,7 @@ class TxVideoAdapter : BaseMultiItemQuickAdapter<VideoMultiItemEntity, BaseViewH
adBtn
.
visibility
=
View
.
GONE
vipBtn
.
visibility
=
View
.
VISIBLE
holder
.
getView
<
TextView
>(
R
.
id
.
tv_title
).
text
=
if
(
AppConfig
.
firstVipPrice
==
0.0
)
"解锁后续剧集"
else
"${AppConfig.firstVipPrice.to
In
t()}元解锁后续剧集"
if
(
AppConfig
.
firstVipPrice
==
0.0
)
"解锁后续剧集"
else
"${AppConfig.firstVipPrice.to
Floa
t()}元解锁后续剧集"
}
holder
.
getView
<
TextView
>(
R
.
id
.
unlock
).
text
=
String
.
format
(
"查看激励视频"
)
...
...
video/app/src/main/java/com/duben/speedplayletu/video/tx/newrecommend/NewTxVideoAdapter.kt
View file @
d547032b
...
...
@@ -82,7 +82,7 @@ class NewTxVideoAdapter : BaseMultiItemQuickAdapter<VideoMultiItemEntity4, BaseV
vipBtn
.
visibility
=
View
.
GONE
adBtn
.
visibility
=
View
.
VISIBLE
holder
.
getView
<
TextView
>(
R
.
id
.
tv_title
).
text
=
if
(
AppConfig
.
firstVipPrice
==
0.0
)
"解锁后续剧集"
else
"${AppConfig.firstVipPrice.to
In
t()}元解锁后续剧集"
if
(
AppConfig
.
firstVipPrice
==
0.0
)
"解锁后续剧集"
else
"${AppConfig.firstVipPrice.to
Floa
t()}元解锁后续剧集"
}
VEDIO3DOS_PAY
->
{
// 开通会员解锁
...
...
@@ -90,13 +90,13 @@ class NewTxVideoAdapter : BaseMultiItemQuickAdapter<VideoMultiItemEntity4, BaseV
vipBtn
.
visibility
=
View
.
VISIBLE
holder
.
getView
<
TextView
>(
R
.
id
.
tv_title
).
text
=
if
(
AppConfig
.
firstVipPrice
==
0.0
)
"解锁后续剧集"
else
"${AppConfig.firstVipPrice.to
In
t()}元解锁后续剧集"
if
(
AppConfig
.
firstVipPrice
==
0.0
)
"解锁后续剧集"
else
"${AppConfig.firstVipPrice.to
Floa
t()}元解锁后续剧集"
}
else
->
{
adBtn
.
visibility
=
View
.
GONE
vipBtn
.
visibility
=
View
.
VISIBLE
holder
.
getView
<
TextView
>(
R
.
id
.
tv_title
).
text
=
if
(
AppConfig
.
firstVipPrice
==
0.0
)
"解锁后续剧集"
else
"${AppConfig.firstVipPrice.to
In
t()}元解锁后续剧集"
if
(
AppConfig
.
firstVipPrice
==
0.0
)
"解锁后续剧集"
else
"${AppConfig.firstVipPrice.to
Floa
t()}元解锁后续剧集"
}
}
...
...
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