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
2b70451f
Commit
2b70451f
authored
Jul 08, 2022
by
YKai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 筛选框手动输入价格也取后端返回的key1字段的值
parent
de58693a
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 @
2b70451f
...
...
@@ -107,7 +107,7 @@ class FilterPopupWindow(
}
view
.
btnConfirm
.
setOnClickListener
{
if
(
tempFilter
.
priceRanges
!=
null
&&
tempFilter
.
priceRanges
!!
.
key1
==
"avg_price"
&&
filterData
.
priceRanges
.
isNotEmpty
())
{
if
(
tempFilter
.
priceRanges
!=
null
&&
tempFilter
.
priceRanges
!!
.
key1
==
"avg_price"
&&
filterData
.
priceRanges
.
isNotEmpty
())
{
tempFilter
.
priceRanges
!!
.
key1
=
filterData
.
priceRanges
[
0
].
key1
}
biEvent
(
ConsultBIConstants
.
POSITION_CONSULT_FILTER_CHECKOUT_CLICK
)
...
...
@@ -604,7 +604,8 @@ class FilterPopupWindow(
}
private
fun
initPriceViews
(
view
:
View
)
{
val
priceRange
=
View
.
inflate
(
context
,
R
.
layout
.
consultant_item_price_range
,
null
)
as
LinearLayout
val
priceRange
=
View
.
inflate
(
context
,
R
.
layout
.
consultant_item_price_range
,
null
)
as
LinearLayout
etMinPrice
=
priceRange
.
findViewById
(
R
.
id
.
etMinPrice
);
etMaxPrice
=
priceRange
.
findViewById
(
R
.
id
.
etMaxPrice
);
...
...
@@ -669,7 +670,11 @@ class FilterPopupWindow(
0
)
textView
.
layoutParams
=
params
val
contentStr
=
String
.
format
(
"%s\n%s"
,
priceRangesItem
.
display_range
,
priceRangesItem
.
recommend_percent
)
val
contentStr
=
String
.
format
(
"%s\n%s"
,
priceRangesItem
.
display_range
,
priceRangesItem
.
recommend_percent
)
val
msp
=
SpannableString
(
contentStr
)
msp
.
setSpan
(
AbsoluteSizeSpan
(
10
,
true
),
...
...
@@ -703,7 +708,10 @@ class FilterPopupWindow(
etMaxPrice
?.
setText
(
""
)
etMinPrice
?.
setText
(
""
)
}
else
{
tempFilter
.
priceRanges
=
priceRangesItem
.
copy
(
min_price
=
priceRangesItem
.
min_price
,
max_price
=
priceRangesItem
.
max_price
)
tempFilter
.
priceRanges
=
priceRangesItem
.
copy
(
min_price
=
priceRangesItem
.
min_price
,
max_price
=
priceRangesItem
.
max_price
)
textView
.
isSelected
=
true
textView
.
paint
.
isFakeBoldText
=
true
tempFilter
.
priceRangesView
=
textView
...
...
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