Authored by 张文文

桥接方法修改 reviewd by 陈林

... ... @@ -62,14 +62,9 @@ class ContentMessageContainer extends Component {
componentDidMount() {
this.props.actions.getContentList(true, 4)
this.props.actions.getContentType()
this.subscription = DeviceEventEmitter.addListener('CommentReplySucessEvent', (events) => {
this._addInBoxAction(events.text);
});
}
componentWillUnmount() {
this.subscription.remove();
this.props.actions.clearCommentMessageList()
}
... ... @@ -83,7 +78,7 @@ class ContentMessageContainer extends Component {
this.props.actions.getContentList(false, 4)
}
_addInBoxAction(addValue) {
_addArticleCommentAction(addValue) {
let addType = this.state.dataSource.businessType === 1003 ? 1 : 0;
let destId = addType === 0 ? this.state.dataSource.articleId : 0;
... ... @@ -101,7 +96,10 @@ class ContentMessageContainer extends Component {
this.setState({
dataSource: dataSource,
});
NativeModules.YH_CommonHelper.showkeyBoardView();
NativeModules.YH_CommonHelper.showkeyBoardView(dataSource.userName).then(replyValue => {
this._addArticleCommentAction(replyValue);
});
}
//跳转到种草H5
... ...