123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436 |
- <template>
- <view>
- <!-- 头部 -->
- <view class="top-box">
- <view class="top">
- <view class="">
- 荆州市 <text class="iconfont" style="color: #bdbdbd;"></text>
- </view>
- <u-search :show-action="false" placeholder="搜索站点名称"></u-search>
- <view class="">
- <text class="iconfont"></text> <text class="list">列表</text>
- </view>
- </view>
- <!-- 条件选项 -->
- <view class="condition">
- <view class="condition-distance">
- 10公里<text class="iconfont"
- style="color: #bdbdbd;font-size: 24px;position: absolute;"></text>
- </view>
- <view class="condition-type">
- 直流快充<text class="iconfont"
- style="color: #bdbdbd;font-size: 24px;position: absolute;"></text>
- </view>
- <view class="condition-screen">
- 筛选<text class="iconfont" style="color: #bdbdbd;font-size: 24px;position: absolute;"></text>
- </view>
- </view>
- </view>
- <!-- 地图 -->
- <view style="height: 88px;"></view>
- <view class="map">
- <view class="station-icon"><text class="iconfont"></text>
- <view class="corner"></view>
- </view>
- <view class="station-icon2">
- <view class="iconfont icon2-left"></view>
- <view class="icon2-right">
- <view class="corner2"></view>
- <view class="">
- ¥1.25
- </view>
- <view class="">
- 空闲10
- </view>
- </view>
- </view>
- <view class="station-icon3"><text class="iconfont"></text>
- <view class="corner3"></view>
- </view>
- <img src="static/img/地图@1x.png" alt="">
- </view>
- <view class="charing-slow">
- <text class="fast-charge">快/慢</text> <text class="station-items">荆鹏软件园充电站</text>
- <view class="address">
- 湖北省荆州市沙市区江津东路附155号
- </view>
- <view class="price">
- <view class="num">1.20</view>
- <view class="unit">
- 起 元/度
- </view>
- </view>
- <view class="park">
- <text class="park-p">p</text>
- <text class="park-text">以实际费用为准</text>
- <view class="free-num">
- <text style="color:#009143;">空闲10</text>/总数10
- </view>
- </view>
- <view class="free">
- <view class="scan-qrcode"> <text class="iconfont font"></text><text class="text">扫码充电</text>
- </view>
- <view class="distance">
- <text class="iconfont distance-font"></text><text class="text">1.2公里 3分钟</text>
- </view>
- </view>
- <view class="img-box"><img src="static/img/定位.png" alt=""></view>
- </view>
- <u-tabbar v-model="current" :list="tabbarList" active-color="#009143"></u-tabbar>
- </view>
- </template>
- <script>
- export default {
- data() {
- return {
- tabbarList: [{
- iconPath: "home-3-line",
- selectedIconPath: "home-3-fill",
- text: '主页 ',
- count: 0,
- isDot: true,
- customIcon: true,
- },
- {
- iconPath: "road-map-line",
- selectedIconPath: "road-map-fill",
- text: '找桩',
- midButton: true,
- customIcon: true,
- },
- {
- iconPath: "user-5-line",
- selectedIconPath: "user-5-fill",
- text: '我的',
- count: 0,
- isDot: false,
- customIcon: true,
- }
- ],
- current: 0
- }
- }
- }
- </script>
- <style lang="scss" scoped>
- .top-box {
- width: 100%;
- height: 88px;
- position: fixed;
- top: 0;
- left: 0;
- z-index: 999;
- }
- .top {
- display: flex;
- justify-content: space-between;
- width: 100%;
- height: 44px;
- color: #666666;
- background-color: rgba(255, 255, 255, 100);
- padding: 12px 16px;
- .u-search[data-v-1a326067] {
- flex: 0.9;
- }
- .list {
- margin-left: 2px;
- }
- }
- .condition {
- width: 100%;
- height: 44px;
- line-height: 20px;
- padding: 12px 16px;
- display: flex;
- background-color: #fff;
- .condition-type {
- margin-left: 36px;
- }
- .condition-screen {
- margin-left: 159px;
- }
- }
- .map {
- width: 100%;
- flex: 1;
- position: relative;
- img {
- width: 100%;
- height: 100%;
- }
- .station-icon {
- width: 36px;
- height: 36px;
- line-height: 36px;
- text-align: center;
- border: 1px solid rgba(133, 140, 255, 100);
- color: #b58cff;
- border-radius: 999px;
- position: absolute;
- top: 89px;
- left: 38px;
- .corner {
- width: 0;
- height: 0;
- position: absolute;
- top: 34px;
- left: 0;
- right: 0;
- margin: auto;
- border-bottom: 4px solid transparent;
- border-left: 4px solid transparent;
- border-right: 4px solid transparent;
- border-top: 6px solid #b58cff;
- }
- }
-
- .station-icon2 {
- width: 100px;
- height: 36px;
- line-height: 20px;
- border-radius: 50px;
- background-color: #00bacb;
- text-align: center;
- display: flex;
- position: absolute;
- top: 188px;
- left: 146px;
- .icon2-left {
- width: 36px;
- height: 36px;
- line-height: 36px;
- text-align: center;
- border: 1px solid rgba(0, 185, 98, 100);
- border-radius: 999px;
- background-color: #fff;
- color: #00bacb;
- }
- .icon2-right {
- color: #ffffff;
- line-height: 14px;
- padding: 4px;
- }
- .corner2 {
- width: 0;
- height: 0;
- position: absolute;
- top: 36px;
- left: 0;
- right: 0;
- margin: auto;
- border-bottom: 6px solid transparent;
- border-left: 6px solid transparent;
- border-right: 6px solid transparent;
- border-top: 8px solid #00bacb;
-
- }
- }
- .station-icon3 {
- width: 36px;
- height: 36px;
- line-height: 36px;
- text-align: center;
- border: 1px solid rgba(0, 185, 98, 100);
- color: #00b962;
- border-radius: 999px;
- position: absolute;
- top: 124px;
- left: 255px;
- .corner3 {
- width: 0;
- height: 0;
- position: absolute;
- top: 34px;
- left: 0;
- right: 0;
- margin: auto;
- border-bottom: 4px solid transparent;
- border-left: 4px solid transparent;
- border-right: 4px solid transparent;
- border-top: 6px solid #00b962;
- }
- }
-
- }
- .charing-slow {
- background-color: #fff;
- margin: 0 12px;
- border-radius: 8px;
- padding: 10px 12px 0px;
- position: fixed;
- bottom: 68px;
- left: 0;
- right: 0;
- .fast-charge {
- display: inline-block;
- width: 44px;
- height: 20px;
- line-height: 20px;
- border-radius: 50px;
- background-color: #00bac8;
- color: rgba(255, 255, 255, 100);
- font-size: 12px;
- text-align: center;
- }
- .station-items {
- display: inline-block;
- height: 16px;
- line-height: 16px;
- font-size: 16px;
- margin-left: 4px;
- color: #101010;
- }
- .address {
- margin-top: 8px;
- line-height: 16px;
- font-size: 11px;
- color: rgba(119, 119, 119, 100);
- }
- .price {
- display: flex;
- height: 20px;
- .num {
- height: 20px;
- color: rgba(255, 98, 0, 100);
- font-size: 20px;
- text-align: left;
- font-family: Roboto-medium;
- }
- .unit {
- height: 14px;
- line-height: 14px;
- color: rgba(102, 102, 102, 100);
- font-size: 14px;
- text-align: left;
- font-family: AlibabaPuHui-regular;
- margin-top: 6px;
- margin-left: 4px;
- }
- }
- .park {
- margin-top: 8px;
- display: flex;
- .park-p {
- display: inline-block;
- width: 20px;
- height: 18px;
- line-height: 12px;
- text-align: center;
- background-color: rgba(125, 177, 255, 100);
- color: #fff;
- }
- .park-text {
- display: inline-block;
- height: 17px;
- color: rgba(102, 102, 102, 100);
- font-size: 12px;
- text-align: left;
- margin-left: 4px;
- margin-top: 2px;
- }
- .free-num {
- margin-left: 119px;
- font-size: 14px;
- }
- }
- .free {
- display: flex;
- justify-content: space-between;
- height: 52px;
- border-top: 1px solid rgba(238, 242, 240, 100);
- margin-top: 10px;
- .iconfont {
- font-size: 15px
- }
- .text {
- margin-left: 4px;
- }
- .distance {
- width: 130px;
- height: 28px;
- line-height: 28px;
- color: rgba(255, 255, 255, 100);
- font-size: 14px;
- background-color: #00b962;
- border-radius: 50px;
- margin: 12px;
- text-align: center;
- }
- .scan-qrcode {
- width: 100px;
- height: 28px;
- line-height: 28px;
- border-radius: 50px;
- margin: 12px 0px 12px 89px;
- text-align: center;
- border: 1px solid rgba(0, 185, 98, 100);
- color: rgba(0, 185, 98, 100);
- }
- }
- }
- .img-box{
- width: 36px;
- height: 36px;
- line-height: 36px;
- text-align: center;
- background-color: #fff;
- border-radius: 8px;
- position: fixed;
- top: 377px;
- right: 16px;
- img{
- vertical-align:middle;
- }
- }
- </style>
|