Commit 4734a33d by xuzhenghua

pull

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