shop attribute name update

This commit is contained in:
郑茂强 2019-03-27 15:42:58 +08:00
parent 7a0c7af702
commit 3c48f80515
2 changed files with 8 additions and 8 deletions

View File

@ -160,10 +160,10 @@ class ShopTypeInteractionComp extends Component {
}
aliCancelButton() {
// 只有店铺页面才有onAliCurtainValueFromChild
// 只有店铺页面才有onAliValueFromChild
if (this.props.hasOwnProperty('onAliCurtainValueFromChild')) {
this.props.onAliCurtainValueFromChild(false)
if (this.props.hasOwnProperty('onAliValueFromChild')) {
this.props.onAliValueFromChild(false)
} else {
this.setState({
AliIsShowPicker: false
@ -172,9 +172,9 @@ class ShopTypeInteractionComp extends Component {
}
aliConfirmButton() {
// 只有店铺页面才有onAliCurtainValueFromChild
if (this.props.hasOwnProperty('onAliCurtainValueFromChild')) {
this.props.onAliCurtainValueFromChild(false)
// 只有店铺页面才有onAliValueFromChild
if (this.props.hasOwnProperty('onAliValueFromChild')) {
this.props.onAliValueFromChild(false)
} else {
this.setState({
AliIsShowPicker: false

View File

@ -581,7 +581,7 @@ class Shop extends Component {
})
}
// 这个函数只针对店铺页面
getAliCurtainValueFromChild(value){
getAliValueFromChild(value){
this.setState({
aliShowCurtain:value
})
@ -831,7 +831,7 @@ class Shop extends Component {
// selectedValue={this.state.shopTypeSelected}
isShowCurtain={this.state.aliShowCurtain}
onPassDataToChild={this.getDataFromShopChild.bind(this)}
onAliCurtainValueFromChild={this.getAliCurtainValueFromChild.bind(this)}
onAliValueFromChild={this.getAliValueFromChild.bind(this)}
></AliShopTypeInteraction>}
</View>