pileManagement.vue 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467
  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="../../assets/img/电桩管理.png" alt="">
  27. </view>
  28. </view>
  29. <view class="station-address">
  30. <img src="../../assets/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元/度(12:00-14:00)"> </u-cell-item>
  44. <view class="price-detail">
  45. 价格详情
  46. </view>
  47. <u-cell-item title="停车费" :arrow="false" value="新能源车2小时停车费"></u-cell-item>
  48. </u-cell-group>
  49. </view>
  50. <!-- 充电枪选项 -->
  51. <view class="gun-options">
  52. <u-tabs :list="list1" :is-scroll="false" :current="current" @change="change" bar-width="125" inactive-color="#777777" active-color="#101010"></u-tabs>
  53. <view class="tab-equipment" v-show="current==0">
  54. <view class="equipment-top">
  55. <text class="name">1号充电枪</text>
  56. <text class="switch"><u-switch v-model="checked" size="40" active-color="#FF7300"></u-switch></text>
  57. <text class="radio">
  58. 开启共享</text>
  59. </view>
  60. <view class="state">
  61. <view class="state-item">
  62. 工作状态:充电中 <text class="bot1"></text>
  63. </view>
  64. <view class="state-item">
  65. 工作状态:正常 <text class="bot1 bot2"></text>
  66. </view>
  67. <view class="state-item">
  68. 工作状态:故障 <text class="bot1 bot2"></text>
  69. </view>
  70. <view class="state-item">
  71. 工作状态:联网 <text class="bot1 bot2"></text>
  72. </view>
  73. <view class="iconfont more"><text class="set" >设置</text>&#xe600;</view>
  74. </view>
  75. </view>
  76. <view class="tab-equipment" v-show="current==0">
  77. <view class="equipment-top">
  78. <text class="name">2号充电枪</text>
  79. <text class="switch"><u-switch v-model="checked" size="40" active-color="#FF7300"></u-switch></text>
  80. <text class="radio">
  81. 开启共享</text>
  82. </view>
  83. <view class="state">
  84. <view class="state-item">
  85. 工作状态:空闲 <text class="bot1 bot2"></text>
  86. </view>
  87. <view class="state-item">
  88. 工作状态:正常 <text class="bot1 bot2"></text>
  89. </view>
  90. <view class="state-item">
  91. 工作状态:故障 <text class="bot1 bot2"></text>
  92. </view>
  93. <view class="state-item">
  94. 工作状态:联网 <text class="bot1 bot2"></text>
  95. </view>
  96. <view class="iconfont more"><text class="set" >设置</text>&#xe600;</view>
  97. </view>
  98. </view>
  99. <!-- 分润比例 -->
  100. <view class="share" v-show="current==1">
  101. <view class="title" >
  102. <text class="line"></text>分润比列
  103. </view>
  104. <view class="item">
  105. <view >
  106. 投资方
  107. </view>
  108. <view >
  109. 93%
  110. </view>
  111. </view>
  112. <view class="item">
  113. <view >
  114. 平台收益
  115. </view>
  116. <view >
  117. 7%
  118. </view>
  119. </view>
  120. </view>
  121. <!-- 设备信息 -->
  122. <view class="equipment-info" v-show="current==2">
  123. <view class="title" >
  124. <text class="line"></text>设备相关信息
  125. </view>
  126. <view class="item">
  127. <view class="">
  128. 设备型号
  129. </view>
  130. <view class="">
  131. HCD0001-A
  132. </view>
  133. </view>
  134. <view class="item">
  135. <view class="">
  136. 初次安装时间
  137. </view>
  138. <view class="">
  139. 2022-04-1
  140. </view>
  141. </view>
  142. <view class="item">
  143. <view class="">
  144. 输出功率范围(瓦)
  145. </view>
  146. <view class="">
  147. 100-400
  148. </view>
  149. </view>
  150. </view>
  151. </view>
  152. </view>
  153. </template>
  154. <script>
  155. export default {
  156. data() {
  157. return {
  158. list1: [{
  159. name: '设备列表'
  160. }, {
  161. name: '分润比例'
  162. },{
  163. name:'设备信息'
  164. }],
  165. list2: [{
  166. name: '是'
  167. }, {
  168. name: '否'
  169. }],
  170. timeList:[{
  171. name:"10分钟"
  172. },
  173. {
  174. name:"20分钟"
  175. },
  176. {
  177. name:"30分钟"
  178. }],
  179. current: 0,
  180. checked: false,
  181. }
  182. },
  183. methods: {
  184. change(index) {
  185. this.current = index;
  186. }
  187. }
  188. }
  189. </script>
  190. <style lang="scss">
  191. page{
  192. padding-bottom: 233px;
  193. background-color: #F6F8F8;
  194. }
  195. .delete {
  196. margin-left: 85.3%;
  197. color: #cccccc;
  198. font-size: 12px
  199. }
  200. .details {
  201. width: 100%;
  202. background-color: #fff;
  203. padding: 16px 0 0px 16px;
  204. .name {
  205. height: 20px;
  206. color: rgba(16, 16, 16, 100);
  207. font-size: 20px;
  208. font-weight: 600;
  209. }
  210. .info {
  211. height: 75px;
  212. line-height: 16px;
  213. color: rgba(102, 102, 102, 100);
  214. font-size: 16px;
  215. margin-top: 12px;
  216. display: flex;
  217. // justify-content: space-between;
  218. .dc-fast {
  219. color: #CDC0FF;
  220. margin: 0 4px;
  221. }
  222. .info-text {
  223. width: 69%;
  224. height: 100%;
  225. display: flex;
  226. flex-direction: column;
  227. justify-content: space-between;
  228. .tag-items {
  229. display: flex;
  230. // justify-content: space-between;
  231. }
  232. .tag {
  233. line-height: 26px;
  234. border-radius: 4px;
  235. background-color: rgba(255, 255, 255, 100);
  236. color: rgba(119, 119, 119, 100);
  237. text-align: center;
  238. border: 1px solid rgba(119, 119, 119, 100);
  239. padding: 0 4px;
  240. margin-right: 8px;
  241. }
  242. }
  243. .info-img {
  244. // margin-left: 35px;
  245. }
  246. }
  247. .station-address {
  248. width: 100%;
  249. margin-top: 17px;
  250. position: relative;
  251. img {
  252. width: 100%;
  253. height: 100%;
  254. }
  255. .address-text {
  256. line-height: 40px;
  257. position: absolute;
  258. top: 0px;
  259. left: 0;
  260. font-size: 16px
  261. }
  262. .navigation {
  263. position: absolute;
  264. top: 0;
  265. right: 28px;
  266. }
  267. .address-font {
  268. font-size: 28px;
  269. color: #4e94ff;
  270. }
  271. .view-map {
  272. font-size: 12px;
  273. text-align: center;
  274. }
  275. }
  276. /deep/.u-cell__value{
  277. text-align: left;
  278. margin-left: 16px;
  279. color: #101010;
  280. font-size: 16px;
  281. }
  282. /deep/.u-cell_title{
  283. width: 15% !important;
  284. font-size: 16px;
  285. color: #777777;
  286. }
  287. .u-cell{
  288. position: relative;
  289. padding: 13px 16px 13px 0 ;
  290. }
  291. .price-detail{
  292. width: 56px;
  293. height: 20px;
  294. color: rgba(22, 119, 255, 100);
  295. font-size: 14px;
  296. position: absolute;
  297. top: 70px;
  298. right: 20px;
  299. }
  300. }
  301. // 充电枪选项
  302. .gun-options{
  303. background-color: #fff;
  304. margin-top: 12px;
  305. .tab-equipment{
  306. background-color: #fff;
  307. padding: 16px 16px 16px 0;
  308. margin-left: 16px ;
  309. border-bottom: 1px solid #E5E7EA;
  310. position: relative;
  311. .equipment-top{
  312. line-height: 27px;
  313. position: relative;
  314. }
  315. .name{
  316. line-height: 20px;
  317. line-height: 20px;
  318. font-weight: 600;
  319. color: rgba(16, 16, 16, 100);
  320. }
  321. .radio{
  322. margin-left: 54px;
  323. }
  324. .switch{
  325. position:absolute;
  326. top: 3px;
  327. left: 21%;
  328. }
  329. .state{
  330. margin-top: 12px;
  331. display: flex;
  332. justify-content: space-between;
  333. width: 75%;
  334. flex-wrap: wrap;
  335. .state-item{
  336. height: 20px;
  337. line-height: 20px;
  338. margin-top: 4px;
  339. color: rgba(16, 16, 16, 100);
  340. .bot1{
  341. display: inline-block;
  342. width: 12px;
  343. height: 12px;
  344. margin-left: 2px;
  345. background-color: rgba(255, 115, 0, 100);
  346. border-radius: 999px;
  347. }
  348. .bot2{
  349. background-color: rgba(0, 185, 98, 100);
  350. }
  351. }
  352. .more{
  353. line-height: 24px;
  354. font-size: 24px;
  355. color: #b3b3b3;
  356. position: absolute;
  357. right: 20px;
  358. top: 16px;
  359. .set{
  360. display: inline-block;
  361. width: 30px;
  362. font-size: 14px;
  363. color: #1677ff;
  364. position: absolute;
  365. top: 0;
  366. left: -29px;
  367. }
  368. }
  369. }
  370. }
  371. /deep/.u-tab-bar{
  372. background-color: #00B962 !important;
  373. }
  374. .share{
  375. padding: 16px;
  376. }
  377. .equipment-info{
  378. padding: 16px;
  379. }
  380. .title{
  381. font-size: 16px;
  382. font-weight: 600;
  383. .line{
  384. display: inline-block;
  385. height:12px;
  386. width: 4px;
  387. background-color: #00B962;
  388. margin-right: 8px;
  389. }
  390. }
  391. .item{
  392. display: flex;
  393. justify-content: space-between;
  394. margin-top: 20px;
  395. }
  396. }
  397. .bottom{
  398. width: 100%;
  399. height: 64px;
  400. background-color: #fff;
  401. position: fixed;
  402. bottom: 0;
  403. display: flex;
  404. .u-btn{
  405. width: 91.4%;
  406. height: 40px;
  407. margin: auto;
  408. }
  409. }
  410. </style>