Commit 7cbfa418 authored by baixian's avatar baixian

微官网问题修复

parent 02d132bc
...@@ -18,5 +18,5 @@ ...@@ -18,5 +18,5 @@
</head> </head>
<body> <body>
<div id="root"></div> <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> </html>
...@@ -46,13 +46,13 @@ class OnlineClass extends React.Component { ...@@ -46,13 +46,13 @@ class OnlineClass extends React.Component {
return ( return (
<div className={PageStyle.commonItem} key={item.id}> <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="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.title}>{item.online_course && item.online_course.title}</div>
<div className={PageStyle.num}>{item.online_course.study_count}人学习</div> {item.online_course && <div className={PageStyle.num}>{item.online_course.study_count}人学习</div>}
</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