CallNames.vue 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. <template>
  2. <div class="callnames">
  3. <m-header />
  4. <van-cell class="title" title-class="title-content">
  5. <template slot="default">孙老师</template>
  6. <template slot="title">武汉小学乐团·长笛基础课</template>
  7. <template slot="label">
  8. <p class="time">09月12日(星期一) 13:00-13:45</p>
  9. <p class="address">
  10. <van-icon name="location" />
  11. 湖北省武汉市红领巾小学
  12. </p>
  13. </template>
  14. </van-cell>
  15. <div class="name-info">
  16. <span>共有:30</span>
  17. <span>实有:30</span>
  18. <span>请假:30</span>
  19. </div>
  20. <div class="section">
  21. <van-cell-group v-for="i in 6" :key="i">
  22. <van-cell class="btn-group" :center="true" :border="false">
  23. <template slot="icon">
  24. <img class="logo" src="http://dev.dayaedu.com/img/teacher1.91bf990d.png" alt="">
  25. </template>
  26. <template slot="title">阿曼湾</template>
  27. <template slot="label"><span>长笛</span><span>合奏课1班</span></template>
  28. </van-cell>
  29. <van-cell class="btn-group">
  30. <van-button round type="danger">请假</van-button>
  31. <van-button round type="primary">未到</van-button>
  32. <van-button round type="info">到课</van-button>
  33. </van-cell>
  34. </van-cell-group>
  35. </div>
  36. <div class="button-group">
  37. <van-button type="default">全到</van-button>
  38. <van-button type="primary">点名完成</van-button>
  39. </div>
  40. </div>
  41. </template>
  42. <script>
  43. import MHeader from '@/components/MHeader'
  44. export default {
  45. name: 'callnames',
  46. components: { MHeader }
  47. }
  48. </script>
  49. <style lang='less' scoped>
  50. @import url("../../assets/commonLess/variable.less");
  51. .title {
  52. padding: .16rem;
  53. }
  54. .title-content {
  55. font-size: .18rem !important;
  56. font-weight: bold;
  57. .van-cell__label {
  58. font-weight: 400;
  59. color: @mFontColor;
  60. margin-top: .06rem;
  61. .time {
  62. font-size: .16rem;
  63. }
  64. .address {
  65. padding-top: .03rem;
  66. font-size: .14rem;
  67. display: flex;
  68. align-items: center;
  69. }
  70. }
  71. .van-icon-location {
  72. margin-right: .03rem;
  73. color: @mColor;
  74. }
  75. }
  76. /deep/.van-cell__title {
  77. font-size: .14rem;
  78. color: @mFontColor;
  79. flex: 1 auto;
  80. }
  81. /deep/.van-cell__value, /deep/.van-cell__label {
  82. color: @sFontColor;
  83. }
  84. /deep/.van-cell__label {
  85. margin-top: 0;
  86. span {
  87. padding-right: .1rem;
  88. }
  89. }
  90. .name-info {
  91. color: @mFontColor;
  92. padding: .09rem .16rem;
  93. span {
  94. padding-right: .15rem;
  95. }
  96. }
  97. .logo {
  98. width: .35rem;
  99. height: .35rem;
  100. margin-right: .12rem;
  101. }
  102. .btn-group {
  103. &:first-child {
  104. padding-bottom: .12rem;
  105. }
  106. &:last-child {
  107. padding-top: 0;
  108. padding-left: .63rem;
  109. }
  110. .van-button {
  111. padding: .04rem .24rem;
  112. height: auto;
  113. line-height: 1.5;
  114. font-size: .16rem;
  115. margin-right: .16rem;
  116. &:last-child {
  117. margin-right: 0;
  118. }
  119. }
  120. .van-button--danger {
  121. background-color: @redColor;
  122. border: 1px solid @redColor;
  123. }
  124. .van-button--primary {
  125. background-color: #FFC10D;
  126. border: 1px solid #FFC10D;
  127. }
  128. }
  129. .section{
  130. margin-bottom: .82rem;
  131. }
  132. .button-group {
  133. position: fixed;
  134. bottom: 0;
  135. left: 0;
  136. z-index: 99;
  137. width: 100%;
  138. box-shadow:0 .02rem .07rem 0 rgba(0,0,0,0.16);
  139. display: flex;
  140. .van-button {
  141. flex: 1;
  142. height: .52rem;
  143. line-height: .5rem;
  144. font-size: .16rem;
  145. }
  146. .van-button--default {
  147. color: @mFontColor;
  148. }
  149. .van-button--primary {
  150. background: @mColor;
  151. border-color: @mColor;
  152. }
  153. }
  154. </style>