Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
YDL-Component-Medical
Overview
Overview
Details
Activity
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
杨凯
YDL-Component-Medical
Commits
df5b0e7f
Commit
df5b0e7f
authored
Aug 02, 2022
by
刘鹏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 弹窗展示控制时间问题修复
parent
2a4689d0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
5 deletions
+8
-5
ConsultSubPayDialog.kt
m-consultant/src/main/java/com/yidianling/consultant/dialog/ConsultSubPayDialog.kt
+6
-3
user_mine_fragment_mine.xml
m-user/src/main/res/layout/user_mine_fragment_mine.xml
+2
-2
No files found.
m-consultant/src/main/java/com/yidianling/consultant/dialog/ConsultSubPayDialog.kt
View file @
df5b0e7f
...
@@ -69,7 +69,8 @@ class ConsultSubPayDialog(
...
@@ -69,7 +69,8 @@ class ConsultSubPayDialog(
}
}
override
fun
onFinish
()
{
override
fun
onFinish
()
{
var
nextShowTime
=
promptPaymentBean
.
currentTime
?:
(
0
+
((
promptPaymentBean
.
orderToPayTime
?:
1
)
*
1000
))
var
nextShowTime
=
System
.
currentTimeMillis
()
+
((
promptPaymentBean
.
orderToPayTime
?:
1
)
*
1000
)
SharedPreferencesEditor
.
putString
(
"orderToPayTime"
,
nextShowTime
.
toString
())
SharedPreferencesEditor
.
putString
(
"orderToPayTime"
,
nextShowTime
.
toString
())
dismiss
()
dismiss
()
}
}
...
@@ -80,7 +81,8 @@ class ConsultSubPayDialog(
...
@@ -80,7 +81,8 @@ class ConsultSubPayDialog(
})
})
mTimer
?.
start
()
mTimer
?.
start
()
findViewById
<
TextView
>(
R
.
id
.
tv_close
).
setOnClickListener
{
findViewById
<
TextView
>(
R
.
id
.
tv_close
).
setOnClickListener
{
var
nextShowTime
=
promptPaymentBean
.
currentTime
?:
(
0
+
((
promptPaymentBean
.
orderToPayTime
?:
1
)
*
1000
))
var
nextShowTime
=
System
.
currentTimeMillis
()
+
((
promptPaymentBean
.
orderToPayTime
?:
1
)
*
1000
)
SharedPreferencesEditor
.
putString
(
"orderToPayTime"
,
nextShowTime
.
toString
())
SharedPreferencesEditor
.
putString
(
"orderToPayTime"
,
nextShowTime
.
toString
())
mTimer
?.
stop
()
mTimer
?.
stop
()
dismiss
()
dismiss
()
...
@@ -96,7 +98,8 @@ class ConsultSubPayDialog(
...
@@ -96,7 +98,8 @@ class ConsultSubPayDialog(
ToastUtil
.
toastShort
(
"跳转失败"
)
ToastUtil
.
toastShort
(
"跳转失败"
)
dismiss
()
dismiss
()
}
}
var
nextShowTime
=
promptPaymentBean
.
currentTime
?:
(
0
+
((
promptPaymentBean
.
orderToPayTime
?:
1
)
*
1000
))
var
nextShowTime
=
System
.
currentTimeMillis
()
+
((
promptPaymentBean
.
orderToPayTime
?:
1
)
*
1000
)
SharedPreferencesEditor
.
putString
(
"orderToPayTime"
,
nextShowTime
.
toString
())
SharedPreferencesEditor
.
putString
(
"orderToPayTime"
,
nextShowTime
.
toString
())
}
}
}
}
...
...
m-user/src/main/res/layout/user_mine_fragment_mine.xml
View file @
df5b0e7f
...
@@ -417,12 +417,12 @@
...
@@ -417,12 +417,12 @@
app:layout_constraintTop_toTopOf=
"parent"
/>
app:layout_constraintTop_toTopOf=
"parent"
/>
<TextView
<TextView
tools:text=
"
11
"
tools:text=
"
9
"
android:id=
"@+id/iv_order_tip"
android:id=
"@+id/iv_order_tip"
android:layout_width=
"12dp"
android:layout_width=
"12dp"
android:layout_height=
"12dp"
android:layout_height=
"12dp"
android:gravity=
"center"
android:gravity=
"center"
android:textSize=
"
8d
p"
android:textSize=
"
6s
p"
android:textColor=
"@color/white"
android:textColor=
"@color/white"
android:background=
"@drawable/user_mine_background_red_point_new_coupon"
android:background=
"@drawable/user_mine_background_red_point_new_coupon"
android:visibility=
"gone"
android:visibility=
"gone"
...
...
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