SubmitDialog.vue 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186
  1. <template>
  2. <van-overlay :z-index='50' :show="submitDialogShow" class="submit-dialog" @click="$emit('close-submit-doalog')">
  3. <view class="wrapper">
  4. <view class="wrapper-box" >
  5. <image class="performance" :src="require('@/static/common/performance.png')" />
  6. <scroll-view
  7. class="scroll-view"
  8. scroll-y
  9. >
  10. <view class="records" >
  11. <view class="records-item" v-for="item in babyInfoList" :key="item.id">
  12. <image class="ava" :src="item.headImg" />
  13. <view class="name" >{{item.babyName}}</view>
  14. <view class="school" >
  15. {{item.schoolName}}-{{ item.classLevel | teferClass}}
  16. </view>
  17. </view>
  18. </view>
  19. </scroll-view>
  20. <view class="submit-area" >
  21. <view class="submit-btn" @click="$emit('submit')">
  22. 确认提交
  23. </view>
  24. </view>
  25. </view>
  26. </view>
  27. </van-overlay>
  28. </template>
  29. <script>
  30. export default {
  31. name: 'submit-dialog',
  32. props: {
  33. submitDialogShow: {
  34. type: Boolean,
  35. default: false
  36. },
  37. babyInfoList: {
  38. type: Array,
  39. require: true
  40. }
  41. },
  42. filters: {
  43. teferClass ( level ) {
  44. switch (level) {
  45. case -1:
  46. return '托班'
  47. case 0:
  48. return '小班'
  49. case 1:
  50. return '中班'
  51. case 2:
  52. return '大班'
  53. }
  54. }
  55. },
  56. methods: {
  57. onClickHide () {
  58. console.log('2222');
  59. }
  60. }
  61. }
  62. </script>
  63. <style lang="less" scoped>
  64. .submit-dialog {
  65. display: flex;
  66. justify-content: center;
  67. align-items: center;
  68. .wrapper {
  69. width: 100vw;
  70. height: 100vh;
  71. display: flex;
  72. justify-content: center;
  73. align-items: center;
  74. .wrapper-box {
  75. position: relative;
  76. white-space: pre-wrap;
  77. .performance {
  78. width: 672rpx;
  79. height: 888rpx;
  80. }
  81. .submit-area {
  82. width: 624rpx;
  83. height: 164rpx;
  84. position: absolute;
  85. left: 24rpx;
  86. bottom: 40rpx;
  87. display: flex;
  88. justify-content: center;
  89. align-items: center;
  90. .submit-btn {
  91. width: 572rpx;
  92. height: 84rpx;
  93. background: #1677FF;
  94. border-radius: 200rpx;
  95. display: flex;
  96. justify-content: center;
  97. align-items: center;
  98. font-size: 32rpx;
  99. font-family: PingFangSC-Medium, PingFang SC;
  100. font-weight: 500;
  101. color: #FFFFFF;
  102. }
  103. }
  104. .scroll-view {
  105. width: 619rpx;
  106. height: 526rpx;
  107. position: absolute;
  108. top: 158rpx;
  109. left: 24rpx;
  110. padding-top: 26rpx;
  111. box-sizing: border-box;
  112. .records {
  113. .records-item {
  114. height: 44rpx;
  115. display: flex;
  116. align-items: center;
  117. padding-left: 40rpx;
  118. box-sizing: border-box;
  119. margin-bottom: 36rpx;
  120. .ava {
  121. width: 40rpx;
  122. height: 40rpx;
  123. border-radius: 50%;
  124. }
  125. .name {
  126. font-size: 32rpx;
  127. font-family: PingFangSC-Medium, PingFang SC;
  128. font-weight: 500;
  129. color: #333333;
  130. margin-left: 24rpx;
  131. margin-right: 20rpx;
  132. max-width: 160rpx;
  133. min-width: 96rpx;
  134. overflow: hidden;
  135. text-overflow: ellipsis;
  136. white-space: nowrap
  137. }
  138. .school {
  139. min-width: 244rpx;
  140. max-width: 300rpx;
  141. padding-left: 18rpx;
  142. padding-right: 38rpx;
  143. box-sizing: border-box;
  144. height: 36rpx;
  145. line-height: 36rpx;
  146. background: #F2F4FF;
  147. border-radius: 18rpx;
  148. font-size: 20rpx;
  149. font-family: PingFangSC-Medium, PingFang SC;
  150. font-weight: 500;
  151. color: rgba(22, 119, 255, 0.8);
  152. display: flex;
  153. justify-content: center;
  154. align-items: center;
  155. overflow: hidden;
  156. text-overflow: ellipsis;
  157. white-space: nowrap
  158. }
  159. }
  160. }
  161. }
  162. .scroll-view ::-webkit-scrollbar {
  163. width: 8rpx;
  164. height: 8rpx;
  165. color:#dddddd;
  166. }
  167. .scroll-view ::-webkit-scrollbar-thumb {
  168. width: 4rpx;
  169. height: 106rpx;
  170. background: rgba(65, 143, 255, 0.4);
  171. border-radius: 2rpx;
  172. }
  173. // .scroll-view ::-webkit-scrollbar-track {
  174. // width: 4rpx;
  175. // height: 106rpx;
  176. // // background: rgba(65, 143, 255, 0.4);
  177. // background:red;
  178. // border-radius: 2rpx;
  179. // }
  180. }
  181. }
  182. }
  183. </style>