学员端小程序
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.

109 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. <template>
  2. <view class="pageBgImg">
  3. <topNavbar :title="title"></topNavbar>
  4. <view class="pad" style="padding-bottom: 60rpx;">
  5. <coachInfo/>
  6. <view class="h1">预约时间</view>
  7. <pickDateTimer/>
  8. <view class="h1">教练车</view>
  9. <view class="card">
  10. <view class="car">
  11. <view class="carTag">赣A98299学</view>
  12. </view>
  13. </view>
  14. <view class="h1">训练场地</view>
  15. <view class="card" >
  16. <view class="site">
  17. <view class="leftTxt">
  18. <view class="adrs">某某场地</view>
  19. <view class="adrsTxt">江西省江西市江西区尚坤丁兰国际1190</view>
  20. </view>
  21. <view class="icon">
  22. <image src="@/static/images/car/btn_daohang.png" mode=""></image>
  23. <!-- <image src="@/static/images/car/btn_daohang_cli.png" mode=""></image> -->
  24. </view>
  25. </view>
  26. </view>
  27. </view>
  28. </view>
  29. </template>
  30. <script>
  31. import coachInfo from './comp/coachInfo'
  32. import step2 from './comp/step2'
  33. import step3 from './comp/step3'
  34. import step4 from './comp/step4'
  35. import { scheduleClass } from '@/config/api.js'
  36. export default {
  37. components: { coachInfo, step2, step3, step4 },
  38. data() {
  39. return {
  40. currentStep: 2,
  41. subject: 2,
  42. title: '实操训练预约'
  43. }
  44. },
  45. onLoad(options) {
  46. this.subject = options.subject
  47. if(this.subject==2) {
  48. this.title = '实操训练科目二预约'
  49. this.currentStep = 2
  50. }else if(this.subject==3) {
  51. this.title = '实操训练科目三预约'
  52. this.currentStep = 2
  53. }
  54. this.scheduleClassFn()
  55. },
  56. methods: {
  57. changeStep(num) {
  58. this.currentStep = num
  59. },
  60. async scheduleClassFn() {
  61. let obj = { "coachId": this.vuex_userInfo.coachId, "subject": 2, "classDate": "2023-10-30", "studentId": this.userId}
  62. const {data: res} = await scheduleClass(obj)
  63. }
  64. }
  65. }
  66. </script>
  67. <style lang="scss" scoped>
  68. .h1 {
  69. line-height: 100rpx;
  70. }
  71. .car {
  72. padding: 32rpx 28rpx;
  73. .carTag {
  74. height: 120rpx;
  75. background: #F8F8F8;
  76. padding: 0 18rpx;
  77. color: $themC;
  78. border-radius: 12rpx;
  79. font-size: 28rpx;
  80. font-weight: 500;
  81. width: fit-content;
  82. line-height: 120rpx;
  83. }
  84. }
  85. .site {
  86. padding: 28rpx 40rpx 28rpx 36rpx;
  87. display: flex;
  88. align-items: center;
  89. .leftTxt {
  90. width: 0;
  91. flex: 1;
  92. color: $themC;
  93. .adrs {
  94. font-size: 32rpx;
  95. font-weight: 550;
  96. margin-bottom: 10rpx;
  97. }
  98. .adrsTxt {
  99. font-size: 28rpx;
  100. font-weight: 400;
  101. }
  102. }
  103. .icon {
  104. width: 72rpx;
  105. height: 72rpx;
  106. }
  107. }
  108. </style>