Commit 571a92e6 by xuzhenghua

BUG

parents 6e055ead 412d2753
...@@ -177,7 +177,8 @@ class CollectBlessing extends Component { ...@@ -177,7 +177,8 @@ class CollectBlessing extends Component {
render() { render() {
const { const {
isSign, isSign,
userInfo: { isLogin = false, blessingVal = 0, buyBlessing = 0, inviteBlessing = 0 }, userInfo: {blessingVal = 0, buyBlessing = 0, inviteBlessing = 0 },
isLogin,
handleToShowNotice, handleToShowNotice,
handleToShowList, handleToShowList,
handleToShowInvite, handleToShowInvite,
......
...@@ -3,11 +3,11 @@ import './index.scss'; ...@@ -3,11 +3,11 @@ import './index.scss';
class CourseItem extends Component { class CourseItem extends Component {
render() { render() {
const { image } = this.props; const { image,toCourse,id} = this.props;
return ( return (
<div className="course-container"> <div className="course-container">
<div className="course__cover"> <div className="course__cover">
<img src={image} alt="cover"/> <img src={image} alt="cover" onClick={() => toCourse(id)}/>
</div> </div>
{this.props.children} {this.props.children}
</div> </div>
......
...@@ -15,5 +15,6 @@ ...@@ -15,5 +15,6 @@
img { img {
display: block; display: block;
width: 100%; width: 100%;
height: 100%;
} }
} }
\ No newline at end of file
...@@ -259,7 +259,7 @@ class CourseList extends Component { ...@@ -259,7 +259,7 @@ class CourseList extends Component {
}else{ }else{
toLogin(); toLogin();
} }
} }
...@@ -298,7 +298,7 @@ class CourseList extends Component { ...@@ -298,7 +298,7 @@ class CourseList extends Component {
<div data-layout="row"> <div data-layout="row">
{ {
group.course.map(item => ( group.course.map(item => (
<CourseItem image={item.image_name} key={item.course_id}> <CourseItem image={item.image_name} key={item.course_id} id={item.course_id} toCourse={this.toCourse}>
<div className="coupon-course__footer"> <div className="coupon-course__footer">
<a onClick={() => this.toQQque()} className="course-button">立抢超低团购价</a> <a onClick={() => this.toQQque()} className="course-button">立抢超低团购价</a>
</div> </div>
...@@ -323,7 +323,7 @@ class CourseList extends Component { ...@@ -323,7 +323,7 @@ class CourseList extends Component {
<div data-layout="row"> <div data-layout="row">
{ {
training.course.map(item => ( training.course.map(item => (
<CourseItem image={item.image_name} key={item.course_id}> <CourseItem image={item.image_name} key={item.course_id} id={item.course_id} toCourse={this.toCourse}>
<div className="coupon-course__footer"> <div className="coupon-course__footer">
{ {
item.course_status === 1 && item.course_status === 1 &&
...@@ -391,7 +391,7 @@ class CourseList extends Component { ...@@ -391,7 +391,7 @@ class CourseList extends Component {
<div data-layout="row"> <div data-layout="row">
{ {
basic.course.map(item => ( basic.course.map(item => (
<CourseItem image={item.image_name} key={item.course_id}> <CourseItem image={item.image_name} key={item.course_id} id={item.course_id} toCourse={this.toCourse}>
{ {
item.type === 0 && item.type === 0 &&
<div className="coupon-course__footer"> <div className="coupon-course__footer">
...@@ -472,7 +472,7 @@ class CourseList extends Component { ...@@ -472,7 +472,7 @@ class CourseList extends Component {
<div data-layout="row"> <div data-layout="row">
{ {
advanced.course.map(item => ( advanced.course.map(item => (
<CourseItem image={item.image_name} key={item.course_id}> <CourseItem image={item.image_name} key={item.course_id} id={item.course_id} toCourse={this.toCourse}>
{ {
item.type === 0 && item.type === 0 &&
<div className="coupon-course__footer"> <div className="coupon-course__footer">
...@@ -552,7 +552,7 @@ class CourseList extends Component { ...@@ -552,7 +552,7 @@ class CourseList extends Component {
<div data-layout="row"> <div data-layout="row">
{ {
higher.course.map(item => ( higher.course.map(item => (
<CourseItem image={item.image_name} key={item.course_id}> <CourseItem image={item.image_name} key={item.course_id} id={item.course_id} toCourse={this.toCourse}>
{ {
item.type === 0 && item.type === 0 &&
<div className="coupon-course__footer"> <div className="coupon-course__footer">
...@@ -632,7 +632,7 @@ class CourseList extends Component { ...@@ -632,7 +632,7 @@ class CourseList extends Component {
<div data-layout="row"> <div data-layout="row">
{ {
expand.course.map(item => ( expand.course.map(item => (
<CourseItem image={item.image_name} key={item.course_id}> <CourseItem image={item.image_name} key={item.course_id} id={item.course_id} toCourse={this.toCourse}>
{ {
item.type === 0 && item.type === 0 &&
<div className="coupon-course__footer"> <div className="coupon-course__footer">
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
padding: 10px 0; padding: 10px 0;
.course-button { .course-button {
margin: 5px auto 0; //margin: 5px auto 0;
} }
} }
...@@ -42,7 +42,8 @@ ...@@ -42,7 +42,8 @@
text-align: center; text-align: center;
line-height: 1; line-height: 1;
background-image: url('https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/coupon-bg-0.png'); background-image: url('https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/coupon-bg-0.png');
background-repeat: no-repeat;
background-size: cover;
} }
.coupon-course__button--receive { .coupon-course__button--receive {
......
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