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

95 lines
1.8 KiB

1 year ago
  1. <template>
  2. <view class="box">
  3. <view class="item">
  4. <view class="lab">科目类型</view>
  5. <view class="val">
  6. <myRadio :radioData="radioData1"/>
  7. </view>
  8. </view>
  9. <view class="item">
  10. <view class="lab">我的教练车</view>
  11. <view class="val">
  12. <myRadio :radioData="radioData2"/>
  13. </view>
  14. </view>
  15. <view class="item">
  16. <view class="lab">可约人数</view>
  17. <view class="val">
  18. <myRadio :radioData="radioData3"/>
  19. </view>
  20. </view>
  21. <view class="item">
  22. <view class="lab">开放范围</view>
  23. <view class="val">
  24. <myRadio :radioData="radioData4"/>
  25. </view>
  26. </view>
  27. <view class="btn_row">
  28. <view class="btnBorder btn" @click="confirmPopup(0)">取消</view>
  29. <view class="btnBg btn" @click="confirmPopup(1)">确认</view>
  30. </view>
  31. </view>
  32. </template>
  33. <script>
  34. export default {
  35. data() {
  36. return {
  37. radioData1: [
  38. {name: '不限', id: 0},
  39. {name: '科目二', id: 1},
  40. {name: '科目三', id: 2},
  41. ],
  42. radioData2: [
  43. {name: '浙A66666学', id: 0},
  44. {name: '浙A66667学', id: 0},
  45. ],
  46. radioData3: [
  47. {name: '1人', id: 0},
  48. {name: '2人', id: 1},
  49. {name: '3人', id: 2},
  50. {name: '4人', id: 4},
  51. ],
  52. radioData4: [
  53. {name: '我的学员', id: 0},
  54. {name: '本校学员', id: 1}
  55. ]
  56. }
  57. },
  58. methods: {
  59. confirmPopup(val) {
  60. this.$emit('confirmPopup', val)
  61. }
  62. }
  63. }
  64. </script>
  65. <style lang="scss" scoped>
  66. .box {
  67. padding: 28rpx;
  68. width: 638rpx;
  69. .item {
  70. .lab {
  71. font-size: 30rpx;
  72. margin-bottom: 38rpx;
  73. }
  74. .val {
  75. margin-bottom: 56rpx;
  76. }
  77. }
  78. .btn_row {
  79. display: flex;
  80. justify-content: space-between;
  81. padding: 0 30rpx;
  82. .btnBorder {
  83. }
  84. .btn {width: 47%;}
  85. .btnBg {
  86. }
  87. }
  88. }
  89. </style>