Merge branch 'ysmCompetitions' into ysm1

dev_sync_trustie
杨树明 6 years ago
commit f51cf91b6b

@ -7,7 +7,7 @@ const paths = require('./paths');
// Make sure that including paths.js after env.js will read .env variables. // Make sure that including paths.js after env.js will read .env variables.
delete require.cache[require.resolve('./paths')]; delete require.cache[require.resolve('./paths')];
const NODE_ENV = process.env.NODE_ENV; const NODE_ENV = "production";
if (!NODE_ENV) { if (!NODE_ENV) {
throw new Error( throw new Error(
'The NODE_ENV environment variable is required but was not specified.' 'The NODE_ENV environment variable is required but was not specified.'
@ -71,7 +71,7 @@ function getClientEnvironment(publicUrl) {
{ {
// Useful for determining whether were running in production mode. // Useful for determining whether were running in production mode.
// Most importantly, it switches React into the correct mode. // Most importantly, it switches React into the correct mode.
NODE_ENV: process.env.NODE_ENV || 'development', NODE_ENV: "production",
// Useful for resolving the correct path to static assets in `public`. // Useful for resolving the correct path to static assets in `public`.
// For example, <img src={process.env.PUBLIC_URL + '/img/logo.png'} />. // For example, <img src={process.env.PUBLIC_URL + '/img/logo.png'} />.
// This should only be used as an escape hatch. Normally you would put // This should only be used as an escape hatch. Normally you would put

@ -62,7 +62,7 @@ module.exports = {
// We generate sourcemaps in production. This is slow but gives good results. // We generate sourcemaps in production. This is slow but gives good results.
// You can exclude the *.map files from the build during deployment. // You can exclude the *.map files from the build during deployment.
// devtool: shouldUseSourceMap ? 'nosources-source-map' : false, //正式版 // devtool: shouldUseSourceMap ? 'nosources-source-map' : false, //正式版
devtool: shouldUseSourceMap ? 'source-map' : false,//测试版 devtool:false,//测试版
// In production, we only want to load the polyfills and the app code. // In production, we only want to load the polyfills and the app code.
entry: [require.resolve('./polyfills'), paths.appIndexJs], entry: [require.resolve('./polyfills'), paths.appIndexJs],
output: { output: {
@ -319,7 +319,6 @@ module.exports = {
output: { output: {
comments: false comments: false
}, },
warnings: false,
compress: { compress: {
drop_debugger: true, drop_debugger: true,
drop_console: true drop_console: true

@ -161,6 +161,7 @@
"devDependencies": { "devDependencies": {
"@babel/runtime": "7.0.0-beta.51", "@babel/runtime": "7.0.0-beta.51",
"babel-plugin-import": "^1.11.0", "babel-plugin-import": "^1.11.0",
"compression-webpack-plugin": "^1.1.12",
"concat": "^1.0.3", "concat": "^1.0.3",
"happypack": "^5.0.1", "happypack": "^5.0.1",
"node-sass": "^4.12.0", "node-sass": "^4.12.0",

@ -76,10 +76,10 @@ const Otherloginstart=Loadable({
loading: Loading, loading: Loading,
}) })
const TestIndex = Loadable({ // const TestIndex = Loadable({
loader: () => import('./modules/test'), // loader: () => import('./modules/test'),
loading: Loading, // loading: Loading,
}) // })
const IndexWrapperComponent = Loadable({ const IndexWrapperComponent = Loadable({
loader: () => import('./modules/page/IndexWrapper'), loader: () => import('./modules/page/IndexWrapper'),
@ -91,23 +91,23 @@ const CommentComponent = Loadable({
loading: Loading, loading: Loading,
}) })
const TestMaterialDesignComponent = Loadable({ // const TestMaterialDesignComponent = Loadable({
loader: () => import('./modules/test/md/TestMaterialDesign'), // loader: () => import('./modules/test/md/TestMaterialDesign'),
loading: Loading, // loading: Loading,
}) // })
const TestCodeMirrorComponent = Loadable({ // const TestCodeMirrorComponent = Loadable({
loader: () => import('./modules/test/codemirror/TestCodeMirror'), // loader: () => import('./modules/test/codemirror/TestCodeMirror'),
loading: Loading, // loading: Loading,
}) // })
const TestComponent = Loadable({ // const TestComponent = Loadable({
loader: () => import('./modules/test/TestRC'), // loader: () => import('./modules/test/TestRC'),
loading: Loading, // loading: Loading,
}) // })
const TestUrlQueryComponent = Loadable({ // const TestUrlQueryComponent = Loadable({
loader: () => import('./modules/test/urlquery/TestUrlQuery'), // loader: () => import('./modules/test/urlquery/TestUrlQuery'),
loading: Loading, // loading: Loading,
}) // })
const TPMIndexComponent = Loadable({ const TPMIndexComponent = Loadable({
loader: () => import('./modules/tpm/TPMIndex'), loader: () => import('./modules/tpm/TPMIndex'),
@ -254,10 +254,10 @@ const Interestpage = Loadable({
}) })
//众包创新 //众包创新
const ProjectPackages=Loadable({ // const ProjectPackages=Loadable({
loader: () => import('./modules/projectPackages/ProjectPackageIndex'), // loader: () => import('./modules/projectPackages/ProjectPackageIndex'),
loading: Loading, // loading: Loading,
}) // })
//竞赛 //竞赛
const NewCompetitions=Loadable({ const NewCompetitions=Loadable({
@ -477,8 +477,8 @@ class App extends Component {
return (<Topicbank {...this.props} {...props} {...this.state} />) return (<Topicbank {...this.props} {...props} {...this.state} />)
} }
}></Route> }></Route>
{/*众包创新*/} {/*/!*众包创新*!/*/}
<Route path={"/crowdsourcing"} component={ProjectPackages}/> {/*<Route path={"/crowdsourcing"} component={ProjectPackages}/>*/}
{/*竞赛*/} {/*竞赛*/}
<Route path={"/newcompetitions"} component={NewCompetitions}/> <Route path={"/newcompetitions"} component={NewCompetitions}/>
{/*认证*/} {/*认证*/}
@ -583,11 +583,11 @@ class App extends Component {
> >
</Route> </Route>
<Route path="/comment" component={CommentComponent}/> <Route path="/comment" component={CommentComponent}/>
<Route path="/testMaterial" component={TestMaterialDesignComponent}/> {/*<Route path="/testMaterial" component={TestMaterialDesignComponent}/>*/}
<Route path="/test" component={TestIndex}/> {/*<Route path="/test" component={TestIndex}/>*/}
<Route path="/testCodeMirror" component={TestCodeMirrorComponent}/> {/*<Route path="/testCodeMirror" component={TestCodeMirrorComponent}/>*/}
<Route path="/testRCComponent" component={TestComponent}/> {/*<Route path="/testRCComponent" component={TestComponent}/>*/}
<Route path="/testUrlQuery" component={TestUrlQueryComponent}/> {/*<Route path="/testUrlQuery" component={TestUrlQueryComponent}/>*/}
<Route path="/messages" <Route path="/messages"
render={ render={
(props)=>(<Messagerouting {...this.props} {...props} {...this.state}></Messagerouting>) (props)=>(<Messagerouting {...this.props} {...props} {...this.state}></Messagerouting>)

@ -4,6 +4,11 @@ import { Menu, Icon, List, Avatar,Row, Col,Tag,Pagination} from 'antd';
import axios from 'axios'; import axios from 'axios';
import './Competitionsindex.css'; import './Competitionsindex.css';
import NoneData from "../../courses/shixunHomework/shixunHomework"; import NoneData from "../../courses/shixunHomework/shixunHomework";
import groups1 from './groups1.png';
import groups2 from './groups2.png';
import groups3 from './groups3.png';
const { SubMenu } = Menu; const { SubMenu } = Menu;
@ -105,11 +110,33 @@ class CompetitionsIndex extends Component{
</div> </div>
<div className={"educontent clearfix mtf10 CompetitionsIndex "}> <div className={"educontent clearfix mtf10 CompetitionsIndex "}>
<style>
{
`
.CompetitionsList{
position: relative;
}
`
}
</style>
<List <List
className={"CompetitionsList"}
itemLayout="vertical" itemLayout="vertical"
size="large" size="large"
dataSource={datas&&datas} dataSource={datas&&datas}
renderItem={(item,key) => ( renderItem={(item,key) => (
<div>
{item.description===null||item.description===undefined||item.description===""?<style>
{
`
..CompetitionsIndex .ant-list-vertical .ant-list-item-action{
margin-top:50px;
}
`
}
</style>:""}
<img src={groups3} />
<List.Item <List.Item
key={key} key={key}
actions={[ actions={[
@ -153,7 +180,11 @@ class CompetitionsIndex extends Component{
/> />
{item.description} {item.description}
</List.Item> </List.Item>
)} </div>
)
}
/> />
<div className="mb40 edu-txt-center padding20-30" <div className="mb40 edu-txt-center padding20-30"

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

Loading…
Cancel
Save