Commit 6c1d62be by dazhou

resolve conflict

parent 2cbf5e70
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.
...@@ -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,71 +8,76 @@ class TeacherList extends Component { ...@@ -8,71 +8,76 @@ 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}
<div className="pic"> className={`tealist ${liClass}`}
<img src={item.thumb_img} alt=""/> onClick={() => {
</div> this.bgChange(i)
<div className="detail"> }}
<h2 className="name"><b>{item.teacher_name}</b></h2> >
<p><span className="title">{item.title}</span></p> <div className="pic">
<p className="desc">{item.desc} </p> <img src={item.thumb_img} alt="" />
</div> </div>
<div className="detail">
<h2 className="name">
<b>{item.teacher_name}</b>
</h2>
<p>
<span className="title">{item.title}</span>
</p>
<p className="desc">{item.desc} </p>
</div>
</div>
)
})}
</div>
<div className="consult">
<a href="https://live.easyliao.com/live/chat.do?c=27526&g=53481&config=81372">
咨询更多师资信息
</a>
</div> </div>
})}
</div> </div>
<div className="consult">
<a href="http://q.url.cn/s/Vbkup6m?_type=wpa">咨询更多师资信息</a>
</div>
</div>
) )
} }
} }
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>
......
...@@ -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