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
2b11d9c1
Commit
2b11d9c1
authored
Aug 01, 2022
by
刘鹏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 咨询页弹窗时间问题修复,预约加入隐藏标题栏属性
parent
b6b30d3c
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
22 deletions
+20
-22
build.gradle
build.gradle
+1
-1
ExpertSearchFragment.kt
m-consultant/src/main/java/com/yidianling/consultant/ExpertSearchFragment.kt
+14
-14
ConsultSubPayDialog.kt
m-consultant/src/main/java/com/yidianling/consultant/dialog/ConsultSubPayDialog.kt
+4
-6
ExpertConsultServiceItemView.kt
m-im/src/main/java/com/yidianling/uikit/custom/widget/expertConsultService/view/ExpertConsultServiceItemView.kt
+1
-1
No files found.
build.gradle
View file @
2b11d9c1
...
...
@@ -14,7 +14,7 @@ buildscript {
ydlrouter_version
=
'1.2.3'
constrait_support_version
=
'1.0.2'
componentVersion
=
"0.3.0.12"
componentVersion
=
"0.3.0.12
-SNAPSHOT
"
}
repositories
{
mavenCentral
()
...
...
m-consultant/src/main/java/com/yidianling/consultant/ExpertSearchFragment.kt
View file @
2b11d9c1
...
...
@@ -1485,20 +1485,20 @@ class ExpertSearchFragment : BaseMvpFragment<IExpertSearchView, ExpertSearchPres
needRefresh
=
true
}
//
val orderToPayTime = SharedPreferencesEditor.getString("orderToPayTime")
//
//
var timeLimit = if (TextUtils.isEmpty(orderToPayTime)) {
//
0L
//
} else {
//
orderToPayTime.toLong()
//
}
//
//
//
if (isShow && !(consultSubPayDialog != null && consultSubPayDialog?.isShowing == true)) {
//
if (findRouteService(IUserService::class.java).isLogin() && System.currentTimeMillis() > timeLimit) {
//
getPresenter().fetchPromptPayment()
//
}
//
}
val
orderToPayTime
=
SharedPreferencesEditor
.
getString
(
"orderToPayTime"
)
var
timeLimit
=
if
(
TextUtils
.
isEmpty
(
orderToPayTime
))
{
0L
}
else
{
orderToPayTime
.
toLong
()
}
if
(
isShow
&&
!(
consultSubPayDialog
!=
null
&&
consultSubPayDialog
?.
isShowing
==
true
))
{
if
(
findRouteService
(
IUserService
::
class
.
java
).
isLogin
()
&&
System
.
currentTimeMillis
()
>
timeLimit
)
{
getPresenter
().
fetchPromptPayment
()
}
}
ActionCountUtils
.
count
(
ConsultBIConstants
.
ConsultEvent
.
APP_CONSULT_LIST_PAGE_VISIT
)
ActionCountUtils
.
count
(
"daoyi_advertisement_page|daoyi_advertisement_visit"
,
"6"
)
...
...
m-consultant/src/main/java/com/yidianling/consultant/dialog/ConsultSubPayDialog.kt
View file @
2b11d9c1
...
...
@@ -20,7 +20,6 @@ import com.yidianling.consultant.R
import
com.yidianling.consultant.model.bean.PromptPaymentBean
import
java.text.DecimalFormat
import
java.text.SimpleDateFormat
import
java.util.*
/**
...
...
@@ -59,8 +58,7 @@ class ConsultSubPayDialog(
val
price
=
decimalFormat
.
format
(
promptPaymentBean
.
price
)
findViewById
<
TextView
>(
R
.
id
.
priceTv
).
text
=
"¥$price"
var
format
=
SimpleDateFormat
(
"HH:mm:ss"
);
format
.
timeZone
=
TimeZone
.
getTimeZone
(
"GMT+0"
);
var
millisInFuture
=
promptPaymentBean
.
currentTime
?:
0
-
(
promptPaymentBean
.
toPayTime
?:
0L
)
var
millisInFuture
=
promptPaymentBean
.
toPayTime
?.
minus
(
promptPaymentBean
.
currentTime
?:
0
)
?:
0
mTimer
=
CountDownTimerSupport
(
millisInFuture
,
1000
)
mTimer
?.
setOnCountDownTimerListener
(
object
:
OnCountDownTimerListener
{
override
fun
onTick
(
millisUntilFinished
:
Long
)
{
...
...
@@ -69,7 +67,7 @@ class ConsultSubPayDialog(
}
override
fun
onFinish
()
{
var
nextShowTime
=
System
.
currentTimeMillis
()
+
24
*
60
*
60
*
1000
var
nextShowTime
=
promptPaymentBean
.
currentTime
?:
(
0
+
((
promptPaymentBean
.
orderToPayTime
?:
1
)
*
1000
))
SharedPreferencesEditor
.
putString
(
"orderToPayTime"
,
nextShowTime
.
toString
())
dismiss
()
}
...
...
@@ -80,7 +78,7 @@ class ConsultSubPayDialog(
})
mTimer
?.
start
()
findViewById
<
TextView
>(
R
.
id
.
tv_close
).
setOnClickListener
{
var
nextShowTime
=
System
.
currentTimeMillis
()
+
24
*
60
*
60
*
1000
var
nextShowTime
=
promptPaymentBean
.
currentTime
?:
(
0
+
((
promptPaymentBean
.
orderToPayTime
?:
1
)
*
1000
))
SharedPreferencesEditor
.
putString
(
"orderToPayTime"
,
nextShowTime
.
toString
())
mTimer
?.
stop
()
dismiss
()
...
...
@@ -96,7 +94,7 @@ class ConsultSubPayDialog(
ToastUtil
.
toastShort
(
"跳转失败"
)
dismiss
()
}
var
nextShowTime
=
System
.
currentTimeMillis
()
+
24
*
60
*
60
*
1000
var
nextShowTime
=
promptPaymentBean
.
currentTime
?:
(
0
+
((
promptPaymentBean
.
orderToPayTime
?:
1
)
*
1000
))
SharedPreferencesEditor
.
putString
(
"orderToPayTime"
,
nextShowTime
.
toString
())
}
}
...
...
m-im/src/main/java/com/yidianling/uikit/custom/widget/expertConsultService/view/ExpertConsultServiceItemView.kt
View file @
2b11d9c1
...
...
@@ -168,7 +168,7 @@ class ExpertConsultServiceItemView : LinearLayout {
NewH5Activity
.
start
(
mContext
,
H5Params
(
HttpConfig
.
MH5_URL
+
"consult/#/pages/jieyou/DownOrder?product_id=
"
+
bean
.
productDto
.
id
,
HttpConfig
.
MH5_URL
+
"consult/#/pages/jieyou/DownOrder?product_id=
${bean.productDto.id}&hideNavBar=1"
,
null
)
)
...
...
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