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
ef320078
Commit
ef320078
authored
Apr 03, 2024
by
jyx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
删除一分钱显示
parent
991fbea3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
36 deletions
+36
-36
VipActivity.kt
.../java/com/duben/miaoquplaylet/ui/activitys/VipActivity.kt
+36
-36
No files found.
video/app/src/main/java/com/duben/miaoquplaylet/ui/activitys/VipActivity.kt
View file @
ef320078
...
@@ -107,9 +107,9 @@ class VipActivity : BaseActivity(), VipView, View.OnClickListener,
...
@@ -107,9 +107,9 @@ class VipActivity : BaseActivity(), VipView, View.OnClickListener,
}
else
{
}
else
{
vipPresenter
.
userLogin
(
isAliPayInstalled
())
vipPresenter
.
userLogin
(
isAliPayInstalled
())
}
}
if
(
isDetail
&&
UserManager
.
getInstance
().
newFlag
)
{
//
if (isDetail && UserManager.getInstance().newFlag) {
AppConfig
.
showVipAdDialog
=
true
//
AppConfig.showVipAdDialog = true
}
//
}
vipPresenter
.
orders
()
vipPresenter
.
orders
()
...
@@ -271,23 +271,23 @@ class VipActivity : BaseActivity(), VipView, View.OnClickListener,
...
@@ -271,23 +271,23 @@ class VipActivity : BaseActivity(), VipView, View.OnClickListener,
override
fun
onKeyDown
(
keyCode
:
Int
,
event
:
KeyEvent
?):
Boolean
{
override
fun
onKeyDown
(
keyCode
:
Int
,
event
:
KeyEvent
?):
Boolean
{
when
(
keyCode
)
{
when
(
keyCode
)
{
KeyEvent
.
KEYCODE_BACK
->
{
KeyEvent
.
KEYCODE_BACK
->
{
if
(
UserManager
.
getInstance
().
newFlag
//
if (UserManager.getInstance().newFlag
&&
vipList
!=
null
&&
vipList
!!
.
size
>
0
//
&& vipList != null && vipList!!.size > 0
)
{
//
) {
//
vipAdapter
.
setPosition
(
0
)
//
vipAdapter.setPosition(0)
vipAdapter
.
notifyDataSetChanged
()
//
vipAdapter.notifyDataSetChanged()
val
vipBean
=
vipList
!!
[
0
]
//
val vipBean = vipList!![0]
if
(
vipBean
.
trial
==
1
)
{
//
if (vipBean.trial == 1) {
ll_vip_alipay
.
visibility
=
View
.
VISIBLE
//
ll_vip_alipay.visibility = View.VISIBLE
ll_vip_wx
.
visibility
=
View
.
GONE
//
ll_vip_wx.visibility = View.GONE
payType
=
ALIPAY
//
payType = ALIPAY
iv_vip_alipay
.
setImageResource
(
R
.
mipmap
.
ic_vip_enable_blue
)
//
iv_vip_alipay.setImageResource(R.mipmap.ic_vip_enable_blue)
iv_vip_wx
.
setImageResource
(
R
.
mipmap
.
ic_vip_none
)
//
iv_vip_wx.setImageResource(R.mipmap.ic_vip_none)
}
//
}
backPayYesDialog
(
vipBean
)
//
backPayYesDialog(vipBean)
return
true
//
return true
}
//
}
finish
()
finish
()
}
}
...
@@ -300,23 +300,23 @@ class VipActivity : BaseActivity(), VipView, View.OnClickListener,
...
@@ -300,23 +300,23 @@ class VipActivity : BaseActivity(), VipView, View.OnClickListener,
when
(
v
?.
id
)
{
when
(
v
?.
id
)
{
R
.
id
.
ic_vip_quit
->
{
R
.
id
.
ic_vip_quit
->
{
if
(
UserManager
.
getInstance
().
newFlag
&&
//
if (UserManager.getInstance().newFlag &&
vipList
!=
null
&&
vipList
!!
.
size
>
0
//
vipList != null && vipList!!.size > 0
)
{
//
) {
vipAdapter
.
setPosition
(
0
)
//
vipAdapter.setPosition(0)
vipAdapter
.
notifyDataSetChanged
()
//
vipAdapter.notifyDataSetChanged()
val
vipBean
=
vipList
!!
[
0
]
//
val vipBean = vipList!![0]
if
(
vipBean
.
trial
==
1
)
{
//
if (vipBean.trial == 1) {
ll_vip_alipay
.
visibility
=
View
.
VISIBLE
//
ll_vip_alipay.visibility = View.VISIBLE
ll_vip_wx
.
visibility
=
View
.
GONE
//
ll_vip_wx.visibility = View.GONE
payType
=
ALIPAY
//
payType = ALIPAY
iv_vip_alipay
.
setImageResource
(
R
.
mipmap
.
ic_vip_enable_blue
)
//
iv_vip_alipay.setImageResource(R.mipmap.ic_vip_enable_blue)
iv_vip_wx
.
setImageResource
(
R
.
mipmap
.
ic_vip_none
)
//
iv_vip_wx.setImageResource(R.mipmap.ic_vip_none)
}
//
}
backPayYesDialog
(
vipBean
)
//
backPayYesDialog(vipBean)
}
else
{
//
} else {
finish
()
finish
()
}
//
}
}
}
R
.
id
.
tvVipPay
->
{
R
.
id
.
tvVipPay
->
{
if
(
vipList
!=
null
&&
vipList
!!
.
size
>
0
)
{
if
(
vipList
!=
null
&&
vipList
!!
.
size
>
0
)
{
...
...
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