Commit aefc71c2 by xuzhenghua

ui问题

parents 38dee714 5fe4637c
...@@ -34,7 +34,7 @@ class ReserveCourse extends Component { ...@@ -34,7 +34,7 @@ class ReserveCourse extends Component {
const {code, data, msg} = res.data; const {code, data, msg} = res.data;
if (code === 200) { if (code === 200) {
this.setState({ this.setState({
courseData: data.filter((item, index) => index < 4), courseData: JSON.stringify(data) == '{}' ? []:data.filter((item, index) => index < 4),
courseDataAll: data courseDataAll: data
}) })
} else { } else {
......
...@@ -24,11 +24,11 @@ ...@@ -24,11 +24,11 @@
li{ li{
flex: 1; flex: 1;
width: 63px; width: 63px;
height: 30px; height: 40px;
font-size: 11px; font-size: 11px;
color: #fff; color: #fff;
text-align: center; text-align: center;
line-height: 30px; line-height: 40px;
&.active{ &.active{
background: #FF42F9; background: #FF42F9;
} }
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
.iconfont { .iconfont {
margin: 16px 0 0; margin: 16px 0 0;
font-size: 24px; font-size: 28px;
color: #fff; color: #fff;
cursor: pointer; cursor: pointer;
} }
......
...@@ -74,7 +74,7 @@ ...@@ -74,7 +74,7 @@
.prize__content { .prize__content {
display: flex; display: flex;
flex-wrap: nowrap; flex-wrap: nowrap;
padding: 10px 7px 0; padding: 10px 7px 0 0;
overflow-y: auto; overflow-y: auto;
} }
......
...@@ -41,6 +41,7 @@ export default class RecordPopup extends Component { ...@@ -41,6 +41,7 @@ export default class RecordPopup extends Component {
</div> </div>
<div className="table__body"> <div className="table__body">
{ {
recordList.length>0?
recordList.map((item, index) => { recordList.map((item, index) => {
return (<div className="tr__container" key={index}> return (<div className="tr__container" key={index}>
<span className="tr">{item.submit_time}</span> <span className="tr">{item.submit_time}</span>
...@@ -54,7 +55,8 @@ export default class RecordPopup extends Component { ...@@ -54,7 +55,8 @@ export default class RecordPopup extends Component {
</span> </span>
</div> </div>
) )
}) }):
<div className={'notdata'}>暂无测试记录</div>
} }
</div> </div>
</div> </div>
......
...@@ -14,10 +14,9 @@ ...@@ -14,10 +14,9 @@
.gift__record { .gift__record {
width: 300px; width: 300px;
height: 250px;
background: rgba(255, 255, 255, 1); background: rgba(255, 255, 255, 1);
border-radius: 5px; border-radius: 5px;
padding: 18px 24px 0 24px; padding: 18px 24px 30px 24px;
position: relative; position: relative;
span.tr { span.tr {
display: flex; display: flex;
...@@ -60,7 +59,6 @@ ...@@ -60,7 +59,6 @@
} }
.table__body { .table__body {
width: 250px; width: 250px;
height: 102px;
border: 1px solid rgba(207, 219, 229, 0.4); border: 1px solid rgba(207, 219, 229, 0.4);
border-radius: 0px 0px 1px 1px; border-radius: 0px 0px 1px 1px;
box-sizing: border-box; box-sizing: border-box;
...@@ -78,10 +76,15 @@ ...@@ -78,10 +76,15 @@
} }
} }
} }
.notdata{
text-align: center;
color: #999999;
line-height: 35px;
}
.close__button { .close__button {
width: 32px; width: 24px;
height: 32px; height: 24px;
border-radius: 50%; border-radius: 50%;
position: absolute; position: absolute;
left: 50%; left: 50%;
...@@ -92,7 +95,7 @@ ...@@ -92,7 +95,7 @@
justify-content: center; justify-content: center;
align-items: center; align-items: center;
i { i {
font-size: 32px; font-size: 24px;
color: #fff; color: #fff;
} }
} }
......
...@@ -19,7 +19,7 @@ export default class SharePopup extends Component { ...@@ -19,7 +19,7 @@ export default class SharePopup extends Component {
<div className="share__content"> <div className="share__content">
<p className="share__text">分享活动页到朋友圈、qq、微博分别</p> <p className="share__text">分享活动页到朋友圈、qq、微博分别</p>
<div className='share__rule'> <div className='share__rule'>
<img src='https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/add2.png' /> <img className={'share__add2'} src='https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/add2.png' />
<span>(每个平台每天一次)</span> <span>(每个平台每天一次)</span>
</div> </div>
</div> </div>
......
...@@ -45,5 +45,8 @@ ...@@ -45,5 +45,8 @@
font-size: 12px; font-size: 12px;
color: #525C65; color: #525C65;
} }
.share__add2{
width: 95px;
}
} }
} }
\ 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