From 3c48f805155dfd09296b486f0baca92d3a85b9b5 Mon Sep 17 00:00:00 2001 From: Maoqiang Zheng Date: Wed, 27 Mar 2019 15:42:58 +0800 Subject: [PATCH] shop attribute name update --- .../AliShopTypeInteraction/AliShopTypeInteraction.js | 12 ++++++------ src/pages/shop/shop.js | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/component/AliShopTypeInteraction/AliShopTypeInteraction.js b/src/component/AliShopTypeInteraction/AliShopTypeInteraction.js index d0a5090..8b7c12a 100644 --- a/src/component/AliShopTypeInteraction/AliShopTypeInteraction.js +++ b/src/component/AliShopTypeInteraction/AliShopTypeInteraction.js @@ -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 diff --git a/src/pages/shop/shop.js b/src/pages/shop/shop.js index bbebd13..7fee811 100644 --- a/src/pages/shop/shop.js +++ b/src/pages/shop/shop.js @@ -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)} >}