Commit 7cbfa418 authored by baixian's avatar baixian

微官网问题修复

parent 02d132bc
......@@ -18,5 +18,5 @@
</head>
<body>
<div id="root"></div>
<script type="text/javascript" src="https://cdn.s.shangjiadao.cn/qingxiao/biz/dist/main.822fa3.js"></script></body>
<script type="text/javascript" src="https://cdn.s.shangjiadao.cn/qingxiao/biz/dist/main.0ec579.js"></script></body>
</html>
......@@ -46,13 +46,13 @@ class OnlineClass extends React.Component {
return (
<div className={PageStyle.commonItem} key={item.id}>
{
item.online_course.cover == '' ?
item.online_course && item.online_course.cover == '' ?
<img className={PageStyle.img} src="https://cdn.s.shangjiadao.cn/qingxiao/biz/image/course/courseDefaultImg.png" alt="" />
:
<img className={PageStyle.img} src={imagify(item.online_course.cover)} alt="" />
<img className={PageStyle.img} src={imagify(item.online_course && item.online_course.cover)} alt="" />
}
<div className={PageStyle.title}>{item.online_course.title}</div>
<div className={PageStyle.num}>{item.online_course.study_count}人学习</div>
<div className={PageStyle.title}>{item.online_course && item.online_course.title}</div>
{item.online_course && <div className={PageStyle.num}>{item.online_course.study_count}人学习</div>}
</div>
);
})
......
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