123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634 |
- <template>
- <view>
- <ujp-navbar title="站点详情">
- <view slot="right" style="margin-right: 10px;" @click="openModalBl=true">
- <view class="iconfont service">
- 
- </view>
- </view>
- </ujp-navbar>
- <u-alert-tips type="warning" @click="noticeShow=false" icon="volume-up-fill"
- v-show="noticeShow&&stationDetail.station&&stationDetail.station.maxSoc&&stationDetail.station.maxSoc!=100"
- :descStyle="{
- fontSize: '28rpx',
- color: '#ef7a30',
- }" :show-icon="true"
- :description="'【充电SOC限制】为保障充电安全,并积极响应主管部门对新能源汽车充电安全工作,从即日起,该站充电设施SOC上限阈值为'+(stationDetail&&stationDetail.station&&stationDetail.station.maxSoc?stationDetail.station.maxSoc:'')+'%,即充电量达到满充电量'+(stationDetail&&stationDetail.station&&stationDetail.station.maxSoc?stationDetail.station.maxSoc:'')+'%时,充电设施将自动结束充电。'">
- </u-alert-tips>
- <u-notice-bar mode="vertical" font-size="36" :more-icon="true" @click="noticeShow=true"
- v-show="!noticeShow&&stationDetail.station&&stationDetail.station.maxSoc&&stationDetail.station.maxSoc!=100"
- :list="['【充电SOC限制】为保障充电安全,并积极响应主管部门对新能源汽车充电安全工作,从即日起,该站充电设施SOC上限阈值为'+(stationDetail&&stationDetail.station&&stationDetail.station.maxSoc?stationDetail.station.maxSoc:'')+'%,即充电量达到满充电量'+(stationDetail&&stationDetail.station&&stationDetail.station.maxSoc?stationDetail.station.maxSoc:'')+'%时,充电设施将自动结束充电。']">
- </u-notice-bar>
- <view class="head" v-if="stationDetail.station!=null">
- <img @click="previewImage(stationDetail.station.image)" v-if="stationDetail.station.image"
- :src="stationDetail.station.image" mode=""></img>
- <img v-else src="@/assets/img/chargesite_default.png" mode=""></img>
- </view>
- <!-- 站点详情 -->
- <view class="stationDetail">
- <view class="stationDetailHead">
- <!-- 标题 -->
- <view class="title">
- {{stationDetail.station.name}}
- </view>
- <view v-if="quickChargeReduceMethod1(stationDetail.station)&&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>
- 快充订单满{{stationDetail.station.quickChargeDegree}}度服务费{{discountRatio10(stationDetail.station.quickChargeDiscountRatio)}}折
- </view>
- <view v-if="quickChargeReduceMethod2(stationDetail.station)&&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="tags sign">
- <view class="tags1 sign-1"
- v-if="station.giveDiscount&&station.discountRatio&&station.discountRatio!=100">
- 会员{{discountRatio10(station.discountRatio)}}折</view>
- <view class="tags1 sign-3" v-if="station.category=='超充'">160kW超充站</view>
- <view class="tags1 sign-4" v-if="stationDetail.station.nightLowPriceEnabled">
- 夜间超低价</view>
- <view class="tags1 sign-2" v-if="stationDetail.station.platformType==1">自营站</view>
- <view class="tags1 sign-2" v-if="stationDetail.station.tagList.length != 0"
- v-for="(tagName,tagIndex) in stationDetail.station.tagList"
- :style="'border: 1px solid '+tagNameBy(tagName,1)+';color:'+tagNameBy(tagName,1)"
- :key="tagIndex">{{tagNameBy(tagName,0)}}</view>
- </view>
- <u-line color="#EEF2F0" margin="24rpx 0"></u-line>
- <!-- 定位 -->
- <template v-if="stationDetail&&stationAddressList&&stationAddressList.length">
- <view class="position" v-for="(item ,i) in stationAddressList" :key="i">
- <view class="block">
- {{item.areaTitle}}
- </view>
- <view class="address">
- {{item.address}}
- </view>
- <view class="distance" @click="map(item)">
- <view class="distance-icon">
- <img src="../../../assets/img/riFill-navigation-fill@1x.png" alt="">
- </view>
- <view class="distance-text">
- {{item.distance!=null&&item.distance>0.1 ? item.distance.toFixed(1)+'公里':'小于100米'}}
- </view>
- </view>
- </view>
- </template>
- <view class="position" v-else>
- <view class="address">
- {{stationDetail.station.address}}
- </view>
- <view class="distance" @click="map()">
- <view class="distance-icon">
- <img src="../../../assets/img/riFill-navigation-fill@1x.png" alt="">
- </view>
- <view class="distance-text" v-if="stationDetail.station.distance">
- {{stationDetail.station.distance!=null&&stationDetail.station.distance>0.1 ? stationDetail.station.distance.toFixed(1)+'公里':'小于100米'}}
- </view>
- </view>
- </view>
- </view>
- <view class="stationDetailBody">
- <!-- 充电桩类型 -->
- <view class="type" v-if="numShowBl">
- <view class="type-box" v-if="stationDetail.station.superNum" :class="{
- 'checked':flag=='super',
- numShowview2:(stationDetail.station.superNum==0||stationDetail.station.slowNum==0||stationDetail.station.fastNum-stationDetail.station.superNum==0)
- }" @click="flag!='super'?flag='super':flag=''">
- <view class="box-top">
- <view class="super">
- 超
- </view>
- <view class="pile-type">
- 直流超充
- </view>
- </view>
- <view class="pile-amount">
- <view class="super">
- {{stationDetail.station.superAvailableNum}}空闲
- </view>
- <view class="cut">
- |
- </view>
- <view class="sum">
- {{stationDetail.station.superNum}}总
- </view>
- </view>
- <!-- 尖角 -->
- <view class="angle" v-if="flag=='super'">
- </view>
- </view>
- <view class="type-box" v-if="stationDetail.station.fastNum-stationDetail.station.superNum" :class="{
- 'checked':flag=='fast',
- numShowview2:(stationDetail.station.superNum==0||stationDetail.station.slowNum==0||stationDetail.station.fastNum-stationDetail.station.superNum==0),
- numShowviewleft:stationDetail.station.slowNum
- }" @click="flag!='fast'?flag='fast':flag=''">
- <view class="box-top">
- <view class="fast">
- 快
- </view>
- <view class="pile-type">
- 直流快充
- </view>
- </view>
- <view class="pile-amount">
- <view class="fast">
- {{stationDetail.station.fastAvailableNum-stationDetail.station.superAvailableNum}}空闲
- </view>
- <view class="cut">
- |
- </view>
- <view class="sum">
- {{stationDetail.station.fastNum-stationDetail.station.superNum}}总
- </view>
- </view>
- <!-- 尖角 -->
- <view class="angle" v-if="flag=='fast'">
- </view>
- </view>
- <view class="type-box" v-if="stationDetail.station.slowNum" :class="{
- 'checked':flag=='slow',
- numShowview2:(stationDetail.station.superNum==0||stationDetail.station.slowNum==0||stationDetail.station.fastNum-stationDetail.station.superNum==0)
- }" @click="flag!='slow'?flag='slow':flag=''">
- <view class="box-top">
- <view class="slow">
- 慢
- </view>
- <view class="pile-type">
- 交流慢充
- </view>
- </view>
- <view class="pile-amount">
- <view class="free">
- {{stationDetail.station.slowAvailableNum}}空闲
- </view>
- <view class="cut">
- |
- </view>
- <view class="sum">
- {{stationDetail.station.slowNum}}总
- </view>
- </view>
- <!-- 尖角 -->
- <view class="angle" v-if="flag=='slow'">
- </view>
- </view>
- </view>
- <!-- 充电桩状态 -->
- <view class="pile-state">
- <view v-if="quickChargeReduceMethod1(stationDetail.station)&&personInfo&&personInfo.userType==2"
- style="margin-bottom: 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>
- 快充订单满{{stationDetail.station.quickChargeDegree}}度服务费{{discountRatio10(stationDetail.station.quickChargeDiscountRatio)}}折
- </view>
- <view v-if="quickChargeReduceMethod2(stationDetail.station)&&personInfo&&personInfo.userType==2"
- style="margin-bottom: 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="statistics">
- <view class="free">
- {{pilestate.num1}} 空闲
- </view>
- <view class="cut">
- |
- </view>
- <view class="busy">
- {{pilestate.num2}} 占用
- </view>
- <view class="cut">
- |
- </view>
- <view class="malfunction">
- {{pilestate.num3}}故障
- </view>
- </view>
- <!-- 充电枪详情 -->
- <view class="gun-details">
- <view class="item" v-for="(item,index) in stationDetailDevices" v-show="getShow(item)" @click="test(item)"
- :key="index">
- <view v-if="item.deviceAddressShow==1" class="deviceAddressShow deviceAddressShow1">
- <img src="@/assets/img/9-4/标题装饰左.svg">
- {{item.showTitle}}
- <img src="@/assets/img/9-4/标题装饰右.svg">
- </view>
- <view v-if="item.deviceAddressShow==2" class="deviceAddressShow deviceAddressShow2">
- <img src="@/assets/img/9-4/标题装饰左.svg">
- {{item.showTitle}}
- <img src="@/assets/img/9-4/标题装饰右.svg">
- </view>
- <view class="itemShowOpen">
-
- <view class="itemView">
- <!-- 充电桩状态 -->
- <view class="state" v-if="item.device.online" :class="{
- //预约
- 'charging a ':item.enableShare&&!item.enableShareWithinTime&&item.device.online,
-
- 'charging b ':item.enableShare&&item.workStatus!=0,
- 'charging c ':item.workStatus==2,
- //插枪
- 'off-line a ':(item.workStatus == 0&&item.insertStatus&&stationDetail.station.stationType!=50),
- 'off-line b':item.isRed&&item.workStatus!=2,
-
-
-
- }">
- <view class="state-icon">
- <img src="../../../assets/img/pileIcon.svg" alt="">
- </view>
- <view class="state-text"
- v-if="item.workStatus == 0&&item.insertStatus&&stationDetail.station.stationType!=50">
- 已插枪
- </view>
- <view class="state-text" v-else>
- <span v-if="item.workStatusText.length<4">{{item.workStatusText}}</span>
- <span v-else-if="item.workStatusText.length==4"
- style=" display: flex; flex-direction: column;">
- <span>{{item.workStatusText.substring(0,2)}}</span>
- <span>{{item.workStatusText.substring(2)}}</span>
- </span>
- <span v-else>{{item.workStatusText}}</span>
- </view>
- </view>
- <view class="state off-line" style="width: 96rpx;" v-else>
- <view class="state-icon">
- <img src="../../../assets/img/pileIcon.svg" alt="">
- </view>
- <view class="state-text ">
- 离线
- </view>
- </view>
- <!-- 详细信息 -->
- <view class="infos">
- <view class="gun-name">
- <span
- v-if="item.sortNo">{{item.sortNo}}号<text>/</text></span>{{item.device.name}}{{item.device.gunList.length>1?'枪'+channelNoShow(item.channelNo,item.device.manufacturer,item.customNo):''}}
- </view>
- <groupItem v-if="!item.device.groupName"
-
- :item="item" :openlist="openlist" @setOpen="setOpen" ></groupItem>
-
- </view>
- </view>
-
-
-
- <template
- v-if="!item.isRed&&item.enableShare&&item.enableShareWithinTime&&item.device.online">
- <!-- 充电按钮 -->
- <view class="charge" v-if="!enableAppointmentBl(item)"
- @click="book(item,item.isAppointment&&!item.insertStatus)"
- :class="item.isAppointment&&!item.insertStatus?'':'not-open-tag'">
- 预约
- </view>
- <!-- 充电按钮 -->
- <view class="charge"
- :style="item.haveLock?'background-color:#009ED7;':''"
- @click="book2(item,item.enableShare&&item.enableShareWithinTime)" :class="{
- 'not-open-tag':!(item.enableShare&&item.enableShareWithinTime),
- 'not-enable-Appointment':enableAppointmentBl(item)
- }">
- {{item.haveLock&&item.lockStatus==1?'下降地锁':'充电'}}
- </view>
- </template>
- <!-- 电量 -->
- <view class="electric-quantity" v-if="item.workStatus == 2 ">
- <img src="../../../assets/img/electricQuantity.svg" alt="">
- <view class="" v-if="true" :class="{
- percentage:item.soc,
- percentage2:!item.soc
- }">
- {{item.soc?item.soc+'%':'充电中'}}
- </view>
- <view v-else class="percentage2">
- 充电中
- </view>
- </view>
-
- </view>
- <view class="item-tip" v-if="item.device.groupName">
- <groupItem :item="item" :openlist="openlist" @setOpen="setOpen" ></groupItem>
- </view>
-
- <view class="open-time" v-show="openlist&&openlist.get(item.id)">
- <table>
- <tr v-if="pricesInfoCurrent">
- <td colspan="2">当前电价:
- <b style="color:#080808;margin-left: 4px;"
- v-if="(station&&station.giveDiscount||pricesInfoCurrent2.discountServicePrice)&&(!personInfo||personInfo.userType==1)">{{((pricesInfoCurrent.servicePrice*1000+pricesInfoCurrent.electricityPrice*1000)/1000).toFixed(2)}}元/度</b>
- <b v-else
- style="color:#080808;margin-left: 4px;">{{pricesInfoCurrent.costPrice.toFixed(2)}}元/度</b>
- </td>
- </tr>
- <tr v-if="item.device.deviceAddress">
- <td colspan="2">充电桩地址:
- <span style=" margin-left: 4px;">{{item.device.deviceAddress}}</span>
- </td>
- </tr>
- <tr>
- <td>开放充电时段:</td>
- <td
- v-if="!item.enableShare||!(item.sharedWeekSettingList&&item.sharedWeekSettingList.length)">
- 充电功能未开放</td>
- <template v-else v-for="(time,index) in item.sharedWeekSettingList">
- <td :key="index" v-if="index==0">{{time.startTime}}-{{time.endTime}}</td>
- </template>
- </tr>
- <template v-if="item.enableShare"
- v-for="(time,index) in item.sharedWeekSettingList">
- <tr :key="index" v-if="index==1">
- <td></td>
- <td>{{time.startTime}}-{{time.endTime}}</td>
- </tr>
- </template>
- <tr>
- <td>开放预约时段:</td>
- <td v-if="enableAppointmentBl(item)">
- 预约功能未开放
- </td>
- <template v-else v-for="(time,index) in item.reserveWeekSettingList">
- <td :key="index" v-if="index==0">{{time.startTime}}-{{time.endTime}}</td>
- </template>
- </tr>
- <template v-if="item.enableAppointment"
- v-for="(time,index) in item.reserveWeekSettingList">
- <tr :key="index" v-if="index==1">
- <td></td>
- <td>{{time.startTime}}-{{time.endTime}}</td>
- </tr>
- </template>
- </table>
- </view>
- </view>
- </view>
- </view>
- <!-- 价格信息 -->
- <view class="price-infos" v-if="pricesInfoCurrent2">
- <view class="title">
- 价格信息<text>({{pricesInfoCurrent.startTime==pricesInfoCurrent2.startTime?'当前时段 ':''}}{{pricesInfoCurrent2.startTime}}-{{pricesInfoCurrent2.endTime}})</text>
- </view>
- <view class="classify"
- v-if="(!personInfo||personInfo.userType==1)&&station&&(station.giveDiscount||(pricesInfoCurrent2.discountServicePrice))">
- <view class="item item-visitor">
- <view class="visitor">
- 充电价格
- </view>
- <view class="unit-price">
- <text>{{(pricesInfoCurrent2.servicePrice+pricesInfoCurrent2.electricityPrice).toFixed(2)}}</text>
- <text class="unit">元/度</text>
- </view>
- </view>
- <view class="item item-member">
- <view class="visitor">
- 会员价
- </view>
- <view class="unit-price">
- <text>{{pricesInfoCurrent2.costPrice.toFixed(2)}}</text>
- <text class="unit">元/度</text>
- <text class="register" @click="gotoUrl('pages/login/login')">注册</text>
- </view>
- </view>
- </view>
- <view class="classify" v-else-if="stationDetail.station&&stationDetail.station.tagList&&
- (stationDetail.station.tagList.indexOf('月卡')!=-1
- ||stationDetail.station.tagList.indexOf('6折卡')!=-1
- ||stationDetail.station.tagList.indexOf('自营站')!=-1)">
- <view class="item item-member-vip">
- <view class="visitor">
- 充电价格
- </view>
- <view class="unit-price">
- <text>{{pricesInfoCurrent2.costPrice.toFixed(2)}}</text>
- <text class="unit">元/度</text>
- </view>
- <view class="unit-price2"
- v-if="(personInfo&&personInfo.userType==2)&&(station.giveDiscount||(pricesInfoCurrent2.discountServicePrice))">
- 原价:{{(pricesInfoCurrent2.electricityPrice+pricesInfoCurrent2.servicePrice).toFixed(2)}}元/度
- </view>
- </view>
- <view class="item item-vip" v-if="userId&&userCardBool&&userCard.classify==1">
- <view class="visitor">
- 折扣卡会员价
- </view>
- <view class="unit-price">
- <text>{{(pricesInfoCurrent2.electricityPrice).toFixed(2)}}</text>
- <text class="unit">元/度</text>
- <view class="unit-price3">
- 已开通
- </view>
- </view>
- </view>
- <view class="item " v-if="!userCardBool" :class="{
- 'item-vip2':prevMonthKwhBL,
- 'item-vip':!prevMonthKwhBL
- }">
- <template v-if="prevMonthKwhBL">
- <view class="visitor">
- 6折卡会员价
- </view>
- <view class="unit-price">
- <text>{{showNumJP(pricesInfoCurrent2.electricityPrice+(pricesInfoCurrent2.servicePrice*0.6))}}</text>
- <text class="unit">元/度</text>
- <text class="register"
- @click="gotoUrl('pages/discountCard/productDetails')">开通</text>
- </view>
- </template>
- <template v-else>
- <view class="visitor">
- 月卡价格
- </view>
- <view class="unit-price">
- <text>{{(pricesInfoCurrent2.electricityPrice).toFixed(2)}}</text>
- <text class="unit">元/度</text>
- <text class="register" v-if="userId&&!userCardBool"
- @click="gotoUrl('pages/monthlyCardActivity/monthlyCardBuy')">开通</text>
- <text class="register" v-if="userId&&userCardBool">
- 已开通
- </text>
- </view>
- </template>
- </view>
- <view class="item item-vip3" :class="{
- 'discount-card-4':userCard.cardType==4
- }" v-if="userId&&userCardBool&&userCard.classify==2">
- <view class="visitor" v-if="userCard.cardType==4">
- {{userCard.monthlyRentName}}
- </view>
- <view class="visitor" v-else>
- 服务费{{userCard.serviceFeeDiscountRate/10}}折卡会员价
- </view>
- <view class="unit-price">
- <view class="unit"><span>{{thisendTime(userCard.endTime)}} 到期</span></view>
- <view class="unit" v-if="userCard.chargeDegreeLimit">
- <span>已用{{userCard.chargedDegree?userCard.chargedDegree.toFixed(0):0.00}}度 /
- 共{{userCard.chargeDegreeLimit}}度</span></view>
-
- <view class="unit" v-if="userCard.chargeDegreeLimit==0&&userCard.saveInformation">
- <span>已用{{userCard.saveInformation.num}}次 /
- 共省{{userCard.saveInformation.saveMoney}}元</span>
- </view>
- <u-line-progress :show-percent="false" active-color="#2979ff"
- :percent="thispercent(userCard)"></u-line-progress>
- </view>
- </view>
- </view>
- <view class="classify" v-else>
- <view class="item item-member-all">
- <view class="visitor">
- 充电价格
- </view>
- <view class="unit-price">
- <text>{{pricesInfoCurrent2.costPrice.toFixed(2)}}</text>
- <text class="unit">元/度</text>
- </view>
- <view class="unit-price2"
- v-if="(personInfo&&personInfo.userType==2)&&(station.giveDiscount||(pricesInfoCurrent2.discountServicePrice))">
- 原价:{{(pricesInfoCurrent2.electricityPrice+pricesInfoCurrent2.servicePrice).toFixed(2)}}元/度
- </view>
- </view>
- </view>
- <!-- 提示 -->
- <p class="hint">*该价格为含服务费价格,实际价格以扫码价格为准。</p>
- <!-- 表格 -->
- <view class="chat-box" v-if="pricesInfoCurrent2.electricityPrice">
- <view class="chat-infos">
- <view class="item">
- <view class="name">
- <view class="icon icon1">
- </view>
- <view class="text">
- 时段
- </view>
- </view>
- <view class="value">
- {{pricesInfoCurrent2.startTime}}-{{pricesInfoCurrent2.endTime}}
- </view>
- </view>
- <view class="item">
- <view class="name">
- <view class="icon icon2">
- </view>
- <view class="text">
- 电价
- </view>
- </view>
- <view class="value">
- {{pricesInfoCurrent2.electricityPrice.toFixed(2)}}元/度
- </view>
- </view>
- <view class="item" style="margin-bottom:0">
- <view class="name">
- <view class="icon icon3">
- </view>
- <view class="text">
- 服务费
- </view>
- </view>
- <view class="value" v-if="station">
- <span
- v-if="(personInfo&&personInfo.userType==2)&&(station.giveDiscount||(pricesInfoCurrent2.discountServicePrice))">
- {{pricesInfoCurrent2.discountServicePrice.toFixed(2)}}元/度
- </span>
- <span v-else>{{pricesInfoCurrent2.servicePrice.toFixed(2)}}元/度</span>
- </view>
- </view>
- <view class="item"
- v-if="(personInfo&&personInfo.userType==2)&&station&&(station.giveDiscount||(pricesInfoCurrent2.discountServicePrice))">
- <view class="name">
- <view class=" ">
- </view>
- <view class="text">
- </view>
- </view>
- <view class="value value2">
- <span>(原价:{{pricesInfoCurrent2.servicePrice.toFixed(2)}}元/度)</span>
- </view>
- </view>
- </view>
- </view>
- <view class="chat_hhh" v-if="pricesInfoCurrent2.electricityPrice">
- <view class="chatTime" v-for="(item,i) in pricesInfo" :style="'width:'+getW(item)" :key="i"
- :class="{
- current1: pricesInfoCurrent.startTime==item.startTime,
-
- current2: pricesInfoCurrent2.startTime==item.startTime,
- }" @click="pricesInfoCurrent2=item">
- <template v-if="station">
- <template
- v-if="(personInfo&&personInfo.userType==2)&&(station.giveDiscount||(item.discountServicePrice))">
- <span class="chats1"
- :style="'height:'+getH(item.discountServicePrice)">{{item.discountServicePrice}}</span>
- </template>
- <template v-else>
- <span class="chats1"
- :style="'height:'+getH(item.servicePrice)">{{item.servicePrice}}</span>
- </template>
- </template>
- <span class="chats2" :style="'height:'+getH(item.electricityPrice)">
- <span>{{item.electricityPrice}}</span>
- <span class="chats0" v-if="pricesInfoCurrent.startTime==item.startTime">
- <span>当前</span>
- <span>时段</span>
- </span>
- <span class="chats9" v-else>
- <span>当前</span>
- <span>时段</span>
- </span>
- </span>
- </view>
- </view>
- <view class="chat_hhh_time" v-if="pricesInfoCurrent2.electricityPrice">
- <span>00:00</span>
- <span>12:00</span>
- <span>24:00</span>
- </view>
- </view>
- <!-- 附加信息 -->
- <view class="overhead-infos"
- v-if="stationDetail&&(stationDetail.station.describe||stationDetail.station.parkingDescription)">
- <view class="item" v-if="stationDetail.station.describe">
- <view class="title">
- 营业时间
- </view>
- <view class="value">
- {{stationDetail.station.describe}}<text></text>
- </view>
- </view>
- <u-line margin="24rpx 0 " color="#F0F0F2"></u-line>
- <view class="item" v-if="stationDetail.station.parkingDescription">
- <view class="title">
- 停车费
- </view>
- <view class="value"
- @click="()=>{if(stationDetail.station.parkingSimpleDescription){parkingTips=true}}">
- {{stationDetail.station.parkingDescription}}
- <text v-if="stationDetail.station.parkingSimpleDescription"><u-icon name="arrow-right"
- color="#999999" size="28"></u-icon></text>
- </view>
- </view>
- </view>
- </view>
- </view>
- <u-modal v-model="parkingTips" title="新能源汽车停车费说明" :title-style="{fontSize: '40rpx'}" confirm-text="知道了"
- confirm-color="#53b56b">
- <view style="padding: 15px;" v-html="stationDetail.station.parkingSimpleDescription"></view>
- </u-modal>
- <u-modal v-model="show" confirm-text="去看空闲桩" cancel-text="查看处罚规则" confirm-color="#00B962">
- <view class="" style="padding: 15px 20px;">
- 因您近期存在预约超时未前往充电的违约行为,平台为保证每位车主的合理权益,
- 对您作出停用预约充电功能1天的处罚。
- 您可于<span style="color: #00b962;">2022年6月20日09时45分</span>后使用此功能。
- </view>
- </u-modal>
- <u-modal v-model="openModalBl" @confirm="confirmPhoneBl" confirm-text="拨打电话" confirm-color="#606266"
- :show-cancel-button="true" ref="uModal" :asyncClose="true" title="客服电话" :content="consumerPhone"
- :content-style="{fontSize: '24px',color: '#101010'}"></u-modal>
- </view>
- </template>
- <script>
- import * as indexAPI from '@/apis/index.js'
- import * as WxJsApi from '@/utils/wxJsApi.js'
- import MapLoader from '@/utils/AMap'
- import * as API from '@/apis/chargeProcess.js'
- import * as api from "@/apis/site.js"
- let _self;
- import {
- newDate,
- parseUnixTime,daysDistance
- } from '@/utils'
- import groupItem from '@/components/GroupItem.vue'
-
- export default {
- components: {
- groupItem
- },
- data() {
- return {
- openModalBl: false,
- showNt: false,
- showNtStep: 0,
- showNtValue: 30,
- pricesInfoCurrent: null,
- pricesInfoCurrent2: null,
- noticeShow: false,
- parkingTips: false,
- stationId: '',
- pricesInfo: [],
- devicesId: '',
- elderMode: false,
- userId: '',
- userCard: null,
- show: false,
- showtips: true,
- list: [{
- "name": "充电桩"
- },
- {
- "name": "价格说明"
- }
- ],
- current: 0,
- currentPos: {
- /* name:'荆鹏软件园充电站',
- longitude: 112.28468,
- latitude: 30.307094,*/
- },
- stationAddressList: [],
- station: {},
- stationDetail: {
- devices: [],
- slowPrice: null,
- station: {},
- fastPrice: null
- },
- openlist: null,
- personInfo: null,
- consumerPhone: "",
- info: {
- station: {
- time: '周一到周日 07:00~22:00(节假日除外)',
- /* id:1,
- name:'荆鹏软件园充电站',
- longitude: 112.28468,
- latitude: 30.307094,
- type:'交流慢充',
- distance:0.1,
- address:'湖北省荆州市沙市区江津东路附155号'*/
- },
- prices: [
- ],
- park: {
- price: '2小时免费停车'
- },
- uuid: '',
- setIntervalBool: true,
- priceList: [],
- platform: '',
- personInfo: {},
- consumerPhone: "",
- devices: {
- idleNum: 1,
- total: 6,
- items: [
- ]
- },
- },
- carImg3span1: 0,
- carImg3span2: 0,
- canUse: false,
- flag: "",
- pilestate: {}
- }
- },
- onLoad(op) {
- uni.getSystemInfo({
- success: (res) => {
- // console.log("----------")
- // console.log(res.platform)
- this.platform = res.platform
- }
- })
- _self = this;
- // document.getElementsByTagName('body')[0].style.setProperty('--mode',1)
- if (op.jg == '1') {
- this.current = 1;
- }
- if (op != null) {
- if (op.id != null && op.id != undefined) {
- this.stationId = op.id;
- this.getPriceList(op.id)
- this.getChargingStationDetail()
- }
- }
- },
- onHide() {
- this.setIntervalBool = false
- if (this.uuid) {
- clearInterval(this.uuid)
- this.uuid = '';
- }
- },
- onShow() {
- this.setIntervalBool = true
- if (!this.uuid) {
- this.uuid = setInterval(() => {
- if (this.setIntervalBool) {
- this.getChargingStationDetail(true)
- }
- }, 5 * 1000)
- }
- if (this.carhelp.getPersonInfo()) {
- this.getHomePage()
- }
- //this.getHomePage()
- },
- onUnload() {
- if (this.uuid) {
- clearInterval(this.uuid)
- }
- },
- onReady() {
- var consumerPhone = "400-8899-619"
- // img="https://yktwechat.xiaoxinda.com/config/xxd2021.jpg"
- if (consumerPhone) {
- this.consumerPhone = consumerPhone
- }
- this.elderMode = this.carhelp.get('getElderModeClass') == '长辈模式';
- if (this.elderMode)
- this.theme('elder')
- else
- this.theme('standard')
- if (this.carhelp.getPersonInfo()) {
- this.userId = this.carhelp.getPersonInfo().id;
- this.personInfo = this.carhelp.getPersonInfo()
- //this.userCard = this.carhelp.getPersonInfoPlus().userCard
- this.getHomePage()
- }
- WxJsApi.getWxConfig(['getLocation', 'openLocation', 'addEventListener', 'scanQRCode']).then((res) => {
- // //(res)
- }).catch(error => {
- //(res)
- })
- },
- computed: {
- prevMonthKwhBL() {
- if (this.carImg3span1 >= 1000) {
- return false
- }
- return true
- },
- userCardBool() {
- if (this.userCard) {
- var date = new Date().getTime()
- var reg = new RegExp('-', 'gi')
- var str = this.userCard.endTime;
- //console.log(str.replace(reg,'/'))
- var date2 = newDate(str).getTime();
- if (date < date2) {
- return true;
- }
- }
- return false
- },
- numShowBl() {
- //true tab false line
- var superNum = this.stationDetail.station.superNum;
- var fastNumZ = this.stationDetail.station.fastNum;
- var fastNum = fastNumZ - superNum;
- var slowNum = this.stationDetail.station.slowNum;
- if (superNum && fastNum == 0 && slowNum == 0) {
- return false
- }
- if (fastNum && superNum == 0 && slowNum == 0) {
- return false
- }
- if (slowNum && fastNum == 0 && superNum == 0) {
- return false
- }
- return true;
- },
- stationDetailDevices() {
- var sz = [];
- for (var i in this.stationDetail.devices) {
- var item = this.stationDetail.devices[i]
- for (var j in item.gunList) {
- var gun = item.gunList[j]
- gun.device = item;
- sz.push(gun);
- }
- }
- sz = sz.sort(function(it1, it2) {
- if (!it2.device.online) {
- return -1
- }
- var i = 1;
- if (it1.device.online) {
- i = 1
- }
- if (it1.enableShare && !it1.enableShareWithinTime) {
- i = 1
- }
- i = it1.workStatus == 0 ? -1 : 1
- if (it2.workStatus == 0) {
- i = 1
- }
- if (!it2.enableShare || it2.enableShare && !it2.enableShareWithinTime) {
- i = -1
- }
- //console.log(it1,i)
- return i
- })
- var addis = ""
- var showIng = true
- if (this.flag == '' && this.stationAddressList && this.stationAddressList.length > 1) {
- sz.forEach(item => {
- item.deviceAddressShow = 0
- if (item.workStatus == 0) {
- if (item.device.deviceAddress != addis && item.device.deviceAddress) {
- addis = item.device.deviceAddress
- item.deviceAddressShow = 1
- item.showTitle = addis
- }
- } else {
- if (showIng) {
- showIng = false
- item.deviceAddressShow = 2
- item.showTitle = "其他状态"
- }
- }
- })
- }
- return sz
- }
- },
- watch: {
- flag(b) {
- this.pilestate = this.getpilestate()
- }
- },
- methods: {
- 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)
- return
- }
- var date = new Date().getTime() - 30 * 1000 * 60 * 60 * 24;
- var startDate = parseUnixTime(new Date(date), '{y}-{m}-{d}');
- if (this.carhelp.getPersonInfo() || this.userId) {
- 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(num2*0.4>20){
- // this.carImg3Bl=true;
- // }else{
- // this.carImg4Bl=true;
- // }
- }).catch(error => {
- uni.showToast({
- title: error,
- icon: "none"
- })
- })
- }
- },
- getHomePage() {
- uni.showLoading({
- title: "加载中",
- mask: true,
- })
- API.userCard({
- stationId: this.stationId
- }).then((res) => {
- console.log(res)
- this.userCard = res.data.regUserCard
- this.canUse = res.data.canUse
- // if(this.canUse){
- // this.userCard=res.data.regUserCard
- // }
- uni.hideLoading()
- if (!this.userCardBool && !this.carImg3span1) {
- this.getChargeList()
- }
- }).catch(error => {
- uni.showToast({
- title: error
- })
- })
- },
- thisendTime(endTime) {
- if (endTime) {
- var reg = new RegExp('-', 'gi')
- var str = endTime.substring(0, 10).replace(reg, '.')
- return str
- }
- return ''
- },
- thisdaysDistance(endTime) {
-
- var date = new Date()
- var date2 = newDate(endTime);
- return daysDistance(date, date2)
-
- },
- thispercent(userCard) {
- if(userCard.classify==1||(userCard.classify==2&&userCard.chargeDegreeLimit==0)){
- var k1=daysDistance(userCard.startTime, userCard.endTime)
- var k2=this.thisdaysDistance(userCard.endTime)
- var p=(k1-k2)/k2* 100
- if (p > 100) {
- p = 100
- }
- return p.toFixed(0)
- }else if(userCard.classify==2){
- var p = 0
-
- if (userCard && userCard.chargeDegreeLimit) {
- p = userCard.chargedDegree / userCard.chargeDegreeLimit * 100
- }
- if (p > 100) {
- p = 100
- }
- return p.toFixed(0)
- }else{
- return 0
- }
- },
- getpilestate() {
- var num1 = 0
- var num2 = 0
- var num3 = 0
- for (var i in this.stationDetailDevices) {
- var item = this.stationDetailDevices[i]
- if (this.getShow(item)) {
- if (item.isRed && item.workStatus != 2 || !item.device.online) {
- num3++
- } else if (item.workStatusText == '空闲中') {
- num1++
- } else {
- num2++
- }
- }
- }
- return {
- num1: num1,
- num2: num2,
- num3: num3
- }
- },
- getShow(item) {
- if (this.flag == '') {
- return true
- } else if (this.flag == 'super' && item.device.chargingType == '超充') {
- return true
- } else if (this.flag == 'fast' && item.device.chargingType == '快充') {
- return true
- } else if (this.flag == 'slow' && item.device.chargingType == '慢充') {
- return true
- } else {
- return false
- }
- },
- getH(item) {
- return item * 100 + 'px'
- },
- getW(item) {
- var t1 = item.endTime.substring(0, 2)
- var t2 = item.startTime.substring(0, 2)
- var k = parseInt(t1) - parseInt(t2);
- return 100 / 24 * k + "%"
- },
- changeFlag() {
- this.flag = !this.flag
- },
- enableAppointmentBl(item) {
- if (!this.personInfo || this.personInfo.memberLevel != 4) {
- return true
- }
- return (!item.enableAppointment || !(item.reserveWeekSettingList && item.reserveWeekSettingList.length));
- },
- confirmPhoneBl() {
- this.openModalBl = false;
- uni.makePhoneCall({
- phoneNumber: this.consumerPhone //仅为示例
- });
- },
- confirmPhone() {
- if (this.stationDetail.station && this.stationDetail.station.contactPhone) {
- uni.makePhoneCall({
- phoneNumber: this.stationDetail.station.contactPhone //仅为示例
- });
- }
- },
- getChargingStationDetail(bl) {
- if (!this.stationId) {
- return false
- }
- var _self = this;
- if (!bl) {
- uni.showLoading({
- })
- }
- let data = {
- stationId: this.stationId
- };
- var distance = null;
- if (bl && this.stationDetail && this.stationDetail.station) {
- distance = this.stationDetail.station.distance
- //防止重新获取定位
- }
- api.getChargingStationDetail(data).then(function(res) {
- uni.hideLoading()
- if (res && res.result && res.data) {
- let data = res.data;
- _self.stationDetail = data;
- //console.log(data)
- if (_self.stationDetail.station.contactPhone) {
- _self.consumerPhone = _self.stationDetail.station.contactPhone
- }
- if (_self.stationAddressList.length == 0) {
- _self.stationAddressList = _self.stationDetail.stationAddressList
- }
- if (_self.stationDetail.station.parkingDescription != null && _self.stationDetail.station
- .parkingSimpleDescription != null) {
- var tagList = _self.stationDetail.station.tagList;
- for (var i = 0; i < tagList.length; i++) {
- if (tagList[i] == _self.stationDetail.station.parkingDescription) {
- tagList.splice(i, 1);
- }
- }
- _self.stationDetail.station.tagList = tagList;
- }
- if (distance) {
- _self.stationDetail.station.distance = distance
- }
- var totalNum = 0;
- // _self.stationDetail.station.chargingType1=0;
- // _self.stationDetail.station.chargingType2=0;
- // _self.stationDetail.station.chargingType3=0;
- // _self.stationDetail.station.chargingType1run=0;
- // _self.stationDetail.station.chargingType2run=0;
- // _self.stationDetail.station.chargingType3run=0;
- // for(var i in _self.stationDetail.devices ){
- // var device=_self.stationDetail.devices[i]
- // var keyset="";
- // if(device.chargingType=='超充'){
- // keyset="chargingType1";
- // }
- // if(device.chargingType=='快充'){
- // keyset="chargingType2";
- // }
- // if(device.chargingType=='慢充'){
- // keyset="chargingType3";
- // }
- // for (let j = 0; j < device.gunList.length; j++) {
- // if(device.gunList[j].workStatus==0){
- // _self.stationDetail.station[keyset+"run"]++;
- // }
- // _self.stationDetail.station[keyset]++;
- // }
- // }
- if (_self.openlist == null) {
- _self.openlist = new Map();
- for (var i in _self.stationDetail.devices) {
- var device = _self.stationDetail.devices[i]
- totalNum += device.gunList.length
- for (let j = 0; j < device.gunList.length; j++) {
- _self.openlist.set(device.gunList[j].id, false);
- }
- //console.log(_self.stationDetail.station)
- }
- _self.list[0].name = "充电桩(" + totalNum + ")"
- }
- if (_self.stationDetail.station.distance == null && !bl) {
- _self.getPoint();
- }
- _self.pilestate = _self.getpilestate()
- }
- })
- },
- setOpen(item) {
- var obj = this.openlist.get(item.id)
- if (obj) {
- obj = false;
- } else {
- obj = true
- }
- this.openlist.set(item.id, obj)
- this.$forceUpdate()
- },
- change(index) {
- this.current = index;
- this.items = this.list[index].items;
- },
- previewImage(img) {
- let imgs = [];
- imgs.push(img);
- uni.previewImage({
- urls: imgs,
- current: 0
- })
- },
- book2(item, bl) {
- if (bl) {
- } else {
- return
- }
- uni.navigateTo({
- url: '/pages/searchPile/stationAndPile/chargingPileDetails?isback=1&id=' + item.gunNo,
- })
- ////('book'+JSON.stringify(item))
- },
- test(item) {
- if (process.env.NODE_ENV === "development") {
- uni.navigateTo({
- url: '/pages/searchPile/stationAndPile/chargingPileDetails?isback=1&id=' + item.gunNo,
- })
-
- }
-
- ////('book'+JSON.stringify(item))
- },
- book(item, bl) {
- if (bl) {
- } else {
- uni.showToast({
- title: '当前设备不可预约'
- })
- return
- }
- uni.navigateTo({
- url: '/pages/searchPile/apointment/apointmentRecharge?id=' + item.gunNo,
- })
- ////('book'+JSON.stringify(item))
- },
- getPoint() {
- // //('getPoint')
- WxJsApi.getLocation().then((res) => {
- var latitude = parseFloat(res.latitude);
- var longitude = parseFloat(res.longitude);
- var startLngLat = {
- longitude: longitude,
- latitude: latitude
- };
- var endLngLat = {
- longitude: _self.stationDetail.station.longitude,
- latitude: _self.stationDetail.station.latitude
- };
- _self.calculateDistance(startLngLat, endLngLat);
- _self.calculateDistanceList(startLngLat)
- /*uni.showToast({
- title:'getPoint'+JSON.stringify(res)
- })*/
- ////('当前位置' +JSON.stringify(data))
- //this.latitude2 = latitude;
- //this.longitude2 = longitude;
- /*uni.showToast({
- title:JSON.stringify(res)
- })*/
- //this.message=JSON.stringify(res)
- }).catch(error => {
- // uni.showToast({
- // title: error //'getPoint'+JSON.stringify()
- // })
- })
- },
- calculateDistanceList(startLngLat) {
- if (_self.stationDetail && _self.stationDetail.stationAddressList && _self.stationDetail.stationAddressList
- .length) {
- } else {
- return
- }
- var list = _self.stationDetail.stationAddressList;
- MapLoader().then(AMap1 => {
- for (var i in list) {
- var endLngLat = list[i]
- var lnglat = new AMap.LngLat(startLngLat.longitude, startLngLat.latitude);
- var myDistance = lnglat.distance([endLngLat.longitude, endLngLat.latitude]);
- endLngLat.distance = myDistance / 1000;
- endLngLat.time = myDistance / 500;
- }
- _self.stationAddressList = list;
- _self.$forceUpdate()
- //console.log("11111111111111")
- //console.log(_self.stationDetail.stationAddressList)
- })
- },
- calculateDistance(startLngLat, endLngLat) {
- var _this = this;
- //直线距离
- MapLoader().then(AMap1 => {
- var lnglat = new AMap.LngLat(startLngLat.longitude, startLngLat.latitude);
- var myDistance = lnglat.distance([endLngLat.longitude, endLngLat.latitude]);
- _self.stationDetail.station.distance = myDistance / 1000;
- _self.stationDetail.station.time = myDistance / 500;
- })
- //
- return
- //驾车距离
- var _this = this;
- MapLoader().then(AMap1 => {
- this.AMap = AMap;
- var map = new AMap.Map("container", {
- center: [116.397559, 39.89621],
- zoom: 14
- });
- var lnglat = new AMap.LngLat(117.186602, 34.261579);
- //AMap.Walking
- AMap.plugin('AMap.Driving', function() {
- var driving = new AMap.Driving({
- // 驾车路线规划策略,AMap.DrivingPolicy.LEAST_TIME是最快捷模式
- policy: AMap.DrivingPolicy.LEAST_TIME
- })
- //var startLngLat = [116.379028, 39.865042]
- //var endLngLat = [116.427281, 39.903719]
- var startLngLat2 = [startLngLat.longitude, startLngLat.latitude]
- var endLngLat2 = [endLngLat.longitude, endLngLat.latitude]
- driving.search(startLngLat2, endLngLat2, function(status, result) {
- //(result)
- //(result.routes[0].time)//秒
- //(result.routes[0].distance)//米
- _self.stationDetail.station.distance = result.routes[0].distance /
- 1000;
- _self.stationDetail.station.time = result.routes[0].time / 60;
- })
- })
- }, e => {
- //_this.mui.toast('地图加载失败');
- //('地图加载失败', e)
- console.log(e)
- })
- },
- getScanCode() {
- WxJsApi.scanQRCode(1).then(res => {
- if (res) {
- indexAPI.scanCode(res).then((response) => {
- }).catch(error => {
- uni.showToast({
- title: error,
- icon: "none"
- })
- })
- }
- }).catch(error => {
- })
- },
- getPriceList(id) {
- var formatNum = function(num) {
- let res = Number(num);
- return res < 10 ? '0' + res : res;
- };
- let data = {
- stationId: id
- };
- api.getChargingStationPrice(data).then((res) => {
- if (res.data.prices.length) {
- let date = new Date();
- this.station = res.data.chargingStation
- let hours = date.getHours();
- let minutes = date.getMinutes();
- let seconds = date.getSeconds();
- let date_str = formatNum(hours) + ':' + formatNum(minutes); //+ ' ' +formatWeek;
- this.pricesInfo = res.data.prices[0].priceList
- //console.log(this.pricesInfo)
- for (var i in this.pricesInfo) {
- var obj = this.pricesInfo[i]
- if (date_str >= obj.startTime && date_str <= obj.endTime) {
- obj.current = true;
- this.pricesInfoCurrent = obj
- this.pricesInfoCurrent2 = obj
- if (obj.electricityPrice == 0 || this.station.stationType == 50) {
- this.showtips = false
- }
- }
- }
- }
- })
- },
- navigate(item) {
- if (item) {
- if (item.areaTitle) {
- item.name = _self.stationDetail.station.name
- }
- } else {
- item = _self.stationDetail.station
- }
- //console.log(item)
- uni.showLoading({
- })
- WxJsApi.openLocation({
- latitude: parseFloat(item.latitude), //目的地latitude
- longitude: parseFloat(item.longitude), //目的地longitude
- name: item.name,
- address: item.address,
- scale: 15, //地图缩放大小,可根据情况具体调整
- success(res) {
- uni.hideLoading()
- },
- complete() {
- // uni.hideLoading()
- }
- });
- // //('station'+JSON.stringify(_self.stationDetail.station))
- // window.location.href = "https://uri.amap.com/marker?position=" + _self.stationDetail.station.longitude +
- // "," + _self.stationDetail.station.latitude + "&name=" + _self.stationDetail.station.name;
- },
- charge() {
- //('扫码充电')
- //#ifdef MP-WEIXIN
- uni.scanCode({
- success: function(res) {
- uni.navigateTo({
- url: 'chargingPileDetails?pile=' + encodeURIComponent(JSON.stringify(data))
- })
- }
- })
- return;
- //#endif
- //('扫码充电1')
- uni.navigateTo({
- url: 'chargingPileDetails'
- })
- },
- priceDetail(t, id) {
- uni.navigateTo({
- url: 'chargePriceDetails?stationId=' + _self.stationDetail.station.id + "&type=" + t + "&id=" +
- id
- })
- },
- map(item) {
- this.navigate(item)
- //var item= _self.stationDetail.station
- //window.location.href="https://uri.amap.com/marker?position="+ item.longitude+","+item.latitude+"&name="+item.name;
- // //('map'+JSON.stringify(_self.station))
- // _self.station.address = 'xxxxxxxxxxxxx'
- // //this.carhelp.set(_self.stationDetail.station.id,_self.station);
- // uni.navigateTo({
- // url: 'stationDetailsMap?stationId=' + _self.stationDetail.station.id
- // //url:'stationDetailsMap?station='+encodeURIComponent(JSON.stringify(_self.station))
- // })
- },
- theme(type) {
- if (type == 'elder') {
- document.getElementsByTagName('body')[0].setAttribute('data-theme', type);
- } else {
- document.getElementsByTagName('body')[0].setAttribute('data-theme', type);
- }
- }
- }
- }
- </script>
- <style lang="scss" scoped>
- .oldTextClassF {
- .stationDetail .title {
- font-size: 62rpx;
- }
- .stationDetail .position .address {
- font-size: 38rpx;
- }
- .stationDetail .type .type-box .box-top .pile-type {
- font-size: 38rpx;
- color: #101010;
- }
- .stationDetail .pile-state .gun-details .item .itemShowOpen .itemView .infos .gun-name {
- font-size: 48rpx;
- }
- .stationDetail .price-infos .title {
- font-size: 38rpx;
- }
- }
- .service {
- font-size: 24px;
- color: #101010;
- }
- page {
- background-color: #F2F2F2;
- }
- .head {
- width: 100%;
- height: 360rpx;
- img {
- width: 100%;
- height: 100%;
- }
- }
- // 站点详情
- .stationDetail {
- background-color: #F2F2F2;
- // background: linear-gradient(180deg, rgba(255,255,255,1) 59%,rgba(255,255,255,0) 100%);
- border-radius: 24rpx 24rpx 0px 0px;
- margin-top: -48rpx;
- color: #101010;
- z-index: 99;
- position: absolute;
- left: 0;
- right: 0;
- padding-bottom: 100rpx;
- .stationDetailHead {
- border-radius: 24rpx 24rpx 0px 0px;
- background-color: #FFF;
- padding: 24rpx 32rpx 12rpx 32rpx;
- }
- .stationDetailBody {
- padding: 24rpx 32rpx;
- }
- // 标题
- .title {
- color: rgba(16, 16, 16, 1);
- font-size: 40rpx;
- font-weight: bold;
- }
- // 标签
- .tags {
- display: flex;
- margin-top: 8rpx;
- flex-wrap: wrap;
- .tags1 {
- //border: 1px solid rgba(255, 139, 0, 1);
- height: 40rpx;
- line-height: 40rpx;
- border-radius: 4px;
- //color: rgba(255, 139, 0, 1);
- font-size: 24rpx;
- text-align: center;
- padding: 0 8rpx 0 8rpx;
- margin-right: 16rpx;
- margin-bottom: 8rpx;
- }
- .sign-1 {
- background-color: rgba(255, 255, 255, 100);
- color: rgba(255, 139, 0, 100);
- border: 1px solid rgba(255, 139, 0, 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;
- }
- .sign-2 {
- background-color: rgba(255, 255, 255, 100);
- color: rgba(153, 153, 153, 100);
- border: 1px solid rgba(204, 204, 204, 100);
- }
- }
- // 定位
- .position {
- display: flex;
- justify-content: space-between;
- margin-bottom: 24rpx;
- .block {
- width: 96rpx;
- height: 40rpx;
- line-height: 40rpx;
- border-radius: 50px;
- background-color: rgba(0, 185, 98, 1);
- color: rgba(255, 255, 255, 1);
- font-size: 22rpx;
- text-align: center;
- padding: 0 4rpx;
- }
- .address {
- width: 460rpx;
- //margin-left: 16rpx;
- color: rgba(16, 16, 16, 1);
- font-size: 32rpx;
- line-height: 44rpx;
- }
- .distance {
- display: flex;
- flex-direction: column;
- align-items: center;
- .distance-icon {
- width: 40rpx;
- height: 40rpx;
- display: flex;
- justify-content: center;
- align-items: center;
- background-color: rgba(0, 185, 98, 1);
- border-radius: 999px;
- }
- .distance-text {
- color: rgba(153, 153, 153, 1);
- font-size: 24rpx;
- margin-top: 16rpx;
- }
- }
- }
- // 充电桩类型
- .type {
- display: flex;
- justify-content: space-between;
- .checked {
- background-color: rgba(20, 23, 43, 1) !important;
- .pile-type {
- color: #fff !important;
- }
- .cut {
- color: #fff !important;
- }
- }
- .numShowview {
- width: 100% !important;
- }
- .numShowview2 {
- width: 49% !important;
- }
- .type-box {
- //width: 334rpx;
- padding: 8rpx 0;
- width: 32%;
- border-radius: 8rpx;
- background-color: rgba(255, 255, 255, 1);
- position: relative;
- padding: 8rpx 0;
- .box-top {
- display: flex;
- align-items: center;
- justify-content: center;
- .super,
- .fast,
- .slow {
- width: 40rpx;
- height: 40rpx;
- display: flex;
- justify-content: center;
- align-items: center;
- border-radius: 8rpx;
- color: rgba(255, 255, 255, 1);
- font-size: 20rpx
- }
- .super {
- background-color: #8161FF;
- }
- .fast {
- background-color: #1677FF;
- }
- .slow {
- background-color: #00B962;
- }
- .pile-type {
- color: #303133;
- font-size: 32rpx;
- margin-left: 4rpx;
- }
- }
- .pile-amount {
- display: flex;
- justify-content: center;
- .super {
- color: #8161FF;
- margin-right: 8rpx;
- }
- .fast {
- color: #1677FF;
- margin-right: 8rpx;
- }
- .free {
- color: #00B962;
- margin-right: 8rpx;
- }
- .sum {
- color: #999;
- margin-left: 8rpx;
- }
- }
- }
- // 尖角
- .angle {
- position: absolute;
- width: 0;
- height: 0;
- display: inline-block;
- border-top: 16rpx solid #000000;
- border-left: 16rpx solid transparent;
- border-right: 16rpx solid transparent;
- bottom: -16rpx;
- left: 167rpx;
- }
- }
- // 充电桩状态
- .pile-state {
- border-radius: 8px 8px 0 0;
- margin-top: 32rpx;
- background-color: rgba(255, 255, 255, 1);
- padding: 24rpx;
- // 总计
- .statistics {
- width: 406rpx;
- border: 1px solid rgba(204, 204, 204, 1);
- padding: 0 16rpx;
- height: 48rpx;
- display: flex;
- justify-content: space-between;
- align-items: center;
- color: #777777;
- .cut {
- color: #8FCFB1;
- }
- }
- // 充电枪详情
- .gun-details {
- .item {
- margin-bottom: 12rpx;
- .open-time {
- border-bottom: 1px solid rgba(238, 242, 240, 100);
- // padding-left: 150rpx;
- // padding-bottom: 40rpx;
- display: flex;
- justify-content: center;
- line-height: 18px;
- font-size: 14px;
- color: rgb(136, 136, 136);
- p {
- text-indent: 112px;
- }
- }
- .itemShowOpen {
- margin-top: 24rpx;
- padding-top:18rpx;
- border-top: 1px dashed #d5d0d0;
- display: flex;
- align-items: center;
- justify-content: space-between;
- .itemView {
-
- display: flex;
- align-items: center;
- .state {
- border-radius: 4px;
- background: linear-gradient(180deg, rgba(98, 228, 167, 1) 0%, rgba(0, 180, 95, 1) 100%);
- padding: 4rpx 12rpx;
- display: flex;
- flex-direction: column;
- align-items: center;
- justify-content: center;
- img {
- width: 56rpx;
- height: 56rpx;
- }
- .state-text {
- color: rgba(255, 255, 255, 1);
- font-size: 22rpx;
- margin-top: -10rpx;
- }
- }
-
-
- .color185AC6 {
- //color: #185AC6
- background: linear-gradient(180deg, rgba(154,192,255,1) 0%,rgba(22,119,255,1) 100%);
- //background: linear-gradient(90.17deg, rgba(31, 85, 255, 1) -3.73%, rgba(39, 171, 255, 1) 98.97%);
- }
-
- .color00B962 {
- //color: #00B962
- //background: linear-gradient(90deg, rgba(0, 146, 77, 1) 0%, rgba(62, 232, 152, 1) 100%);
- }
-
- .colorCA9DFF {
- // color: #8161FF;
- background: linear-gradient(90.17deg, #4f2ae0b5 -3.73%, #8e71ffba 98.97%);
- //background: linear-gradient(90.17deg, rgba(79, 42, 224, 1) -3.73%, rgba(142, 113, 255, 1) 98.97%) ;
- }
-
-
- .charging {
- background: linear-gradient(180deg, #FFC146 0%, #FF6B00 100%);
- }
-
- //充电中
- .chargingOk {
-
- background: linear-gradient(180deg, rgba(154,192,255,1) 0%,rgba(22,119,255,1) 100%);
- }
- // 离线
- .off-line {
- background: linear-gradient(180deg, rgba(209, 204, 204, 1) 0%, rgba(148, 145, 145, 1) 100%);
- }
- // 详细信息
- .infos {
- margin-left: 16rpx;
- .gun-name {
- color: rgba(51, 51, 51, 1);
- font-size: 44rpx;
- font-weight: bold;
- width: 320rpx;
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- text {
- color: #D6D6D6;
- font-weight: normal;
- }
- }
- }
- .else {
- display: flex;
- align-items: center;
- margin-top: 8rpx;
-
- .gun-type {
- //color: rgba(22, 119, 255, 1);
-
- 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: 1px 12rpx;
- margin-right: 8rpx;
- font-size: 22rpx;
- // height: 32rpx;
- }
-
- .voltage {
- margin: 0 8rpx;
- }
- }
-
- }
- }
- }
- .item-tip{
- // padding-left: 100rpx;
- .else {
- display: flex;
- align-items: center;
- margin-top: 8rpx;
-
- .gun-type {
- //color: rgba(22, 119, 255, 1);
-
- 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: 1px 12rpx;
- margin-right: 8rpx;
- font-size: 22rpx;
- // height: 32rpx;
- }
-
- .voltage {
- margin: 0 8rpx;
- }
- }
- }
- // 充电按钮
- .charge {
- width: 96rpx;
- height: 48rpx;
- line-height: 48rpx;
- border-radius: 50px;
- background-color: rgba(0, 185, 98, 1);
- color: rgba(255, 255, 255, 1);
- text-align: center;
- }
- .not-open-tag {
- background-color: rgba(192, 196, 208, 100);
- }
- .not-enable-Appointment {
- width: 168rpx;
- height: 56rpx;
- line-height: 56rpx;
- font-size: 32rpx;
- }
- .electric-quantity {
- width: 168rpx;
- height: 52rpx;
- position: relative;
- img {
- width: 168rpx;
- height: 72rpx;
- }
- .percentage2 {
- text-align: center;
- width: 126rpx;
- height: 72rpx;
- color: rgba(255, 255, 255, 1);
- font-size: 30rpx;
- line-height: 88rpx;
- position: absolute;
- left: 50%;
- top: 50%;
- transform: translate(-50%, -50%);
- }
- .percentage {
- text-align: center;
- width: 126rpx;
- height: 72rpx;
- color: rgba(255, 255, 255, 1);
- font-size: 34rpx;
- line-height: 88rpx;
- position: absolute;
- left: 50%;
- top: 34rpx;
- transform: translate(-50%, -50%);
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- }
- }
- }
- }
- // 价格信息
- .price-infos {
- background-color: #fff;
- padding: 24rpx;
- border-radius: 0 0 8px 8px;
- .title {
- color: rgba(51, 51, 51, 1);
- font-weight: bold;
- font-size: 32rpx;
- text {
- color: #777777;
- font-weight: normal;
- }
- }
- // 分类
- .classify {
- display: flex;
- justify-content: space-between;
- margin-top: 24rpx;
- .item {
- border-radius: 4px;
- background-color: rgba(230, 245, 237, 1);
- padding: 22rpx;
- .unit-price {
- font-size: 56rpx;
- }
- .unit-price2 {
- color: #999999;
- font-size: 24rpx;
- font-weight: normal;
- text-decoration: line-through;
- }
- .unit-price3 {
- color: #999999;
- font-size: 24rpx;
- font-weight: normal;
- //text-decoration: line-through;
- }
- .unit {
- color: rgba(119, 119, 119, 1);
- font-size: 28rpx
- }
- }
- // 游客价
- .item-visitor {
- color: #333333;
- width: 42%;
- }
- // 充电价格
- .item-member {
- color: #27B148;
- width: 57%;
- }
- // 充电价格
- .item-member-vip {
- color: #27B148;
- width: 42%;
- }
- .item-vip {
- //color: #5A3629;
- color: rgba(255, 255, 255, 1);
- //background-color:#FFF9EB ;
- background: linear-gradient(88.81deg, rgba(219, 199, 167, 1) 1.89%, rgba(194, 154, 93, 1) 98%);
- width: 57%;
- .unit {
- color: rgba(255, 255, 255, 1);
- }
- .register {
- padding: 4rpx 16rpx;
- height: 24px;
- border-radius: 50px;
- //background: linear-gradient(87.64deg, rgba(253, 129, 69, 1) 1.81%, rgba(252, 63, 3, 1) 100.04%);
- background: linear-gradient(87.64deg, rgba(255, 255, 255, 1) 1.81%, rgba(255, 251, 215, 1) 98.08%);
- color: rgba(128, 74, 0, 1);
- font-size: 24rpx;
- text-align: center;
- margin-left: 38rpx;
- }
- }
- .item-vip2 {
- color: rgba(255, 255, 255, 1);
- background: linear-gradient(32.4deg, rgba(59, 182, 254, 1) 20.49%, rgba(0, 185, 98, 1) 118.87%);
- ;
- width: 57%;
- .register {
- padding: 4rpx 16rpx;
- height: 24px;
- border-radius: 50px;
- //background: linear-gradient(87.64deg, rgba(253, 129, 69, 1) 1.81%, rgba(252, 63, 3, 1) 100.04%);
- background: linear-gradient(87.64deg, rgba(255, 255, 255, 1) 1.81%, rgba(217, 255, 237, 1) 98.08%);
- color: rgba(0, 142, 75, 1);
- font-size: 24rpx;
- text-align: center;
- margin-left: 38rpx;
- }
- .unit {
- color: rgba(255, 255, 255, 1);
- }
- }
- .discount-card-4 {
- background: #da241e !important;
- .unit {
- color: #fff !important;
- }
- .u-progress {
- background-color: #e8aaa5 !important;
- color: #fff;
- }
- }
- .item-vip3 {
- color: rgba(255, 255, 255, 1);
- background-color: rgba(55, 59, 80, 1);
- width: 57%;
- .unit-price {
- font-size: 44rpx;
- }
- .unit {
- color: rgba(204, 204, 204, 1);
- font-size: 10px;
- }
- .progress {
- display: flex;
- justify-content: space-between;
- color: rgba(219, 219, 219, 1);
- font-size: 24rpx;
- margin-bottom: 16rpx;
- margin-top: 24rpx;
- }
- ::v-deep .u-active {
- background: linear-gradient(84.49deg, rgba(59, 182, 254, 1) 4.25%, rgba(0, 185, 98, 1) 95.02%);
- }
- }
- // 充电价格
- .item-member-all {
- color: #27B148;
- width: 100%;
- }
- .register {
- padding: 4rpx 16rpx;
- height: 24px;
- border-radius: 50px;
- background: linear-gradient(87.64deg, rgba(253, 129, 69, 1) 1.81%, rgba(252, 63, 3, 1) 100.04%);
- color: rgba(255, 255, 255, 1);
- font-size: 24rpx;
- text-align: center;
- margin-left: 38rpx;
- }
- }
- // 提示
- .hint {
- margin: 16rpx 0;
- color: rgba(119, 119, 119, 1);
- }
- // 图表
- .chat-box {
- border-radius: 4px;
- background-color: rgba(249, 249, 249, 1);
- padding: 24rpx;
- .chat-infos {
- .item {
- display: flex;
- justify-content: space-between;
- align-items: center;
- margin-bottom: 32rpx;
- .name {
- display: flex;
- align-items: center;
- .icon {
- width: 56rpx;
- height: 28rpx;
- margin-right: 8rpx;
- }
- .icon1 {
- border: 2px solid rgba(0, 0, 0, 1);
- }
- .icon2 {
- background-color: rgba(87, 228, 160, 1);
- }
- .icon3 {
- background-color: rgba(220, 220, 220, 1);
- }
- .text {
- color: rgba(102, 102, 102, 1);
- font-size: 32rpx;
- }
- }
- .value {
- color: rgba(16, 16, 16, 1);
- font-size: 32rpx;
- font-weight: bold;
- }
- .value2 {
- color: #999999;
- font-size: 28rpx;
- font-weight: normal;
- text-decoration: line-through;
- }
- }
- }
- }
- }
- .chat_hhh_time {
- display: flex;
- justify-content: space-between;
- }
- .chat_hhh {
- background: #f9f9f9;
- text-align: center;
- min-height: 160px;
- display: flex;
- font-size: 20rpx;
- .current1 {
- .chats2 {
- //border: 1px solid red;
- }
- }
- .current2 {
- .chats1 {
- border: 1px solid #333333;
- border-bottom: 0px;
- }
- .chats2 {
- border: 1px solid #333333;
- background: #26FF6B !important;
- border-top: 0px;
- }
- }
- .chatTime {
- min-width: 68rpx;
- display: flex;
- flex-direction: column;
- justify-content: flex-end;
- border: 1px solid #f9f9f9;
- .chats0 {
- // background-color: #ff8b17;
- // color: #ffecdd;
- display: flex;
- justify-content: center;
- flex-wrap: wrap;
- flex-direction: column;
- }
- .chats9 {
- opacity: 0;
- display: flex;
- justify-content: center;
- flex-wrap: wrap;
- flex-direction: column;
- }
- .chats1 {
- background: #dcdcdc;
- min-height: 30rpx
- }
- .chats2 {
- background: #80e0a6;
- display: flex;
- flex-direction: column;
- justify-content: space-between;
- }
- }
- }
- // 附加信息
- .overhead-infos {
- margin-top: 24rpx;
- background-color: #fff;
- padding: 24rpx;
- border-radius: 8px;
- .item {
- display: flex;
- align-items: center;
- justify-content: space-between;
- font-size: 32rpx;
- .title {
- color: rgba(119, 119, 119, 1);
- font-size: 32rpx;
- }
- .value {
- color: rgba(51, 51, 51, 1);
- }
- }
- }
- }
- .color185AC6 {
- //color: #185AC6
- background: linear-gradient(90.17deg, rgba(31, 85, 255, 1) -3.73%, rgba(39, 171, 255, 1) 98.97%);
- }
- .color00B962 {
- //color: #00B962
- background: linear-gradient(90deg, rgba(0, 146, 77, 1) 0%, rgba(62, 232, 152, 1) 100%);
- }
- .colorCA9DFF {
- // color: #8161FF;
- background: linear-gradient(90.17deg, rgba(79, 42, 224, 1) -3.73%, rgba(142, 113, 255, 1) 98.97%) ;
- }
- .deviceAddressShow {
- margin-top: 24rpx;
- font-size: 36rpx;
- // color:#1677FF;
- color: #00b962;
- // font-weight: bold;
- white-space: pre;
- img {
- width: 48rpx;
- height: 24rpx;
- margin: 0 16rpx;
- }
- }
- .deviceAddressShow2 {
- color: #ff8b00;
- }
- </style>
|