You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

125 lines
2.9 KiB

9 months ago
  1. <template>
  2. <!-- 考场 -->
  3. <view class="consultItem">
  4. <view class="" v-if="Object.keys(item).length">
  5. <view class="top_row">
  6. <view class="flex">
  7. <!-- <view class="tag">模拟器</view> -->
  8. <view class="tag">科目{{item.subject==2?'二':'三'}} </view>
  9. <view class="schoolName">{{item.studentName}} <text
  10. style="margin-left: 6rpx;">{{item.studentPhone}}</text></view>
  11. </view>
  12. <view class="status">
  13. <view class="text" v-if="item.status==9">已取消</view>
  14. <view class="text" v-else>{{ statusTxt[item.recordStatus]}}</view>
  15. <view class="icon">
  16. <u-icon name="arrow-right" size="14" color="#686B73" style="margin-left: 12rpx;"></u-icon>
  17. </view>
  18. </view>
  19. </view>
  20. <view class="target">
  21. <view class="row">
  22. <view class="iconImg">
  23. <image src="@/static/images/index/siteIcon.png" mode=""></image>
  24. </view>
  25. <view class="name">{{item.examSiteName}}</view>
  26. </view>
  27. <view class="row">
  28. <view class="iconImg">
  29. <image src="@/static/images/index/carIcon.png" mode=""></image>
  30. </view>
  31. <view class="name">{{item.trainType}}</view>
  32. </view>
  33. <view class="row">
  34. <view class="iconImg">
  35. <image src="@/static/images/index/carNum.png" mode=""></image>
  36. </view>
  37. <view class="name">{{item.examCarLicnum}}</view>
  38. </view>
  39. <view class="row">
  40. <view class="iconImg">
  41. <image src="@/static/images/index/timerIcon.png" mode=""></image>
  42. </view>
  43. <view class="name">{{item.classDate}} {{$u.timeFormat(item.startTime, 'hh:MM')}} <text>-</text>
  44. {{$u.timeFormat(item.endTime, 'hh:MM')}}</view>
  45. </view>
  46. </view>
  47. </view>
  48. </view>
  49. </template>
  50. <script>
  51. export default {
  52. props: ['item'],
  53. data() {
  54. return {
  55. statusTxt: ['未签到', '已签到', '已签退', '旷课'], //0:未签到,1:已签到,2:已签退,3:旷课,9:已取消,示例值(1)
  56. }
  57. }
  58. }
  59. </script>
  60. <style lang="scss" scoped>
  61. .consultItem {
  62. width: 100%;
  63. margin-bottom: 24rpx;
  64. .top_row {
  65. display: flex;
  66. width: 100%;
  67. height: 116rpx;
  68. border-bottom: 2rpx dashed #E8E9EC;
  69. justify-content: space-between;
  70. align-items: center;
  71. .tag {
  72. // width: 176rpx;
  73. height: 60rpx;
  74. background: rgba(250, 149, 25, 0.1);
  75. border-radius: 8rpx;
  76. text-align: center;
  77. font-size: 28rpx;
  78. color: #FA7919;
  79. margin-right: 24rpx;
  80. padding: 10rpx 18rpx;
  81. }
  82. .schoolName {
  83. font-size: 28rpx;
  84. font-weight: 550;
  85. color: #333;
  86. margin-left: 20rpx;
  87. }
  88. .status {
  89. display: flex;
  90. align-items: center;
  91. .text {
  92. font-size: 28rpx;
  93. color: $themC;
  94. }
  95. }
  96. }
  97. .target {
  98. padding: 20rpx 0;
  99. }
  100. .row {
  101. padding: 16rpx 0;
  102. display: flex;
  103. align-items: center;
  104. .iconImg {
  105. width: 32rpx;
  106. height: 28rpx;
  107. }
  108. .name {
  109. font-size: 28rpx;
  110. color: #333;
  111. padding-left: 20rpx;
  112. }
  113. }
  114. }
  115. </style>