123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845 |
- <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.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;
- }
- /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;
- }
- }
- }
- /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>
|