Commit a311bae1 by lhc

fix: bug

parent 79de63e3
Showing with 10 additions and 3 deletions
...@@ -21,6 +21,7 @@ import { connect } from 'react-redux' ...@@ -21,6 +21,7 @@ import { connect } from 'react-redux'
// import ChooseCardList from '../../common/listDataComponent/ChooseCardList'; // import ChooseCardList from '../../common/listDataComponent/ChooseCardList';
import LoadingModel from '../../common/listDataComponent/LoadingModel' import LoadingModel from '../../common/listDataComponent/LoadingModel'
import { Width } from '../../../base/BaseStyle' import { Width } from '../../../base/BaseStyle'
import { show } from '../../../utils/Utils'
class SearchPage extends Component { class SearchPage extends Component {
constructor(props) { constructor(props) {
super(props) super(props)
...@@ -309,9 +310,14 @@ class SearchPage extends Component { ...@@ -309,9 +310,14 @@ class SearchPage extends Component {
}), }),
} }
// this.props.navigation.goBack() // this.props.navigation.goBack()
this.setState({ this.setState(
topProcOptionList, {
}) topProcOptionList,
},
() => {
show('添加成功')
},
)
return Promise.resolve(topProcOptionList) return Promise.resolve(topProcOptionList)
} }
...@@ -359,6 +365,7 @@ class SearchPage extends Component { ...@@ -359,6 +365,7 @@ class SearchPage extends Component {
listImgIcon={'photos'} listImgIcon={'photos'}
plusCallBack={item => { plusCallBack={item => {
console.log('plusCallBack') console.log('plusCallBack')
setTopProcOptionListCallBack(this.formatToTopProcOptionList(item)) setTopProcOptionListCallBack(this.formatToTopProcOptionList(item))
}} }}
// reduceCallBack={() => this.props.handleAllPlusReduce(item, index)} // reduceCallBack={() => this.props.handleAllPlusReduce(item, index)}
......
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