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
9724c77e
authored
Oct 21, 2022
by
peii
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
【BUG】全局搜索修复
parent
ffc3374f
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
8 deletions
app/containers/selfOrder/module/ChooseProductPage.js
app/containers/selfOrder/module/SearchPage.js
app/containers/selfOrder/module/ChooseProductPage.js
View file @
9724c77e
...
...
@@ -874,6 +874,7 @@ class ChooseProductPage extends Component {
// if (leftActiveIndex) {
return
(
<
TouchableOpacity
activeOpacity
=
{
1
}
onPress
=
{()
=>
{
navigation
.
navigate
(
'SearchPage'
,
{
title
:
`选择产品`
,
...
...
app/containers/selfOrder/module/SearchPage.js
View file @
9724c77e
...
...
@@ -18,9 +18,9 @@ import LocalVariable from '../../common/LocalVariable'
import
{
reqGlobalSearch
,
reqSingleConsumSearch
,
reqProCategorySearch
}
from
'../../../action/SelfAction'
import
ChooseCardList
from
'../../common/listDataComponent/ChooseCardList'
import
{
connect
}
from
'react-redux'
// import ChooseCardList from '../../common/listDataComponent/ChooseCardList';
import
StatusBarView
from
'../../common/StatusBarView'
import
LoadingModel
from
'../../common/listDataComponent/LoadingModel'
import
{
Width
}
from
'../../../base/BaseStyle'
import
{
Width
,
home_background_color
,
promary_color
}
from
'../../../base/BaseStyle'
import
{
show
}
from
'../../../utils/Utils'
import
*
as
R
from
'ramda'
class
SearchPage
extends
Component
{
...
...
@@ -113,10 +113,13 @@ class SearchPage extends Component {
const
{
selfData
,
topProcOptionList
}
=
navigation
.
state
.
params
const
{
authorizations
}
=
selfData
const
productLineCategory
=
authorizations
?.
product_line_category_list
?.
map
(
item
=>
item
.
product_line_category_code
)
?.
join
(
','
)
console
.
log
(
'topProcOptionList'
,
topProcOptionList
[
topActiveIndex
])
const
productLineCategory
=
R
.
compose
(
R
.
join
(
','
),
R
.
pluck
(
'product_line_category_code'
),
R
.
unnest
,
R
.
pluck
(
'product_line_category_list'
),
)(
authorizations
||
[])
const
params
=
{
accessToken
:
token
,
orgCode
:
selfData
.
org_code
,
...
...
@@ -403,7 +406,10 @@ class SearchPage extends Component {
console
.
log
(
'dataList'
,
data
.
item
)
return
(
<
SafeAreaView
style
=
{
safe_view
}
>
<
View
style
=
{
styles
.
container
}
>
<
StatusBarView
isReactStackNavigator
=
{
true
}
backgroundColor
=
{
promary_color
}
barStyle
=
"light-content"
/>
<
View
style
=
{
safe_view
}
>
<
HeadBackItem
title
=
{
title
}
navigation
=
{
navigation
}
/
>
<
View
style
=
{
list_common_item
.
ser_cont
}
>
<
TextInput
...
...
@@ -458,11 +464,16 @@ class SearchPage extends Component {
{
!
data
?.
item
?.
length
&&
<
PicListNoData
/>
}
<
/ScrollView
>
<
LoadingModel
ref
=
"LoadingModel"
/>
<
/SafeAreaView
>
<
/View
>
<
/View
>
)
}
}
const
styles
=
StyleSheet
.
create
({
container
:
{
flex
:
1
,
backgroundColor
:
home_background_color
,
},
top_box
:
{
width
:
Width
(),
paddingHorizontal
:
20
,
...
...
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