Commit 4734a33d by xuzhenghua

pull

parents dfe9d9a2 264a3d9a
...@@ -62,8 +62,34 @@ class ReserveCourse extends Component { ...@@ -62,8 +62,34 @@ class ReserveCourse extends Component {
} }
} }
// 立即付尾款 // 立即付尾款
expandPaywk = (courseId, day) => { expandPaywk = (courseId, time,day) => {
Toast.info("付尾款时间将在" + day + "开启", 2); const {user, history} = this.props;
const uid = user && user.data && user.data.uid;
if (!uid) {
if (!getParam('version')) {
this.props.history.push('/passport/login')
} else {
SendMessageToApp("toLogin");
}
} else {
let timeStamp = Date.parse(new Date()) / 1000;
if (timeStamp >= time) {
if (!getParam('version')) {
this.props.history.push(
'/final-deposit-order?source=1',
{
id: courseId,
sourcenum: 1
}
)
} else {
SendMessageToApp("TailMoney");
}
} else {
Toast.info("付尾款时间将在" + day + "开启", 2);
}
}
} }
// 去学习 // 去学习
tostudy = (courseId) => { tostudy = (courseId) => {
...@@ -138,7 +164,7 @@ function CourseList(props) { ...@@ -138,7 +164,7 @@ function CourseList(props) {
{ {
item.is_buy === 1 && item.is_buy === 1 &&
<button className="to-expand-buy2" <button className="to-expand-buy2"
onClick={() => expandPaywk(item.course_id, item.final_start_time)}>立即付尾款</button> onClick={() => expandPaywk(item.course_id, item.start_timestamp,item.final_start_time)}>立即付尾款</button>
} }
{ {
item.is_buy === 2 && item.is_buy === 2 &&
......
...@@ -231,16 +231,22 @@ class CollectBlessing extends Component { ...@@ -231,16 +231,22 @@ class CollectBlessing extends Component {
<i className="collect-blessing__num">{index+1}</i> <i className="collect-blessing__num">{index+1}</i>
<p className="collect-blessing__title">{item}</p> <p className="collect-blessing__title">{item}</p>
{ {
index === 0 && (isLogin && isSign) && index === 0 &&
<a className="collect-blessing__content" data-status="done"> <>
+5<br/>福气值 {
</a> (isLogin && isSign)
} ? (
{ <a className="collect-blessing__content" data-status="done">
index === 0 && (!isLogin || !isSign) && +5<br/>福气值
<span onClick={toLogin} className="collect-blessing__content"> </a>
点击<br/>签到 )
</span> : (
<span onClick={toLogin} className="collect-blessing__content">
点击<br/>签到
</span>
)
}
</>
} }
{ {
index === 1 && index === 1 &&
...@@ -281,7 +287,9 @@ class CollectBlessing extends Component { ...@@ -281,7 +287,9 @@ class CollectBlessing extends Component {
index === 4 && index === 4 &&
<a className="collect-blessing__content" onClick={handleToShowInvite}> <a className="collect-blessing__content" onClick={handleToShowInvite}>
<span>邀请链接</span> <span>邀请链接</span>
<i>已加{inviteBlessing}</i> {
inviteBlessing > 0 && <i>已加{inviteBlessing}</i>
}
</a> </a>
} }
{ {
...@@ -290,7 +298,9 @@ class CollectBlessing extends Component { ...@@ -290,7 +298,9 @@ class CollectBlessing extends Component {
className="collect-blessing__content" className="collect-blessing__content"
onClick={toSection}> onClick={toSection}>
<span>去选课</span> <span>去选课</span>
<i>已加{buyBlessing}</i> {
buyBlessing > 0 && <i>已加{buyBlessing}</i>
}
</a> </a>
} }
</div> </div>
......
...@@ -115,6 +115,7 @@ class Live extends Component { ...@@ -115,6 +115,7 @@ class Live extends Component {
tabBarInactiveTextColor={'#FFF604'} tabBarInactiveTextColor={'#FFF604'}
tabBarUnderlineStyle={{display: 'none'}} tabBarUnderlineStyle={{display: 'none'}}
initialPage={today} initialPage={today}
swipeable={false}
> >
{ {
this.props.isFormal this.props.isFormal
......
...@@ -60,6 +60,7 @@ ...@@ -60,6 +60,7 @@
font-size: 14px; font-size: 14px;
color: $color_666; color: $color_666;
margin-top: 10px; margin-top: 10px;
line-height: 16px;
} }
.des { .des {
......
...@@ -164,8 +164,7 @@ class ExpandShare extends Component { ...@@ -164,8 +164,7 @@ class ExpandShare extends Component {
step: 2, step: 2,
helpData: data helpData: data
}) })
this.getListorData()
console.log(data)
} else if (errno === 17018 || errno === 17020) { } else if (errno === 17018 || errno === 17020) {
this.setState({ this.setState({
isShow: true, isShow: true,
......
...@@ -569,6 +569,7 @@ ...@@ -569,6 +569,7 @@
color: #fff; color: #fff;
font-size: 15px; font-size: 15px;
margin-top: 20px; margin-top: 20px;
border: none;
} }
} }
...@@ -596,6 +597,7 @@ ...@@ -596,6 +597,7 @@
border-radius: 17px; border-radius: 17px;
color: #fff; color: #fff;
font-size: 15px; font-size: 15px;
border: none;
} }
} }
......
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