1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846 |
- <template>
- <view>
- <ujp-navbar :is-back="false" height='88' style="background-color: bisque;">
- <view class="ujp-navbar-main">
- <view class="ujp-navbar-main1">
- <view style="margin-left:20rpx;width: 160rpx;" v-if="false">
- <uni-combox class='font2' ref="city" :border="false" v-model="area" :candidates="cities"
- @updateModel='updateCity' @updateSelector="updateTypeSelector(3)"></uni-combox>
- </view>
- <view style="margin-right: 20rpx; margin-left:20rpx;flex:1">
- <u-search height="60" :input-style='inputStyle' placeholder="查询站点地址或站名" :showAction="false"
- @focus="navigate"></u-search>
- </view>
- <view style="margin-right: 20rpx;" v-show="viewMode" @click="listMode">
- <text class="iconfont"></text> <text class="list font2">列表</text>
- </view>
- <view style="margin-right: 20rpx;" v-show="!viewMode" @click="mapMode">
- <text class="iconfont"></text> <text class="list font2">地图</text>
- </view>
- </view>
- <view class="ujp-navbar-main2" @click="dropdownShow?$refs.uDropdown.close():$refs.uDropdown.open(0)" >
- <view style="display: flex;" v-if="false">
- <view
- style=" min-width: 180rpx; max-width: 200rpx;margin-left:20rpx;margin-right:10rpx;flex:1; ">
- <uni-combox class='font2' ref="radius" :border="false" v-model="radius"
- :candidates="radiuses" @updateModel='updateRadius'
- @updateSelector="updateTypeSelector('0')"></uni-combox>
- </view>
- <view style=" min-width: 180rpx; max-width: 200rpx;flex:1; ">
- <uni-combox ref="type" class='font2' :border="false" v-model="type" :candidates="types"
- @updateModel='updateType' @updateSelector="updateTypeSelector(1)"></uni-combox>
- </view>
- </view>
- <view class="tagListSelect" >
- <view class="tagBtn tagBtnAc" v-for="(item,i) in tagBtnAcList" :key="i" >
- {{item}}
- </view>
-
- </view>
- <view class="tagListSelect" v-show="!dropdownShow" v-if="false" >
- <view class="tagBtn" @click="tagspan1Btn" :class="{
- 'tagBtnAc':tagspan1
- }">
- 10公里
- </view>
- <view class="tagBtn" @click="tagspan2Btn" :class="{
- 'tagBtnAc':tagspan2
- }">
- 直流快充
- </view>
- <view class="tagBtn" @click="tagspan3Btn" :class="{
- 'tagBtnAc':tagspan3
- }">
- 特价站
- </view>
- </view>
- <view v-show="dropdownShow" >
-
- </view>
- <!-- <view style="flex:1;">
- <uni-combox ref="stationType" class='font2' :border="false" v-model="stationType"
- :candidates="stationTypes" @updateModel='updateType2'
- @updateSelector="updateTypeSelector(2)"></uni-combox>
- </view> -->
- <view style="margin-right: 20rpx;">
- <!-- -->
- <!-- <view v-show="dropdownShow" >
- <u-mask :show="dropdownShow" ></u-mask>
- </view> -->
- <jp-dropdown active-color="rgb(0, 185, 98)" @open="dropdownShow=true"
- @close="dropdownShow=false" ref="uDropdown" style=" display: contents;" :top="180">
- <u-dropdown-item title="筛选">
- <view class="slot-content">
- <view v-if="dropdownShow" class="u-text-center u-content-color ">
- <view class="preference" style="z-index:1024;width: 100%;">
- <view class="content-s">
- <view class="preference_group">
- <view class="preference_group_item"><label
- class="preference_label">距离我</label></view>
- <view>
- <u-tag class="preference_item"
- v-for="(item, index) in info.miles_type" :key="index"
- :style="index == preference.miles_index ? 'background-color:#00B962;color:#FFFFFF' : 'background-color:#EFF4F2;color:#926666'"
- shape="circle" :text="item.text"
- @click="selectMiles(index)"></u-tag>
- </view>
- </view>
- <view class="preference_group">
- <view class="preference_group_item"><label
- class="preference_label">充电站类型</label></view>
- <view>
- <u-tag class="preference_item_medium"
- v-for="(item, index) in info.obc_type" :key="index"
- :style="index == preference.obc_type_index ? 'background-color:#00B962;color:#FFFFFF' : 'background-color:#EFF4F2;color:#926666'"
- shape="circle" :text="item.text"
- @click="selectOBSType(index)"></u-tag>
- </view>
- </view>
- <view class="preference_group" >
- <view class="preference_group_item"><label
- class="preference_label">查询站点</label></view>
- <view>
- <u-tag class="preference_item_plus"
- v-for="(item, index) in info.obc_status" :key="index"
- :style="index == preference.obc_status_index ? 'background-color:#00B962;color:#FFFFFF' : 'background-color:#EFF4F2;color:#926666'"
- shape="circle" :text="item.text"
- @click="selectOBSStatus(index)"></u-tag>
- </view>
- </view>
- <view class="preference_group">
- <view class="preference_group_item"><label
- class="preference_label">运营模式</label></view>
- <view>
- <u-tag class="preference_item_medium"
- v-for="(item, index) in info.obc_stationType" :key="index"
- :style="index == preference.obc_stationType_index ? 'background-color:#00B962;color:#FFFFFF' : 'background-color:#EFF4F2;color:#926666'"
- shape="circle" :text="item.text"
- @click="selectOBSType2(index)"></u-tag>
- </view>
- </view>
-
- <view class="preference_group" v-if="false">
- <view class="preference_group_item"><label
- class="preference_label">是否对外开放</label></view>
- <view>
- <u-tag class="preference_item_plus"
- v-for="(item, index) in info.obc_status" :key="index"
- :style="index == preference.obc_status_index ? 'background-color:#00B962;color:#FFFFFF' : 'background-color:#EFF4F2;color:#926666'"
- shape="circle" :text="item.text"
- @click="selectOBSStatus(index)"></u-tag>
- </view>
- </view>
- <view class="preference_group" v-if="false">
- <view style="margin-left: 30rpx;"><u-checkbox active-color="#00b962"
- shape="circle" v-model="preference.save_preference"
- @change="radioChange">保存偏好设置</u-checkbox></view>
- </view>
- </view>
- <view class="pre-btn" style="display: flex;flex-direction: row;">
- <view class="btn-1 font3" @click="reset" style="width: 30%;">重置</view>
- <view class="btn-2 font3" @click="close"
- style="width: 70%;background-color: #00B962;color: #fff;">确定</view>
- </view>
- </view>
- </view>
- <!-- <u-button type="primary" @click="closeDropdown">确定</u-button> -->
- </view>
- </u-dropdown-item>
- </jp-dropdown>
- </view>
- </view>
- </view>
- </ujp-navbar>
- <!-- 定位 -->
- <view v-show="!viewMode">
- <view class="location-box" v-if="message != 'getLocation:ok' && stationslist.length == 0 ">
- <view class="location">
- <view class="location-text">
- <view class="text-1 oldTextjp" oldstyle="font-size: 20px;">
- 定位中...
- </view>
- <view class="text-2 oldTextjp2" oldstyle="font-size: 16px;">
- 授权定位后可查询附近充电站
- </view>
- <view class="text-view">
- <view class="text-3 oldTextjp2" oldstyle="font-size: 16px;" @click="getPoint()">
- 重新定位
- </view>
- <view class="text-3 text-4 oldTextjp2" oldstyle="font-size: 16px;"
- @click="searchStationData()">
- 直接搜索
- </view>
- </view>
- </view>
- <view class="img-box">
- <img src="@/assets/static/img/暂无网络信号-缺省页 1.png">
- </view>
- </view>
- </view>
- <view v-else-if="message == 'getLocation:ok'&&stationslist.length==0">
- <view class="carNone" v-if="stationslist.length == 0">
- <img src="@/assets/static/img/暂无数据-缺省页.png" alt="">
- <p class="oldTextjp2" oldstyle="font-size: 18px;">{{loading?'暂无可用充电站':'正在为你加载可用的充电站...'}}</p>
- </view>
- </view>
- <view>
- <view>
- <view v-for="(item,index) in (stationslist.length?stationslist:defaultStation)" :key="item.id"
- class="charing-slow charing-new" @click="stationDetail(item)">
- <view class="new-img">
- <img :src="item.image" v-if="item.image" class="img1">
- <img v-else src="@/assets/img/chargesite_default.png" class="img1" mode=""></img>
- <view class="img2Class" v-if="item.isRecommend||stationslist.length==0">
- <img src="@/assets/img/9-4/推荐.svg" class="img2">
- </view>
-
- <view class="img2Class" v-else-if="item.isAlways" >
-
- <img src="@/assets/img/9-4/常用.svg" class="img2">
- </view>
- <view class="img2Class" v-else-if="item.isSpecial" >
-
- <img src="@/assets/img/9-4/特价tag.svg" class="img2">
- </view>
- </view>
- <view class="new-body">
- <view class="address">
- <view class="name oldTextjp" oldstyle="font-size: 20px;">
- {{item.name}}
- </view>
- </view>
- <view v-if="quickChargeReduceMethod1(item)&&personInfo&&personInfo.userType==2"
- style="margin-top: 10rpx;color: rgba(255, 121, 0, 1);font-size: 28rpx; display: flex; align-items: center;" >
-
- <span style="color: #fff;background: linear-gradient(93.02deg, rgba(255,121,0,1) 39.4%,rgba(255,174,0,1) 93.51%);
- border-radius: 4px;
- padding: 0rpx 10rpx;
- margin-right: 8rpx;
- font-size: 24rpx;
- line-height:40rpx;
- " >活动</span>
- 快充订单满{{item.quickChargeDegree}}度服务费{{discountRatio10(item.quickChargeDiscountRatio)}}折
- </view>
- <view v-if="quickChargeReduceMethod2(item)&&personInfo&&personInfo.userType==2"
- style="margin-top: 10rpx;color: rgba(255, 121, 0, 1);font-size: 28rpx; display: flex; align-items: center;" >
-
- <span style="color: #fff;background: linear-gradient(93.02deg, rgba(255,121,0,1) 39.4%,rgba(255,174,0,1) 93.51%);
- border-radius: 4px;
- padding: 0rpx 10rpx;
- margin-right: 8rpx;
- font-size: 24rpx;
- line-height:40rpx;
- " >活动</span>
- 喜迎国庆,充电有奖
- </view>
- <view class="sign">
- <!-- <view class="sign-tag sign-0" v-if="item.isRecommend||stationslist.length==0">推荐</view>
- <view class="sign-tag sign-5" v-if="item.isAlways" >常用</view>
- -->
- <view class="sign-tag sign-1"
- v-if="item.giveDiscount&&item.discountRatio&&item.discountRatio!=100">
- 会员{{discountRatio10(item.discountRatio)}}折</view>
- <view class="sign-tag sign-4" v-if="item.nightLowPriceEnabled">
- 夜间超低价</view>
- <view class="sign-tag sign-3" v-if="item.category=='超充'">160kW超充站</view>
- <view class="sign-tag sign-2" v-if="item.platformType==1">自营站</view>
- <view class="sign-tag sign-2" v-if="item.tagList.length != 0"
- v-for="(tagName,tagIndex) in item.tagList" :style="'border: 1px solid '+tagNameBy(tagName,1)+';color:'+tagNameBy(tagName,1)"
- :key="tagIndex">{{tagNameBy(tagName,0)}}</view>
- <template v-if="item.stationType==50">
- {{item.address}}
- </template>
- </view>
- <view class="price-free price-freeList" style="margin-top: 16rpx;">
- <view class="free">
- <view class="fast" v-if="item.fastNum">
- <view class="fast-font">
- 快
- </view>
- <view class="num">
- {{item.fastAvailableNum}}
- </view>
- <view class="num1">
-
- /{{item.fastNum}}
- </view>
- </view>
- <view class="slow" v-if="item.slowNum">
- <view class="slow-font">
- 慢
- </view>
- <view class="num">
- {{item.slowAvailableNum}}
- </view>
- <view class="num1">
- /{{item.slowNum}}
- </view>
- </view>
- </view>
- <template v-if="stationslist.length!=0">
- <view class="distance " v-if="item.distance != '99999999'">
- <text class="iconfont" style="color:#666666"></text>
- {{item.distance!=null && item.distance>0.1 ? item.distance.toFixed(1)+'km' : '小于100m'}}
- </view>
- <view class="distance oldTextjp2" oldstyle="font-size: 16px;" v-else>
- <text class="iconfont" style="color:#666666"></text>
- 暂无定位
- </view>
- </template>
- </view>
- <u-line margin="16rpx 0 "></u-line>
- <view class="price-free price-freeList">
- <view class="price" v-if="personInfo&&personInfo.userType==2">
- <view class="price-1">
- <text class="num">{{!item.giveDiscount ? (item.electricityPrice+item.servicePrice).toFixed(2)
- : (item.electricityPrice+item.discountServicePrice).toFixed(2)}}</text>
- <text class="unit " oldstyle="font-size: 14px;">
- 元/度
- </text>
- </view>
-
- <view class="price-3 " v-if="prevMonthKwhBL&&item.tagList&&item.tagList.length&&(item.tagList.indexOf('6折卡')>-1||item.tagList.indexOf('月卡')>-1||item.tagList.indexOf('自营站')>-1)">
- <view class="num1">
-
- <img src="@/assets/img/9-4/6折卡价.svg" />
-
- </view>
- <text
- class="num">{{ (item.electricityPrice+(item.servicePrice*0.6)).toFixed(2)}}元/度</text>
-
- </view>
- <view class="price-3 price-3-yue " v-if="!prevMonthKwhBL&&item.tagList&&item.tagList.length&&(item.tagList.indexOf('6折卡')>-1||item.tagList.indexOf('月卡')>-1||item.tagList.indexOf('自营站')>-1)">
- <view class="num1">
-
- <img src="@/assets/img/9-4/月卡价格.png" />
-
- </view>
- <text
- class="num">{{ (item.electricityPrice).toFixed(2)}}元/度</text>
-
- </view>
- </view>
- <!-- 游客价格-->
- <view class="price" v-else>
- <view class="price-1">
- <text class="num">
- {{showNumJP(item.electricityPrice+item.servicePrice)}}</text>
- <text class="unit " oldstyle="font-size: 48rpx;">元/度</text>
- </view>
- <view class="price-3 " oldstyle="font-size: 48rpx;" v-if="item.giveDiscount">
- <text class="num1">
- <img src="@/assets/img/9-4/会员价.svg" />
-
-
- </text>
- <text
- class="num">{{ showNumJP(item.electricityPrice+item.discountServicePrice)}}元/度</text>
- <text class="unit "></text>
- </view>
- </view>
- </view>
- </view>
- </view>
- <u-divider margin-top="20" v-if="stationslist.length!=0" style="margin-bottom: 20px;" bg-color="#F2F4F4"
- >已经到底了</u-divider>
- </view>
- </view>
- </view>
- <view v-show="viewMode">
- <view>
- <Chargermap @onMoveStart="moveStart" @onMoveEnd="moveEnd" ref="amap" @onClicked="onClicked"
- @onload="mapdown" @clickMap="clickMap"></Chargermap>
- <!--@location="location"-->
- <view class="locationBtn" style=' ' @click="setCenter">
- <u-image src="@/assets/static/img/location.png" border-radius="8" bg-color="#ffffff" width="20px"
- height="20px"></u-image>
- </view>
- </view>
- <!-- 新版卡片 -->
- <view class="chargerCard" v-if="stationsmap.length>0">
- <swiper v-if="stationsmap.length>0" :current="currentIndex" @change="swiperChange"
- slide-change-transition-end='swiperTransitionEnd' @transition="swiperTransition">
- <swiper-item v-for="(item,index) in stationsmap" :key="item.id" style="height: 100%;">
- <view class="swiper-item" style="height: 100%; background-color: #ffffff;"
- @click="stationDetail(item)">
- <view class="charing-slow charing-slow-2">
- <view class="address">
- <view class="name oldTextjp" oldstyle="font-size: 20px;">
- {{item.name}}
- </view>
- <view class="distance " v-if="item.distance != '99999999'">
- <text class="iconfont" style="color:#666666"></text>
- {{item.distance!=null && item.distance>0.1 ? item.distance.toFixed(1)+'公里' : '小于100米'}}
- </view>
- <view class="distance oldTextjp2" oldstyle="font-size: 16px;" v-else>
- <text class="iconfont" style="color:#666666"></text>
- 暂无定位
- </view>
- </view>
- <view class="sign min-h">
- <view class="sign-tag sign-1"
- v-if="item.giveDiscount&&item.discountRatio&&item.discountRatio!=100">
- 会员{{discountRatio10(item.discountRatio)}}折</view>
- <view class="sign-tag sign-3" v-if="item.category=='超充'">160kW超充站</view>
- <view class="sign-tag sign-4" v-if="item.nightLowPriceEnabled">
- 夜间超低价</view>
- <view class="sign-tag sign-2" v-if="item.platformType==1">自营站</view>
- <view class="sign-tag sign-2" v-if="item.tagList.length != 0"
- v-for="(tagName,tagIndex) in item.tagList"
- :style="'border: 1px solid '+tagNameBy(tagName,1)+';color:'+tagNameBy(tagName,1)"
- :key="tagIndex">{{tagNameBy(tagName,0)}}
- </view>
- </view>
- <view class="price-free price-freeOne">
- <view class="price" v-if="personInfo&&personInfo.userType==2">
- <view class="price-1">
- <text class="num">{{!item.giveDiscount ? (item.electricityPrice+item.servicePrice).toFixed(2)
- : (item.electricityPrice+item.discountServicePrice).toFixed(2)}}</text>
- <text class="unit " oldstyle="font-size: 14px;">
- 元/度
- </text>
- </view>
- <view class="price-2 " oldstyle="font-size: 14px;" v-if="item.giveDiscount">
- <text
- class="num">{{(item.electricityPrice+item.servicePrice).toFixed(2)}}</text>
- <text class="unit">元/度</text>
- </view>
- </view>
- <!-- 游客价格-->
- <view class="price" v-else>
- <view class="price-1">
- <text class="num">
- {{(item.electricityPrice+item.servicePrice).toFixed(2)}}</text>
- <text class="unit " oldstyle="font-size: 48rpx;">元/度</text>
- </view>
- <view class="price-3 " oldstyle="font-size: 48rpx;" v-if="item.giveDiscount">
- <text class="num1">会员</text>
- <text
- class="num">{{ (item.electricityPrice+item.discountServicePrice).toFixed(2)}}</text>
- <text class="unit ">元/度</text>
- </view>
- </view>
- <view class="free">
- <view class="fast" v-if="item.fastNum">
- <view class="fast-font">
- 快
- </view>
- <view class="num">
- {{item.fastAvailableNum}}
- </view>
- <view class="num1">
-
- /{{item.fastNum}}
- </view>
- </view>
- <view class="slow" v-if="item.slowNum">
- <view class="slow-font">
- 慢
- </view>
- <view class="num">
- {{item.slowAvailableNum}}
- </view>
- <view class="num1">
- /{{item.slowNum}}
- </view>
- </view>
- </view>
- </view>
- </view>
- </view>
- </swiper-item>
- </swiper>
- </view>
- </view>
-
-
-
- <Tabbar :spring="indexStyle.spring" :current="2" ref="tabbarMain" ></Tabbar>
- </view>
- </template>
- <script>
- import * as indexAPI from '@/apis/index.js'
- import * as api from '@/apis/site.js';
- import Tabbar from '@/components/Tabbar.vue';
- import Chargermap from '@/components/Chargermap.vue';
- import jpDropdown from '@/components/Udropdown.vue';
- import uniCombox from '@/components/uni-combox/components/uni-combox/uni-combox.vue'
- import * as WxJsApi from '@/utils/wxJsApi.js'
- import {
- newDate,parseUnixTime
-
- } from '@/utils'
- export default {
- components: {
- Chargermap,
- Tabbar,
- uniCombox,
- jpDropdown
- },
- data() {
- return {
- tagBtnAcList:[],
- personInfo: {},
- loading: false,
- viewMode: false, //列表
- inputStyle: {
- backgroundColor: 'transparent',
- "font-size": '32rpx',
- },
- defaultStation: [],
- cities: ['荆州市'],
- radiuses: ['1公里', '2公里', '5公里', '10公里', '20公里', '50公里', '100公里', '200公里', '500公里'],
- types: ['全部', '直流快充', '交流慢充'],
- stationTypes: ['全部', '公共充电桩', '个人充电桩'],
- info: {
- miles_type: [
- {
- value: '',
- text: '全部'
- },{
- distance: 1,
- text: '1公里'
- },
- {
- distance: 2,
- text: '2公里'
- },
- {
- distance: 5,
- text: '5公里'
- },
- {
- distance: 10,
- text: '10公里'
- },
- {
- distance: 20,
- text: '20公里'
- },
- {
- distance: 50,
- text: '50公里'
- },
- {
- distance: 100,
- text: '100公里'
- },
- {
- distance: 200,
- text: '200公里'
- },
- {
- distance: 500,
- text: '500公里'
- }
- ],
- obc_type: [{
- value: '',
- text: '全部'
- }, {
- value: 1,
- text: '直流快充'
- }, {
- value: 2,
- text: '交流慢充'
- }],
- obc_status: [{
- value: 0,
- text: '全部'
- }, {
- value: 1,
- text: '特价站'
- }],
- obc_voltage: [{
- value: 0,
- text: '低于700V'
- }, {
- value: 1,
- text: '700V及以上'
- }],
- obc_power: {
- minValue: 0,
- maxValue: 1000
- },
- obc_stationType: [{
- value: '',
- text: '全部'
- }, {
- value: -1,
- text: '自营站'
- }, {
- value: 1,
- text: '合作站'
- }, {
- value: 50,
- text: '个人桩'
- }]
- },
- preference: {
- miles_index: 4,
- obc_stationType_index: 0,
- obc_type_index: 0,
- obc_status_index: 0,
- obc_voltage_index: 0,
- save_preference: false,
- obc_power: {
- minValue: 0,
- maxValue: 500
- }
- },
- area: '荆州市',
- radius: '10公里',
- type: '全部',
- stationType: '全部',
- longitude: '',
- latitude: '',
- message: '',
- stationslist: [],
- stationsmap: [],
- pointTimeOut: true,
- dropdownShow: false,
- currentIndex: 0,
- carImg3span1:0,
- carImg3span2:0,
- tagspan1:true,
- tagspan2:false,
- tagspan3:false,
- indexStyle: {
- noticeBarBgColor: "#fff",
- noticeBarColor: "#FF3D00",
- backgroundClass: "background",
- spring: false,
- },
- opmap:0,
- }
- },
- onUnload() {
- //this.timeOut = false;
- this.pointTimeOut = false;
- },
- onHide() {
- //this.timeOut = false;
- this.pointTimeOut = false;
- },
- onShow() {
- if (this.$refs.tabbarMain) {
- this.$refs.tabbarMain.setcount(2);
- }
- if (!this.pointTimeOut) {
- this.pointTimeOut = true
- this.getPointTimeOut();
- }
- this.$nextTick(() => {
- this.type = this.info.obc_type[this.preference.obc_type_index].text;
- this.radius = this.info.miles_type[this.preference.miles_index].text;
- this.stationType = this.info.obc_stationType[this.preference.obc_stationType_index].text;
- if (this.viewMode) {
- this.$refs.amap.init();
- this.searchStationData()
- }
- })
- },
- onLoad(op) {
- this.spring()
- if(op.map){
- this.opmap=op.map
-
- }
- },
- onReady() {
- WxJsApi.getWxConfig(['getLocation', 'addEventListener', 'scanQRCode']).then((res) => {
- // //(res)
- }).catch(error => {
- //(res)
- })
- if (this.carhelp.getPersonInfo()) {
- // this.userId = this.carhelp.getPersonInfo().id;
- this.personInfo = this.carhelp.getPersonInfo();
- }
- this.getPointTimeOut();
- this.getChargeList()
- },
- computed: {
- prevMonthKwhBL(){
- if(this.carImg3span1>=1000){
- return false
- }
- return true
- },
- },
- methods: {
- gotoStationDetails(stationData){
-
- if(stationData.stationType==50&&stationData.fastNum==0&&stationData.slowNum==1){
- this.gotoUrl('pages/searchPile/stationAndPile/chargingPileDetails?isback=1&sid=' + stationData.id)
-
- }else{
- this.gotoUrl('pages/searchPile/stationAndPile/stationDetails?id=' + stationData.id)
- }
- },
- spring() {
- this.springShow=false;
- try{
- if(this.carhelp.getConfig().spring2025){
- var spring2025=this.carhelp.getConfig().spring2025
- var sz=spring2025.split(',')
- if(sz&&sz.length==2){
- var time1=new Date(sz[0])
- var time2=new Date(sz[1])
- var time0=new Date()
- if(time0>time1&&time0<time2){
- this.springShow=true;
- }
- }
- }
- this.$forceUpdate()
- }catch(e){
-
- }
-
- if(!this.springShow){
- return
- }
-
- this.indexStyle.noticeBarBgColor = "#C00000"
- this.indexStyle.noticeBarColor = "#FFD695"
- this.indexStyle.backgroundClass = "background-spring"
- this.indexStyle.spring = true;
-
-
- },
- tagspan1Btn(){
- this.tagspan1=!this.tagspan1
- if(this.tagspan1){
- this.preference.miles_index=4
- }else{
- this.preference.miles_index=0
- }
-
- this.close(1);
- },
- tagspan2Btn(){
- this.tagspan2=!this.tagspan2
- if(this.tagspan2){
- this.preference.obc_type_index=1
- }else{
- this.preference.obc_type_index=0
- }
-
- this.close(1);
- },
- tagspan3Btn(){
- this.tagspan3=!this.tagspan3
- if(this.tagspan3){
-
- }else{
-
- }
-
- this.close(1);
- },
- getChargeList(){
- var obj=this.carhelp.get("carhelp_getChargeList")
- var time=new Date( ).toLocaleString().substr(0,12).replace("T"," ");
- if(obj&&time==obj.time){
-
- this.carImg3span1=parseInt(obj.electricQuantity);
- this.carImg3span2=parseInt(obj.totalServiceMoney) ;
-
- console.log("carhelp_getChargeList",this.carImg3span1,this.carImg3span2)
- if(this.opmap){
- this.mapMode()
- }
- return
- }
-
- var date =new Date().getTime()-30*1000*60*60*24;
- var startDate =parseUnixTime(new Date(date),'{y}-{m}-{d}');
- if (this.carhelp.getPersonInfo()) {
- indexAPI.chargingRecordData({
- pageIndex: 1,
- pageSize:999,
- startDate: startDate,
- // endDate: this.endDate
- }).then((res) => {
-
-
- var chargeList =res.data.data;
- var num1=0;
- var num2=0;
- for(var i in chargeList){
- var obj=chargeList[i]
- if(obj.status==2){
- num1+=obj.electricQuantity
- num2+=obj.totalServiceMoney
- }
- }
- console.log(num1,num2)
- this.carImg3span1=parseInt(num1);
- this.carImg3span2=parseInt(num2) ;
-
- this.carhelp.set("carhelp_getChargeList",{
- time: time,
- electricQuantity:num1,
- totalServiceMoney:num2
- })
-
- if(this.opmap){
- this.mapMode()
- }
- // if(num2*0.4>20){
-
- // this.carImg3Bl=true;
- // }else{
- // this.carImg4Bl=true;
- // }
-
- }).catch(error => {
- uni.showToast({
- title: error,
- icon: "none"
- })
- })
- }
- },
-
- navigate() {
- //('naviage to ')
- uni.navigateTo({
- url: '/pages/search/search'
- })
- },
- isEnabled() {
- if (this.viewMode) {
- if (this.show)
- return false;
- }
- return true;
- },
- stationDetail(item) {
- if (!this.isEnabled()) {
- return;
- }
- this.gotoStationDetails(item)
- // uni.navigateTo({
- // url: '/pages/searchPile/stationAndPile/stationDetails?id=' + item.id
- // })
- },
- setCenter() {
- //('getPoint')
- WxJsApi.getLocation().then((res) => {
- this.latitude = parseFloat(res.latitude);
- this.longitude = parseFloat(res.longitude);
- //let data = {position:{latitude:latitude,longitude:longitude}};
- let posCenter = {
- longitude: this.longitude,
- latitude: this.latitude
- };
- this.$refs.amap.setCenter(posCenter);
- this.searchStationData();
- }).catch(error => {
- uni.showToast({
- title: JSON.stringify(error)
- })
- })
- // //('setCenter')
- },
- updateType2(e) {
- this.preference.obc_stationType_index = e.value;
- this.close();
- },
- swiperTransitionEnd(e) {
- },
- swiperTransition(e) {
- //
- },
- updateType(e) {
- this.preference.obc_type_index = e.value;
- this.close();
- },
- updateRadius(e) {
- this.preference.miles_index = e.value;
- this.close();
- },
- selectOBSType(index) {
- this.preference.obc_type_index = index;
- },
- selectOBSType2(index) {
- this.preference.obc_stationType_index = index;
- },
- selectOBSStatus(index) {
- this.preference.obc_status_index = index;
- },
- selectOBCVoltage(index) {
- this.preference.obc_voltage_index = index;
- },
- selectMiles(index) {
- this.preference.miles_index = index;
- },
- swiperChange(e) {
- if (!this.viewMode) {
- return
- }
- this.currentIndex = e.detail.current
- let station = this.stationsmap[this.currentIndex];
- let posCenter = {
- longitude: station.longitude,
- latitude: station.latitude
- };
- // //('currentIndex'+JSON.stringify(this.currentIndex))
- // //('currentIndex'+JSON.stringify(posCenter))
- // //('station'+JSON.stringify(station))
- let bounds = this.$refs.amap.logMapInfo();
- /*if( (posCenter.latitude<bounds.bounds.northeast.lat && posCenter.latitude>bounds.bounds.sourthwest.lat)
- && (posCenter.longitude<bounds.bounds.northeast.lng && posCenter.longitude>bounds.bounds.sourthwest.lng)
- ){
- //('bounds'+JSON.stringify(bounds));
-
- }else{
- this.$refs.amap.setCenter(posCenter);
- }*/
- this.$refs.amap.updateCharger(station);
- this.$refs.amap.setCenter(posCenter);
- },
- listMode() {
- //this.close_all();
- this.viewMode = false
- },
- mapMode() {
- //this.$refs.amap.setChargerList(this.stationslist);
- this.$refs.amap.init();
- console.log(1)
- //this.currentIndex = 0;
- //this.close_all();
- this.searchStationData()
- this.viewMode = true
- },
- reset() {
- this.tagspan1=true;
- this.tagspan2=false;
- this.tagspan3=false;
- this.preference.obc_status_index = 0;
- this.preference.obc_voltage_index = 0;
- this.preference.obc_stationType_index = 0;
- this.preference.obc_type_index = 0;
- this.preference.miles_index = 4;
- this.preference.save_preference = false;
- // this.$refs.obc_voltage.currentValue = [0,100];
- this.preference.obc_power.minValue = 0;
- this.preference.obc_power.maxValue = 500;
- this.preference.obc_power.minP = Math.floor((this.preference.obc_power.minValue / (this.info.obc_power
- .maxValue - this.info.obc_power.minValue)) * 100);
- this.preference.obc_power.maxP = Math.floor((this.preference.obc_power.maxValue / (this.info.obc_power
- .maxValue - this.info.obc_power.minValue)) * 100);
- // //('minP'+this.preference.obc_power.minP)
- // //('maxP'+this.preference.obc_power.maxP)
- //this.$refs.obc_voltage.reset(this.preference.obc_power);
- // this.$refs.obc_voltage.currentMaxValue = this.preference.obc_power[1];
- // //('reset')
- },
- close(bl) {
- if(bl){
- this.tagspan1=(this.preference.miles_index==4)
- this.tagspan2=(this.preference.obc_type_index==1)
-
- }else{
- this.updateTypeSelector('')
-
- }
- this.type = this.info.obc_type[this.preference.obc_type_index].text;
- this.radius = this.info.miles_type[this.preference.miles_index].text;
- this.stationType = this.info.obc_stationType[this.preference.obc_stationType_index].text;
- if (this.preference.save_preference) {
- this.carhelp.set('preference', this.preference)
- }
- this.$refs.uDropdown.close();
- this.searchStationData();
- },
- clickMap(obj) {
- //this.show = false;
- if (obj == null || obj.type == null) return;
- if (obj.type == 'charger') {
- if (obj.obj != null) {
- let index = this.stationsmap.findIndex(item => item.id == obj.obj.id);
- this.currentIndex = index;
- //('find Index'+index);
- }
- }
- },
- getPoint() {
- if (this.stationslist.length != 0) {
- return
- }
- WxJsApi.getLocation().then((res) => {
- this.latitude = parseFloat(res.latitude);
- this.longitude = parseFloat(res.longitude);
- this.message = res.errMsg;
- if (res.errMsg != 'getLocation:ok') {
- uni.showToast({
- title: res
- })
- } else {
- uni.showToast({
- title: "定位中..."
- })
- this.searchStationData()
- }
- }).catch(error => {
- uni.showToast({
- title: error,
- icon: "none"
- })
- })
- },
- searchStationData(obj) {
- this.tagBtnAcList=[]
- let data1 = {
- latitude: this.latitude,
- longitude: this.longitude,
- findType: "1",
- pageIndex: 1,
- pageSize: 999
- };
- if (obj) {
- data1 = {
- ...data1,
- ...obj
- }
- }
-
- data1.type = this.info.obc_type[this.preference.obc_type_index].value;
-
- if (this.info.miles_type[this.preference.miles_index].distance != null){
- data1.radius = this.info.miles_type[this.preference.miles_index].distance.toString();
- this.tagBtnAcList.push(data1.radius+"公里")
- }
-
- if(data1.type){
- this.tagBtnAcList.push(this.info.obc_type[this.preference.obc_type_index].text)
- }
- if(this.tagspan3||this.preference.obc_status_index){
- data1.special=1
- this.tagBtnAcList.push("特价站")
- }
- if (this.preference.obc_stationType_index != null) {
- var stationType = this.info.obc_stationType[this.preference.obc_stationType_index].value
- if (stationType == -1) {
- data1.platformType = "1"
- } else {
- data1.stationType = stationType
- }
- if(stationType){
- this.tagBtnAcList.push(this.info.obc_stationType[this.preference.obc_stationType_index].text)
-
- }
-
- }
- //this.currentIndex = -1;
- //data1.findType = this.viewMode?"0":"1";
- uni.showLoading({})
- if (this.carhelp.getPersonInfo()) {
- data1.openId = this.carhelp.getOpenId()
- }
- this.loading = false
- api.getChargingStationData(data1).then(res => {
- uni.hideLoading()
- this.loading = true
- this.recordsTotal = res.data.recordsTotal;
- var stationslist = res.data.data
- if (this.viewMode) {
- this.stationsmap = stationslist;
- this.$refs.amap.setChargerList(stationslist);
- // this.$refs.amap.init();
- if (this.currentIndex == -1 || this.currentIndex > stationslist.length) {
- this.currentIndex = 0
- }
- if (stationslist.length) {
- this.$refs.amap.updateCharger(stationslist[this.currentIndex]);
- }
- let posCenter = {
- longitude: this.longitude,
- latitude: this.latitude
- };
- this.$refs.amap.setCenter(posCenter);
- this.$refs.amap.calcDistances([this.longitude, this.latitude], this.stationslist)
- // this.$refs.amap.calcDistances([this.longitude, this.latitude], this.stationslist)
- } else {
- this.stationslist = stationslist;
- }
- if (this.stationslist.length == 0) {
- this.getChargingStationDetail()
- }
- }).catch(error => {
- uni.showToast({
- title: error,
- icon: "none"
- })
- })
- },
- getChargingStationDetail() {
- var defaultStation = process.car.defaultStation
- for (var item in defaultStation) {
- api.getChargingStationDetail({
- stationId: defaultStation[item]
- }).then((res) => {
- var station = res.data.station
- //this.MapLoaderthen(station)
- this.defaultStation=[]
- this.defaultStation.push(station)
- }).catch(error => {
- uni.showToast({
- title: error,
- icon: "none"
- })
- })
- }
- },
- getPointTimeOut() {
- setTimeout(() => {
- if (this.pointTimeOut) {
- this.getPoint();
- }
- }, 1000)
- },
- closeDropdown() {
- this.$refs.uDropdown.close();
- },
- close_all() {
- //this.updateTypeSelector('')
- },
- updateTypeSelector(val) {
- var sz = ["radius", "type", 'city']
- for (var i in sz) {
- if (i == val && val != '') {
- } else {
- this.$refs[sz[i]].closeSelector();
- }
- }
- //this.show = false;
- },
- mapdown() {
- //this.isReady = true;
- //this.$refs.amap.getLocation ();
- //let state = {};
- uni.getSystemInfo({
- success: (res) => {
- let scrollH = res.windowHeight; // - uni.upx2px(88) - navbarH
- let scrollW = res.windowWidth;
- this.$refs.amap.setMyStyle("height:" + (scrollH - 88 - 50) + "px;width:" + scrollW +
- "px;");
- }
- })
- },
- moveEnd(e) {
- //('moveEnd')
- this.close_all();
- let posCenter = this.$refs.amap.logMapInfo();
- ////('posCenter'+JSON.stringify(posCenter))
- if (this.latitude == e.center.lat && this.longitude == e.center.lng) {
- return
- }
- this.latitude = e.center.lat
- this.longitude = e.center.lng
- this.searchStationData();
- },
- moveStart(e) {
- //this.close_all();
- },
- onClicked(e) {
- this.close_all();
- ////('onClicked e'+JSON.stringify(e))
- },
- }
- }
- </script>
- <style lang="scss" scoped>
-
- @import "@/_theme.scss";
- .tagListSelect{
- display: flex;
- padding: 0 24rpx;
- .tagBtn{
- border-radius: 4px;
- background-color: #f2f2f2;
- color: rgba(51, 51, 51, 1);
- font-size: 28rpx;
- text-align: center;
- margin: 0 8rpx;
- padding: 2px 16rpx;
- }
- .tagBtnAc{
- background-color: rgba(225, 249, 237, 1);
- color: rgba(0, 185, 98, 1);
- }
- }
-
- .locationBtn {
- width: 30px;
- height: 30px;
- position: absolute;
- z-index: 1023;
- right: 40rpx;
- bottom: 520rpx;
- background: white;
- display: flex;
- align-items: center;
- justify-content: center;
- border: 1px solid;
- border-radius: 8px;
- }
- .ujp-navbar-main {
- display: flex;
- flex-direction: column;
- width: 100%;
- height: 100%;
- .ujp-navbar-main1 {
- display: flex;
- flex-direction: row;
- height: 100%;
- align-items: center;
- margin-top: 0rpx;
- padding-top: 0rpx;
- padding-bottom: 10rpx;
- }
- .ujp-navbar-main2 {
- display: flex;
- flex-direction: row;
- width: 100%;
- justify-content: space-between;
- align-items: center;
- }
- }
- .preference_group_item {
- padding: 15rpx;
- }
- .preference_group {
- padding-bottom: 20rpx;
- }
- .preference {
- background-color: #ffffff;
- left: 0rpx;
- // position: absolute
- }
- .preference_item {
- margin-bottom: 10rpx;
- margin-left: 20rpx;
- text-align: center;
- border-style: none;
- width: 20%;
- //height: 56rpx;
- /* line-height: 14px;*/
- }
- .content-s {
- height: 640rpx;
- overflow-y: scroll;
- text-align: left;
- }
- .preference_item_medium {
- margin-bottom: 10rpx;
- margin-left: 20rpx;
- text-align: center;
- border-style: none;
- min-width: 22%;
- //height: 56rpx;
- @include themeify {
- font-size: themed('font-size2');
- line-height: themed('font-size2');
- }
- /* line-height: 14px;*/
- }
- .preference_item_plus {
- margin-bottom: 10rpx;
- margin-left: 20rpx;
- align-items: center;
- justify-content: center;
- text-align: center;
- width: 28%;
- border-style: none;
- //height: 56rpx;
- @include themeify {
- font-size: themed('font-size2');
- line-height: themed('font-size2');
- }
- /* line-height: 14px;*/
- }
- .preference_label {
- @include themeify {
- color: themed('font_colorLabel');
- font-size: themed('font-size1');
- font-weight: themed('fontWeight');
- }
- margin-left: 20rpx;
- margin-bottom: 100rpx;
- }
- .pre-btn {
- width: 100%;
- height: 96rpx;
- z-index: 999;
- }
- .btn-1,
- .btn-2 {
- height: 96rpx;
- line-height: 96rpx;
- text-align: center;
- border-top: 1px solid rgba(225, 228, 232, 100);
- }
- .station,
- .location,
- .state1 {
- box-shadow: 0px 4rpx 12rpx 0px #008c4a33;
- }
- //定位
- .location {
- width: 91.4%;
- background-color: #ffffff;
- height: 120px;
- display: flex;
- justify-content: space-between;
- margin: 20px auto 0;
- border-radius: 8px;
- border: #F2F4F4 1px;
- .location-text {
- padding: 24px 0 0 28px;
- .text-1 {
- height: 16px;
- line-height: 16px;
- color: rgba(16, 16, 16, 100);
- font-size: 16px;
- text-align: left;
- }
- .text-2 {
- height: 17px;
- line-height: 17px;
- color: rgba(102, 102, 102, 100);
- font-size: 12px;
- text-align: left;
- margin-top: 4px;
- white-space: nowrap; //强制不换行
- text-overflow: ellipsis; //文本超出出现省略号
- overflow: hidden;
- }
- .text-view {
- display: flex;
- }
- .text-3 {
- width: 80px;
- height: 24px;
- line-height: 22px;
- border-radius: 50px;
- color: rgba(0, 185, 98, 100);
- font-size: 12px;
- text-align: center;
- border: 1px solid rgba(0, 185, 98, 100);
- margin-top: 11px;
- }
- .text-4 {
- margin-left: 10px;
- color: #ff9900;
- border: 1px solid #ff9900;
- }
- }
- .img-box {
- width: 120px;
- height: 120px;
- margin-right: 20px;
- img {
- width: 100%;
- height: 100%;
- }
- }
- }
- .carNone {
- display: flex;
- flex-direction: column;
- justify-content: center;
- align-items: center;
- img {
- width: 100%;
- height: 100%;
- }
- p {
- margin-top: -60px;
- }
- }
- .charing-slow-2 {
- margin: 0 0 20rpx 0 !important;
- // border-bottom: 1px solid rgba(238, 242, 240, 100);
- }
- .charing-slow {
- //box-shadow: 0px 4rpx 12rpx 0px #008c4a33;
- background-color: #fff;
- margin: 26rpx;
- border-radius: 16rpx;
- padding: 24rpx;
- position: relative;
- left: 0;
- right: 0;
- }
- .min-h {
- min-height: 65px;
- }
- .sign {
- display: flex;
- flex-wrap: wrap;
- margin-top: 10px;
-
- .sign-tag {
-
- height: 36rpx;
- line-height: 32rpx;
- border-radius: 8rpx;
- //background-color: rgba(255, 255, 255, 100);
- //color: rgba(255, 139, 0, 100);
- font-size: 10px;
- text-align: center;
- //border: 1px solid rgba(255, 139, 0, 100);
- padding: 0 8rpx;
- margin-right: 8rpx;
- margin-bottom: 8rpx;
- }
- .sign-0 {
- background: linear-gradient(89.4deg, rgba(129, 97, 255, 1) 2.8%, rgba(169, 147, 255, 1) 98.02%);
- color: rgba(255, 255, 255, 1);
- //padding: 0 10rpx;
- //border: 1px solid rgba(255, 139, 0, 100);
- }
- .sign-5 {
- background: linear-gradient(89.4deg, rgba(255, 61, 0, 1) 2.8%, rgba(255, 134, 0, 1) 98.02%);
- color: rgba(255, 255, 255, 1);
- //padding: 0 10rpx;
- }
- .sign-1 {
- background-color: rgba(255, 255, 255, 100);
- color: rgba(255, 139, 0, 100);
- border: 1px solid rgba(255, 139, 0, 100);
- }
- .sign-2 {
- background-color: rgba(255, 255, 255, 100);
- color: rgba(153, 153, 153, 100);
- border: 1px solid rgba(204, 204, 204, 100);
- }
- .sign-3 {
- background-color: rgba(255, 255, 255, 100);
- color: #8161FF;
- border: 1px solid #8161FF;
- }
- .sign-4 {
- background-color: rgba(255, 255, 255, 100);
- color: #00B962;
- border: 1px solid #00B962;
- }
- }
- .address {
-
- width: 100%;
- line-height: 20px;
- display: flex;
- justify-content: space-between;
- .name {
- font-size: 36rpx;
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- }
-
- @include themeify {
- font-size: themed('font-size5');
- line-height: themed('font-size7');
- }
- /* font-size: 11px;*/
- font-weight: 600;
- color: #101010;
- }
- .price-free {
- width: 100%;
- display: flex;
- align-items: center;
- justify-content: space-between;
-
- }
- .distance {
- color: rgba(102, 102, 102, 100);
- text-align: end;
- font-size: 30rpx;
- width: 180rpx;
- min-width: 180rpx;
-
- .iconfont {
- font-size: 12px;
- margin-right: 2px;
- }
- }
- .price {
- display: flex;
- align-items: center;
- .price-1 {
- line-height: 40rpx;
- .num {
- //color: rgba(255, 98, 0, 100);
- color: rgba(16, 16, 16, 1);
- font-size: 40rpx;
- //height: 44rpx;
- font-weight: bold;
- text-align: left;
- font-family: Roboto-medium;
- }
- .unit {
- // font-size: 12px;
- color: rgba(119, 119, 119, 1);
- font-size: 28rpx;
- text-align: left;
- font-family: AlibabaPuHui-regular;
- margin-left: 8rpx;
- }
- }
- .price-2 {
- color: rgba(153, 153, 153, 100);
- margin-left: 6rpx;
- text-decoration: line-through;
- font-size: 24rpx
- }
- .price-3{
- display: flex;
- background: linear-gradient(93.02deg, rgba(59,182,254,1) 39.4%,rgba(0,185,98,1) 92.96%);
- border-radius: 4px;
- height: 16px;
- min-height: 16px;
- margin-left: 32rpx;
- // align-items: center;
- line-height: 16px;
- .num1{
- img{
- // width: 88rpx;
- //width: 34px;
- height: 16px;
- }
- ::v-deep .u-image{
- min-height: 16px;
-
- }
- }
- .num{
- padding: 0 12rpx 0 8rpx;
- color: rgba(255, 255, 255, 1);
- font-size: 11px;
- display: flex;
- align-items: center;
-
- }
- }
- .price-3-yue{
- background: linear-gradient(88.81deg, rgba(219,199,167,1) 1.89%,rgba(194,154,93,1) 98%);
- }
-
- }
- .free {
- display: flex;
- align-items: center;
- .slow,
- .fast {
- display: flex;
- .sp-font {
- width: 40rpx;
- height: 40rpx;
- line-height: 40rpx;
- border-radius: 4px;
- background-color: #7a68f6;
- color: #fff;
- font-size: 28rpx;
- text-align: center;
- margin-right: 2rpx;
- }
- .fast-font {
- width: 40rpx;
- height: 40rpx;
- line-height: 40rpx;
- border-radius: 4px;
- //background-color: rgba(186, 240, 215, 100);
- background-color: #1677FF;
- color: rgba(255, 255, 255, 1);
- //color: rgba(0, 130, 69, 100);
- font-size: 28rpx;
- text-align: center;
- margin-right: 2rpx;
- }
- .slow-font {
- width: 40rpx;
- height: 40rpx;
- line-height: 40rpx;
- border-radius: 4px;
- // background-color: rgba(226, 226, 226, 100);
- // color: rgba(128, 128, 128, 100);
- background-color: #00B962;
- color: rgba(255, 255, 255, 1);
- font-size: 28rpx;
- text-align: center;
- margin-right: 2rpx;
- }
- .num {
- font-size: 32rpx;
- color: #666;
- line-height: 40rpx;
- }
- .num1 {
- font-size: 32rpx;
- color: #bbb;
- line-height: 40rpx;
- }
- }
-
-
- .slow {
- margin-left: 16rpx;
- }
- }
- .chargerCard {
- z-index: 999;
- background-color: #fff;
- margin: 0 24rpx;
- border-radius: 16rpx;
- // overflow: hidden;
- bottom: 68px;
- left: 0;
- right: 0;
- position: fixed;
- // height: 380rpx;
- // @include themeify{
- // height:themed('cardHeight');
- // }
- }
- .charing-new {
- display: flex;
- .new-img {
- .img1 {
- width: 120rpx;
- height: 120rpx;
- border-radius: 4px;
- }
- .img2Class{
- top: -134rpx;
- left: -16rpx;
- position: relative;
- border-radius: 4px 4px 4px 0px;
- color: #fff;
- padding: 2px 6px;
- font-size: 10px;
- line-height: 10px;
- height: 1px;
- background-blend-mode: soft-light;
- .img2 {
-
- width: 56rpx;
- height: 32rpx;
- min-width: 28px;
- min-height: 16px;
- //border-radius: 4px;
- }
- }
- }
- .new-body {
- width: 75%;
- margin-left: 24rpx;
- //max-min-width: 65%;
- .sign {
- margin-top: 12rpx;
- }
- }
- }
- ::v-deep .springclass{
- .u-tabbar__content__item{
- .u-icon__img {
- width:56rpx !important;
- height:56rpx !important
- }
- }
- .u-tabbar__content__item:nth-child(3){
- .u-icon__img {
- width:72rpx !important;
- height:72rpx !important
- }
- }
- }
- </style>
|