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
fc454a68
Commit
fc454a68
authored
Jul 06, 2020
by
严久程
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
导医入口紧急修改
parent
f7358530
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
16 deletions
+23
-16
ConsultAssistantDialog.kt
m-consultant/src/main/java/com/yidianling/consultant/dialog/ConsultAssistantDialog.kt
+9
-4
ConsultAssistantDialogUtils.kt
m-consultant/src/main/java/com/yidianling/consultant/modular/singlton/ConsultAssistantDialogUtils.kt
+13
-12
consultant_expert_consult_assistant_popup_window.xml
m-consultant/src/main/res/layout/consultant_expert_consult_assistant_popup_window.xml
+1
-0
No files found.
m-consultant/src/main/java/com/yidianling/consultant/dialog/ConsultAssistantDialog.kt
View file @
fc454a68
...
...
@@ -55,11 +55,13 @@ class ConsultAssistantDialog(
minWidth
=
(
consultant_assistant
.
measuredWidth
*
1.5
).
toInt
()
}
ConsultAssistantDialogUtils
.
INSTANCE
.
minWidth
=
minWidth
!!
//一个dialog关闭左侧desc,所有导医左侧desc都关闭
SharedPreferencesEditor
.
putString
(
ConsultAssistantDialogUtils
.
INSTANCE
.
ASSISTANT_DIALOG_SP_TAG
,
System
.
currentTimeMillis
().
toString
()
)
// SharedPreferencesEditor.putString(
// ConsultAssistantDialogUtils.INSTANCE.ASSISTANT_DIALOG_SP_TAG,
// System.currentTimeMillis().toString()
// )
ConsultAssistantDialogUtils
.
INSTANCE
.
isSHowDesc
=
false
animate
=
ObjectAnimator
.
ofFloat
(
consultant_assistant_dialog_desc_ll
,
"translationX"
,
...
...
@@ -93,6 +95,9 @@ class ConsultAssistantDialog(
consultant_assistant
.
setOnClickListener
{
consultAssistantClickListener
?.
onClickAction
()
}
ll_desc_assistant
.
setOnClickListener
{
consultAssistantClickListener
?.
onClickAction
()
}
setCanceledOnTouchOutside
(
false
)
}
...
...
m-consultant/src/main/java/com/yidianling/consultant/modular/singlton/ConsultAssistantDialogUtils.kt
View file @
fc454a68
...
...
@@ -33,8 +33,9 @@ class ConsultAssistantDialogUtils private constructor() {
var
expertSearchPageHasShown
:
Boolean
=
false
// 专家咨询列表fragment页面是否已经展示
var
consultAssistantActivityDialog
:
ConsultAssistantDialog
?
=
null
//咨询师列表activity页面展示的dialog
var
expertSearchActivityPageHasShown
:
Boolean
=
false
// 专家咨询列表activity页面是否已经展示
var
ASSISTANT_DIALOG_SP_TAG
=
"assistant_dialog_sp_tag"
// 是否展示左侧文本的缓存key
//
var ASSISTANT_DIALOG_SP_TAG = "assistant_dialog_sp_tag" // 是否展示左侧文本的缓存key
var
minWidth
=
0
// 最小宽度
var
isSHowDesc
=
true
/**
...
...
@@ -307,17 +308,17 @@ class ConsultAssistantDialogUtils private constructor() {
// 判定是否展示左侧的描述文本
fun
canShowDesc
():
Boolean
{
if
(
TextUtils
.
isEmpty
(
SharedPreferencesEditor
.
getString
(
ASSISTANT_DIALOG_SP_TAG
)))
{
//如果没有缓存,则展示
return
true
}
else
if
(
System
.
currentTimeMillis
()
-
SharedPreferencesEditor
.
getString
(
ASSISTANT_DIALOG_SP_TAG
).
toLong
()
>
24
*
60
*
60
*
1000
)
{
//如果缓存时间超过一天,则展示
return
true
}
return
false
//
if (TextUtils.isEmpty(SharedPreferencesEditor.getString(ASSISTANT_DIALOG_SP_TAG))) {
//
//如果没有缓存,则展示
//
return true
//
} else if (System.currentTimeMillis() - SharedPreferencesEditor.getString(
//
ASSISTANT_DIALOG_SP_TAG
//
).toLong() > 24 * 60 * 60 * 1000
//
) {
//
//如果缓存时间超过一天,则展示
//
return true
//
}
return
isSHowDesc
}
fun
setDescHide
()
{
...
...
m-consultant/src/main/res/layout/consultant_expert_consult_assistant_popup_window.xml
View file @
fc454a68
...
...
@@ -42,6 +42,7 @@
android:background=
"#ffffff"
/>
<LinearLayout
android:id=
"@+id/ll_desc_assistant"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginRight=
"15dp"
...
...
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