Commit e0cfc003 by zhangleyuan

feat:处理分享图片不显示的问题

parent 8c7d3a25
...@@ -117,7 +117,6 @@ class ShareLiveModal extends React.Component { ...@@ -117,7 +117,6 @@ class ShareLiveModal extends React.Component {
>{`【${courseName}】开课啦,快来学习!`}</div> >{`【${courseName}】开课啦,快来学习!`}</div>
<img <img
src={coverImgSrc} src={coverImgSrc}
crossOrigin="*"
className="course-cover" className="course-cover"
alt="course-cover" alt="course-cover"
/> />
......
...@@ -13,13 +13,12 @@ class DateRangePicker extends React.Component { ...@@ -13,13 +13,12 @@ class DateRangePicker extends React.Component {
} }
render() { render() {
const showTime = { showTime: true } const showTime = { showTime: false }
return ( return (
<RangePicker <RangePicker
{...this.props} {...this.props}
format={this.props.format || 'YYYY-MM-DD'} format={this.props.format || 'YYYY-MM-DD'}
allowClear={this.props.allowClear} allowClear={this.props.allowClear}
ranges={this.props.ranges || { '本月': [moment().startOf('month'), moment().endOf('month')], '本周': [moment().startOf('week'), moment().endOf('week')], '上月': [moment().subtract(1, 'M').startOf('month'), moment().subtract(1, 'M').endOf('month')], '上周': [moment().subtract(1, 'w').startOf('week'), moment().subtract(1, 'w').endOf('week')] }}
onChange={(date) => { onChange={(date) => {
if (!_.isEmpty(date)) { if (!_.isEmpty(date)) {
date[0] = date[0].startOf('day') date[0] = date[0].startOf('day')
......
...@@ -174,6 +174,7 @@ class LiveCourseFilter extends React.Component { ...@@ -174,6 +174,7 @@ class LiveCourseFilter extends React.Component {
format={"YYYY-MM-DD"} format={"YYYY-MM-DD"}
onChange={(dates) => { this.handleChangeDates(dates) }} onChange={(dates) => { this.handleChangeDates(dates) }}
style={{ width: "calc(100% - 70px)" }} style={{ width: "calc(100% - 70px)" }}
/> />
</div> </div>
<div className="search-condition__item"> <div className="search-condition__item">
......
...@@ -121,7 +121,6 @@ class ShareLiveModal extends React.Component { ...@@ -121,7 +121,6 @@ class ShareLiveModal extends React.Component {
<img <img
src={coverImgSrc} src={coverImgSrc}
crossOrigin="*"
className="course-cover" className="course-cover"
/> />
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment