提交 d1c1dcce 编写于 作者: guojing.hao's avatar guojing.hao

yqy-teacher-list

上级 7fb5599f
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
<div class="content"> <div class="content">
<div class="needLeft white" :key="index" v-for="(item,index) in cource"> <div class="needLeft white" :key="index" v-for="(item,index) in cource">
<img class="courceImg" src=""/> <img class="courceImg" src=""/>
<div :class="item.color" class="courceType fs22 white">{{item.name}} <div :class="[item.color,item.isLeft?'flex-start':'flex-end']" class="courceType fs22 white">{{item.name}}
</div> </div>
<div :class="hasPersonName?'space-between':'flex-end'" class="courceText fs22 white"> <div :class="hasPersonName?'space-between':'flex-end'" class="courceText fs22 white">
<div v-if="hasPersonName"><img class="avatar" src="../../images/Shape@2x.png"/><span class="person white">{{item.teacher}}</span></div> <div v-if="hasPersonName"><img class="avatar" src="../../images/Shape@2x.png"/><span class="person white">{{item.teacher}}</span></div>
...@@ -66,6 +66,7 @@ export default { ...@@ -66,6 +66,7 @@ export default {
{ {
img: '../../images/Shape@2x.png', img: '../../images/Shape@2x.png',
name: '检查', name: '检查',
isLeft: true,
hospital: '阜外医院', hospital: '阜外医院',
color: 'blue', color: 'blue',
teacher: '小单', teacher: '小单',
...@@ -74,6 +75,7 @@ export default { ...@@ -74,6 +75,7 @@ export default {
{ {
img: '../../images/Shape@2x.png', img: '../../images/Shape@2x.png',
name: '检查', name: '检查',
isLeft: true,
hospital: '阜外医院', hospital: '阜外医院',
color: 'green', color: 'green',
teacher: '小单', teacher: '小单',
...@@ -82,6 +84,7 @@ export default { ...@@ -82,6 +84,7 @@ export default {
{ {
img: '../../images/Shape@2x.png', img: '../../images/Shape@2x.png',
name: '检查', name: '检查',
isLeft: true,
hospital: '阜外医院', hospital: '阜外医院',
color: 'pink', color: 'pink',
teacher: '小单', teacher: '小单',
...@@ -90,6 +93,7 @@ export default { ...@@ -90,6 +93,7 @@ export default {
{ {
img: '../../images/Shape@2x.png', img: '../../images/Shape@2x.png',
name: '检查', name: '检查',
isLeft: true,
hospital: '阜外医院', hospital: '阜外医院',
color: 'yellow', color: 'yellow',
teacher: '小单', teacher: '小单',
...@@ -98,6 +102,7 @@ export default { ...@@ -98,6 +102,7 @@ export default {
{ {
img: '../../images/Shape@2x.png', img: '../../images/Shape@2x.png',
name: '检查', name: '检查',
isLeft: true,
hospital: '阜外医院', hospital: '阜外医院',
color: 'blue', color: 'blue',
teacher: '小单', teacher: '小单',
...@@ -106,6 +111,7 @@ export default { ...@@ -106,6 +111,7 @@ export default {
{ {
img: '../../images/Shape@2x.png', img: '../../images/Shape@2x.png',
name: '检查', name: '检查',
isLeft: true,
hospital: '阜外医院', hospital: '阜外医院',
color: 'green', color: 'green',
teacher: '小单', teacher: '小单',
...@@ -114,6 +120,7 @@ export default { ...@@ -114,6 +120,7 @@ export default {
{ {
img: '../../images/Shape@2x.png', img: '../../images/Shape@2x.png',
name: '检查', name: '检查',
isLeft: true,
hospital: '阜外医院', hospital: '阜外医院',
color: 'pink', color: 'pink',
teacher: '小单', teacher: '小单',
...@@ -122,6 +129,7 @@ export default { ...@@ -122,6 +129,7 @@ export default {
{ {
img: '../../images/Shape@2x.png', img: '../../images/Shape@2x.png',
name: '检查', name: '检查',
isLeft: true,
hospital: '阜外医院', hospital: '阜外医院',
color: 'yellow', color: 'yellow',
teacher: '小单', teacher: '小单',
...@@ -287,7 +295,7 @@ export default { ...@@ -287,7 +295,7 @@ export default {
.courceType{ .courceType{
position: absolute; position: absolute;
top: px2rem(5px); top: px2rem(5px);
right: px2rem(5px); // right: px2rem(5px);
width: 90%; width: 90%;
text-align: right; text-align: right;
width: px2rem(30px); width: px2rem(30px);
...@@ -295,6 +303,9 @@ export default { ...@@ -295,6 +303,9 @@ export default {
border-radius: px2rem(2px); border-radius: px2rem(2px);
line-height: px2rem(16px); line-height: px2rem(16px);
text-align: center; text-align: center;
display: flex;
justify-content: flex-start;
margin: 0 10px;
} }
.fontTitle{ .fontTitle{
font-size: px2rem(18px); font-size: px2rem(18px);
......
...@@ -10,6 +10,10 @@ ...@@ -10,6 +10,10 @@
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
} }
.flex-start{
display: flex;
justify-content: flex-start;
}
.flex-end{ .flex-end{
display: flex; display: flex;
justify-content: flex-end; justify-content: flex-end;
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册