杨树林 6 years ago
parent 7bbc9150a6
commit 24dd22aa35

@ -104,17 +104,17 @@ class ListPageIndex extends Component{
{/*头部banner*/} {/*头部banner*/}
<CoursesBanner {...this.props}></CoursesBanner> <CoursesBanner {...this.props}></CoursesBanner>
{yslGuideone===null||yslGuideone===undefined||yslGuideone===false? {/*{yslGuideone===null||yslGuideone===undefined||yslGuideone===false?*/}
( {/* (*/}
this.props.isAdmin()===true? {/* this.props.isAdmin()===true?*/}
<Guide {/* <Guide*/}
setwindowlocal={(b)=>this.setwindowlocal(b)} {/* setwindowlocal={(b)=>this.setwindowlocal(b)}*/}
> {/* >*/}
</Guide> {/* </Guide>*/}
:"" {/* :""*/}
) {/* )*/}
:"" {/* :""*/}
} {/*}*/}
<div className="educontent clearfix" style={{flex: "1 0 auto"}}> <div className="educontent clearfix" style={{flex: "1 0 auto"}}>

@ -580,7 +580,7 @@ class CoursesBanner extends Component {
<li className={"mt7 mr10im ml10"} style={{overflow:"hidden"}}> <li className={"mt7 mr10im ml10"} style={{overflow:"hidden"}}>
<a> <a>
<span className="color-grey-c fl font-16">邀请码</span> <span className="color-grey-c fl font-16" style={{marginRight: "10px"}}>邀请码</span>
<span <span
className={coursedata.code_halt === true? "color-white fl font-16 bannerurli width75f" : "color-white fl font-16 bannerurli width107f marleftf10 color-orange-tip"}> className={coursedata.code_halt === true? "color-white fl font-16 bannerurli width75f" : "color-white fl font-16 bannerurli width107f marleftf10 color-orange-tip"}>
{coursedata.code_halt === true? "已停用" : coursedata.invite_code} {coursedata.code_halt === true? "已停用" : coursedata.invite_code}

@ -1649,3 +1649,17 @@ input.ant-input-number-input:focus {
left: -95px; left: -95px;
top:120px; top:120px;
} }
/*.yslnobinput input{*/
/* width: 280px;*/
/* height: 40px !important;*/
/* background-color: #fafafa!important;*/
/*}*/
/*.yslnobinput .ant-input-number-input-wrap{*/
/* width: 280px;*/
/* height: 40px !important;*/
/* background-color: #fafafa!important;*/
/*}*/
.yslinputcourput .ant-form-explain{
padding-left: 0px !important;
}

@ -1,5 +1,5 @@
import React, {Component} from "React"; import React, {Component} from "React";
import {Form, Select, Input, Button, Checkbox, DatePicker,Spin,Icon,AutoComplete} from "antd"; import {Form, Select, Input, Button, Checkbox, DatePicker,Spin,Icon,AutoComplete,InputNumber} from "antd";
import ApplyForAddOrgModal from '../../user/modal/ApplyForAddOrgModal'; import ApplyForAddOrgModal from '../../user/modal/ApplyForAddOrgModal';
import axios from 'axios'; import axios from 'axios';
import "../css/Courses.css"; import "../css/Courses.css";
@ -539,7 +539,7 @@ class CoursesNew extends Component {
</div> </div>
<div className="stud-class-set bor-bottom-greyE padding1020 coursenavbox coursenavboxtow"> <div className="stud-class-set bor-bottom-greyE padding1020 coursenavbox coursenavboxtow yslinputcourput">
<style> <style>
{` {`
.ant-form-item{ .ant-form-item{
@ -551,8 +551,18 @@ class CoursesNew extends Component {
label="总学时" label="总学时"
hasFeedback hasFeedback
> >
{getFieldDecorator("period")( {getFieldDecorator("period",
<Input id="period" className="greyInput" placeholder="例如30"/> {
rules:[{
required:true,
pattern: new RegExp(/^[0-9]\d*$/, "g"),
message: '不能小于0'
}],
getValueFromEvent: (event) => {
return event.target.value.replace(/\D/g,'')
}}
)(
<Input id="period" className="greyInput " placeholder="例如30"/>
)} )}
</Form.Item> </Form.Item>
@ -560,8 +570,18 @@ class CoursesNew extends Component {
label="学分" label="学分"
hasFeedback hasFeedback
> >
{getFieldDecorator("credit")( {getFieldDecorator("credit",
<Input id="credit" className={"greyInput"} placeholder="例如3"/> {
rules:[{
required:true,
pattern: new RegExp(/^[0-9]\d*$/, "g"),
message: '不能小于0'
}],
getValueFromEvent: (event) => {
return event.target.value.replace(/\D/g,'')
}}
)(
<Input id="credit" className={"greyInput "} placeholder="例如3"/>
)} )}
</Form.Item> </Form.Item>
<Form.Item <Form.Item

@ -311,7 +311,6 @@
margin-top: 20%; margin-top: 20%;
margin-left: 61%; margin-left: 61%;
margin-right: 0%; margin-right: 0%;
height: 33%;
} }
/*成员列表*/ /*成员列表*/
@ -348,9 +347,9 @@
margin-right: 43%; margin-right: 43%;
} }
.ysldiv31024{ .ysldiv31024{
margin-top: 18%; margin-top: 19%;
margin-left: 1%; margin-left: 1%;
margin-right: 38%; margin-right: 34%;
} }
/*目录管理*/ /*目录管理*/
@ -427,8 +426,7 @@
margin-right: 39%; margin-right: 39%;
} }
.ysldiv51024{ .ysldiv51024{
margin-top: 34%; margin-top: 30%;
margin-left: -1%;
margin-right: 27%; margin-right: 27%;
} }
@ -468,8 +466,8 @@
height: 53%; height: 53%;
} }
.ysldiv61024{ .ysldiv61024{
margin-top: 26%; margin-top: 31%;
margin-left: 27%; margin-left: 27%;
margin-right: 0%; margin-right: 0;
height: 40%; height: 40%;
} }
Loading…
Cancel
Save