Commit 69bb7a92 authored by wangxuelai's avatar wangxuelai

''

parent 02ae44f4
......@@ -17,6 +17,6 @@
</head>
<body>
<div id="root"></div>
<script src="dist/main.js?1574915153188" charset="utf-8"></script>
<script src="dist/main.js?1574922435424" charset="utf-8"></script>
</body>
</html>
\ No newline at end of file
......@@ -104,7 +104,7 @@ class AddCourseModal extends React.Component {
<Col span={12} key={ele.id}>
<Checkbox id="1" style={{ display: 'flex', alignItems: 'flex-start' }} onChange={() => this.checkedChange(ele.id)} checked={course_ids.indexOf(ele.id) != -1}>
<div className={pageStyle.colItem} title={ele.title} >
<img className={pageStyle.courseCover} src={ele.cover ? imagify(ele.cover || '') : `${__IMGCDN__}course/courseDefaultImg.png`} alt="" />
<img className={pageStyle.courseCover} src={ele.cover ? imagify(ele.cover, 'image/resize,w_160/format,jpg/quality,q_60') : `${__IMGCDN__}course/courseDefaultImg.png`} alt="" />
<div className={pageStyle.courseTitle}>{ele.title}</div>
</div>
</Checkbox>
......
......@@ -165,7 +165,7 @@ class CourseBoxForm extends React.Component {
>
<Card.Meta
style={{ padding: 0, borderRadius: '6px' }}
avatar={<img className={pageStyle.itemImg} alt="图片" src={item.cover ? imagify(item.cover) : `${__IMGCDN__}course/courseDefaultImg.png`} />}
avatar={<img className={pageStyle.itemImg} alt="图片" src={item.cover ? imagify(item.cover, 'image/resize,w_320/format,jpg/quality,q_60') : `${__IMGCDN__}course/courseDefaultImg.png`} />}
title={
<div className={pageStyle.itemTitleWrap}>
<div className={pageStyle.itemTitle}>{item.title}</div>
......
......@@ -193,7 +193,7 @@ class ManageCourse extends React.Component { // eslint-disable-line
const img = (manageCourseObj[record.id] && manageCourseObj[record.id].cover) || record.cover;
let renderimg = '';
if (img) {
renderimg = imagify(img);
renderimg = imagify(img, 'image/resize,w_160/format,jpg/quality,q_60');
} else {
renderimg = `${__IMGCDN__}course/courseDefaultImg.png`;
}
......
......@@ -273,7 +273,7 @@ class AddCourseModalForm extends React.Component {
<Col span={12} style={{ marginBottom: '20px' }} key={ele.id}>
<Checkbox id="1" style={{ display: 'flex', alignItems: 'flex-start' }} onChange={() => this.checkedChange(ele.id)} checked={course_ids.indexOf(ele.id) != -1}>
<div className={pageStyle.colItem} >
<img className={pageStyle.courseCover} src={ele.cover ? imagify(ele.cover || '') : `${__IMGCDN__}course/courseDefaultImg.png`} alt="" />
<img className={pageStyle.courseCover} src={ele.cover ? imagify(ele.cover, 'image/resize,w_320/format,jpg/quality,q_60') : `${__IMGCDN__}course/courseDefaultImg.png`} alt="" />
<div className={pageStyle.courseTitle}>{ele.title}</div>
</div>
</Checkbox>
......
......@@ -12,7 +12,7 @@ const MediaCard = (props) => {
<Col xs={24} sm={24} md={12} lg={12} xl={6}>
<div className={pageStyle.box} {...props} title={info.title}>
{
info.cover ? <img onClick={() => method.gogatherdetail(info.id)} className={pageStyle.image} src={imagify(info.cover)} alt="" /> :
info.cover ? <img onClick={() => method.gogatherdetail(info.id)} className={pageStyle.image} src={imagify(info.cover, 'image/resize,w_180/format,jpg/quality,q_60')} alt="" /> :
<img onClick={() => method.gogatherdetail(info.id)} className={pageStyle.image} src={`${__IMGCDN__}course/courseDefaultImg.png`} alt="" />
}
<div className={pageStyle.infobox}>
......
......@@ -27,7 +27,7 @@ class MediaCard extends React.Component {
<div className={pageStyle.box} {...this.props}>
{info.type == 1 &&
<div className={`${pageStyle.mediaBox} ${pageStyle.imgBox}`} title={content.name} onClick={() => methods.preview(info)}>
<img className={pageStyle.image} src={`${imagify(info.src)}`} alt="" />
<img className={pageStyle.image} src={`${imagify(info.src, 'image/resize,w_320/format,jpg/quality,q_60')}`} alt="" />
<img className={pageStyle.imageicon} src={`${__IMGCDN__}course/photo_icon.png`} alt="" />
</div>}
{info.type == 2 &&
......
......@@ -321,7 +321,7 @@ class ClassMgtForm extends React.Component {
<Card.Meta
style={{ padding: 0 }}
avatar={
item.cover ? <img onClick={() => this.goEditCourseStatic(item.id, 1)} className={pageStyle.itemImg} alt="图片" src={imagify(item.cover)} /> :
item.cover ? <img onClick={() => this.goEditCourseStatic(item.id, 1)} className={pageStyle.itemImg} alt="图片" src={imagify(item.cover, 'image/resize,w_160/format,jpg/quality,q_60')} /> :
<img onClick={() => this.goEditCourseStatic(item.id, 1)} className={pageStyle.itemImg} src={`${__IMGCDN__}course/courseDefaultImg.png`} alt="" />}
title={
<div className={pageStyle.itemTitleWrap} >
......
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