From 18566d0b247a102ab5408e9c9df8297c7f00dadf Mon Sep 17 00:00:00 2001 From: harry Date: Mon, 23 Mar 2020 16:53:30 +0800 Subject: [PATCH] fix --- .../src/components/shixun-card-list/index.jsx | 9 +-- .../modules/comment/CommentItemKEEditor.js | 65 ++++++++----------- public/react/src/modules/home/index.jsx | 2 +- public/react/src/modules/tpm/NewHeader.js | 41 +----------- 4 files changed, 35 insertions(+), 82 deletions(-) diff --git a/public/react/src/components/shixun-card-list/index.jsx b/public/react/src/components/shixun-card-list/index.jsx index 28c229c82..d2b6b64b8 100644 --- a/public/react/src/components/shixun-card-list/index.jsx +++ b/public/react/src/components/shixun-card-list/index.jsx @@ -1,5 +1,6 @@ import React, { Fragment } from 'react' import { getImageUrl, setImagesUrl } from 'educoder'; +import { Link } from 'react-router-dom' import { Tooltip, Rate } from 'antd'; import './index.less' @@ -30,15 +31,15 @@ export default ({ list = [] }) => {

非试用内容,需要授权

} - + - +

- + {name} - +

diff --git a/public/react/src/modules/comment/CommentItemKEEditor.js b/public/react/src/modules/comment/CommentItemKEEditor.js index 2425357a1..d9fecdc04 100644 --- a/public/react/src/modules/comment/CommentItemKEEditor.js +++ b/public/react/src/modules/comment/CommentItemKEEditor.js @@ -1,21 +1,13 @@ import React, { Component } from 'react'; -import { Redirect } from 'react-router'; -import { BrowserRouter as Router, Route, Link, Switch } from "react-router-dom"; - -import PropTypes from 'prop-types'; - -import classNames from 'classnames' - -const $ = window.$; const _origin = window.location.origin; class CommentItemKEEditor extends Component { componentDidUpdate(prevProps) { const { item, currentReplyComment } = this.props; - if ( prevProps.showReplyEditorFlag != this.props.showReplyEditorFlag && - currentReplyComment && currentReplyComment.id == item.id ) { + if (prevProps.showReplyEditorFlag != this.props.showReplyEditorFlag && + currentReplyComment && currentReplyComment.id == item.id) { this.showOrHideEditor(currentReplyComment) } } @@ -28,45 +20,42 @@ class CommentItemKEEditor extends Component { var id = comment.id var reply_message_el = `#reply_message_${id}` var reply_iconup_el = `#reply_iconup_${id}` - if($(reply_message_el).html() == "") { - $(".reply_to_message").html(""); - $(reply_message_el).html(`

\n
\"0?1442652658\"<\/a><\/div>\n
\n
\n
<\/div>\n \n
<\/div>\n