洛阳学员端
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.

125 lines
2.5 KiB

10 months ago
  1. <template>
  2. <view class="pageBgImg">
  3. <topNavbar title="个人中心"></topNavbar>
  4. <view class="pad">
  5. <view class="card">
  6. <view class="h2">现学驾信息</view>
  7. <view class="row">
  8. <view class="lab">学驾车型</view>
  9. <view class="val">C1</view>
  10. </view>
  11. <view class="row">
  12. <view class="lab">学车班型</view>
  13. <view class="val">C1手动挡一对一VIP班</view>
  14. </view>
  15. <view class="row">
  16. <view class="lab">学驾培训费</view>
  17. <view class="val blue">3000</view>
  18. </view>
  19. </view>
  20. <view class="card">
  21. <view class="h2">变更学驾信息</view>
  22. <view class="row">
  23. <view class="lab">学驾车型</view>
  24. <view class="val" @click="showModel=true">
  25. <input type="text" placeholder="请选择" disabled="">
  26. </view>
  27. <view class="arrow" @click="showModel=true">
  28. <u-icon name="arrow-right"></u-icon>
  29. </view>
  30. </view>
  31. <view class="row">
  32. <view class="lab">学车班型</view>
  33. <view class="val">
  34. <input type="text" placeholder="请选择" disabled="">
  35. </view>
  36. <view class="arrow">
  37. <u-icon name="arrow-right"></u-icon>
  38. </view>
  39. </view>
  40. <view class="row">
  41. <view class="lab">学驾培训费</view>
  42. <view class="val hui">-</view>
  43. </view>
  44. </view>
  45. <view class="btnBg">下一步</view>
  46. </view>
  47. <u-picker :show="showModel" :columns="modelArr" keyName="lab" @confirm="confirmModel" @cancel="showModel=false"></u-picker>
  48. </view>
  49. </template>
  50. <script>
  51. export default {
  52. data() {
  53. return {
  54. showModel: false,
  55. modelArr: [
  56. [
  57. {lab: 'C1',id: 1},
  58. {lab: 'C2',id: 2},
  59. ]
  60. ]
  61. }
  62. },
  63. methods: {
  64. confirmModel(val) {
  65. let item = val.value[0]
  66. this.showModel = false
  67. }
  68. }
  69. }
  70. </script>
  71. <style lang="scss" scoped>
  72. .card {
  73. margin-bottom: 24rpx;
  74. padding: 16rpx 28rpx;
  75. .h2 {
  76. color: $themC;
  77. font-weight: 600;
  78. margin: 10rpx 0 20rpx 0;
  79. }
  80. .row {
  81. height: 92rpx;
  82. line-height: 92rpx;
  83. display: flex;
  84. align-items: center;
  85. .lab {
  86. font-size: 28rpx;
  87. color: #333;
  88. font-weight: 600;
  89. width: 160rpx;
  90. }
  91. .val {
  92. flex: 1;
  93. height: 100%;
  94. input {
  95. display: block;
  96. height: 100%;
  97. font-size: 28rpx;
  98. }
  99. &.blue {
  100. color: $themC;
  101. font-weight: 600;
  102. }
  103. &.hui {
  104. color: #ADADAD;
  105. font-weight: 400;
  106. }
  107. }
  108. .arrow {
  109. u-icon {
  110. }
  111. }
  112. }
  113. }
  114. .btnBg {
  115. width: 396rpx;
  116. margin: 72rpx auto;
  117. }
  118. </style>