Commit 28c87369 by caixinyu
parents 3e358f28 d1ac18b5
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -45,9 +45,13 @@ const Module = function CourseList({ module, toDetail }) { ...@@ -45,9 +45,13 @@ const Module = function CourseList({ module, toDetail }) {
return ( return (
<div className="category home-course-list"> <div className="category home-course-list">
{module.name !== "双11秒杀课"?<h2 className="title"> {module.name !== "双11秒杀课" ? (
{module.name} <h2 className="title">{module.name}</h2>
</h2>:(<h2 className="bq"><img className="hot2" src={require('./../image/11.png')} alt=""/></h2>)} ) : (
<h2 className="bq">
<img className="hot2" src={require("./../image/11.png")} alt="" />
</h2>
)}
{module.name === "限时免费" && <span className={"hot"}>hot</span>} {module.name === "限时免费" && <span className={"hot"}>hot</span>}
{module.show_more === 1 && ( {module.show_more === 1 && (
...@@ -67,7 +71,7 @@ const Module = function CourseList({ module, toDetail }) { ...@@ -67,7 +71,7 @@ const Module = function CourseList({ module, toDetail }) {
</Link> </Link>
) )
) : null} ) : null}
{module.name==="初级入门课"?( {module.name === "初级入门课" ? (
<ul className="index-course-detail"> <ul className="index-course-detail">
{module.name !== "限时免费" && {module.name !== "限时免费" &&
!isOdd && !isOdd &&
...@@ -120,18 +124,26 @@ const Module = function CourseList({ module, toDetail }) { ...@@ -120,18 +124,26 @@ const Module = function CourseList({ module, toDetail }) {
})} })}
<div className="vip"> <div className="vip">
<Link to={"/vip/newvip"}> <Link to={"/vip/newvip"}>
<img src="https://julyedu-img.oss-cn-beijing.aliyuncs.com/huiyuanganggaowei.png" alt=""/> <img
src="https://julyedu-img.oss-cn-beijing.aliyuncs.com/huiyuanganggaowei.png"
alt=""
/>
</Link> </Link>
<a href="http://q.url.cn/s/Vbkup6m?_type=wpa" className="consult" target="_blank"> <a
<img className="govip" src={require('./../image/kt.png')} alt=""/> href="https://live.easyliao.com/live/chat.do?c=27526&g=53481&config=81372"
className="consult"
target="_blank"
>
<img
className="govip"
src={require("./../image/kt.png")}
alt=""
/>
</a> </a>
</div> </div>
</ul> </ul>
) : (
<ul className="index-course-detail">
):(<ul className="index-course-detail">
{module.name !== "限时免费" && {module.name !== "限时免费" &&
!isOdd && !isOdd &&
module.list[0].course_img !== module.list[0].course_img_small && ( module.list[0].course_img !== module.list[0].course_img_small && (
...@@ -182,10 +194,7 @@ const Module = function CourseList({ module, toDetail }) { ...@@ -182,10 +194,7 @@ const Module = function CourseList({ module, toDetail }) {
) )
})} })}
</ul> </ul>
)}
)
}
{/* <LazyLoad offset={50}> */} {/* <LazyLoad offset={50}> */}
{/* </LazyLoad> */} {/* </LazyLoad> */}
...@@ -222,7 +231,7 @@ function LimitFree({ course }) { ...@@ -222,7 +231,7 @@ function LimitFree({ course }) {
} }
//课程底部 //课程底部
function Bottom({ course,course1 }) { function Bottom({ course, course1 }) {
if (course.is_buy) { if (course.is_buy) {
if (course.is_limit_free && course.limit_free_status === 1) { if (course.is_limit_free && course.limit_free_status === 1) {
return <div className={"isbuy"}>已领取</div> return <div className={"isbuy"}>已领取</div>
...@@ -239,13 +248,13 @@ function Bottom({ course,course1 }) { ...@@ -239,13 +248,13 @@ function Bottom({ course,course1 }) {
<span className="new">特惠价:¥{course.discounts_price}</span> <span className="new">特惠价:¥{course.discounts_price}</span>
<span className="old">¥{course.price}</span> <span className="old">¥{course.price}</span>
</p> </p>
) :<p className="course-price"> ) : (
<p className="course-price">
<span className="new">¥{course.discounts_price}</span> <span className="new">¥{course.discounts_price}</span>
<span className="old">¥{course.price}</span> <span className="old">¥{course.price}</span>
</p>} </p>
)}
</div> </div>
) )
} }
} }
......
...@@ -238,7 +238,7 @@ class Index extends Component { ...@@ -238,7 +238,7 @@ class Index extends Component {
<HomeCourseList modules={this.state.modules} /> <HomeCourseList modules={this.state.modules} />
<TeacherList /> <TeacherList />
<p className="borderTop" /> <p className="borderTop" />
{/* <botton className="fix"><a href="http://q.url.cn/s/Vbkup6m?_type=wpa"><span>点击</span><span>咨询</span></a></botton> */} {/* <botton className="fix"><a href="https://live.easyliao.com/live/chat.do?c=27526&g=53481&config=81372"><span>点击</span><span>咨询</span></a></botton> */}
<Teaching /> <Teaching />
{/* <AllCourseNavigation /> */} {/* <AllCourseNavigation /> */}
......
...@@ -8,64 +8,72 @@ class TeacherList extends Component { ...@@ -8,64 +8,72 @@ class TeacherList extends Component {
constructor(props) { constructor(props) {
super(props) super(props)
this.state = { this.state = {
data:[], data: [],
active: '', active: "",
isToggleOn: false, isToggleOn: false,
liClass1:'' liClass1: "",
} }
} }
bgChange = index => { bgChange = (index) => {
console.log(index,999) console.log(index, 999)
this.setState({ this.setState({
active: index, active: index,
}); })
this.setState(prevState => ({ this.setState((prevState) => ({
isToggleOn: !prevState.isToggleOn, isToggleOn: !prevState.isToggleOn,
liClass1: prevState.isToggleOn ? '': 'active1' liClass1: prevState.isToggleOn ? "" : "active1",
})); }))
}; }
componentDidMount() { componentDidMount() {
http.get(`${API.home}/m/mobTeachers`).then((res) => { http.get(`${API.home}/m/mobTeachers`).then((res) => {
if (res.data.code === 200) { if (res.data.code === 200) {
this.setState({ this.setState({
data:res.data.data data: res.data.data,
}); })
} else { } else {
Toast.info(res.data.msg, 2) Toast.info(res.data.msg, 2)
} }
}) })
} }
render() { render() {
const { active,liClass1,isToggleOn } = this.state; const { active, liClass1, isToggleOn } = this.state
return ( return (
<div className="teacher"> <div className="teacher">
<p className="cont">超强师资团队</p> <p className="cont">超强师资团队</p>
<div className="teabox"> <div className="teabox">
{this.state.data.map((item, i) => { {this.state.data.map((item, i) => {
const liClass = active === i && isToggleOn? 'active1' : ''; const liClass = active === i && isToggleOn ? "active1" : ""
// const liClass1 = isToggleOn ? 'active1' : ''; // const liClass1 = isToggleOn ? 'active1' : '';
return <div key={i} className={`tealist ${liClass}`} onClick={() => { return (
this.bgChange(i); <div
}}> key={i}
className={`tealist ${liClass}`}
onClick={() => {
this.bgChange(i)
}}
>
<div className="pic"> <div className="pic">
<img src={item.thumb_img} alt=""/> <img src={item.thumb_img} alt="" />
</div> </div>
<div className="detail"> <div className="detail">
<h2 className="name"><b>{item.teacher_name}</b></h2> <h2 className="name">
<p><span className="title">{item.title}</span></p> <b>{item.teacher_name}</b>
</h2>
<p>
<span className="title">{item.title}</span>
</p>
<p className="desc">{item.desc} </p> <p className="desc">{item.desc} </p>
</div> </div>
</div> </div>
)
})} })}
</div> </div>
<div className="consult"> <div className="consult">
<a href="http://q.url.cn/s/Vbkup6m?_type=wpa">咨询更多师资信息</a> <a href="https://live.easyliao.com/live/chat.do?c=27526&g=53481&config=81372">
咨询更多师资信息
</a>
</div> </div>
</div> </div>
) )
...@@ -73,6 +81,3 @@ class TeacherList extends Component { ...@@ -73,6 +81,3 @@ class TeacherList extends Component {
} }
export default TeacherList export default TeacherList
...@@ -236,7 +236,8 @@ class YearCourse extends Component { ...@@ -236,7 +236,8 @@ class YearCourse extends Component {
toQQque = () => { toQQque = () => {
if (!getParam("version")) { if (!getParam("version")) {
window.location.href = "http://q.url.cn/s/Vbkup6m?_type=wpa" window.location.href =
"https://live.easyliao.com/live/chat.do?c=27526&g=53481&config=81372"
} else { } else {
SendMessageToApp("toQQ", "https://q.url.cn/AB8aue?_type=wpa&qidian=true") SendMessageToApp("toQQ", "https://q.url.cn/AB8aue?_type=wpa&qidian=true")
} }
......
...@@ -233,7 +233,8 @@ class YearCourse extends Component { ...@@ -233,7 +233,8 @@ class YearCourse extends Component {
toQQque = () => { toQQque = () => {
if (!getParam("version")) { if (!getParam("version")) {
window.location.href = "http://q.url.cn/s/Vbkup6m?_type=wpa" window.location.href =
"https://live.easyliao.com/live/chat.do?c=27526&g=53481&config=81372"
} else { } else {
SendMessageToApp("toQQ", "https://q.url.cn/AB8aue?_type=wpa&qidian=true") SendMessageToApp("toQQ", "https://q.url.cn/AB8aue?_type=wpa&qidian=true")
} }
......
...@@ -370,7 +370,7 @@ class BtnStatus extends Component { ...@@ -370,7 +370,7 @@ class BtnStatus extends Component {
<div className="btns-box"> <div className="btns-box">
<a <a
className="consult consult-s" className="consult consult-s"
href="http://q.url.cn/s/Vbkup6m?_type=wpa" href="https://live.easyliao.com/live/chat.do?c=27526&g=53481&config=81372"
> >
<i className="iconfont iconerji"></i> <i className="iconfont iconerji"></i>
<span>课程咨询</span> <span>课程咨询</span>
...@@ -402,7 +402,7 @@ class BtnStatus extends Component { ...@@ -402,7 +402,7 @@ class BtnStatus extends Component {
<div className="btns-box"> <div className="btns-box">
<a <a
className="consult consult-m" className="consult consult-m"
href="http://q.url.cn/s/Vbkup6m?_type=wpa" href="https://live.easyliao.com/live/chat.do?c=27526&g=53481&config=81372"
> >
<i className="iconfont iconerji" /> <i className="iconfont iconerji" />
<span>课程咨询</span> <span>课程咨询</span>
...@@ -421,7 +421,7 @@ class BtnStatus extends Component { ...@@ -421,7 +421,7 @@ class BtnStatus extends Component {
<div className="btns-box"> <div className="btns-box">
<a <a
className="consult consult-m" className="consult consult-m"
href="http://q.url.cn/s/Vbkup6m?_type=wpa" href="https://live.easyliao.com/live/chat.do?c=27526&g=53481&config=81372"
> >
<i className="iconfont iconerji" /> <i className="iconfont iconerji" />
<span>课程咨询</span> <span>课程咨询</span>
...@@ -439,7 +439,7 @@ class BtnStatus extends Component { ...@@ -439,7 +439,7 @@ class BtnStatus extends Component {
<div className="btns-box"> <div className="btns-box">
<a <a
className="consult consult-s" className="consult consult-s"
href="http://q.url.cn/s/Vbkup6m?_type=wpa" href="https://live.easyliao.com/live/chat.do?c=27526&g=53481&config=81372"
> >
<i className="iconfont iconerji"></i> <i className="iconfont iconerji"></i>
<span>课程咨询</span> <span>课程咨询</span>
...@@ -461,7 +461,7 @@ class BtnStatus extends Component { ...@@ -461,7 +461,7 @@ class BtnStatus extends Component {
<div className="btns-box"> <div className="btns-box">
<a <a
className="consult consult-s" className="consult consult-s"
href="http://q.url.cn/s/Vbkup6m?_type=wpa" href="https://live.easyliao.com/live/chat.do?c=27526&g=53481&config=81372"
> >
<i className="iconfont iconerji"></i> <i className="iconfont iconerji"></i>
<span>课程咨询</span> <span>课程咨询</span>
...@@ -482,7 +482,7 @@ class BtnStatus extends Component { ...@@ -482,7 +482,7 @@ class BtnStatus extends Component {
<div className="btns-box"> <div className="btns-box">
<a <a
className="consult consult-s" className="consult consult-s"
href="http://q.url.cn/s/Vbkup6m?_type=wpa" href="https://live.easyliao.com/live/chat.do?c=27526&g=53481&config=81372"
> >
<i className="iconfont iconerji"></i> <i className="iconfont iconerji"></i>
<span>课程咨询</span> <span>课程咨询</span>
...@@ -511,7 +511,10 @@ class BtnStatus extends Component { ...@@ -511,7 +511,10 @@ class BtnStatus extends Component {
{/*特殊课程*/} {/*特殊课程*/}
{this.state.isbuy === 20 && ( {this.state.isbuy === 20 && (
<div className="btns-box"> <div className="btns-box">
<a className="consult-l" href="http://q.url.cn/s/Vbkup6m?_type=wpa"> <a
className="consult-l"
href="https://live.easyliao.com/live/chat.do?c=27526&g=53481&config=81372"
>
<i className="iconfont iconerji"></i> <i className="iconfont iconerji"></i>
<span>课程咨询</span> <span>课程咨询</span>
</a> </a>
...@@ -523,7 +526,7 @@ class BtnStatus extends Component { ...@@ -523,7 +526,7 @@ class BtnStatus extends Component {
<div className="btns-box"> <div className="btns-box">
<a <a
className="consult consult-m" className="consult consult-m"
href="http://q.url.cn/s/Vbkup6m?_type=wpa" href="https://live.easyliao.com/live/chat.do?c=27526&g=53481&config=81372"
> >
<i className="iconfont iconerji"></i> <i className="iconfont iconerji"></i>
<span>课程咨询</span> <span>课程咨询</span>
...@@ -542,7 +545,7 @@ class BtnStatus extends Component { ...@@ -542,7 +545,7 @@ class BtnStatus extends Component {
<div className="btns-box"> <div className="btns-box">
<a <a
className="consult consult-m" className="consult consult-m"
href="http://q.url.cn/s/Vbkup6m?_type=wpa" href="https://live.easyliao.com/live/chat.do?c=27526&g=53481&config=81372"
> >
<i className="iconfont iconerji"></i> <i className="iconfont iconerji"></i>
<span>课程咨询</span> <span>课程咨询</span>
...@@ -590,7 +593,7 @@ class BtnStatus extends Component { ...@@ -590,7 +593,7 @@ class BtnStatus extends Component {
<div className="btns-box"> <div className="btns-box">
<a <a
className="consult consult-m" className="consult consult-m"
href="http://q.url.cn/s/Vbkup6m?_type=wpa" href="https://live.easyliao.com/live/chat.do?c=27526&g=53481&config=81372"
> >
<i className="iconfont iconerji"></i> <i className="iconfont iconerji"></i>
<span>课程咨询</span> <span>课程咨询</span>
......
...@@ -226,7 +226,7 @@ class ToGroup extends Component { ...@@ -226,7 +226,7 @@ class ToGroup extends Component {
</p> </p>
<div className="des"> <div className="des">
<p className="course-price"> <p className="course-price">
<span className="new">¥{item.price1}</span> <span className="new">¥{item.pdd_price}</span>
<span className="old">¥{item.price0}</span> <span className="old">¥{item.price0}</span>
</p> </p>
</div> </div>
......
...@@ -288,7 +288,7 @@ class IntelligentRecommend extends Component { ...@@ -288,7 +288,7 @@ class IntelligentRecommend extends Component {
{item.c_type === 2 && ( {item.c_type === 2 && (
<React.Fragment key={item.course_id}> <React.Fragment key={item.course_id}>
<a <a
href="http://q.url.cn/s/Vbkup6m?_type=wpa" href="https://live.easyliao.com/live/chat.do?c=27526&g=53481&config=81372"
className={"contact"} className={"contact"}
onClick={this.consult} onClick={this.consult}
> >
......
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