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

View File

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