myPile.vue 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  1. <template>
  2. <view>
  3. <u-navbar title="充电桩设置"></u-navbar>
  4. <view class="options">
  5. <u-cell-group>
  6. <u-cell-item title="开放共享" :arrow="false">
  7. <view class="">
  8. <u-radio-group>
  9. <u-radio @change="radioChange" v-for="(item, index) in list2" :key="index" :name="item.name"
  10. :disabled="item.disabled" active-color="#00b962">
  11. {{item.name}}
  12. </u-radio>
  13. </u-radio-group>
  14. </view>
  15. </u-cell-item>
  16. <u-cell-item title="开放预约" :arrow="false">
  17. <view class="">
  18. <u-radio-group @change="radioGroupChange">
  19. <u-radio @change="radioChange" v-for="(item, index) in list2" :key="index" :name="item.name"
  20. :disabled="item.disabled" active-color="#00b962">
  21. {{item.name}}
  22. </u-radio>
  23. </u-radio-group>
  24. </view>
  25. </u-cell-item>
  26. <u-cell-item title="预约自动确认" :arrow="false">
  27. <view class="">
  28. <u-radio-group @change="radioGroupChange">
  29. <u-radio @change="radioChange" v-for="(item, index) in list2" :key="index" :name="item.name"
  30. :disabled="item.disabled" active-color="#00b962">
  31. {{item.name}}
  32. </u-radio>
  33. </u-radio-group>
  34. </view>
  35. </u-cell-item>
  36. <u-cell-item title="允许预约日期" value="周一/周二/周三/周四/周五/周六/周日"></u-cell-item>
  37. <u-cell-item title="允许预约时段" value="10:00至12:00"></u-cell-item>
  38. <u-cell-item :arrow="false" class="time-cell border-bottom" title="预约时长选项">
  39. </u-cell-item>
  40. <!-- <p>预约时长选项</p> -->
  41. <view class="" style="padding-left: 16px;">
  42. <u-radio-group @change="radioGroupChange" class="radio-padding" shape="square">
  43. <u-radio @change="radioChange" v-for="(item, index) in timeList" :key="index" :name="item.name"
  44. :disabled="item.disabled" active-color="#00b962">
  45. {{item.name}}
  46. </u-radio>
  47. </u-radio-group>
  48. </view>
  49. </u-cell-group>
  50. </view>
  51. </view>
  52. </template>
  53. <script>
  54. export default {
  55. data() {
  56. return {
  57. list2: [{
  58. name: "是"
  59. },
  60. {
  61. name: "否"
  62. }
  63. ],
  64. timeList: [{
  65. name: "10分钟"
  66. },
  67. {
  68. name: "20分钟"
  69. },
  70. {
  71. name: "30分钟"
  72. }
  73. ]
  74. }
  75. },
  76. methods: {
  77. }
  78. }
  79. </script>
  80. <style lang="scss">
  81. /deep/.u-cell_title {
  82. width: 30% !important;
  83. }
  84. /deep/ .u-cell {
  85. line-height: 20px;
  86. padding: 12px 20px 12px 0;
  87. margin-left: 12px;
  88. }
  89. /deep/.u-radio-group {
  90. justify-content: start !important;
  91. }
  92. /deep/.u-radio-group:last-child {
  93. justify-content: space-between !important;
  94. padding: 0 0 10px 0px;
  95. }
  96. /deep/.u-cell__value {
  97. text-align: left;
  98. color: #101010;
  99. font-size: 16px
  100. }
  101. /deep/.u-radio-group {
  102. line-height: 30px;
  103. width: 100%;
  104. display: flex;
  105. justify-content: space-around;
  106. }
  107. /deep/.border-bottom:after {
  108. border-bottom-width: 0px !important;
  109. }
  110. </style>