Commit fb47f6b6 by wangshuo

跳课程详情页

parent a719baaa
...@@ -53,7 +53,7 @@ class CoursePopup extends Component { ...@@ -53,7 +53,7 @@ class CoursePopup extends Component {
type = 1; type = 1;
} }
let data = { let data = {
courseId: courseId, courseId: item.course_id,
type: type // 正常跳课程详情页type:0,积福气浏览课程详情页-没有浏览过type:1 已浏览过type:2 type: type // 正常跳课程详情页type:0,积福气浏览课程详情页-没有浏览过type:1 已浏览过type:2
} }
SendMessageToApp("toCourse", data); SendMessageToApp("toCourse", data);
...@@ -76,7 +76,7 @@ class CoursePopup extends Component { ...@@ -76,7 +76,7 @@ class CoursePopup extends Component {
<span <span
className="course-popup__item" className="course-popup__item"
key={item.course_id} key={item.course_id}
onClick={this.toCourseDetail} onClick={()=>{this.toCourseDetail(item)}}
> >
<span className="course-popup__name">{item.course_title}</span> <span className="course-popup__name">{item.course_title}</span>
{ {
......
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