众包调整

dev_aliyun
杨树明 5 years ago
parent 99a04581f0
commit 0da53b9b6a

@ -225,7 +225,7 @@ class App extends Component {
<Route path="/fork_list" component={TPMshixunfork_listIndexComponent}>
</Route> */}
{/*众包*/}
<Route path={"/project_packages"} component={ProjectPackages}/>
<Route path={"/crowdsourcing"} component={ProjectPackages}/>
<Route path="/forums" component={ForumsIndexComponent}>
</Route>

@ -51,6 +51,7 @@ class PackageConcent extends Component {
//否 string 排序,默认最新, recently, price
// 否 string 类型, front,backend,mobile,database, cloud_compute_and_big_data,devops_and_test,ai,other
componentDidMount() {
window.document.title = '交流问答'
let {category,keyword,sort_by,sort_direction,page}=this.state
this.setdatas(category,keyword,sort_by,sort_direction,page)

@ -11,7 +11,7 @@ class PackageIndex extends Component{
}
componentDidMount(){
window.document.title = '交流问答'
}
render() {

@ -49,6 +49,7 @@ class PackageIndexNEITaskDetails extends Component {
componentDidMount() {
this.getdatas()
window.document.title = '交流问答'
}
getdatas=()=>{

@ -75,7 +75,7 @@ class PackageIndexNEIBannerConcent extends Component {
}
componentDidMount() {
window.document.title = '交流问答'
if(this.props.match.params.id!=undefined){
let url=`/api/v1/project_packages/${this.props.match.params.id}.json`

@ -10,8 +10,7 @@ class PackageIndexNEISubmit extends Component {
}
}
componentDidMount() {
window.document.title = '交流问答'
}
setageload=(sum)=>{
if(sum===undefined){

@ -18,8 +18,9 @@ class PackageIndexNewandEditIndex extends Component{
}
componentDidMount(){
window.document.title = '交流问答'
}
setPublicationfun=(ids)=>{
this.setState({
setPublication:true,

@ -31,6 +31,10 @@ class ProjectPackageIndex extends Component {
super(props)
}
componentDidMount(){
window.document.title = '交流问答'
}
render() {
return (
@ -39,25 +43,25 @@ class ProjectPackageIndex extends Component {
<Switch>
{/*众包首页*/}
<Route path="/project_packages/:id/edit"
<Route path="/crowdsourcing/:id/edit"
render={
(props) => (<PackageIndexNewandEdit {...this.props} {...props} {...this.state} />)
}
></Route>
<Route path="/project_packages/new"
<Route path="/crowdsourcing/new"
render={
(props) => (<PackageIndexNewandEdit {...this.props} {...props} {...this.state} />)
}
></Route>
<Route path="/project_packages/:id"
<Route path="/crowdsourcing/:id"
render={
(props) => (<PackageIndexNEITaskDetails {...this.props} {...props} {...this.state} />)
}
></Route>
<Route path="/project_packages"
<Route path="/crowdsourcing"
render={
(props) => (<PackageIndex {...this.props} {...props} {...this.state} />)
}

Loading…
Cancel
Save