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
a7b04135
Commit
a7b04135
authored
Feb 20, 2024
by
mengcuiguang2
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码优化
parent
805bac58
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
VipActivity.kt
...main/java/com/duben/shortplay/ui/activitys/VipActivity.kt
+9
-9
No files found.
video/app/src/main/java/com/duben/shortplay/ui/activitys/VipActivity.kt
View file @
a7b04135
...
...
@@ -79,7 +79,7 @@ class VipActivity : BaseActivity(), VipView, View.OnClickListener,
private
val
vipPresenter
by
lazy
{
VipPresenter
()
}
private
lateinit
var
vipAdapter
:
VipAdapter
private
var
vipList
:
MutableList
<
VipBean
.
ListBean
>?
=
null
private
var
vipData
:
VipBean
=
null
private
var
vipData
:
VipBean
?
=
null
private
var
isCheckAgreeFlag
:
Boolean
=
true
private
var
isGuide
:
Boolean
=
false
// 从启动页进入vip界面,返回时要回到首页
private
var
isMain
:
Boolean
=
false
...
...
@@ -747,16 +747,16 @@ class VipActivity : BaseActivity(), VipView, View.OnClickListener,
var
pid
=
vipBean
.
pid
var
oldPrice
=
vipBean
.
oldPrice
if
(
alipayCount
==
1
)
{
if
(
vipData
!=
null
&&
vipData
.
firstCancel
!=
null
)
{
price
=
vipData
.
firstCancel
.
price
pid
=
vipData
.
firstCancel
.
pid
oldPrice
=
vipData
.
firstCancel
.
oldPrice
if
(
vipData
!=
null
&&
vipData
!!
.
firstCancel
!=
null
)
{
price
=
vipData
!!
.
firstCancel
.
price
pid
=
vipData
!!
.
firstCancel
.
pid
oldPrice
=
vipData
!!
.
firstCancel
.
oldPrice
}
}
else
if
(
alipayCount
>=
2
)
{
if
(
vipData
!=
null
&&
vipData
.
secondCancel
!=
null
)
{
price
=
vipData
.
secondCancel
.
price
pid
=
vipData
.
secondCancel
.
pid
oldPrice
=
vipData
.
secondCancel
.
oldPrice
if
(
vipData
!=
null
&&
vipData
!!
.
secondCancel
!=
null
)
{
price
=
vipData
!!
.
secondCancel
.
price
pid
=
vipData
!!
.
secondCancel
.
pid
oldPrice
=
vipData
!!
.
secondCancel
.
oldPrice
}
}
...
...
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