Commit 32302e4d by xuzhenghua

test

parent 5c92edf3
...@@ -330,12 +330,14 @@ function ScrollBox(props) { ...@@ -330,12 +330,14 @@ function ScrollBox(props) {
<div className="item-content"> <div className="item-content">
<h2 className="item-title">{item.live_title}</h2> <h2 className="item-title">{item.live_title}</h2>
<p className="item-teacher">讲师:{item.live_teacher_name}</p> <p className="item-teacher">讲师:{item.live_teacher_name}</p>
{/*公开课需预约、付费课不需要预约*/}
{ {
item.is_prepare && item.live_status === 0 && ( item.is_prepare || item.is_free === 0) && item.live_status === 0 &&
<p className="item-time">时间:{item.live_start_time}</p> <p className="item-time">时间:{item.live_start_time}</p>
} }
{ {
!item.is_prepare && item.live_status === 0 && !item.is_prepare && item.live_status === 0 && item.is_free === 1 &&
<button className='item-btn'>预约</button> <button className='item-btn'>预约</button>
} }
{ {
......
...@@ -504,7 +504,7 @@ ...@@ -504,7 +504,7 @@
text-align: center; text-align: center;
height: 47px; height: 47px;
button { button,a {
width: 60px; width: 60px;
height: 27px; height: 27px;
background-color: $bg_active; background-color: $bg_active;
...@@ -517,6 +517,11 @@ ...@@ -517,6 +517,11 @@
margin-left: -30px; margin-left: -30px;
bottom: 10px; bottom: 10px;
} }
a{
width: 90px;
line-height: 27px;
margin-left: -45px;
}
span { span {
width: 220px; width: 220px;
......
...@@ -2,6 +2,8 @@ import React, {Component} from 'react' ...@@ -2,6 +2,8 @@ import React, {Component} from 'react'
import './index.scss' import './index.scss'
import {http, browser, validateTel} from '@/utils' import {http, browser, validateTel} from '@/utils'
import {Toast} from 'antd-mobile' import {Toast} from 'antd-mobile'
import { Link } from "react-router-dom"
class LiveRoom extends Component { class LiveRoom extends Component {
constructor(props) { constructor(props) {
...@@ -214,10 +216,14 @@ class LiveRoom extends Component { ...@@ -214,10 +216,14 @@ class LiveRoom extends Component {
</div> </div>
<div className='course-subscribe'> <div className='course-subscribe'>
{ {
!roomMess.is_prepare && roomMess.course_id !== 0 && !roomMess.is_prepare && roomMess.is_free === 1 &&
<button onClick={this.toSubscribeFun}>预约</button> <button onClick={this.toSubscribeFun}>预约</button>
} }
{ {
roomMess.is_free === 0 &&
<Link to={`/detail?id=${roomMess.course_id}`}>查看课程</Link>
}
{
roomMess.is_prepare && roomMess.is_prepare &&
<span>直播尚未开始,敬请期待...</span> <span>直播尚未开始,敬请期待...</span>
} }
......
...@@ -207,6 +207,7 @@ class ToGroup extends Component { ...@@ -207,6 +207,7 @@ class ToGroup extends Component {
function GorupContent(props) { function GorupContent(props) {
let tip, btn, dec, groupTip, shareTip, groupSuccessMbc; let tip, btn, dec, groupTip, shareTip, groupSuccessMbc;
const { pdd_price, data, groupon_member, is_success, person_num, userInfo, share, number, countdown } = props.data; const { pdd_price, data, groupon_member, is_success, person_num, userInfo, share, number, countdown } = props.data;
let ary=[],num = number; let ary=[],num = number;
while(num != 0) { while(num != 0) {
ary.push(num); ary.push(num);
...@@ -252,11 +253,11 @@ function GorupContent(props) { ...@@ -252,11 +253,11 @@ function GorupContent(props) {
}) })
if(flag) { if(flag) {
tip = <p className='tip'>{`拼团省¥${pdd_price}元`}</p> tip = <p className='tip'>{`拼团省¥${data.price1-pdd_price}元`}</p>
btn = <span className='group-btn' onClick={props.invitedFriends}>邀请好友参团 {countdown} 后结束</span> btn = <span className='group-btn' onClick={props.invitedFriends}>邀请好友参团 {countdown} 后结束</span>
dec = <p className='dec'>分享到3个群后,成团率高达98%</p> dec = <p className='dec'>分享到3个群后,成团率高达98%</p>
} else { } else {
tip = <p className='tip'>{`拼团省¥${pdd_price}元`}</p> tip = <p className='tip'>{`拼团省¥${data.price1-pdd_price}元`}</p>
btn = <Link to={`/order?id=${data.course_id}`} className='group-btn'>一键参团</Link> btn = <Link to={`/order?id=${data.course_id}`} className='group-btn'>一键参团</Link>
} }
} }
......
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