Commit 0b9f309b by maolipeng

feat:添加直播课页面调整

parent 9e05ffc4
......@@ -137,6 +137,12 @@ class AddLiveBasic extends React.Component {
<span className='label'>封面图:</span>
<div className='course-cover__wrap'>
<div className='img-content'>
{isDefaultCover && <span className='tag'>默认图</span>}
<img src={coverUrl} />
</div>
</div>
<div className='opt-btns'>
<Button
onClick={() => {
......@@ -151,11 +157,6 @@ class AddLiveBasic extends React.Component {
</span>
<div className='tips'>建议尺寸1280*720px或16:9。封面图最大5M,支持jpg、jpeg和png。</div>
</div>
<div className='img-content'>
{isDefaultCover && <span className='tag'>默认图</span>}
<img src={coverUrl} />
</div>
</div>
</div>
<div className='course-catalog'>
<span className='label'>
......
......@@ -16,7 +16,6 @@
position: relative;
.img-content {
margin-top: 8px;
margin-right: 20px;
width: 299px;
height: 169px;
......@@ -41,7 +40,7 @@
left: 8px;
}
}
}
.opt-btns {
.default-btn {
margin-left: 14px;
......@@ -64,7 +63,6 @@
}
}
}
}
.course-catalog {
margin: 20px 0 0 14px;
}
......
import React, { useState } from "react";
import Portal from "rc-util/lib/Portal";
import "./LiveModeSelect.less"
import { createPortal } from "react-dom";
......@@ -11,8 +10,6 @@ interface LiveModeSelectProps {
export default function LiveModeSelect(props: LiveModeSelectProps) {
const [isShow, setIsShow] = useState(props.isShow)
const handleSelect0 = (e: React.MouseEvent<HTMLDivElement>)=> {
const { onSelected } = props
onSelected(0)
......
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