|
@@ -26,6 +26,7 @@ import courseDetails from './services/courseDetails'
|
|
|
export default class CourseDetails extends Component {
|
|
|
componentDidMount() {
|
|
|
const { courseId } = this.props.navigation.state.params;
|
|
|
+ console.log(courseId)
|
|
|
courseDetails.getCourseDetails(courseId).success(res => {
|
|
|
console.log('列表',res.data)
|
|
|
const courseList = res.data.course;
|
|
@@ -70,7 +71,7 @@ export default class CourseDetails extends Component {
|
|
|
<View style={ this.state.fullStyle }>
|
|
|
<CourseListRow title={'课件'} wareList={ this.state.wareList} changeUri={ this.changeUri.bind(this) }></CourseListRow>
|
|
|
{/* <CourseListLine title={'课件'} wareList={ this.state.wareList}></CourseListLine> */}
|
|
|
- <Comment title={ '全部评论' } postsList={ this.state.postsList } courseId= { this.state.courseList.id }></Comment>
|
|
|
+ <Comment title={ '全部评论' } courseId= { this.state.courseList.id }></Comment>
|
|
|
</View>
|
|
|
</ScrollView>
|
|
|
{/* <Order left={ this.state.lefts }></Order> */}
|