Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
zhangzhonghua
/
BoneHouse_Business_APP
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
64be6ad5
authored
May 29, 2021
by
wong.peiyi
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
过滤显示
parent
15062dfb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
5 deletions
app/containers/selfOrder/module/ChooseFilter.js
app/containers/selfOrder/module/ChooseFilter.js
View file @
64be6ad5
...
...
@@ -21,6 +21,7 @@ import {
ScrollView
,
TouchableWithoutFeedback
,
Modal
,
Platform
,
}
from
'react-native'
import
*
as
R
from
'ramda'
import
{
...
...
@@ -42,7 +43,7 @@ import {
second_text_color
,
first_text_color
,
}
from
'../../../base/BaseStyle'
import
{
isIphoneX
}
from
"../../../utils/Utils"
;
import
{
isIphoneX
}
from
'../../../utils/Utils'
const
PropTypes
=
require
(
'prop-types'
)
export
default
class
ChoolseFilter
extends
Component
{
...
...
@@ -98,7 +99,15 @@ export default class ChoolseFilter extends Component {
activeOpacity
=
{
1
}
><
/TouchableOpacity
>
<
View
style
=
{
styles
.
mask
}
><
/View
>
<
View
style
=
{
isIphoneX
()
?
[
styles
.
searchContent
,
{
top
:
48
+
58
+
pxSize
(
36
)}]
:
styles
.
searchContent
}
>
<
View
style
=
{
Platform
.
OS
===
'ios'
?
isIphoneX
()
?
[
styles
.
searchContent
,
{
top
:
48
+
58
+
pxSize
(
36
)
}]
:
[
styles
.
searchContent
,
{
top
:
20
+
58
+
pxSize
(
36
)
}]
:
styles
.
searchContent
}
>
<
ScrollView
style
=
{
styles
.
scrollView
}
>
{
filterData
&&
filterData
.
map
(
item
=>
{
...
...
@@ -124,7 +133,7 @@ export default class ChoolseFilter extends Component {
}
else
{
onCallback
&&
onCallback
(
item
.
field
,
option
.
value
)
}
this
.
setState
({
visible
:
!
visible
})
this
.
setState
({
visible
:
!
visible
})
}}
>
<
Text
...
...
@@ -200,7 +209,7 @@ const styles = StyleSheet.create({
borderColor
:
'#E1F1FE'
,
borderWidth
:
1
,
padding
:
3
,
borderRadius
:
4
borderRadius
:
4
,
},
filterBtn
:
{
height
:
pxSize
(
36
),
...
...
@@ -228,7 +237,7 @@ const styles = StyleSheet.create({
width
:
Width
(),
height
:
Height
(),
zIndex
:
99
,
top
:
0
top
:
0
,
},
mask
:
{
position
:
'absolute'
,
...
...
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