index.vue 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566
  1. <template>
  2. <view>
  3. <!-- 头部图片 -->
  4. <view class="banner">
  5. <img src="/static/img/banner1.jpg" alt="">
  6. </view>
  7. <!-- 选项列表 -->
  8. <view class="option-list">
  9. <view class="list-item">
  10. <view class="icon iconfont" style="background-color:#59d96e;">
  11. &#xe61a;
  12. </view>
  13. <view class="text">
  14. 扫码充电
  15. </view>
  16. </view>
  17. <view class="list-item">
  18. <view class="icon iconfont" style="background-color:#4BD2C0;">
  19. &#xe629;
  20. </view>
  21. <view class="text">
  22. 快速充值
  23. </view>
  24. </view>
  25. <view class="list-item">
  26. <view class="icon iconfont" style="background-color: #6FA5FF;">
  27. &#xe625;
  28. </view>
  29. <view class="text">
  30. 充电记录
  31. </view>
  32. </view>
  33. <view class="list-item">
  34. <view class="icon iconfont" style="background-color: #9D9FFF;">
  35. &#xe622;
  36. </view>
  37. <view class="text">
  38. 附近站点
  39. </view>
  40. </view>
  41. </view>
  42. <!-- 站点 -->
  43. <!-- <view class="station">
  44. <view class="img-box" >
  45. <img src="/static/img/Frame 198 (1).png" alt="">
  46. </view>
  47. <view class="text"> -->
  48. <!-- 站点头部 --> <!-- <view class="station-title"> <text class="title-left">快充</text> <text class="title-right">荆沙大道救助站充电站</text> </view> --> <!-- 价格 --> <!-- <view class="station-price"> <view class="price-left">1.25</view> <view class="price-right"> 起 元/度 </view> </view> --> <!-- park --> <!-- <view class="park"> <text class="park-p">p</text> <text class="park-text">2小时免费停车</text> </view> <view class="count"> <view class="count-left">空闲10/总数10</view> <view class="count-right"><text class="iconfont">&#xe615;</text>10公里</view> </view>
  49. </view>
  50. </view> -->
  51. <!-- 定位 -->
  52. <view class="location-box">
  53. <view class="location">
  54. <view class="location-text">
  55. <view class="text-1">
  56. 定位中...
  57. </view>
  58. <view class="text-2">
  59. 授权定位后可查询附近充电站
  60. </view>
  61. <view class="text-3">
  62. 重新定位
  63. </view>
  64. </view>
  65. <view class="img-box" >
  66. <img src="/static/img/暂无网络信号-缺省页 1.png"">
  67. </view>
  68. </view>
  69. </view>
  70. <!-- 充值活动 -->
  71. <view class="top-up">
  72. <view class="top-up-title"><text class="line"></text>充值活动</view>
  73. <view class="img-box">
  74. <view class="img-1">
  75. <img src="/static/img/瓷片区1.png" alt="">
  76. <view class="img-text">
  77. 充100送20
  78. <view class="img-text2">即充即赠 立享优惠</view>
  79. </view>
  80. </view>
  81. <view class="img-1">
  82. <img src="/static/img/瓷片区2.png" alt="">
  83. <view class="img-text" style="color: #FF7C00;">
  84. 邀请有礼
  85. <view class="img-text2 color">最高可得500元</view>
  86. </view>
  87. </view>
  88. </view>
  89. </view>
  90. <!-- 新闻 -->
  91. <view class="news-title">
  92. <view class="news-title-left">
  93. <view class="line" style="margin-top:4px;"></view>新闻公告
  94. </view>
  95. <view class="more">更多<view class="more-icon iconfont"> &#xe600;</view>
  96. </view>
  97. </view>
  98. <view class="news">
  99. <view class="news-content">
  100. <view class="content-text">
  101. 日印计划联手开发低成本充电桩 推动新兴市场电动车发展
  102. <view class="news-time">05-01 09:00</view>
  103. </view>
  104. <view class="content-img">
  105. <img src="/static/img/11091323191.jpg" alt="">
  106. </view>
  107. </view>
  108. <view class="news-content">
  109. <view class="content-text">
  110. 我国新能源汽车市场腾飞在即,充换电何时能够不再“拖后腿”?
  111. <view class="news-time">05-01 09:00</view>
  112. </view>
  113. <view class="content-img">
  114. <img src="/static/img/103613441.jpg" alt="">
  115. </view>
  116. </view>
  117. <view class="news-content">
  118. <view class="content-text">
  119. 新疆建成首个充电桩实验室
  120. <view class="news-time">05-01 09:00</view>
  121. </view>
  122. <view class="content-img">
  123. <img src="/static/img/180023631.jpg" alt="">
  124. </view>
  125. </view>
  126. </view>
  127. <view class="bottom">
  128. <view class="bot">
  129. <view class="bot-line"></view>
  130. <view class="bot-text">已经到底了</view>
  131. <view class="bot-line"></view>
  132. </view>
  133. </view>
  134. <!-- 导航栏 -->
  135. <view class="navigation">
  136. <view class="nav-items">
  137. <view class="nav-icon iconfont ">
  138. &#xe610;
  139. </view>
  140. <view class="nav-text">主页</view>
  141. </view>
  142. <view class="nav-items">
  143. <view class="nav-icon iconfont">&#xe622;</view>
  144. <view class="nav-text">找桩</view>
  145. </view>
  146. <view class="nav-items">
  147. <view class="nav-icon iconfont">&#xe627;</view>
  148. <view class="nav-text">我的</view>
  149. </view>
  150. </view>
  151. </view>
  152. </template>
  153. <script>
  154. </script>
  155. <style lang="scss">
  156. // 头部图片
  157. img {
  158. width: 100%;
  159. height: 100%;
  160. }
  161. .banner {
  162. width: 100%;
  163. height: 300px;
  164. }
  165. // 选项列表
  166. .option-list {
  167. padding-top: 18px;
  168. width: 343px;
  169. height: 100px;
  170. line-height: 20px;
  171. border-radius: 8px;
  172. text-align: center;
  173. background-color: #fff;
  174. position: absolute;
  175. top: 260px;
  176. left: 0;
  177. right: 0;
  178. margin: auto;
  179. display: flex;
  180. justify-content: space-around;
  181. .list-item {
  182. // 图标
  183. .icon {
  184. width: 40px;
  185. height: 40px;
  186. border-radius: 99px;
  187. line-height: 40px;
  188. font-size: 24px;
  189. text-align: center;
  190. margin: auto;
  191. color: #ffffff;
  192. }
  193. }
  194. }
  195. // 站点
  196. .station {
  197. // width: 343px;
  198. height: 120px;
  199. margin-top: 70px;
  200. border-radius: 999px;
  201. padding-top: 20px;
  202. padding: 0 12px;
  203. position: relative;
  204. .img-box{
  205. width: 100%;
  206. height: 100%;
  207. border-radius: 8px;
  208. overflow: hidden;
  209. }
  210. img{
  211. width: 100%;
  212. height: 100%;
  213. }
  214. .text{
  215. position: absolute;
  216. top: 0;left: 20px;
  217. // 头部
  218. .station-title {
  219. display: flex;
  220. margin-top: 12px;
  221. .title-left {
  222. display: inline-block;
  223. height: 20px;
  224. width: 44px;
  225. // margin-left: 12px;
  226. line-height: 20px;
  227. border-radius: 50px;
  228. background-color: rgba(133, 140, 255, 100);
  229. color: rgba(255, 255, 255, 100);
  230. font-size: 12px;
  231. text-align: center;
  232. font-family: Arial;
  233. }
  234. .title-right {
  235. display: inline-block;
  236. margin-left: 4px;
  237. margin-top: 2px;
  238. width: 271px;
  239. height: 16px;
  240. line-height: 16px;
  241. color: rgba(16, 16, 16, 100);
  242. font-size: 16px;
  243. text-align: left;
  244. font-family: AlibabaPuHui-regular;
  245. }
  246. }
  247. // 价格
  248. .station-price {
  249. margin-top: 4px;
  250. display: flex;
  251. .price-left {
  252. width: 40px;
  253. height: 20px;
  254. color: rgba(255, 98, 0, 100);
  255. font-size: 20px;
  256. text-align: left;
  257. font-family: Roboto-medium;
  258. }
  259. .price-right {
  260. height: 20px;
  261. line-height: 20px;
  262. margin-left: 2px;
  263. margin-top: 3px;
  264. color: rgba(102, 102, 102, 100);
  265. font-size: 14px;
  266. text-align: left;
  267. font-family: AlibabaPuHui-regular;
  268. }
  269. }
  270. // park
  271. .park {
  272. margin-top: 4px;
  273. display: flex;
  274. .park-p {
  275. display: inline-block;
  276. width: 20px;
  277. height: 18px;
  278. line-height: 12px;
  279. text-align: center;
  280. background-color: rgba(125, 177, 255, 100);
  281. color: #fff;
  282. }
  283. .park-text {
  284. display: inline-block;
  285. width: 300px;
  286. height: 17px;
  287. color: rgba(102, 102, 102, 100);
  288. font-size: 12px;
  289. text-align: left;
  290. margin-left: 2px;
  291. margin-top: 2px;
  292. }
  293. }
  294. // 数量
  295. .count {
  296. margin-top: 8px;
  297. width: 96%;
  298. display: flex;
  299. justify-content: space-between;
  300. }
  301. }
  302. }
  303. //定位
  304. .location{
  305. width: 343px;
  306. background-color: #ffffff;
  307. height: 120px;
  308. display: flex;
  309. margin: 80px auto 0;
  310. border-radius: 8px;
  311. border:#F2F4F4 1px ;
  312. .location-text{
  313. padding: 24px 28px;
  314. .text-1{
  315. height: 16px;
  316. color: rgba(16, 16, 16, 100);
  317. font-size: 16px;
  318. text-align: left;
  319. }
  320. .text-2{
  321. height: 17px;
  322. color: rgba(102, 102, 102, 100);
  323. font-size: 12px;
  324. text-align: left;
  325. margin-top: 4px;
  326. }
  327. .text-3{
  328. width: 80px;
  329. height: 24px;
  330. border-radius: 50px;
  331. color: rgba(0, 185, 98, 100);
  332. font-size: 12px;
  333. text-align: center;
  334. font-family: Microsoft Yahei;
  335. border: 1px solid rgba(0, 185, 98, 100);
  336. margin-top: 11px;
  337. }
  338. }
  339. .img-box{
  340. width: 120px;
  341. height: 120px;
  342. float: right;
  343. }
  344. }
  345. //充值
  346. .top-up {
  347. margin-left: 16px;
  348. margin-top: 17px;
  349. .top-up-title {
  350. color: rgba(16, 16, 16, 100);
  351. font-size: 16px;
  352. }
  353. .img-box {
  354. margin-top: 12px;
  355. width: 345px;
  356. height: 146px;
  357. display: flex;
  358. justify-content: space-between;
  359. .img-1 {
  360. width: 166px;
  361. height: 146px;
  362. position: relative;
  363. .img-text {
  364. position: absolute;
  365. top: 0;
  366. left: 0;
  367. height: 33px;
  368. color: #ff4444;
  369. font-size: 24px;
  370. text-align: left;
  371. margin-left: 12px;
  372. .img-text2 {
  373. font-size: 12px
  374. }
  375. }
  376. }
  377. img {
  378. width: 100%;
  379. height: 100%;
  380. }
  381. }
  382. }
  383. // 小竖线
  384. .line {
  385. display: inline-block;
  386. width: 3px;
  387. height: 12px;
  388. margin-right: 7px;
  389. background-color: rgba(0, 145, 67, 100);
  390. }
  391. // 新闻公告
  392. .news-title {
  393. padding: 0 16px;
  394. margin-top: 12px;
  395. color: rgba(16, 16, 16, 100);
  396. font-size: 16px;
  397. display: flex;
  398. justify-content: space-between;
  399. background-color: #F2F4F4;
  400. .news-title-left {
  401. display: flex;
  402. }
  403. .more {
  404. font-size: 14px;
  405. color: #777777;
  406. display: flex;
  407. line-height:20px;
  408. .more-icon{
  409. font-size: 24px
  410. }
  411. }
  412. }
  413. .news {
  414. background-color: #fff;
  415. margin: 17px 16px 0;
  416. .news-content {
  417. display: flex;
  418. justify-content: space-between;
  419. padding: 12px;
  420. .content-text {
  421. width: 211px;
  422. height: 42px;
  423. line-height: 21px;
  424. color: #101010;
  425. text-align: left;
  426. font-size: 14px
  427. }
  428. ;
  429. .content-img {
  430. width: 100px;
  431. height: 80px;
  432. border-radius: 4px;
  433. img {
  434. width: 100%;
  435. height: 100%;
  436. }
  437. }
  438. .news-time {
  439. margin-top: 12px;
  440. color: #999999;
  441. width: 80px;
  442. height: 20px;
  443. font-size: 14px;
  444. }
  445. }
  446. }
  447. .bottom {
  448. width: 100%;
  449. height: 150px;
  450. .bot {
  451. width: 100%;
  452. padding-left: 66px;
  453. display: flex;
  454. .bot-line {
  455. margin-top: 20px;
  456. width: 80px;
  457. height: 0px;
  458. border: 1px solid rgba(207, 210, 213, 100);
  459. }
  460. .bot-text {
  461. width: 60px;
  462. height: 17px;
  463. margin-top: 13px;
  464. margin-left: 12px;
  465. margin-right: 12px;
  466. font-size: 12px;
  467. text-align: center;
  468. }
  469. }
  470. }
  471. // 导航栏
  472. .navigation {
  473. width: 100%;
  474. // height: 40px;
  475. padding: 10px 0;
  476. background-color: #fff;
  477. position: fixed;
  478. bottom: 0;
  479. left: 0;
  480. display: flex;
  481. justify-content: space-around;
  482. text-align: center;
  483. color: #999999;
  484. .nav-icon{
  485. width: 54px;
  486. font-size: 24px
  487. }
  488. .nav-text{
  489. font-size: 14px;
  490. }
  491. }
  492. </style>