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
2da62af3
Commit
2da62af3
authored
Aug 18, 2023
by
mengcuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码优化
parent
4cd1f714
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
5 deletions
+23
-5
VipActivity.kt
...n/java/com/duben/happyplaylet/ui/activitys/VipActivity.kt
+11
-4
dialog_phone.xml
video/app/src/main/res/layout/dialog_phone.xml
+12
-1
No files found.
video/app/src/main/java/com/duben/happyplaylet/ui/activitys/VipActivity.kt
View file @
2da62af3
...
...
@@ -441,11 +441,18 @@ class VipActivity : BaseActivity(), VipView, View.OnClickListener,
mainHandler
.
postDelayed
(
{
if
(
isFinishing
)
return
@postDelayed
val
vipBean
=
vipList
!!
[
vipAdapter
.
getPosition
()]
// 0.01
if
(
vipBean
.
trial
!=
0
)
{
showPayCancelDialog
()
// 挽留弹窗存在也不弹
if
(
payYesDialog
!=
null
&&
payYesDialog
!!
.
isShowing
)
return
@postDelayed
if
(
vipList
!=
null
&&
vipList
!!
.
size
>
0
)
{
val
vipBean
=
vipList
!!
[
vipAdapter
.
getPosition
()]
// 0.01
if
(
vipBean
.
trial
!=
0
)
{
showPayCancelDialog
()
}
}
},
2000
)
...
...
video/app/src/main/res/layout/dialog_phone.xml
View file @
2da62af3
...
...
@@ -27,6 +27,7 @@
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_centerHorizontal=
"true"
android:gravity=
"center_horizontal"
android:layout_marginTop=
"40dp"
android:orientation=
"vertical"
>
...
...
@@ -39,6 +40,15 @@
android:textSize=
"16sp"
android:textStyle=
"bold"
></TextView>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center_horizontal"
android:layout_marginTop=
"6dp"
android:text=
"工作时间 9:00-18:00"
android:textColor=
"@color/black"
android:textSize=
"14sp"
></TextView>
<TextView
android:id=
"@+id/tv_phone_dialog_phone"
android:layout_width=
"wrap_content"
...
...
@@ -48,6 +58,7 @@
android:text=
"点击拨打"
android:textColor=
"#828383"
android:textSize=
"14sp"
></TextView>
</LinearLayout>
</RelativeLayout>
...
...
@@ -56,7 +67,7 @@
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center"
android:layout_marginTop=
"
3
0dp"
android:layout_marginTop=
"
2
0dp"
android:layout_marginBottom=
"14dp"
android:background=
"@drawable/shape_dialog"
android:paddingLeft=
"36dp"
...
...
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