|
|
|
@ -9,6 +9,7 @@ import { getUrl } from 'educoder'
|
|
|
|
|
import axios from 'axios';
|
|
|
|
|
|
|
|
|
|
import './TPMIndex.css'
|
|
|
|
|
import Trialapplication from "../login/Trialapplication";
|
|
|
|
|
// import "antd/dist/antd.css";
|
|
|
|
|
// import '../../css/educoder/edu-common.css'
|
|
|
|
|
// import '../../css/educoder/edu-all.css'
|
|
|
|
@ -246,9 +247,9 @@ export function TPMIndexHOC(WrappedComponent) {
|
|
|
|
|
}
|
|
|
|
|
*/
|
|
|
|
|
if (response.data) {
|
|
|
|
|
|
|
|
|
|
this.initCommonState(response.data)
|
|
|
|
|
this.setState({
|
|
|
|
|
user_phone_binded:response.data.user_phone_binded,
|
|
|
|
|
tpmLoading: false,
|
|
|
|
|
coursedata: {
|
|
|
|
|
course_identity: response.data.course_identity >= 0 ? response.data.course_identity : undefined,
|
|
|
|
@ -266,7 +267,7 @@ export function TPMIndexHOC(WrappedComponent) {
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
render() {
|
|
|
|
|
let{Headertop,Footerdown}=this.state;
|
|
|
|
|
let{Headertop,Footerdown,user_phone_binded}=this.state;
|
|
|
|
|
const common = {
|
|
|
|
|
isSuperAdmin:this.isSuperAdmin,
|
|
|
|
|
isAdminOrCreator:this.isAdminOrCreator,
|
|
|
|
@ -278,10 +279,16 @@ export function TPMIndexHOC(WrappedComponent) {
|
|
|
|
|
isNotMember: this.isNotMember,
|
|
|
|
|
isUserid:this.state.coursedata&&this.state.coursedata.userid
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
|
<div>
|
|
|
|
|
{
|
|
|
|
|
user_phone_binded === undefined?
|
|
|
|
|
""
|
|
|
|
|
:
|
|
|
|
|
<Trialapplication {...this.state} user_phone_binded={user_phone_binded}></Trialapplication>
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
<SiderBar
|
|
|
|
|
Headertop={Headertop}
|
|
|
|
|
/>
|
|
|
|
|