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

166 lines
3.2 KiB

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="row">
  7. <view class="lab">计划日期</view>
  8. <view class="rightCon">
  9. <view class="inputBox">
  10. <input type="text" v-model="form.input1" placeholder="请选择">
  11. </view>
  12. <view class="icon">
  13. <u-icon name="arrow-right" :size="12" :color="'#696B72'"></u-icon>
  14. </view>
  15. </view>
  16. </view>
  17. <view class="row">
  18. <view class="lab">选择开课时间段</view>
  19. <view class="rightCon" @click="$goPage('/pages/recordEntry/operate/mySchedule/mould/mould')">
  20. <view class="inputBox">
  21. <input type="text" v-model="form.input1" placeholder="请选择">
  22. </view>
  23. <view class="icon">
  24. <u-icon name="arrow-right" :size="12" :color="'#696B72'"></u-icon>
  25. </view>
  26. </view>
  27. </view>
  28. <view class="blueBg">
  29. <view class="time_row hui">
  30. <text>时间段</text> <text>最多人数</text>
  31. </view>
  32. <view class="time_row">
  33. <text>7:00-8:00</text> <text>4</text>
  34. </view>
  35. <view class="time_row">
  36. <text>8:00-9:00</text> <text>4</text>
  37. </view>
  38. </view>
  39. <view class="row">
  40. <view class="lab">训练科目</view>
  41. <view class="rightCon">
  42. <myRadio @changeRadio="changeRadio" :radioData="radiolist1"></myRadio>
  43. </view>
  44. </view>
  45. <view class="row">
  46. <view class="lab">教练车</view>
  47. <view class="rightCon">
  48. <myRadio @changeRadio="changeRadio" :radioData="radiolist2"></myRadio>
  49. </view>
  50. </view>
  51. <view class="row">
  52. <view class="lab">开放范围</view>
  53. <view class="rightCon">
  54. <myRadio @changeRadio="changeRadio" :radioData="radiolist3"></myRadio>
  55. </view>
  56. </view>
  57. </view>
  58. <view class="btnBg">确认发布</view>
  59. </view>
  60. </view>
  61. </template>
  62. <script>
  63. export default {
  64. data() {
  65. return {
  66. form: {
  67. radio1: 1
  68. },
  69. radiolist1: [{
  70. name: '科目二',
  71. id: 1,
  72. disabled: false
  73. },
  74. {
  75. name: '科目三',
  76. id: 2,
  77. disabled: false
  78. },
  79. ],
  80. radiolist2: [{
  81. name: '浙A8888',
  82. id: 1,
  83. disabled: false
  84. },
  85. {
  86. name: '浙A8889',
  87. id: 2,
  88. disabled: false
  89. },
  90. ],
  91. radiolist3: [{
  92. name: '我的学员',
  93. id: 1,
  94. disabled: false
  95. },
  96. {
  97. name: '所有学员',
  98. id: 2,
  99. disabled: false
  100. },
  101. ]
  102. }
  103. },
  104. methods: {
  105. changeRadio(val) {
  106. console.log(val)
  107. }
  108. }
  109. }
  110. </script>
  111. <style lang="scss" scoped>
  112. .card {
  113. padding: 10rpx 28rpx;
  114. .row {
  115. display: flex;
  116. justify-content: space-between;
  117. padding: 26rpx 0;
  118. .lab {
  119. font-weight: 500;
  120. }
  121. }
  122. }
  123. .btnBg {
  124. width: 396rpx;
  125. margin: 120rpx auto 0 auto;
  126. }
  127. .rightCon {
  128. display: flex;
  129. align-items: center;
  130. .icon {
  131. margin-left: 10rpx;
  132. }
  133. .inputBox {
  134. flex: 1;
  135. input {
  136. text-align: right;
  137. font-size: 28rpx;
  138. color: #333;
  139. }
  140. }
  141. }
  142. .blueBg {
  143. background-color: #E8F3FE;
  144. padding: 12rpx 32rpx;
  145. border-radius: 16rpx;
  146. text-align: center;
  147. .time_row {
  148. display: flex;
  149. justify-content: space-between;
  150. padding: 12rpx 0;
  151. &.hui {
  152. color: #ADADAD;
  153. }
  154. text {
  155. width: 170rpx;
  156. }
  157. }
  158. }
  159. </style>