index.vue 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. <template>
  2. <view class="content">
  3. <view class="service_header_box">
  4. <!-- <view class="service_header_left">
  5. <view class="service_header_left_title">
  6. </view>
  7. <view class="service_header_left_btn">
  8. </view>
  9. </view> -->
  10. <view class="service_header_right">
  11. <view class="btn" :class="isSlecte?'active':''" @click="isSlecte=true">
  12. 换电记录
  13. </view>
  14. <view class="btn" :class="!isSlecte?'active':''" @click="isSlecte=false">
  15. 充电记录
  16. </view>
  17. </view>
  18. </view>
  19. <view class="recharge" v-if="!isSlecte">
  20. <recharge></recharge>
  21. </view>
  22. <view class="change" v-else>
  23. <change></change>
  24. </view>
  25. </view>
  26. </template>
  27. <script>
  28. import change from "./components/change.vue"
  29. import recharge from "./components/recharge.vue"
  30. export default {
  31. components:{
  32. change,recharge
  33. },
  34. data() {
  35. return {
  36. isSlecte:true,
  37. }
  38. },
  39. methods: {
  40. }
  41. }
  42. </script>
  43. <style lang="scss" scoped>
  44. .content{
  45. width: 100%;
  46. color:white;
  47. font-size: 24px;
  48. .service_header_box{
  49. display: flex;
  50. justify-content: space-between;
  51. .service_header_left{
  52. display: flex;
  53. .service_header_left_title{
  54. font-size: 12px;
  55. font-family: PingFang SC-Regular, PingFang SC;
  56. font-weight: 400;
  57. color: #A8ADC8;
  58. height: 32px;
  59. line-height: 32px;
  60. margin-right: 10px;
  61. }
  62. .service_header_left_btn{
  63. width: 88px;
  64. height: 32px;
  65. border-radius: 2px 2px 2px 2px;
  66. border: 1px solid #91FDB9;
  67. color: #91FDB9;
  68. font-size: 14px;
  69. text-align: center;
  70. line-height: 32px;
  71. }
  72. }
  73. .service_header_right {
  74. display: flex;
  75. .btn {
  76. width: 100px;
  77. height: 48px;
  78. background: #263042;
  79. border-radius: 0px 2px 2px 0px;
  80. font-size: 16px;
  81. text-align: center;
  82. line-height: 48px;
  83. }
  84. .active {
  85. background: #91FDB9;
  86. border-radius: 2px 0px 0px 2px;
  87. color: black;
  88. }
  89. }
  90. }
  91. ::v-deep .uni-forms-item__label{
  92. font-size: 14px;
  93. color: white;
  94. }
  95. }
  96. </style>