Commit 9724c77e by peii

【BUG】全局搜索修复

parent ffc3374f
......@@ -874,6 +874,7 @@ class ChooseProductPage extends Component {
// if (leftActiveIndex) {
return (
<TouchableOpacity
activeOpacity={1}
onPress={() => {
navigation.navigate('SearchPage', {
title: `选择产品`,
......
......@@ -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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment