+
+ {
+ Phonenumberisnotcosyzm && Phonenumberisnotcosyzm != "" ?
+
+ {Phonenumberisnotcosyzm}
+
+ :
+
+ }
-
this.Showandhide(key)}>
}>
+ {
+ Phonenumberisnotcosymmm && Phonenumberisnotcosymmm!== "" ?
+
+ {Phonenumberisnotcosymmm}
+
+ : ""
+
+ }
我已阅读并同意服务协议条款
+ {
+ Phonenumberisnotcosyfwtk && Phonenumberisnotcosyfwtk!== "" ?
+
+ {Phonenumberisnotcosyfwtk}
+
+ : ""
+
+ }
diff --git a/public/react/src/modules/user/modal/ApplyForAddOrgModal.js b/public/react/src/modules/user/modal/ApplyForAddOrgModal.js
index 76664bfec..95cfa9105 100644
--- a/public/react/src/modules/user/modal/ApplyForAddOrgModal.js
+++ b/public/react/src/modules/user/modal/ApplyForAddOrgModal.js
@@ -40,7 +40,7 @@ class ApplyForAddOrgModal extends Component{
if(!err){
let url=`/add_school_applies.json`;
axios.post(url,{
- schoolName:values.schoolName,
+ name:values.schoolName,
province:values.city && values.city[0],
city:values.city && values.city[1],
address:values.address,
diff --git a/public/react/src/modules/user/modal/RealNameCertificationModal.js b/public/react/src/modules/user/modal/RealNameCertificationModal.js
index ccb301a32..6c92423cd 100644
--- a/public/react/src/modules/user/modal/RealNameCertificationModal.js
+++ b/public/react/src/modules/user/modal/RealNameCertificationModal.js
@@ -2,7 +2,7 @@ import React, { Component } from "react";
import { message, Icon, Input, Form, Upload} from "antd";
import axios from 'axios'
import ModalWrapper from "../../courses/common/ModalWrapper"
-import { City, getUploadActionUrl,getImageUrl } from 'educoder'
+import { City, getUploadActionUrl, getImageUrl, ImageLayerHook } from 'educoder'
import '../account/common.css'
import authImg from '../../../images/account/auth.png'
@@ -201,7 +201,11 @@ class RealNameCertificationModal extends Component{
}
.applyForModal .ant-form-item-label label {
color: #979797
+ }
+ .applyForModal .ant-upload.ant-upload-drag .ant-upload {
+ padding: 0px;
}
+
.certificationModal .ant-modal-body{
padding:20px;
}
@@ -295,9 +299,9 @@ class RealNameCertificationModal extends Component{
{imageUrl2 ?
-
+ //
- :
+ :
@@ -311,7 +315,9 @@ class RealNameCertificationModal extends Component{
diff --git a/public/react/src/search/SearchPage.js b/public/react/src/search/SearchPage.js
new file mode 100644
index 000000000..14966b670
--- /dev/null
+++ b/public/react/src/search/SearchPage.js
@@ -0,0 +1,219 @@
+import React,{ Component } from "react";
+import {Checkbox,Input,Table, Pagination,Menu,Icon} from "antd";
+import {Link,NavLink} from 'react-router-dom';
+import { WordsBtn ,ActionBtn,SnackbarHOC,markdownToHTML,getImageUrl} from 'educoder';
+const Search = Input.Search;
+import axios from 'axios';
+import './searchc.css'
+import {TPMIndexHOC} from "../modules/tpm/TPMIndexHOC";
+
+class SearchPage extends Component{
+ constructor(props) {
+ super(props);
+ this.state={
+ tab:"0",
+ count:0,
+ keywords:"python",
+ type:"",
+ page:1,
+ perpages:20,
+ data:[],
+ }
+ }
+ //切换tab
+ changeTab=(e)=>{
+ this.setState({
+ tab:e.key
+ })
+
+
+ }
+
+ componentDidMount(){
+ // const query =this.props.location.search;
+ // const type = query.split('?tab=');
+ // let sum = []
+ // sum.push(type[1])
+ // // console.log("componentDidMountcomponentDidMount");
+ // // console.log(sum);
+ // this.setState({
+ // tab:sum,
+ // })
+ this.getdata(this.state.page);
+
+ }
+ setdatafuns =(value)=>{
+
+ }
+ paginationonChanges = (pageNumber) => {
+ this.setState({
+ page: pageNumber,
+ loadingstate: true,
+ })
+ this.getdata(pageNumber);
+ }
+ //获取数据
+ getdata=(pages)=>{
+ let url = "/search.json";
+ axios.get(url,{params:{
+ keyword:this.state.keywords,
+ type:this.state.types,
+ page:pages,
+ per_page:this.state.perpages,
+ }
+ }).then((response) => {
+ if(response === undefined){
+
+ return
+ }
+ console.log("63");
+ console.log(response.data);
+ this.setState({
+ count:response.data.count,
+ data:response.data.results,
+ })
+ }).catch((error) => {
+ console.log("56");
+ console.log(error);
+ });
+ }
+
+ render(){
+ let {tab,count,data,page,perpages}=this.state;
+ console.log(tab);
+ return(
+
+
+
+
搜索}
+ onSearch={ (value)=>this.setdatafuns(value)} />
+
+
+
+
+
+
+
+ {
+ JSON.stringify(data) === "[]" ?
+
+
+
+
+
+
没有数据可以显示!
+
+
+
+
+ :
+
+
+
+
+
+
+ {data === undefined ? "" : data.map((item, key) => {
+ return (
+
+
+
+ {/*标题*/}
+
+ {/*描述*/}
+
+ {item.content.content === undefined || item.content.content===0?"": item.content.content.map((item4, key4) => {
+ return (
+
+ )
+ })
+ }
+
+
+
+ {/*内容*/}
+ {item.content.description === undefined || item.content.description===0?"": item.content.description.map((item3, key3) => {
+ return (
+
+ )
+ })
+ }
+
+
+
+
+
+ {/*挑战名字*/}
+ {item.content.challenge_names === undefined || item.content.challenge_names===0?"": item.content.challenge_names.map((item5, key5) => {
+ return (
+
+ )
+ })
+ }
+
+
+
+ {/*挑战标签*/}
+ {item.content.challenge_tag_names === undefined || item.content.challenge_tag_names===0?"": item.content.challenge_tag_names.map((item6, key6) => {
+ return (
+ 1?"markdown-body tzbq ":"markdown-body tzbqx"}
+ dangerouslySetInnerHTML={{__html:item6}} />
+ )
+ })
+ }
+
+
+
+
+
+
+
+ )
+ })}
+
+
+
+
+
+
+
+
+
+
+
+
+
+ }
+
+
+ {
+ count && count && count> perpages ?
+
+ : ""
+ }
+
+
+
+ )
+ }
+}
+
+export default SnackbarHOC() (TPMIndexHOC ( SearchPage ));
\ No newline at end of file
diff --git a/public/react/src/search/searchc.css b/public/react/src/search/searchc.css
new file mode 100644
index 000000000..a3e9fafbd
--- /dev/null
+++ b/public/react/src/search/searchc.css
@@ -0,0 +1,117 @@
+.searchinput{
+ width: 800px;
+ margin-top: 53px;
+}
+.headersear{
+ height: 160px;
+ background: #EAF2F9;
+ display: flex;
+ justify-content: center;
+}
+.packinput .ant-input{
+ height: 55px;
+ width:663px !important;
+ font-size: 18px;
+ color: #681616 !important;
+ border-color: #E1EDF8 !important;
+}
+
+.packinput .ant-input-group-addon .ant-btn{
+ width:137px !important;
+ font-size: 18px;
+ height: 53px;
+ background:rgba(76,172,255,1);
+
+}
+.tabtitle{
+ height: 62px !important;
+ box-shadow: 3px 10px 21px 0px rgba(76, 76, 76, 0.15);
+ border-radius: 6px;
+ background: #fff;
+ display: flex;
+ justify-content: center;
+}
+.tabtitles2{
+ background: #fff;
+ height: 62px !important;
+ width: 1200px;
+}
+
+.tabtitless{
+ height: 62px !important;
+ line-height: 62px !important;
+
+}
+.tabtitle1{
+
+}
+.tabtitle2{
+ margin-left: 30px !important;
+
+}
+
+
+.counttit{
+ display: flex;
+ justify-content: center;
+}
+
+.counttittext{
+ text-align: left;
+ width: 1200px;
+ height: 18px;
+ color: #888888;
+ font-size: 13px;
+ margin-top: 24px;
+
+
+}
+.counttittexts{
+ color: #4CACFF !important;
+ font-size: 13px;
+}
+
+.mainx{
+ display: flex;
+ justify-content: center;
+ margin-top: 17px;
+}
+.project-packages-list{
+
+}
+.project-package-item{
+ display: -webkit-flex;
+ display: flex;
+ flex-direction:column;
+ margin-bottom: 20px;
+ padding: 20px;
+ background: white;
+ /* box-shadow: 1px 3px 3px 1px rgba(156,156,156,0.16); */
+
+}
+.xuxianpro{
+ height: 20px;
+ border-bottom: 1px dashed;
+ border-color: #EAEAEA;
+ margin-bottom: 18px;
+}
+.magr11{
+ margin-top: 11px;
+}
+.highlight{
+ color: #4CACFF;
+}
+.fonttext{
+ font-size: 20px;
+ font-weight:bold;
+}
+
+.fontextcolor{
+ color: #777777;
+}
+.tzbq{
+ margin-left: 68px;
+}
+.tzbqx{
+ margin-left: 24px;
+}
\ No newline at end of file