index.vue 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495
  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="top-up">
  53. <view class="top-up-title"><text class="line"></text>充值活动</view>
  54. <view class="img-box">
  55. <view class="img-1">
  56. <img src="/static/img/瓷片区1.png" alt="">
  57. <view class="img-text">
  58. 充100送20
  59. <view class="img-text2">即充即赠 立享优惠</view>
  60. </view>
  61. </view>
  62. <view class="img-1">
  63. <img src="/static/img/瓷片区2.png" alt="">
  64. <view class="img-text" style="color: #FF7C00;">
  65. 邀请有礼
  66. <view class="img-text2 color">最高可得500元</view>
  67. </view>
  68. </view>
  69. </view>
  70. </view>
  71. <!-- 新闻 -->
  72. <view class="news-title">
  73. <view class="news-title-left">
  74. <view class="line" style="margin-top:4px;"></view>新闻公告
  75. </view>
  76. <view class="more">更多<view class="more-icon iconfont"> &#xe600;</view>
  77. </view>
  78. </view>
  79. <view class="news">
  80. <view class="news-content">
  81. <view class="content-text">
  82. 日印计划联手开发低成本充电桩 推动新兴市场电动车发展
  83. <view class="news-time">05-01 09:00</view>
  84. </view>
  85. <view class="content-img">
  86. <img src="/static/img/11091323191.jpg" alt="">
  87. </view>
  88. </view>
  89. <view class="news-content">
  90. <view class="content-text">
  91. 我国新能源汽车市场腾飞在即,充换电何时能够不再“拖后腿”?
  92. <view class="news-time">05-01 09:00</view>
  93. </view>
  94. <view class="content-img">
  95. <img src="/static/img/103613441.jpg" alt="">
  96. </view>
  97. </view>
  98. <view class="news-content">
  99. <view class="content-text">
  100. 新疆建成首个充电桩实验室
  101. <view class="news-time">05-01 09:00</view>
  102. </view>
  103. <view class="content-img">
  104. <img src="/static/img/180023631.jpg" alt="">
  105. </view>
  106. </view>
  107. </view>
  108. <view class="bottom">
  109. <view class="bot">
  110. <view class="bot-line"></view>
  111. <view class="bot-text">已经到底了</view>
  112. <view class="bot-line"></view>
  113. </view>
  114. </view>
  115. <!-- 导航栏 -->
  116. <view class="navigation">
  117. <view class="nav-items">
  118. <view class="nav-icon iconfont ">
  119. &#xe610;
  120. </view>
  121. <view class="nav-text">主页</view>
  122. </view>
  123. <view class="nav-items">
  124. <view class="nav-icon iconfont">&#xe622;</view>
  125. <view class="nav-text">找桩</view>
  126. </view>
  127. <view class="nav-items">
  128. <view class="nav-icon iconfont">&#xe627;</view>
  129. <view class="nav-text">我的</view>
  130. </view>
  131. </view>
  132. </view>
  133. </template>
  134. <script>
  135. </script>
  136. <style lang="scss">
  137. // 头部图片
  138. .banner {
  139. width: 375px;
  140. height: 300px;
  141. img {
  142. width: 100%;
  143. height: 100%;
  144. }
  145. }
  146. // 选项列表
  147. .option-list {
  148. padding-top: 18px;
  149. margin-left: 16px;
  150. width: 343px;
  151. height: 100px;
  152. line-height: 20px;
  153. border-radius: 8px;
  154. text-align: center;
  155. background-color: #fff;
  156. position: absolute;
  157. top: 260px;
  158. display: flex;
  159. justify-content: space-around;
  160. .list-item {
  161. // 图标
  162. .icon {
  163. width: 40px;
  164. height: 40px;
  165. border-radius: 99px;
  166. line-height: 40px;
  167. font-size: 24px;
  168. text-align: center;
  169. margin: auto;
  170. color: #ffffff;
  171. }
  172. }
  173. }
  174. // 站点
  175. .station {
  176. width: 343px;
  177. height: 120px;
  178. margin-top: 70px;
  179. margin-left: 16px;
  180. padding-top: 20px;
  181. padding: 0 12px;
  182. position: relative;
  183. img{
  184. width: 100%;
  185. height: 100%;
  186. }
  187. .text{
  188. position: absolute;
  189. top: 0;left: 20px;
  190. // 头部
  191. .station-title {
  192. display: flex;
  193. margin-top: 12px;
  194. .title-left {
  195. display: inline-block;
  196. height: 20px;
  197. width: 44px;
  198. // margin-left: 12px;
  199. line-height: 20px;
  200. border-radius: 50px;
  201. background-color: rgba(133, 140, 255, 100);
  202. color: rgba(255, 255, 255, 100);
  203. font-size: 12px;
  204. text-align: center;
  205. font-family: Arial;
  206. }
  207. .title-right {
  208. display: inline-block;
  209. margin-left: 4px;
  210. margin-top: 2px;
  211. width: 271px;
  212. height: 16px;
  213. line-height: 16px;
  214. color: rgba(16, 16, 16, 100);
  215. font-size: 16px;
  216. text-align: left;
  217. font-family: AlibabaPuHui-regular;
  218. }
  219. }
  220. // 价格
  221. .station-price {
  222. margin-top: 4px;
  223. display: flex;
  224. .price-left {
  225. width: 40px;
  226. height: 20px;
  227. color: rgba(255, 98, 0, 100);
  228. font-size: 20px;
  229. text-align: left;
  230. font-family: Roboto-medium;
  231. }
  232. .price-right {
  233. height: 20px;
  234. line-height: 20px;
  235. margin-left: 2px;
  236. margin-top: 3px;
  237. color: rgba(102, 102, 102, 100);
  238. font-size: 14px;
  239. text-align: left;
  240. font-family: AlibabaPuHui-regular;
  241. }
  242. }
  243. // park
  244. .park {
  245. margin-top: 4px;
  246. display: flex;
  247. .park-p {
  248. display: inline-block;
  249. width: 20px;
  250. height: 18px;
  251. line-height: 12px;
  252. text-align: center;
  253. background-color: rgba(125, 177, 255, 100);
  254. color: #fff;
  255. }
  256. .park-text {
  257. display: inline-block;
  258. width: 300px;
  259. height: 17px;
  260. color: rgba(102, 102, 102, 100);
  261. font-size: 12px;
  262. text-align: left;
  263. margin-left: 2px;
  264. margin-top: 2px;
  265. }
  266. }
  267. // 数量
  268. .count {
  269. margin-top: 8px;
  270. width: 96%;
  271. display: flex;
  272. justify-content: space-between;
  273. }
  274. }
  275. }
  276. //充值
  277. .top-up {
  278. margin-left: 16px;
  279. margin-top: 17px;
  280. .top-up-title {
  281. color: rgba(16, 16, 16, 100);
  282. font-size: 16px;
  283. }
  284. .img-box {
  285. margin-top: 12px;
  286. width: 345px;
  287. height: 146px;
  288. display: flex;
  289. justify-content: space-between;
  290. .img-1 {
  291. width: 166px;
  292. height: 146px;
  293. position: relative;
  294. .img-text {
  295. position: absolute;
  296. top: 0;
  297. left: 0;
  298. height: 33px;
  299. color: #ff4444;
  300. font-size: 24px;
  301. text-align: left;
  302. margin-left: 12px;
  303. .img-text2 {
  304. font-size: 12px
  305. }
  306. }
  307. }
  308. img {
  309. width: 100%;
  310. height: 100%;
  311. }
  312. }
  313. }
  314. // 小竖线
  315. .line {
  316. display: inline-block;
  317. width: 3px;
  318. height: 12px;
  319. margin-right: 7px;
  320. background-color: rgba(0, 145, 67, 100);
  321. }
  322. // 新闻公告
  323. .news-title {
  324. padding: 0 16px;
  325. margin-top: 12px;
  326. color: rgba(16, 16, 16, 100);
  327. font-size: 16px;
  328. display: flex;
  329. justify-content: space-between;
  330. background-color: #F2F4F4;
  331. .news-title-left {
  332. display: flex;
  333. }
  334. .more {
  335. font-size: 14px;
  336. color: #777777;
  337. display: flex;
  338. line-height:20px;
  339. .more-icon{
  340. font-size: 24px
  341. }
  342. }
  343. }
  344. .news {
  345. background-color: #fff;
  346. margin: 17px 16px 0;
  347. .news-content {
  348. display: flex;
  349. justify-content: space-between;
  350. padding: 12px;
  351. .content-text {
  352. width: 211px;
  353. height: 42px;
  354. line-height: 21px;
  355. color: #101010;
  356. text-align: left;
  357. font-size: 14px
  358. }
  359. ;
  360. .content-img {
  361. width: 100px;
  362. height: 80px;
  363. border-radius: 4px;
  364. img {
  365. width: 100%;
  366. height: 100%;
  367. }
  368. }
  369. .news-time {
  370. margin-top: 12px;
  371. color: #999999;
  372. width: 80px;
  373. height: 20px;
  374. font-size: 14px;
  375. }
  376. }
  377. }
  378. .bottom {
  379. width: 100%;
  380. height: 150px;
  381. .bot {
  382. width: 100%;
  383. padding-left: 66px;
  384. display: flex;
  385. .bot-line {
  386. margin-top: 20px;
  387. width: 80px;
  388. height: 0px;
  389. border: 1px solid rgba(207, 210, 213, 100);
  390. }
  391. .bot-text {
  392. width: 60px;
  393. height: 17px;
  394. margin-top: 13px;
  395. margin-left: 12px;
  396. margin-right: 12px;
  397. font-size: 12px;
  398. text-align: center;
  399. }
  400. }
  401. }
  402. // 导航栏
  403. .navigation {
  404. width: 375px;
  405. // height: 40px;
  406. padding: 10px 0;
  407. background-color: #fff;
  408. position: fixed;
  409. bottom: 0;
  410. left: 0;
  411. display: flex;
  412. justify-content: space-around;
  413. text-align: center;
  414. color: #999999;
  415. .nav-icon{
  416. width: 54px;
  417. font-size: 24px
  418. }
  419. .nav-text{
  420. font-size: 14px;
  421. }
  422. }
  423. </style>