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

121 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 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 year ago
1 year ago
1 year ago
1 year ago
1 year ago
  1. <template>
  2. <view class="step1">
  3. <coachInfo @click.native="showStep2" :FormData="FormData"/>
  4. <view class="h1">预约时间</view>
  5. <pickDate :FormData="FormData"/>
  6. <view class="" v-if="FormData.carNumber">
  7. <view class="h1">教练车</view>
  8. <view class="card">
  9. <view class="car">
  10. <view class="carTag">{{FormData.carNumber}}</view>
  11. </view>
  12. </view>
  13. </view>
  14. <view class="" v-if="FormData.siteName">
  15. <view class="h1">训练场地</view>
  16. <view class="card" @click="$u.utils.openMap(FormData.latitude,FormData.longitude)">
  17. <view class="site">
  18. <view class="leftTxt">
  19. <view class="adrs">{{FormData.siteName}}</view>
  20. <view class="adrsTxt">{{FormData.siteAddress}}</view>
  21. </view>
  22. <view class="icon">
  23. <image src="@/static/images/car/btn_daohang.png" mode=""></image>
  24. <!-- <image src="@/static/images/car/btn_daohang_cli.png" mode=""></image> -->
  25. </view>
  26. </view>
  27. </view>
  28. </view>
  29. <view class="poz_btn">
  30. <view class="btn_row" >
  31. <view class="btnBg" @click="openPopup">下一步</view>
  32. </view>
  33. </view>
  34. </view>
  35. </template>
  36. <script>
  37. import coachInfo from './coachInfo'
  38. import pickDate from './pickDate'
  39. export default {
  40. components: { coachInfo, pickDate },
  41. props: ['FormData'],
  42. data() {
  43. return {
  44. }
  45. },
  46. methods: {
  47. openPopup(num) {
  48. if(!this.FormData.courseArr.length) {
  49. return this.$u.toast('请选择排课日期')
  50. }
  51. this.$emit('openPopup', num)
  52. },
  53. showStep2() {
  54. this.$emit('showStep2')
  55. }
  56. }
  57. }
  58. </script>
  59. <style lang="scss" scoped>
  60. .poz_btn {
  61. // position: fixed;
  62. // bottom: 0;
  63. // left: 0;
  64. // padding: 32rpx;
  65. // width: 100%;
  66. // background: #F6F6F6;
  67. .btn_row {
  68. display: flex;
  69. height: 200rpx;
  70. align-items: center;
  71. justify-content: center;
  72. .btnBg {
  73. width: 396rpx;
  74. }
  75. }
  76. }
  77. .h1 {
  78. line-height: 100rpx;
  79. }
  80. .car {
  81. padding: 32rpx 28rpx;
  82. .carTag {
  83. height: 120rpx;
  84. background: #F8F8F8;
  85. padding: 0 18rpx;
  86. color: $themC;
  87. border-radius: 12rpx;
  88. font-size: 28rpx;
  89. font-weight: 500;
  90. width: fit-content;
  91. line-height: 120rpx;
  92. }
  93. }
  94. .site {
  95. padding: 28rpx 40rpx 28rpx 36rpx;
  96. display: flex;
  97. align-items: center;
  98. .leftTxt {
  99. width: 0;
  100. flex: 1;
  101. color: $themC;
  102. .adrs {
  103. font-size: 32rpx;
  104. font-weight: 550;
  105. margin-bottom: 10rpx;
  106. }
  107. .adrsTxt {
  108. font-size: 28rpx;
  109. font-weight: 400;
  110. }
  111. }
  112. .icon {
  113. width: 72rpx;
  114. height: 72rpx;
  115. }
  116. }
  117. </style>