Commit 5d01820f by maolipeng

fix:默认时间+5分钟

parent ea6675dd
...@@ -64,7 +64,7 @@ export default function AddLiveClassInfoWorkWX(props) { ...@@ -64,7 +64,7 @@ export default function AddLiveClassInfoWorkWX(props) {
// setBeginDate(moment().startOf('day').valueOf()) // setBeginDate(moment().startOf('day').valueOf())
// } else { // } else {
let _begindate = date.startOf('day').valueOf(); let _begindate = date.startOf('day').valueOf();
let _begintime = moment(beginTime) let _begintime = beginTime === 0 ? moment().add(5,'minutes') : moment(beginTime)
let datetime = _begindate+(_begintime.hour()*60+_begintime.minute())*60*1000 let datetime = _begindate+(_begintime.hour()*60+_begintime.minute())*60*1000
setBeginTime(datetime) setBeginTime(datetime)
props.onChange("beginTime",datetime) props.onChange("beginTime",datetime)
...@@ -246,7 +246,7 @@ export default function AddLiveClassInfoWorkWX(props) { ...@@ -246,7 +246,7 @@ export default function AddLiveClassInfoWorkWX(props) {
style={{width:"180px"}} style={{width:"180px"}}
/> />
<TimePicker <TimePicker
value={endTime === 0?undefined:moment(endTime)} value={endTime === 0?moment().add(5,'minutes'):moment(endTime)}
onChange={onEndTimeChange} onChange={onEndTimeChange}
onOk={onEndTimeOK} onOk={onEndTimeOK}
allowClear={false} allowClear={false}
...@@ -272,11 +272,11 @@ export default function AddLiveClassInfoWorkWX(props) { ...@@ -272,11 +272,11 @@ export default function AddLiveClassInfoWorkWX(props) {
</div> </div>
<div className="teacher item"> <div className="teacher item">
<span className="label"><span className="require">*</span>讲师:</span> <span className="label"><span className="require">*</span>讲师:</span>
<div id="teacherId" style={_.find(props.exItems,(item)=>{return item === "teacherId"})?{border:"1px solid red",display:"inline-block"}:{display:"inline-block"}}>
<Select <Select
value={teacherId} value={teacherId}
onChange={onTeacherChange} onChange={onTeacherChange}
style={{width:"240px"}} style={_.find(props.exItems,(item)=>{return item === "teacherId"})?{width:"240px",border:"1px solid red"}:{width:"240px"}}
placeholder="请选择讲师" placeholder="请选择讲师"
disabled={!props.isEdit ? true: false} disabled={!props.isEdit ? true: false}
filterOption={(input, option) => option} filterOption={(input, option) => option}
...@@ -314,7 +314,6 @@ export default function AddLiveClassInfoWorkWX(props) { ...@@ -314,7 +314,6 @@ export default function AddLiveClassInfoWorkWX(props) {
} }
</Select> </Select>
</div> </div>
</div>
<div className="remind-time item"> <div className="remind-time item">
<span className="label"><span className="require">*</span>提醒时间:</span> <span className="label"><span className="require">*</span>提醒时间:</span>
<Select onChange={onRemindChange} placeholder={"15分钟前"} style={{width:"130px"}}> <Select onChange={onRemindChange} placeholder={"15分钟前"} style={{width:"130px"}}>
......
...@@ -14,4 +14,7 @@ ...@@ -14,4 +14,7 @@
.introduce { .introduce {
display: flex; display: flex;
} }
// .ant-select:not(.ant-select-disabled):hover .ant-select-selector{
// border: none;
// }
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment