江西小程序管理端
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.

114 lines
2.4 KiB

1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
  1. <template>
  2. <view class="pageBgImg">
  3. <topNavbar title="我的排课详情"></topNavbar>
  4. <view class="pad">
  5. <view class="card">
  6. <view class="info">
  7. <view class="row">
  8. <view class="lab">训练科目</view>
  9. <view class="val">{{subjectText[info.subject]}}</view>
  10. </view>
  11. <view class="row">
  12. <view class="lab">预约车辆</view>
  13. <view class="val">{{ info.carNumber }}</view>
  14. </view>
  15. <view class="row">
  16. <view class="lab">开放范围</view>
  17. <view class="val">{{ info.openRange==0?'自己的学员': '所有学员'}}</view>
  18. </view>
  19. </view>
  20. </view>
  21. <view class="h1">预约学员</view>
  22. <view class="ul">
  23. <view class="li" v-for="(item,index) in 4" :key="index">
  24. <view class="name">张三三 <text> 17628378888</text></view>
  25. <view class="time">提交预约时间2023/08/06 09:12:33</view>
  26. </view>
  27. </view>
  28. </view>
  29. </view>
  30. </template>
  31. <script>
  32. import { scheduleClassGetById, getBookingDetailByClassId } from '@/config/api.js'
  33. export default {
  34. data() {
  35. return {
  36. info: {},
  37. id: '',
  38. subjectText: ['不限', '科目二', '科目三'],//0:不限;2:科目二;3:科目三
  39. }
  40. },
  41. onLoad(options) {
  42. this.id = options.id
  43. this.scheduleClassGetByIdFn()
  44. },
  45. methods: {
  46. async scheduleClassGetByIdFn() {
  47. const {data: res} = await scheduleClassGetById({id: this.id})
  48. this.info = res
  49. console.log(res)
  50. this.getBookingDetailByClassIdFn(res.id)
  51. },
  52. async getBookingDetailByClassIdFn(id) {
  53. const {data: res} = await getBookingDetailByClassId({classId: id})
  54. console.log(res)
  55. }
  56. }
  57. }
  58. </script>
  59. <style lang="scss" scoped>
  60. .pad {
  61. .card {
  62. padding: 0 28rpx;
  63. .info {
  64. padding: 20rpx 0;
  65. .row {
  66. display: flex;
  67. font-size: 28rpx;
  68. color: #333;
  69. padding: 20rpx 0;
  70. .lab {
  71. width: 150rpx;
  72. }
  73. .val {
  74. }
  75. }
  76. }
  77. }
  78. .h1 {
  79. line-height: 108rpx;
  80. }
  81. .ul {
  82. .li {
  83. height: 180rpx;
  84. display: flex;
  85. flex-direction: column;
  86. background: #FFFFFF;
  87. border-radius: 16rpx;
  88. justify-content: center;
  89. margin-bottom: 20rpx;
  90. padding: 0 28rpx;
  91. .name {
  92. font-size: 32rpx;
  93. font-weight: 600;
  94. text {
  95. font-weight: 400;
  96. margin-left: 10rpx;
  97. }
  98. }
  99. .time {
  100. font-size: 28rpx;
  101. margin-top: 24rpx;
  102. color: #ADADAD;
  103. }
  104. }
  105. }
  106. }
  107. </style>