dev_tj
杨树明 5 years ago
parent 3c57080a3c
commit 12ad095236

@ -667,6 +667,8 @@ class MemoDetail extends Component {
} }
// --------------------------------------------------------------------------------------------帖子獎勵 END // --------------------------------------------------------------------------------------------帖子獎勵 END
showCommentInput = () => { showCommentInput = () => {
debugger
if (window.__useKindEditor === true) { if (window.__useKindEditor === true) {
this.refs.editor.showEditor(); this.refs.editor.showEditor();
} else { } else {
@ -843,7 +845,7 @@ class MemoDetail extends Component {
</div> </div>
: :
<div className="memoMore"> <div className="memoMore">
<div className="writeCommentBtn" onClick={this.showCommentInput}>写评论</div> <div className="writeCommentBtn" onClick={this.showCommentInput}>写评论1</div>
</div>} </div>}
</div> </div>

@ -25,16 +25,16 @@ class MemoDetailKEEditor extends Component {
showEditor() { showEditor() {
// $("html, body").animate({ scrollTop: $('#commentInput').offset().top - 100 }, 1000, () => { $("html, body").animate({ scrollTop: $('#commentInput').offset().top - 100 }, 1000, () => {
// if (this.keEditor) { if (this.keEditor) {
// const FF = !(window.mozInnerScreenX == null); const FF = !(window.mozInnerScreenX == null);
// if (FF) { if (FF) {
// this.keEditor.focus() this.keEditor.focus()
// } else { } else {
// this.keEditor.edit.win.document.body.focus() this.keEditor.edit.win.document.body.focus()
// } }
// } }
// }); });
} }
render() { render() {

@ -75,6 +75,11 @@ class MemoDetailMDEditor extends Component {
} }
onCommit = () => { onCommit = () => {
if(this.props.checkIfProfileCompleted()===false){
this.props.showhideAccountPhoneemailDialog()
return
}
const content = this.commentMDEditor.getValue(); const content = this.commentMDEditor.getValue();
// this.props.showError == // this.props.showError ==
if (this.props.showError == true) { if (this.props.showError == true) {
@ -108,13 +113,13 @@ class MemoDetailMDEditor extends Component {
} }
showEditor() { showEditor() {
// $("html, body").animate({ scrollTop: $('.commentInput:visible').offset().top - 100 }, 1000, () => { $("html, body").animate({ scrollTop: $('.commentInput:visible').offset().top - 100 }, 1000, () => {
// if (this.commentMDEditor) { if (this.commentMDEditor) {
// this.commentMDEditor.cm.focus() this.commentMDEditor.cm.focus()
// } else { } else {
// this.onMockInputClick() this.onMockInputClick()
// } }
// }); });
} }
close = () => { close = () => {
this.setState({isInited: false}) this.setState({isInited: false})

@ -96,13 +96,13 @@ class MemoDetailMDEditortwo extends Component {
} }
showEditor() { showEditor() {
// $("html, body").animate({ scrollTop: $('#commentInput').offset().top - 100 }, 1000, () => { $("html, body").animate({ scrollTop: $('#commentInput').offset().top - 100 }, 1000, () => {
// if (this.commentMDEditor) { if (this.commentMDEditor) {
// this.commentMDEditor.cm.focus() this.commentMDEditor.cm.focus()
// } else { } else {
// $('#commentInput input')[0].click() $('#commentInput input')[0].click()
// } }
// }); });
} }
onMockInputClick = () => { onMockInputClick = () => {
this.setState({isInited: true}) this.setState({isInited: true})

@ -20,11 +20,14 @@
justify-content: center; justify-content: center;
} }
.packinput .ant-input-group-addon{
border: 1px solid #4cacff!important;
}
.packinput .ant-input-group-addon .ant-btn{ .packinput .ant-input-group-addon .ant-btn{
width:137px !important; width:137px !important;
font-size: 18px; font-size: 18px;
height: 53px; height: 53px;
background:rgba(76,172,255,1); border-color: #4cacff !important;
} }
.tabtitle{ .tabtitle{

Loading…
Cancel
Save