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
12c03c1b
Commit
12c03c1b
authored
Jun 27, 2022
by
fengquan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修复筛选条件无法重置按钮无法重置咨询方式
parent
c7e6afe8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
4 deletions
+12
-4
FilterPopupWindow.kt
m-consultant/src/main/java/com/yidianling/consultant/ui/view/FilterPopupWindow.kt
+12
-4
No files found.
m-consultant/src/main/java/com/yidianling/consultant/ui/view/FilterPopupWindow.kt
View file @
12c03c1b
...
...
@@ -139,7 +139,6 @@ class FilterPopupWindow(private val context: Context, private val filterData: Fi
tempFilter
.
showType
=
filterData
.
showType
[
0
]
tempFilter
.
ages
.
clear
()
tempFilter
.
doctorEdu
.
clear
()
tempFilter
.
enquiries
.
clear
()
// 擅长人群
tempFilter
.
specialityCrowd
.
clear
()
tempFilter
.
others
.
clear
()
...
...
@@ -158,10 +157,19 @@ class FilterPopupWindow(private val context: Context, private val filterData: Fi
showTypeViews
[
1
].
isSelected
=
true
for
(
v
in
enquiryViews
)
{
v
.
isSelected
=
false
if
(
v
is
TextView
)
{
v
.
paint
.
isFakeBoldText
=
false
val
textView
:
TextView
=
v
.
findViewById
(
R
.
id
.
tvFilterName
)
val
ivIcon
:
ImageView
=
v
.
findViewById
(
R
.
id
.
iv_consultant_method
)
textView
.
paint
.
isFakeBoldText
=
false
tempFilter
.
enquiries
.
forEach
{
if
(
textView
.
text
.
toString
()
==
it
.
value
){
Glide
.
with
(
context
)
.
load
(
it
.
unCheckUrl
)
.
into
(
ivIcon
)
}
}
}
tempFilter
.
enquiries
.
clear
()
for
(
v
in
ageViews
)
{
v
.
isSelected
=
false
if
(
v
is
TextView
)
{
...
...
@@ -561,7 +569,7 @@ class FilterPopupWindow(private val context: Context, private val filterData: Fi
.
load
(
enquiry
.
unCheckUrl
)
.
into
(
ivIcon
)
enquiryViews
.
add
(
view
)
enquiryViews
.
add
(
llLayout
)
if
(
tempFilter
.
enquiries
.
contains
(
enquiry
))
{
llLayout
.
isSelected
=
true
textView
.
paint
.
isFakeBoldText
=
true
...
...
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