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

86 lines
1.6 KiB

1 year ago
  1. <template>
  2. <view class="pageBg">
  3. <view class="pad">
  4. <view class="type">
  5. <view class="h1">驾照类型</view>
  6. <view class="tagFlex">
  7. <view class="tab" v-for="(item,index) in tagList" :class="{active: index==1}">{{ item.text }}</view>
  8. </view>
  9. </view>
  10. <view class="region">
  11. <view class="h1">区域</view>
  12. </view>
  13. <view class="btn_row">
  14. <view class="btn border">重置</view>
  15. <view class="btn">确定</view>
  16. </view>
  17. </view>
  18. </view>
  19. </template>
  20. <script>
  21. export default {
  22. data() {
  23. return {
  24. tagList: [
  25. {text: '名称', id: 1},
  26. {text: '名称', id: 1},
  27. {text: '名称', id: 1},
  28. {text: '名称', id: 1},
  29. ]
  30. }
  31. }
  32. }
  33. </script>
  34. <style lang="scss" scoped>
  35. .h1 {
  36. line-height: 100rpx;
  37. }
  38. .btn_row {
  39. position: fixed;
  40. bottom: 50rpx;
  41. left: 0;
  42. display: flex;
  43. justify-content: space-between;
  44. width: 100%;
  45. padding: 0 28rpx;
  46. .btn {
  47. width: 48.8%;
  48. height: 72rpx;
  49. background: #1989FA;
  50. border-radius: 8rpx;
  51. font-size: 28rpx;
  52. color: #fff;
  53. text-align: center;
  54. line-height: 72rpx;
  55. &.border {
  56. background: rgba(25,137,250,0.1);
  57. border: 2rpx solid #1989FA;
  58. color: $themC;
  59. }
  60. }
  61. }
  62. .tagFlex {
  63. display: flex;
  64. flex-wrap: wrap;
  65. .tab {
  66. padding: 10rpx 24rpx;
  67. margin: 12rpx 20rpx;
  68. height: 60rpx;
  69. background: #FFFFFF;
  70. border-radius: 8rpx;
  71. font-size: 28rpx;
  72. color: #686B73;
  73. &.active {
  74. background: rgba(25,137,250,0.1);
  75. border-radius: 8rpx;
  76. border: 2rpx solid #1989FA;
  77. font-size: 28rpx;
  78. color: $themC;
  79. }
  80. }
  81. }
  82. </style>