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
99da212d
authored
May 26, 2021
by
wong.peiyi
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
过滤弹窗兼容安卓
parent
48af5802
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
51 additions
and
22 deletions
android/app/build.gradle
app/base/BaseStyle.js
app/containers/selfOrder/module/ChooseFilter.js
app/containers/selfOrder/module/ChooseProductPage.js
android/app/build.gradle
View file @
99da212d
...
...
@@ -130,6 +130,14 @@ android {
include
"armeabi-v7a"
,
"x86"
,
"arm64-v8a"
,
"x86_64"
}
}
signingConfigs
{
release
{
storeFile
file
(
'../keystores/key.jks'
)
storePassword
'gkzhc2020'
keyAlias
'key'
keyPassword
'gkzhc2020'
}
}
buildTypes
{
debug
{
resValue
"string"
,
"CodePushDeploymentKey"
,
'"OQxOHKC_pU5KPExPvQLLfeOdhO4_zss5pKduM"'
...
...
@@ -140,6 +148,7 @@ android {
proguardFiles
getDefaultProguardFile
(
"proguard-android.txt"
),
"proguard-rules.pro"
resValue
"string"
,
"CodePushDeploymentKey"
,
'"KEzx1DMpvRIuGoORIyvnxdf9j8HD42NEQvj1z0"'
resValue
'string'
,
"CODE_PUSH_APK_BUILD_TIME"
,
String
.
format
(
"\"%d\""
,
System
.
currentTimeMillis
())
signingConfig
signingConfigs
.
release
}
releaseStaging
.
initWith
(
release
)
releaseStaging
{
...
...
app/base/BaseStyle.js
View file @
99da212d
...
...
@@ -363,8 +363,8 @@ export const list_common_item = {
height
:
2
},
shadowOpacity
:
1
,
elevation
:
10
,
height
:
80
//
elevation: 10,
height
:
80
,
},
sub_two_btn
:
{
width
:
Width
(),
...
...
app/containers/selfOrder/module/ChooseFilter.js
View file @
99da212d
...
...
@@ -19,6 +19,8 @@ import {
TextInput
,
SafeAreaView
,
ScrollView
,
TouchableWithoutFeedback
,
Modal
,
}
from
'react-native'
import
*
as
R
from
'ramda'
import
{
...
...
@@ -40,6 +42,7 @@ import {
second_text_color
,
first_text_color
,
}
from
'../../../base/BaseStyle'
import
{
isIphoneX
}
from
"../../../utils/Utils"
;
const
PropTypes
=
require
(
'prop-types'
)
export
default
class
ChoolseFilter
extends
Component
{
...
...
@@ -86,19 +89,16 @@ export default class ChoolseFilter extends Component {
<
/View
>
{
visible
&&
(
<
View
style
=
{
styles
.
searchModal
}
visible
=
{
visible
}
animationType
=
"slide"
transparent
=
{
true
}
>
<
Modal
style
=
{
styles
.
searchModal
}
visible
=
{
visible
}
transparent
=
{
true
}
>
<
TouchableOpacity
style
=
{
styles
.
mask
}
onPress
=
{
()
=>
{
style
=
{
styles
.
mask
_touch
}
onPress
=
{
e
=>
{
this
.
setState
({
visible
:
!
visible
})
}}
activeOpacity
=
{
1
}
><
/TouchableOpacity
>
<
View
style
=
{
styles
.
searchContent
}
>
<
View
style
=
{
styles
.
mask
}
><
/View
>
<
View
style
=
{
isIphoneX
()
?
[
styles
.
searchContent
,
{
top
:
48
+
58
+
pxSize
(
36
)}]
:
styles
.
searchContent
}
>
<
ScrollView
style
=
{
styles
.
scrollView
}
>
{
filterData
&&
filterData
.
map
(
item
=>
{
...
...
@@ -124,6 +124,7 @@ export default class ChoolseFilter extends Component {
}
else
{
onCallback
&&
onCallback
(
item
.
field
,
option
.
value
)
}
this
.
setState
({
visible
:
!
visible
})
}}
>
<
Text
...
...
@@ -161,6 +162,7 @@ export default class ChoolseFilter extends Component {
R
.
map
(
filter
=>
{
onCallback
&&
onCallback
(
filter
.
field
,
''
)
})(
filterData
)
this
.
setState
({
visible
:
!
visible
})
}}
>
<
Text
style
=
{
styles
.
resetBtnText
}
>
重置
<
/Text
>
...
...
@@ -176,7 +178,7 @@ export default class ChoolseFilter extends Component {
<
/TouchableOpacity
>
<
/View
>
<
/View
>
<
/
View
>
<
/
Modal
>
)}
<
/View
>
)
...
...
@@ -188,7 +190,6 @@ const styles = StyleSheet.create({
width
:
Width
(),
height
:
pxSize
(
36
),
paddingLeft
:
pxSize
(
20
),
zIndex
:
999
,
},
filterBarTitle
:
{
flexDirection
:
'row'
,
...
...
@@ -215,23 +216,36 @@ const styles = StyleSheet.create({
height
:
pxSize
(
10
),
},
searchModal
:
{
// position: 'absolute',
// top: pxSize(36),
// width: Width(),
// height: Height(),
// backgroundColor: 'rgba(0, 0, 0, 0.5)',
// zIndex: 999,
},
mask_touch
:
{
position
:
'absolute'
,
top
:
pxSize
(
36
),
width
:
Width
(),
height
:
Height
(),
backgroundColor
:
'rgba(0, 0, 0, 0.5)'
,
zIndex
:
99
,
top
:
0
},
mask
:
{
position
:
'absolute'
,
width
:
'100%'
,
height
:
'100%'
,
width
:
Width
(),
height
:
Height
(),
backgroundColor
:
'rgba(0, 0, 0, 0.5)'
,
// zIndex: 99,
top
:
200
,
},
searchContent
:
{
width
:
Width
(),
height
:
pxSize
(
300
),
backgroundColor
:
home_background_color
,
top
:
58
+
pxSize
(
36
),
borderColor
:
'#ddd'
,
borderTopWidth
:
1
,
zIndex
:
999
,
},
scrollView
:
{
height
:
pxSize
(
260
),
...
...
app/containers/selfOrder/module/ChooseProductPage.js
View file @
99da212d
...
...
@@ -806,7 +806,7 @@ class ChooseProductPage extends Component {
// 返回底部按钮
renderFooterBtnItem
()
{
let
{
selectShowPopup
,
topProcOptionList
,
topActiveIndex
,
local_sel_options
,
local_cur_options
,
cur_hc_opts
}
=
this
.
state
let
{
selectShowPopup
,
topProcOptionList
,
topActiveIndex
,
l
eftActiveIndex
,
filterData
,
l
ocal_sel_options
,
local_cur_options
,
cur_hc_opts
}
=
this
.
state
let
allCountQuantity
=
this
.
getAllCountQuantity
()
let
cur_sel_options
=
[]
let
sel_tip
=
this
.
getAllCountQuantity
(
true
)
...
...
@@ -923,6 +923,7 @@ class ChooseProductPage extends Component {
changeCallBack
=
{(
options
,
clearFlag
)
=>
this
.
handleChangeCallBack
(
options
,
clearFlag
)}
/
>
{
this
.
renderLodingItem
()}
<
/View
>
)
}
...
...
@@ -937,7 +938,7 @@ class ChooseProductPage extends Component {
render
()
{
let
{
navigation
}
=
this
.
props
let
{
title
}
=
navigation
.
state
.
params
let
{
topProcOptionList
}
=
this
.
state
let
{
topProcOptionList
,
leftActiveIndex
,
filterData
}
=
this
.
state
return
(
<
View
style
=
{
styles
.
choo_container
}
>
<
StatusBarView
...
...
@@ -945,15 +946,17 @@ class ChooseProductPage extends Component {
backgroundColor
=
{
promary_color
}
barStyle
=
'light-content'
/>
<
SafeAreaView
style
=
{
safe_view
}
>
<
View
style
=
{
safe_view
}
>
<
HeadBackItem
title
=
{
title
}
navigation
=
{
navigation
}
callback
=
{()
=>
this
.
handleGoBack
()}
/
>
<
View
style
=
{
styles
.
choo_main
}
>
<
View
style
=
{
!
leftActiveIndex
?[
styles
.
choo_main
,
styles
.
choo_main_pd
]:
styles
.
choo_main
}
pointerEvents
=
"auto"
>
{
this
.
renderSearchItem
()}
{
topProcOptionList
&&
topProcOptionList
.
length
>
0
?
this
.
renderTopProItem
()
:
null
}
{
topProcOptionList
&&
topProcOptionList
.
length
>
0
?
this
.
renderContItem
()
:
null
}
<
/View
>
{
this
.
renderFooterBtnItem
()}
<
/SafeAreaView
>
{
/* {!leftActiveIndex && <ChooseFilter filterData={filterData} onCallback={this.fillterCallback.bind(this)}/>} */
}
<
/View
>
<
/View
>
);
}
...
...
@@ -968,6 +971,9 @@ const styles = StyleSheet.create({
flex
:
1
,
zIndex
:
99
,
},
choo_main_pd
:
{
// paddingTop: pxSize(36)
},
top_box
:
{
width
:
Width
(),
height
:
58
,
...
...
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