pileManagement.vue 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341
  1. <template>
  2. <view>
  3. <u-navbar title="电桩管理">
  4. <view class="delete">删除</view>
  5. </u-navbar>
  6. <view class="details">
  7. <view class="name">
  8. 大润发顶楼停车场01号直流80kW
  9. </view>
  10. <view class="info">
  11. <view class="info-text">
  12. <p>2015国标 |<text class="dc-fast"> 直流快充 </text> | 80kW</p>
  13. <p class="tag-items">
  14. <view class="tag">
  15. 对外开放
  16. </view>
  17. <view class="tag">
  18. 可预约
  19. </view>
  20. <view class="tag">
  21. 设备在线
  22. </view>
  23. </p>
  24. </view>
  25. <view class="info-img">
  26. <img src="../../../static/img/电桩管理.png" alt="">
  27. </view>
  28. </view>
  29. <view class="station-address">
  30. <img src="static/img/Frame 201.png" alt="">
  31. <view class="address-text">
  32. 湖北省荆州市沙市区江津东路附155号
  33. </view>
  34. <view class="navigation">
  35. <view class="iconfont address-font">
  36. &#xe60c;
  37. </view>
  38. <view class="view-map">导航</view>
  39. </view>
  40. </view>
  41. <u-cell-group >
  42. <u-cell-item title="联系人姓名" :arrow="false" value="李先生 15500001111"></u-cell-item>
  43. <u-cell-item title="电价" :arrow="false" value="1.25元/度"></u-cell-item>
  44. <u-cell-item title="停车费" :arrow="false" value="充电免2小时停车费"></u-cell-item>
  45. </u-cell-group>
  46. </view>
  47. <!-- 充电枪选项 -->
  48. <view class="gun-options">
  49. <u-tabs :list="list1" :is-scroll="false" :current="current" @change="change" bar-width="125" inactive-color="#777777" active-color="#101010"></u-tabs>
  50. <view class="options" v-if="current==0">
  51. <u-cell-group>
  52. <u-cell-item title="开放共享" :arrow="false">
  53. <view class="">
  54. <u-radio-group >
  55. <u-radio
  56. @change="radioChange"
  57. v-for="(item, index) in list2" :key="index"
  58. :name="item.name"
  59. :disabled="item.disabled"
  60. active-color="#00b962"
  61. >
  62. {{item.name}}
  63. </u-radio>
  64. </u-radio-group>
  65. </view>
  66. </u-cell-item>
  67. <u-cell-item title="开放预约" :arrow="false"><view class="">
  68. <u-radio-group @change="radioGroupChange">
  69. <u-radio
  70. @change="radioChange"
  71. v-for="(item, index) in list2" :key="index"
  72. :name="item.name"
  73. :disabled="item.disabled"
  74. active-color="#00b962"
  75. >
  76. {{item.name}}
  77. </u-radio>
  78. </u-radio-group>
  79. </view></u-cell-item>
  80. <u-cell-item title="预约自动确认" :arrow="false"><view class="">
  81. <u-radio-group @change="radioGroupChange">
  82. <u-radio
  83. @change="radioChange"
  84. v-for="(item, index) in list2" :key="index"
  85. :name="item.name"
  86. :disabled="item.disabled"
  87. active-color="#00b962"
  88. >
  89. {{item.name}}
  90. </u-radio>
  91. </u-radio-group>
  92. </view></u-cell-item>
  93. <u-cell-item title="允许预约日期" value="工作日"></u-cell-item>
  94. <u-cell-item title="允许预约时段" value="10:00至12:00"></u-cell-item>
  95. <u-cell-item :arrow="false" class="time-cell">
  96. <p>预约时长选项</p>
  97. <view class="radio-box">
  98. <u-radio-group @change="radioGroupChange">
  99. <u-radio
  100. @change="radioChange"
  101. v-for="(item, index) in timeList" :key="index"
  102. :name="item.name"
  103. :disabled="item.disabled"
  104. active-color="#00b962"
  105. >
  106. {{item.name}}
  107. </u-radio>
  108. </u-radio-group>
  109. </view>
  110. </u-cell-item>
  111. <u-cell-item title="工作状态" :arrow="false"><view class="bot charging-bot">
  112. </view>充电中</u-cell-item>
  113. <u-cell-item title="运行状态":arrow="false"><view class="bot">
  114. </view>正常</u-cell-item>
  115. <u-cell-item title="网络状态":arrow="false"><view class="bot">
  116. </view>联网</u-cell-item>
  117. <u-cell-item title="故障状态":arrow="false"><view class="bot">
  118. </view>正常</u-cell-item>
  119. </u-cell-group>
  120. </view>
  121. </view>
  122. <view class="bottom">
  123. <u-button type="success" shape="circle">保存</u-button>
  124. </view>
  125. </view>
  126. </template>
  127. <script>
  128. export default {
  129. data() {
  130. return {
  131. list1: [{
  132. name: '1号充电枪'
  133. }, {
  134. name: '2号充电枪'
  135. }],
  136. list2: [{
  137. name: '是'
  138. }, {
  139. name: '否'
  140. }],
  141. timeList:[{
  142. name:"10分钟"
  143. },
  144. {
  145. name:"20分钟"
  146. },
  147. {
  148. name:"30分钟"
  149. }],
  150. current: 0
  151. }
  152. },
  153. methods: {
  154. change(index) {
  155. this.current = index;
  156. }
  157. }
  158. }
  159. </script>
  160. <style lang="scss">
  161. page{
  162. padding-bottom: 233px;
  163. }
  164. .delete {
  165. margin-left: 85.3%;
  166. color: #cccccc;
  167. font-size: 12px
  168. }
  169. .details {
  170. width: 100%;
  171. background-color: #fff;
  172. padding: 16px 0 0px 16px;
  173. .name {
  174. height: 20px;
  175. color: rgba(16, 16, 16, 100);
  176. font-size: 20px;
  177. font-weight: 600;
  178. }
  179. .info {
  180. height: 75px;
  181. line-height: 16px;
  182. color: rgba(102, 102, 102, 100);
  183. font-size: 16px;
  184. margin-top: 12px;
  185. display: flex;
  186. // justify-content: space-between;
  187. .dc-fast {
  188. color: #CDC0FF;
  189. margin: 0 4px;
  190. }
  191. .info-text {
  192. width: 69%;
  193. height: 100%;
  194. display: flex;
  195. flex-direction: column;
  196. justify-content: space-between;
  197. .tag-items {
  198. display: flex;
  199. // justify-content: space-between;
  200. }
  201. .tag {
  202. line-height: 26px;
  203. border-radius: 4px;
  204. background-color: rgba(255, 255, 255, 100);
  205. color: rgba(119, 119, 119, 100);
  206. text-align: center;
  207. border: 1px solid rgba(119, 119, 119, 100);
  208. padding: 0 4px;
  209. margin-right: 8px;
  210. }
  211. }
  212. .info-img {
  213. // margin-left: 35px;
  214. }
  215. }
  216. .station-address {
  217. width: 100%;
  218. margin-top: 17px;
  219. position: relative;
  220. img {
  221. width: 100%;
  222. height: 100%;
  223. }
  224. .address-text {
  225. line-height: 40px;
  226. position: absolute;
  227. top: 0px;
  228. left: 0;
  229. font-size: 12px
  230. }
  231. .navigation {
  232. position: absolute;
  233. top: 0;
  234. right: 28px;
  235. }
  236. .address-font {
  237. font-size: 28px;
  238. color: #4e94ff;
  239. }
  240. .view-map {
  241. font-size: 12px;
  242. text-align: center;
  243. }
  244. }
  245. /deep/.u-cell__value{
  246. text-align: left;
  247. margin-left: 20px;
  248. color: #101010
  249. }
  250. /deep/.u-cell_title{
  251. width: 30% !important;
  252. color: #777777;
  253. }
  254. }
  255. // 充电枪选项
  256. .gun-options{
  257. background-color: #fff;
  258. margin-top: 12px;
  259. /deep/.u-cell_title{
  260. width: 30% !important;
  261. }
  262. /deep/.u-cell__value{
  263. text-align: left;
  264. color: #101010;
  265. font-size: 16px
  266. }
  267. .u-radio-group{
  268. width: 100%;
  269. display: flex;
  270. justify-content: space-between;
  271. }
  272. .time-cell{
  273. /deep/.u-cell_title{
  274. width: 0 !important;
  275. }
  276. }
  277. .bot{
  278. display: inline-block;
  279. width: 12px;
  280. height: 12px;
  281. border-radius: 999px;
  282. background-color: #00b962;
  283. margin-right: 4px;
  284. }
  285. .charging-bot{
  286. background-color: #ff7300;
  287. }
  288. }
  289. .bottom{
  290. width: 100%;
  291. height: 64px;
  292. background-color: #fff;
  293. position: fixed;
  294. bottom: 0;
  295. display: flex;
  296. .u-btn{
  297. width: 91.4%;
  298. height: 40px;
  299. margin: auto;
  300. }
  301. }
  302. </style>