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.

123 lines
3.3 KiB

8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
  1. <template>
  2. <!-- 实操 -->
  3. <view class="consultItem">
  4. <view class="top_row">
  5. <view class="flex">
  6. <view class="schoolName">{{item.studentName}} <text style="margin-left: 6px;">{{ item.studentPhone}}</text></view>
  7. </view>
  8. <view class="status">
  9. <view class="text" v-if="item.studyStatus=='计时中'">正在计时...</view>
  10. <view class="changeBtn btnBg" v-else-if="item.studyStatus=='已签到'">计时切换</view>
  11. <view class="" v-else>{{ item.studyStatus }}</view>
  12. </view>
  13. </view>
  14. <view class="target">
  15. <view class="row" >
  16. <view class="iconImg">
  17. <image src="@/static/images/index/home_icon_zhuangtai@2x.png" mode="" style="width: 28rpx;height: 28rpx;"></image>
  18. </view>
  19. <view class="name" style="color: red;">计时开始时间14: 50</view>
  20. </view>
  21. <view class="row">
  22. <view class="iconImg">
  23. <image src="@/static/images/index/listIcon.png" mode=""></image>
  24. </view>
  25. <view class="name">训练科目{{ item.subject }}</view>
  26. </view>
  27. <view class="row">
  28. <view class="iconImg">
  29. <image src="@/static/images/index/site.png" mode=""></image>
  30. </view>
  31. <view class="name">预约场地{{item.address}}</view>
  32. </view>
  33. <view class="row">
  34. <view class="iconImg">
  35. <image src="@/static/images/index/carIcon.png" mode=""></image>
  36. </view>
  37. <view class="name">预约车辆{{item.carNumber}}</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">预约时间 14:00 <text>-</text> 18:00</view> -->
  44. <view class="name">预约时间 {{ item.bookingTimeStr }}</view>
  45. <!-- <view class="name">预约时间{{item.classDate}} {{$u.timeFormat(item.startTime, 'hh:MM')}} <text>-</text> {{$u.timeFormat(item.endTime, 'hh:MM')}}</view> -->
  46. </view>
  47. </view>
  48. </view>
  49. </template>
  50. <script>
  51. export default {
  52. props: ['item'],
  53. data() {
  54. return {
  55. subjectTxt: ['不限', '科目二', '科目三'],//:0:不限;2:科目二;3:科目三
  56. loginStatusTxt: ['未签到', '已签到', '已签退', '已过期', '已取消'],//0:未签到,1:已签到,2:已签退,3:已过期,9:已取消
  57. }
  58. }
  59. }
  60. </script>
  61. <style lang="scss" scoped>
  62. .consultItem {
  63. width: 100%;
  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. color: #333;
  85. margin-left: 20rpx;
  86. font-weight: 550;
  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. .changeBtn {
  116. line-height: 60rpx;
  117. height: 60rpx;
  118. padding: 0 12rpx;
  119. }
  120. </style>