stationDetails.vue 65 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627
  1. <template>
  2. <view>
  3. <ujp-navbar title="站点详情">
  4. <view slot="right" style="margin-right: 10px;" @click="openModalBl=true">
  5. <view class="iconfont service">
  6. &#xe60d;
  7. </view>
  8. </view>
  9. </ujp-navbar>
  10. <u-alert-tips type="warning" @click="noticeShow=false" icon="volume-up-fill"
  11. v-show="noticeShow&&stationDetail.station&&stationDetail.station.maxSoc&&stationDetail.station.maxSoc!=100"
  12. :descStyle="{
  13. fontSize: '28rpx',
  14. color: '#ef7a30',
  15. }" :show-icon="true"
  16. :description="'【充电SOC限制】为保障充电安全,并积极响应主管部门对新能源汽车充电安全工作,从即日起,该站充电设施SOC上限阈值为'+(stationDetail&&stationDetail.station&&stationDetail.station.maxSoc?stationDetail.station.maxSoc:'')+'%,即充电量达到满充电量'+(stationDetail&&stationDetail.station&&stationDetail.station.maxSoc?stationDetail.station.maxSoc:'')+'%时,充电设施将自动结束充电。'">
  17. </u-alert-tips>
  18. <u-notice-bar mode="vertical" font-size="36" :more-icon="true" @click="noticeShow=true"
  19. v-show="!noticeShow&&stationDetail.station&&stationDetail.station.maxSoc&&stationDetail.station.maxSoc!=100"
  20. :list="['【充电SOC限制】为保障充电安全,并积极响应主管部门对新能源汽车充电安全工作,从即日起,该站充电设施SOC上限阈值为'+(stationDetail&&stationDetail.station&&stationDetail.station.maxSoc?stationDetail.station.maxSoc:'')+'%,即充电量达到满充电量'+(stationDetail&&stationDetail.station&&stationDetail.station.maxSoc?stationDetail.station.maxSoc:'')+'%时,充电设施将自动结束充电。']">
  21. </u-notice-bar>
  22. <view class="head" v-if="stationDetail.station!=null">
  23. <img @click="previewImage(stationDetail.station.image)" v-if="stationDetail.station.image"
  24. :src="stationDetail.station.image" mode=""></img>
  25. <img v-else src="@/assets/img/chargesite_default.png" mode=""></img>
  26. </view>
  27. <!-- 站点详情 -->
  28. <view class="stationDetail">
  29. <view class="stationDetailHead">
  30. <!-- 标题 -->
  31. <view class="title">
  32. {{stationDetail.station.name}}
  33. </view>
  34. <view v-if="quickChargeReduceMethod1(stationDetail.station)&&personInfo&&personInfo.userType==2"
  35. style="margin-top: 10rpx;color: rgba(255, 121, 0, 1);font-size: 28rpx; display: flex; align-items: center;">
  36. <span style="color: #fff;background: linear-gradient(93.02deg, rgba(255,121,0,1) 39.4%,rgba(255,174,0,1) 93.51%);
  37. border-radius: 4px;
  38. padding: 0rpx 10rpx;
  39. margin-right: 8rpx;
  40. font-size: 24rpx;
  41. line-height:40rpx;
  42. ">活动</span>
  43. 快充订单满{{stationDetail.station.quickChargeDegree}}度服务费{{discountRatio10(stationDetail.station.quickChargeDiscountRatio)}}折
  44. </view>
  45. <view v-if="quickChargeReduceMethod2(stationDetail.station)&&personInfo&&personInfo.userType==2"
  46. style="margin-top: 10rpx;color: rgba(255, 121, 0, 1);font-size: 28rpx; display: flex; align-items: center;">
  47. <span style="color: #fff;background: linear-gradient(93.02deg, rgba(255,121,0,1) 39.4%,rgba(255,174,0,1) 93.51%);
  48. border-radius: 4px;
  49. padding: 0rpx 10rpx;
  50. margin-right: 8rpx;
  51. font-size: 24rpx;
  52. line-height:40rpx;
  53. ">活动</span>
  54. 喜迎国庆,充电有奖
  55. </view>
  56. <!-- 标签 -->
  57. <view class="tags sign">
  58. <view class="tags1 sign-1"
  59. v-if="station.giveDiscount&&station.discountRatio&&station.discountRatio!=100">
  60. 会员{{discountRatio10(station.discountRatio)}}折</view>
  61. <view class="tags1 sign-3" v-if="station.category=='超充'">160kW超充站</view>
  62. <view class="tags1 sign-4" v-if="stationDetail.station.nightLowPriceEnabled">
  63. 夜间超低价</view>
  64. <view class="tags1 sign-2" v-if="stationDetail.station.platformType==1">自营站</view>
  65. <view class="tags1 sign-2" v-if="stationDetail.station.tagList.length != 0"
  66. v-for="(tagName,tagIndex) in stationDetail.station.tagList"
  67. :style="'border: 1px solid '+tagNameBy(tagName,1)+';color:'+tagNameBy(tagName,1)"
  68. :key="tagIndex">{{tagNameBy(tagName,0)}}</view>
  69. </view>
  70. <u-line color="#EEF2F0" margin="24rpx 0"></u-line>
  71. <!-- 定位 -->
  72. <template v-if="stationDetail&&stationAddressList&&stationAddressList.length">
  73. <view class="position" v-for="(item ,i) in stationAddressList" :key="i">
  74. <view class="block">
  75. {{item.areaTitle}}
  76. </view>
  77. <view class="address">
  78. {{item.address}}
  79. </view>
  80. <view class="distance" @click="map(item)">
  81. <view class="distance-icon">
  82. <img src="../../../assets/img/riFill-navigation-fill@1x.png" alt="">
  83. </view>
  84. <view class="distance-text">
  85. {{item.distance!=null&&item.distance>0.1 ? item.distance.toFixed(1)+'公里':'小于100米'}}
  86. </view>
  87. </view>
  88. </view>
  89. </template>
  90. <view class="position" v-else>
  91. <view class="address">
  92. {{stationDetail.station.address}}
  93. </view>
  94. <view class="distance" @click="map()">
  95. <view class="distance-icon">
  96. <img src="../../../assets/img/riFill-navigation-fill@1x.png" alt="">
  97. </view>
  98. <view class="distance-text" v-if="stationDetail.station.distance">
  99. {{stationDetail.station.distance!=null&&stationDetail.station.distance>0.1 ? stationDetail.station.distance.toFixed(1)+'公里':'小于100米'}}
  100. </view>
  101. </view>
  102. </view>
  103. </view>
  104. <view class="stationDetailBody">
  105. <!-- 充电桩类型 -->
  106. <view class="type" v-if="numShowBl">
  107. <view class="type-box" v-if="stationDetail.station.superNum" :class="{
  108. 'checked':flag=='super',
  109. numShowview2:(stationDetail.station.superNum==0||stationDetail.station.slowNum==0||stationDetail.station.fastNum-stationDetail.station.superNum==0)
  110. }" @click="flag!='super'?flag='super':flag=''">
  111. <view class="box-top">
  112. <view class="super">
  113. </view>
  114. <view class="pile-type">
  115. 直流超充
  116. </view>
  117. </view>
  118. <view class="pile-amount">
  119. <view class="super">
  120. {{stationDetail.station.superAvailableNum}}空闲
  121. </view>
  122. <view class="cut">
  123. |
  124. </view>
  125. <view class="sum">
  126. {{stationDetail.station.superNum}}总
  127. </view>
  128. </view>
  129. <!-- 尖角 -->
  130. <view class="angle" v-if="flag=='super'">
  131. </view>
  132. </view>
  133. <view class="type-box" v-if="stationDetail.station.fastNum-stationDetail.station.superNum" :class="{
  134. 'checked':flag=='fast',
  135. numShowview2:(stationDetail.station.superNum==0||stationDetail.station.slowNum==0||stationDetail.station.fastNum-stationDetail.station.superNum==0),
  136. numShowviewleft:stationDetail.station.slowNum
  137. }" @click="flag!='fast'?flag='fast':flag=''">
  138. <view class="box-top">
  139. <view class="fast">
  140. </view>
  141. <view class="pile-type">
  142. 直流快充
  143. </view>
  144. </view>
  145. <view class="pile-amount">
  146. <view class="fast">
  147. {{stationDetail.station.fastAvailableNum-stationDetail.station.superAvailableNum}}空闲
  148. </view>
  149. <view class="cut">
  150. |
  151. </view>
  152. <view class="sum">
  153. {{stationDetail.station.fastNum-stationDetail.station.superNum}}总
  154. </view>
  155. </view>
  156. <!-- 尖角 -->
  157. <view class="angle" v-if="flag=='fast'">
  158. </view>
  159. </view>
  160. <view class="type-box" v-if="stationDetail.station.slowNum" :class="{
  161. 'checked':flag=='slow',
  162. numShowview2:(stationDetail.station.superNum==0||stationDetail.station.slowNum==0||stationDetail.station.fastNum-stationDetail.station.superNum==0)
  163. }" @click="flag!='slow'?flag='slow':flag=''">
  164. <view class="box-top">
  165. <view class="slow">
  166. </view>
  167. <view class="pile-type">
  168. 交流慢充
  169. </view>
  170. </view>
  171. <view class="pile-amount">
  172. <view class="free">
  173. {{stationDetail.station.slowAvailableNum}}空闲
  174. </view>
  175. <view class="cut">
  176. |
  177. </view>
  178. <view class="sum">
  179. {{stationDetail.station.slowNum}}总
  180. </view>
  181. </view>
  182. <!-- 尖角 -->
  183. <view class="angle" v-if="flag=='slow'">
  184. </view>
  185. </view>
  186. </view>
  187. <!-- 充电桩状态 -->
  188. <view class="pile-state">
  189. <view v-if="quickChargeReduceMethod1(stationDetail.station)&&personInfo&&personInfo.userType==2"
  190. style="margin-bottom: 10rpx;color: rgba(255, 121, 0, 1);font-size: 28rpx; display: flex; align-items: center;">
  191. <span style="color: #fff;background: linear-gradient(93.02deg, rgba(255,121,0,1) 39.4%,rgba(255,174,0,1) 93.51%);
  192. border-radius: 4px;
  193. padding: 0rpx 10rpx;
  194. margin-right: 8rpx;
  195. font-size: 24rpx;
  196. line-height:40rpx;
  197. ">活动</span>
  198. 快充订单满{{stationDetail.station.quickChargeDegree}}度服务费{{discountRatio10(stationDetail.station.quickChargeDiscountRatio)}}折
  199. </view>
  200. <view v-if="quickChargeReduceMethod2(stationDetail.station)&&personInfo&&personInfo.userType==2"
  201. style="margin-bottom: 10rpx;color: rgba(255, 121, 0, 1);font-size: 28rpx; display: flex; align-items: center;">
  202. <span style="color: #fff;background: linear-gradient(93.02deg, rgba(255,121,0,1) 39.4%,rgba(255,174,0,1) 93.51%);
  203. border-radius: 4px;
  204. padding: 0rpx 10rpx;
  205. margin-right: 8rpx;
  206. font-size: 24rpx;
  207. line-height:40rpx;
  208. ">活动</span>
  209. 喜迎国庆,充电有奖
  210. </view>
  211. <!-- 总计 -->
  212. <view class="statistics">
  213. <view class="free">
  214. {{pilestate.num1}} 空闲
  215. </view>
  216. <view class="cut">
  217. |
  218. </view>
  219. <view class="busy">
  220. {{pilestate.num2}} 占用
  221. </view>
  222. <view class="cut">
  223. |
  224. </view>
  225. <view class="malfunction">
  226. {{pilestate.num3}}故障
  227. </view>
  228. </view>
  229. <!-- 充电枪详情 -->
  230. <view class="gun-details">
  231. <view class="item" v-for="(item,index) in stationDetailDevices" v-show="getShow(item)" @click="test(item)"
  232. :key="index">
  233. <view v-if="item.deviceAddressShow==1" class="deviceAddressShow deviceAddressShow1">
  234. <img src="@/assets/img/9-4/标题装饰左.svg">
  235. {{item.showTitle}}
  236. <img src="@/assets/img/9-4/标题装饰右.svg">
  237. </view>
  238. <view v-if="item.deviceAddressShow==2" class="deviceAddressShow deviceAddressShow2">
  239. <img src="@/assets/img/9-4/标题装饰左.svg">
  240. {{item.showTitle}}
  241. <img src="@/assets/img/9-4/标题装饰右.svg">
  242. </view>
  243. <view class="itemShowOpen">
  244. <view class="itemView">
  245. <!-- 充电桩状态 -->
  246. <view class="state" v-if="item.device.online" :class="{
  247. //预约
  248. 'charging a ':item.enableShare&&!item.enableShareWithinTime&&item.device.online,
  249. 'charging b ':item.enableShare&&item.workStatus!=0,
  250. 'charging c ':item.workStatus==2,
  251. //插枪
  252. 'off-line a ':(item.workStatus == 0&&item.insertStatus&&stationDetail.station.stationType!=50),
  253. 'off-line b':item.isRed&&item.workStatus!=2,
  254. }">
  255. <view class="state-icon">
  256. <img src="../../../assets/img/pileIcon.svg" alt="">
  257. </view>
  258. <view class="state-text"
  259. v-if="item.workStatus == 0&&item.insertStatus&&stationDetail.station.stationType!=50">
  260. 已插枪
  261. </view>
  262. <view class="state-text" v-else>
  263. <span v-if="item.workStatusText.length<4">{{item.workStatusText}}</span>
  264. <span v-else-if="item.workStatusText.length==4"
  265. style=" display: flex; flex-direction: column;">
  266. <span>{{item.workStatusText.substring(0,2)}}</span>
  267. <span>{{item.workStatusText.substring(2)}}</span>
  268. </span>
  269. <span v-else>{{item.workStatusText}}</span>
  270. </view>
  271. </view>
  272. <view class="state off-line" style="width: 96rpx;" v-else>
  273. <view class="state-icon">
  274. <img src="../../../assets/img/pileIcon.svg" alt="">
  275. </view>
  276. <view class="state-text ">
  277. 离线
  278. </view>
  279. </view>
  280. <!-- 详细信息 -->
  281. <view class="infos">
  282. <view class="gun-name">
  283. <span
  284. 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):''}}
  285. </view>
  286. <groupItem v-if="!item.device.groupName"
  287. :item="item" :openlist="openlist" @setOpen="setOpen" ></groupItem>
  288. </view>
  289. </view>
  290. <template
  291. v-if="!item.isRed&&item.enableShare&&item.enableShareWithinTime&&item.device.online">
  292. <!-- 充电按钮 -->
  293. <view class="charge" v-if="!enableAppointmentBl(item)"
  294. @click="book(item,item.isAppointment&&!item.insertStatus)"
  295. :class="item.isAppointment&&!item.insertStatus?'':'not-open-tag'">
  296. 预约
  297. </view>
  298. <!-- 充电按钮 -->
  299. <view class="charge"
  300. :style="item.haveLock&&item.lockStatus==1?'background-color:#009ED7':''"
  301. @click="book2(item,item.enableShare&&item.enableShareWithinTime)" :class="{
  302. 'not-open-tag':!(item.enableShare&&item.enableShareWithinTime),
  303. 'not-enable-Appointment':enableAppointmentBl(item)
  304. }">
  305. 充电
  306. </view>
  307. </template>
  308. <!-- 电量 -->
  309. <view class="electric-quantity" v-if="item.workStatus == 2 ">
  310. <img src="../../../assets/img/electricQuantity.svg" alt="">
  311. <view class="" v-if="true" :class="{
  312. percentage:item.soc,
  313. percentage2:!item.soc
  314. }">
  315. {{item.soc?item.soc+'%':'充电中'}}
  316. </view>
  317. <view v-else class="percentage2">
  318. 充电中
  319. </view>
  320. </view>
  321. </view>
  322. <view class="item-tip" v-if="item.device.groupName">
  323. <groupItem :item="item" :openlist="openlist" @setOpen="setOpen" ></groupItem>
  324. </view>
  325. <view class="open-time" v-show="openlist&&openlist.get(item.id)">
  326. <table>
  327. <tr v-if="pricesInfoCurrent">
  328. <td colspan="2">当前电价:
  329. <b style="color:#080808;margin-left: 4px;"
  330. v-if="(station&&station.giveDiscount||pricesInfoCurrent2.discountServicePrice)&&(!personInfo||personInfo.userType==1)">{{((pricesInfoCurrent.servicePrice*1000+pricesInfoCurrent.electricityPrice*1000)/1000).toFixed(2)}}元/度</b>
  331. <b v-else
  332. style="color:#080808;margin-left: 4px;">{{pricesInfoCurrent.costPrice.toFixed(2)}}元/度</b>
  333. </td>
  334. </tr>
  335. <tr v-if="item.device.deviceAddress">
  336. <td colspan="2">充电桩地址:
  337. <span style=" margin-left: 4px;">{{item.device.deviceAddress}}</span>
  338. </td>
  339. </tr>
  340. <tr>
  341. <td>开放充电时段:</td>
  342. <td
  343. v-if="!item.enableShare||!(item.sharedWeekSettingList&&item.sharedWeekSettingList.length)">
  344. 充电功能未开放</td>
  345. <template v-else v-for="(time,index) in item.sharedWeekSettingList">
  346. <td :key="index" v-if="index==0">{{time.startTime}}-{{time.endTime}}</td>
  347. </template>
  348. </tr>
  349. <template v-if="item.enableShare"
  350. v-for="(time,index) in item.sharedWeekSettingList">
  351. <tr :key="index" v-if="index==1">
  352. <td></td>
  353. <td>{{time.startTime}}-{{time.endTime}}</td>
  354. </tr>
  355. </template>
  356. <tr>
  357. <td>开放预约时段:</td>
  358. <td v-if="enableAppointmentBl(item)">
  359. 预约功能未开放
  360. </td>
  361. <template v-else v-for="(time,index) in item.reserveWeekSettingList">
  362. <td :key="index" v-if="index==0">{{time.startTime}}-{{time.endTime}}</td>
  363. </template>
  364. </tr>
  365. <template v-if="item.enableAppointment"
  366. v-for="(time,index) in item.reserveWeekSettingList">
  367. <tr :key="index" v-if="index==1">
  368. <td></td>
  369. <td>{{time.startTime}}-{{time.endTime}}</td>
  370. </tr>
  371. </template>
  372. </table>
  373. </view>
  374. </view>
  375. </view>
  376. </view>
  377. <!-- 价格信息 -->
  378. <view class="price-infos" v-if="pricesInfoCurrent2">
  379. <view class="title">
  380. 价格信息<text>({{pricesInfoCurrent.startTime==pricesInfoCurrent2.startTime?'当前时段 ':''}}{{pricesInfoCurrent2.startTime}}-{{pricesInfoCurrent2.endTime}})</text>
  381. </view>
  382. <view class="classify"
  383. v-if="(!personInfo||personInfo.userType==1)&&station&&(station.giveDiscount||(pricesInfoCurrent2.discountServicePrice))">
  384. <view class="item item-visitor">
  385. <view class="visitor">
  386. 充电价格
  387. </view>
  388. <view class="unit-price">
  389. <text>{{(pricesInfoCurrent2.servicePrice+pricesInfoCurrent2.electricityPrice).toFixed(2)}}</text>
  390. <text class="unit">元/度</text>
  391. </view>
  392. </view>
  393. <view class="item item-member">
  394. <view class="visitor">
  395. 会员价
  396. </view>
  397. <view class="unit-price">
  398. <text>{{pricesInfoCurrent2.costPrice.toFixed(2)}}</text>
  399. <text class="unit">元/度</text>
  400. <text class="register" @click="gotoUrl('pages/login/login')">注册</text>
  401. </view>
  402. </view>
  403. </view>
  404. <view class="classify" v-else-if="stationDetail.station&&stationDetail.station.tagList&&
  405. (stationDetail.station.tagList.indexOf('月卡')!=-1
  406. ||stationDetail.station.tagList.indexOf('6折卡')!=-1
  407. ||stationDetail.station.tagList.indexOf('自营站')!=-1)">
  408. <view class="item item-member-vip">
  409. <view class="visitor">
  410. 充电价格
  411. </view>
  412. <view class="unit-price">
  413. <text>{{pricesInfoCurrent2.costPrice.toFixed(2)}}</text>
  414. <text class="unit">元/度</text>
  415. </view>
  416. <view class="unit-price2"
  417. v-if="(personInfo&&personInfo.userType==2)&&(station.giveDiscount||(pricesInfoCurrent2.discountServicePrice))">
  418. 原价:{{(pricesInfoCurrent2.electricityPrice+pricesInfoCurrent2.servicePrice).toFixed(2)}}元/度
  419. </view>
  420. </view>
  421. <view class="item item-vip" v-if="userId&&userCardBool&&userCard.classify==1">
  422. <view class="visitor">
  423. 折扣卡会员价
  424. </view>
  425. <view class="unit-price">
  426. <text>{{(pricesInfoCurrent2.electricityPrice).toFixed(2)}}</text>
  427. <text class="unit">元/度</text>
  428. <view class="unit-price3">
  429. 已开通
  430. </view>
  431. </view>
  432. </view>
  433. <view class="item " v-if="!userCardBool" :class="{
  434. 'item-vip2':prevMonthKwhBL,
  435. 'item-vip':!prevMonthKwhBL
  436. }">
  437. <template v-if="prevMonthKwhBL">
  438. <view class="visitor">
  439. 6折卡会员价
  440. </view>
  441. <view class="unit-price">
  442. <text>{{showNumJP(pricesInfoCurrent2.electricityPrice+(pricesInfoCurrent2.servicePrice*0.6))}}</text>
  443. <text class="unit">元/度</text>
  444. <text class="register"
  445. @click="gotoUrl('pages/discountCard/productDetails')">开通</text>
  446. </view>
  447. </template>
  448. <template v-else>
  449. <view class="visitor">
  450. 月卡价格
  451. </view>
  452. <view class="unit-price">
  453. <text>{{(pricesInfoCurrent2.electricityPrice).toFixed(2)}}</text>
  454. <text class="unit">元/度</text>
  455. <text class="register" v-if="userId&&!userCardBool"
  456. @click="gotoUrl('pages/monthlyCardActivity/monthlyCardBuy')">开通</text>
  457. <text class="register" v-if="userId&&userCardBool">
  458. 已开通
  459. </text>
  460. </view>
  461. </template>
  462. </view>
  463. <view class="item item-vip3" :class="{
  464. 'discount-card-4':userCard.cardType==4
  465. }" v-if="userId&&userCardBool&&userCard.classify==2">
  466. <view class="visitor" v-if="userCard.cardType==4">
  467. {{userCard.monthlyRentName}}
  468. </view>
  469. <view class="visitor" v-else>
  470. 服务费{{userCard.serviceFeeDiscountRate/10}}折卡会员价
  471. </view>
  472. <view class="unit-price">
  473. <view class="unit"><span>{{thisendTime(userCard.endTime)}} 到期</span></view>
  474. <view class="unit" v-if="userCard.chargeDegreeLimit">
  475. <span>已用{{userCard.chargedDegree?userCard.chargedDegree.toFixed(0):0.00}}度 /
  476. 共{{userCard.chargeDegreeLimit}}度</span></view>
  477. <view class="unit" v-if="userCard.chargeDegreeLimit==0&&userCard.saveInformation">
  478. <span>已用{{userCard.saveInformation.num}}次 /
  479. 共省{{userCard.saveInformation.saveMoney}}元</span>
  480. </view>
  481. <u-line-progress :show-percent="false" active-color="#2979ff"
  482. :percent="thispercent(userCard)"></u-line-progress>
  483. </view>
  484. </view>
  485. </view>
  486. <view class="classify" v-else>
  487. <view class="item item-member-all">
  488. <view class="visitor">
  489. 充电价格
  490. </view>
  491. <view class="unit-price">
  492. <text>{{pricesInfoCurrent2.costPrice.toFixed(2)}}</text>
  493. <text class="unit">元/度</text>
  494. </view>
  495. <view class="unit-price2"
  496. v-if="(personInfo&&personInfo.userType==2)&&(station.giveDiscount||(pricesInfoCurrent2.discountServicePrice))">
  497. 原价:{{(pricesInfoCurrent2.electricityPrice+pricesInfoCurrent2.servicePrice).toFixed(2)}}元/度
  498. </view>
  499. </view>
  500. </view>
  501. <!-- 提示 -->
  502. <p class="hint">*该价格为含服务费价格,实际价格以扫码价格为准。</p>
  503. <!-- 表格 -->
  504. <view class="chat-box" v-if="pricesInfoCurrent2.electricityPrice">
  505. <view class="chat-infos">
  506. <view class="item">
  507. <view class="name">
  508. <view class="icon icon1">
  509. </view>
  510. <view class="text">
  511. 时段
  512. </view>
  513. </view>
  514. <view class="value">
  515. {{pricesInfoCurrent2.startTime}}-{{pricesInfoCurrent2.endTime}}
  516. </view>
  517. </view>
  518. <view class="item">
  519. <view class="name">
  520. <view class="icon icon2">
  521. </view>
  522. <view class="text">
  523. 电价
  524. </view>
  525. </view>
  526. <view class="value">
  527. {{pricesInfoCurrent2.electricityPrice.toFixed(2)}}元/度
  528. </view>
  529. </view>
  530. <view class="item" style="margin-bottom:0">
  531. <view class="name">
  532. <view class="icon icon3">
  533. </view>
  534. <view class="text">
  535. 服务费
  536. </view>
  537. </view>
  538. <view class="value" v-if="station">
  539. <span
  540. v-if="(personInfo&&personInfo.userType==2)&&(station.giveDiscount||(pricesInfoCurrent2.discountServicePrice))">
  541. {{pricesInfoCurrent2.discountServicePrice.toFixed(2)}}元/度
  542. </span>
  543. <span v-else>{{pricesInfoCurrent2.servicePrice.toFixed(2)}}元/度</span>
  544. </view>
  545. </view>
  546. <view class="item"
  547. v-if="(personInfo&&personInfo.userType==2)&&station&&(station.giveDiscount||(pricesInfoCurrent2.discountServicePrice))">
  548. <view class="name">
  549. <view class=" ">
  550. </view>
  551. <view class="text">
  552. </view>
  553. </view>
  554. <view class="value value2">
  555. <span>(原价:{{pricesInfoCurrent2.servicePrice.toFixed(2)}}元/度)</span>
  556. </view>
  557. </view>
  558. </view>
  559. </view>
  560. <view class="chat_hhh" v-if="pricesInfoCurrent2.electricityPrice">
  561. <view class="chatTime" v-for="(item,i) in pricesInfo" :style="'width:'+getW(item)" :key="i"
  562. :class="{
  563. current1: pricesInfoCurrent.startTime==item.startTime,
  564. current2: pricesInfoCurrent2.startTime==item.startTime,
  565. }" @click="pricesInfoCurrent2=item">
  566. <template v-if="station">
  567. <template
  568. v-if="(personInfo&&personInfo.userType==2)&&(station.giveDiscount||(item.discountServicePrice))">
  569. <span class="chats1"
  570. :style="'height:'+getH(item.discountServicePrice)">{{item.discountServicePrice}}</span>
  571. </template>
  572. <template v-else>
  573. <span class="chats1"
  574. :style="'height:'+getH(item.servicePrice)">{{item.servicePrice}}</span>
  575. </template>
  576. </template>
  577. <span class="chats2" :style="'height:'+getH(item.electricityPrice)">
  578. <span>{{item.electricityPrice}}</span>
  579. <span class="chats0" v-if="pricesInfoCurrent.startTime==item.startTime">
  580. <span>当前</span>
  581. <span>时段</span>
  582. </span>
  583. <span class="chats9" v-else>
  584. <span>当前</span>
  585. <span>时段</span>
  586. </span>
  587. </span>
  588. </view>
  589. </view>
  590. <view class="chat_hhh_time" v-if="pricesInfoCurrent2.electricityPrice">
  591. <span>00:00</span>
  592. <span>12:00</span>
  593. <span>24:00</span>
  594. </view>
  595. </view>
  596. <!-- 附加信息 -->
  597. <view class="overhead-infos"
  598. v-if="stationDetail&&(stationDetail.station.describe||stationDetail.station.parkingDescription)">
  599. <view class="item" v-if="stationDetail.station.describe">
  600. <view class="title">
  601. 营业时间
  602. </view>
  603. <view class="value">
  604. {{stationDetail.station.describe}}<text></text>
  605. </view>
  606. </view>
  607. <u-line margin="24rpx 0 " color="#F0F0F2"></u-line>
  608. <view class="item" v-if="stationDetail.station.parkingDescription">
  609. <view class="title">
  610. 停车费
  611. </view>
  612. <view class="value"
  613. @click="()=>{if(stationDetail.station.parkingSimpleDescription){parkingTips=true}}">
  614. {{stationDetail.station.parkingDescription}}
  615. <text v-if="stationDetail.station.parkingSimpleDescription"><u-icon name="arrow-right"
  616. color="#999999" size="28"></u-icon></text>
  617. </view>
  618. </view>
  619. </view>
  620. </view>
  621. </view>
  622. <u-modal v-model="parkingTips" title="新能源汽车停车费说明" :title-style="{fontSize: '40rpx'}" confirm-text="知道了"
  623. confirm-color="#53b56b">
  624. <view style="padding: 15px;" v-html="stationDetail.station.parkingSimpleDescription"></view>
  625. </u-modal>
  626. <u-modal v-model="show" confirm-text="去看空闲桩" cancel-text="查看处罚规则" confirm-color="#00B962">
  627. <view class="" style="padding: 15px 20px;">
  628. 因您近期存在预约超时未前往充电的违约行为,平台为保证每位车主的合理权益,
  629. 对您作出停用预约充电功能1天的处罚。
  630. 您可于<span style="color: #00b962;">2022年6月20日09时45分</span>后使用此功能。
  631. </view>
  632. </u-modal>
  633. <u-modal v-model="openModalBl" @confirm="confirmPhoneBl" confirm-text="拨打电话" confirm-color="#606266"
  634. :show-cancel-button="true" ref="uModal" :asyncClose="true" title="客服电话" :content="consumerPhone"
  635. :content-style="{fontSize: '24px',color: '#101010'}"></u-modal>
  636. </view>
  637. </template>
  638. <script>
  639. import * as indexAPI from '@/apis/index.js'
  640. import * as WxJsApi from '@/utils/wxJsApi.js'
  641. import MapLoader from '@/utils/AMap'
  642. import * as API from '@/apis/chargeProcess.js'
  643. import * as api from "@/apis/site.js"
  644. let _self;
  645. import {
  646. newDate,
  647. parseUnixTime
  648. } from '@/utils'
  649. import groupItem from '@/components/GroupItem.vue'
  650. export default {
  651. components: {
  652. groupItem
  653. },
  654. data() {
  655. return {
  656. openModalBl: false,
  657. showNt: false,
  658. showNtStep: 0,
  659. showNtValue: 30,
  660. pricesInfoCurrent: null,
  661. pricesInfoCurrent2: null,
  662. noticeShow: false,
  663. parkingTips: false,
  664. stationId: '',
  665. pricesInfo: [],
  666. devicesId: '',
  667. elderMode: false,
  668. userId: '',
  669. userCard: null,
  670. show: false,
  671. showtips: true,
  672. list: [{
  673. "name": "充电桩"
  674. },
  675. {
  676. "name": "价格说明"
  677. }
  678. ],
  679. current: 0,
  680. currentPos: {
  681. /* name:'荆鹏软件园充电站',
  682. longitude: 112.28468,
  683. latitude: 30.307094,*/
  684. },
  685. stationAddressList: [],
  686. station: {},
  687. stationDetail: {
  688. devices: [],
  689. slowPrice: null,
  690. station: {},
  691. fastPrice: null
  692. },
  693. openlist: null,
  694. personInfo: null,
  695. consumerPhone: "",
  696. info: {
  697. station: {
  698. time: '周一到周日 07:00~22:00(节假日除外)',
  699. /* id:1,
  700. name:'荆鹏软件园充电站',
  701. longitude: 112.28468,
  702. latitude: 30.307094,
  703. type:'交流慢充',
  704. distance:0.1,
  705. address:'湖北省荆州市沙市区江津东路附155号'*/
  706. },
  707. prices: [
  708. ],
  709. park: {
  710. price: '2小时免费停车'
  711. },
  712. uuid: '',
  713. setIntervalBool: true,
  714. priceList: [],
  715. platform: '',
  716. personInfo: {},
  717. consumerPhone: "",
  718. devices: {
  719. idleNum: 1,
  720. total: 6,
  721. items: [
  722. ]
  723. },
  724. },
  725. carImg3span1: 0,
  726. carImg3span2: 0,
  727. canUse: false,
  728. flag: "",
  729. pilestate: {}
  730. }
  731. },
  732. onLoad(op) {
  733. uni.getSystemInfo({
  734. success: (res) => {
  735. // console.log("----------")
  736. // console.log(res.platform)
  737. this.platform = res.platform
  738. }
  739. })
  740. _self = this;
  741. // document.getElementsByTagName('body')[0].style.setProperty('--mode',1)
  742. if (op.jg == '1') {
  743. this.current = 1;
  744. }
  745. if (op != null) {
  746. if (op.id != null && op.id != undefined) {
  747. this.stationId = op.id;
  748. this.getPriceList(op.id)
  749. this.getChargingStationDetail()
  750. }
  751. }
  752. },
  753. onHide() {
  754. this.setIntervalBool = false
  755. if (this.uuid) {
  756. clearInterval(this.uuid)
  757. this.uuid = '';
  758. }
  759. },
  760. onShow() {
  761. this.setIntervalBool = true
  762. if (!this.uuid) {
  763. this.uuid = setInterval(() => {
  764. if (this.setIntervalBool) {
  765. this.getChargingStationDetail(true)
  766. }
  767. }, 5 * 1000)
  768. }
  769. if (this.carhelp.getPersonInfo()) {
  770. this.getHomePage()
  771. }
  772. //this.getHomePage()
  773. },
  774. onUnload() {
  775. if (this.uuid) {
  776. clearInterval(this.uuid)
  777. }
  778. },
  779. onReady() {
  780. var consumerPhone = "400-8899-619"
  781. // img="https://yktwechat.xiaoxinda.com/config/xxd2021.jpg"
  782. if (consumerPhone) {
  783. this.consumerPhone = consumerPhone
  784. }
  785. this.elderMode = this.carhelp.get('getElderModeClass') == '长辈模式';
  786. if (this.elderMode)
  787. this.theme('elder')
  788. else
  789. this.theme('standard')
  790. if (this.carhelp.getPersonInfo()) {
  791. this.userId = this.carhelp.getPersonInfo().id;
  792. this.personInfo = this.carhelp.getPersonInfo()
  793. //this.userCard = this.carhelp.getPersonInfoPlus().userCard
  794. this.getHomePage()
  795. }
  796. WxJsApi.getWxConfig(['getLocation', 'openLocation', 'addEventListener', 'scanQRCode']).then((res) => {
  797. // //(res)
  798. }).catch(error => {
  799. //(res)
  800. })
  801. },
  802. computed: {
  803. prevMonthKwhBL() {
  804. if (this.carImg3span1 >= 1000) {
  805. return false
  806. }
  807. return true
  808. },
  809. userCardBool() {
  810. if (this.userCard) {
  811. var date = new Date().getTime()
  812. var reg = new RegExp('-', 'gi')
  813. var str = this.userCard.endTime;
  814. //console.log(str.replace(reg,'/'))
  815. var date2 = newDate(str).getTime();
  816. if (date < date2) {
  817. return true;
  818. }
  819. }
  820. return false
  821. },
  822. numShowBl() {
  823. //true tab false line
  824. var superNum = this.stationDetail.station.superNum;
  825. var fastNumZ = this.stationDetail.station.fastNum;
  826. var fastNum = fastNumZ - superNum;
  827. var slowNum = this.stationDetail.station.slowNum;
  828. if (superNum && fastNum == 0 && slowNum == 0) {
  829. return false
  830. }
  831. if (fastNum && superNum == 0 && slowNum == 0) {
  832. return false
  833. }
  834. if (slowNum && fastNum == 0 && superNum == 0) {
  835. return false
  836. }
  837. return true;
  838. },
  839. stationDetailDevices() {
  840. var sz = [];
  841. for (var i in this.stationDetail.devices) {
  842. var item = this.stationDetail.devices[i]
  843. for (var j in item.gunList) {
  844. var gun = item.gunList[j]
  845. gun.device = item;
  846. sz.push(gun);
  847. }
  848. }
  849. sz = sz.sort(function(it1, it2) {
  850. if (!it2.device.online) {
  851. return -1
  852. }
  853. var i = 1;
  854. if (it1.device.online) {
  855. i = 1
  856. }
  857. if (it1.enableShare && !it1.enableShareWithinTime) {
  858. i = 1
  859. }
  860. i = it1.workStatus == 0 ? -1 : 1
  861. if (it2.workStatus == 0) {
  862. i = 1
  863. }
  864. if (!it2.enableShare || it2.enableShare && !it2.enableShareWithinTime) {
  865. i = -1
  866. }
  867. //console.log(it1,i)
  868. return i
  869. })
  870. var addis = ""
  871. var showIng = true
  872. if (this.flag == '' && this.stationAddressList && this.stationAddressList.length > 1) {
  873. sz.forEach(item => {
  874. item.deviceAddressShow = 0
  875. if (item.workStatus == 0) {
  876. if (item.device.deviceAddress != addis && item.device.deviceAddress) {
  877. addis = item.device.deviceAddress
  878. item.deviceAddressShow = 1
  879. item.showTitle = addis
  880. }
  881. } else {
  882. if (showIng) {
  883. showIng = false
  884. item.deviceAddressShow = 2
  885. item.showTitle = "其他状态"
  886. }
  887. }
  888. })
  889. }
  890. return sz
  891. }
  892. },
  893. watch: {
  894. flag(b) {
  895. this.pilestate = this.getpilestate()
  896. }
  897. },
  898. methods: {
  899. getChargeList() {
  900. var obj = this.carhelp.get("carhelp_getChargeList")
  901. var time = new Date().toLocaleString().substr(0, 12).replace("T", " ");
  902. if (obj && time == obj.time) {
  903. this.carImg3span1 = parseInt(obj.electricQuantity);
  904. this.carImg3span2 = parseInt(obj.totalServiceMoney);
  905. console.log("carhelp_getChargeList", this.carImg3span1, this.carImg3span2)
  906. return
  907. }
  908. var date = new Date().getTime() - 30 * 1000 * 60 * 60 * 24;
  909. var startDate = parseUnixTime(new Date(date), '{y}-{m}-{d}');
  910. if (this.carhelp.getPersonInfo() || this.userId) {
  911. indexAPI.chargingRecordData({
  912. pageIndex: 1,
  913. pageSize: 999,
  914. startDate: startDate,
  915. // endDate: this.endDate
  916. }).then((res) => {
  917. var chargeList = res.data.data;
  918. var num1 = 0;
  919. var num2 = 0;
  920. for (var i in chargeList) {
  921. var obj = chargeList[i]
  922. if (obj.status == 2) {
  923. num1 += obj.electricQuantity
  924. num2 += obj.totalServiceMoney
  925. }
  926. }
  927. console.log(num1, num2)
  928. this.carImg3span1 = parseInt(num1);
  929. this.carImg3span2 = parseInt(num2);
  930. this.carhelp.set("carhelp_getChargeList", {
  931. time: time,
  932. electricQuantity: num1,
  933. totalServiceMoney: num2
  934. })
  935. // if(num2*0.4>20){
  936. // this.carImg3Bl=true;
  937. // }else{
  938. // this.carImg4Bl=true;
  939. // }
  940. }).catch(error => {
  941. uni.showToast({
  942. title: error,
  943. icon: "none"
  944. })
  945. })
  946. }
  947. },
  948. getHomePage() {
  949. uni.showLoading({
  950. title: "加载中",
  951. mask: true,
  952. })
  953. API.userCard({
  954. stationId: this.stationId
  955. }).then((res) => {
  956. console.log(res)
  957. this.userCard = res.data.regUserCard
  958. this.canUse = res.data.canUse
  959. // if(this.canUse){
  960. // this.userCard=res.data.regUserCard
  961. // }
  962. uni.hideLoading()
  963. if (!this.userCardBool && !this.carImg3span1) {
  964. this.getChargeList()
  965. }
  966. }).catch(error => {
  967. uni.showToast({
  968. title: error
  969. })
  970. })
  971. },
  972. thisendTime(endTime) {
  973. if (endTime) {
  974. var reg = new RegExp('-', 'gi')
  975. var str = endTime.substring(0, 10).replace(reg, '.')
  976. return str
  977. }
  978. return ''
  979. },
  980. thispercent(userCard) {
  981. if(userCard.classify==1||(userCard.classify==2&&userCard.chargeDegreeLimit==0)){
  982. var k1=daysDistance(userCard.startTime, userCard.endTime)
  983. var k2=this.thisdaysDistance(userCard.endTime)
  984. var p=(k1-k2)/k2* 100
  985. if (p > 100) {
  986. p = 100
  987. }
  988. return p.toFixed(0)
  989. }else if(userCard.classify==2){
  990. var p = 0
  991. if (userCard && userCard.chargeDegreeLimit) {
  992. p = userCard.chargedDegree / userCard.chargeDegreeLimit * 100
  993. }
  994. if (p > 100) {
  995. p = 100
  996. }
  997. return p.toFixed(0)
  998. }else{
  999. return 0
  1000. }
  1001. },
  1002. getpilestate() {
  1003. var num1 = 0
  1004. var num2 = 0
  1005. var num3 = 0
  1006. for (var i in this.stationDetailDevices) {
  1007. var item = this.stationDetailDevices[i]
  1008. if (this.getShow(item)) {
  1009. if (item.isRed && item.workStatus != 2 || !item.device.online) {
  1010. num3++
  1011. } else if (item.workStatusText == '空闲中') {
  1012. num1++
  1013. } else {
  1014. num2++
  1015. }
  1016. }
  1017. }
  1018. return {
  1019. num1: num1,
  1020. num2: num2,
  1021. num3: num3
  1022. }
  1023. },
  1024. getShow(item) {
  1025. if (this.flag == '') {
  1026. return true
  1027. } else if (this.flag == 'super' && item.device.chargingType == '超充') {
  1028. return true
  1029. } else if (this.flag == 'fast' && item.device.chargingType == '快充') {
  1030. return true
  1031. } else if (this.flag == 'slow' && item.device.chargingType == '慢充') {
  1032. return true
  1033. } else {
  1034. return false
  1035. }
  1036. },
  1037. getH(item) {
  1038. return item * 100 + 'px'
  1039. },
  1040. getW(item) {
  1041. var t1 = item.endTime.substring(0, 2)
  1042. var t2 = item.startTime.substring(0, 2)
  1043. var k = parseInt(t1) - parseInt(t2);
  1044. return 100 / 24 * k + "%"
  1045. },
  1046. changeFlag() {
  1047. this.flag = !this.flag
  1048. },
  1049. enableAppointmentBl(item) {
  1050. if (!this.personInfo || this.personInfo.memberLevel != 4) {
  1051. return true
  1052. }
  1053. return (!item.enableAppointment || !(item.reserveWeekSettingList && item.reserveWeekSettingList.length));
  1054. },
  1055. confirmPhoneBl() {
  1056. this.openModalBl = false;
  1057. uni.makePhoneCall({
  1058. phoneNumber: this.consumerPhone //仅为示例
  1059. });
  1060. },
  1061. confirmPhone() {
  1062. if (this.stationDetail.station && this.stationDetail.station.contactPhone) {
  1063. uni.makePhoneCall({
  1064. phoneNumber: this.stationDetail.station.contactPhone //仅为示例
  1065. });
  1066. }
  1067. },
  1068. getChargingStationDetail(bl) {
  1069. if (!this.stationId) {
  1070. return false
  1071. }
  1072. var _self = this;
  1073. if (!bl) {
  1074. uni.showLoading({
  1075. })
  1076. }
  1077. let data = {
  1078. stationId: this.stationId
  1079. };
  1080. var distance = null;
  1081. if (bl && this.stationDetail && this.stationDetail.station) {
  1082. distance = this.stationDetail.station.distance
  1083. //防止重新获取定位
  1084. }
  1085. api.getChargingStationDetail(data).then(function(res) {
  1086. uni.hideLoading()
  1087. if (res && res.result && res.data) {
  1088. let data = res.data;
  1089. _self.stationDetail = data;
  1090. //console.log(data)
  1091. if (_self.stationDetail.station.contactPhone) {
  1092. _self.consumerPhone = _self.stationDetail.station.contactPhone
  1093. }
  1094. if (_self.stationAddressList.length == 0) {
  1095. _self.stationAddressList = _self.stationDetail.stationAddressList
  1096. }
  1097. if (_self.stationDetail.station.parkingDescription != null && _self.stationDetail.station
  1098. .parkingSimpleDescription != null) {
  1099. var tagList = _self.stationDetail.station.tagList;
  1100. for (var i = 0; i < tagList.length; i++) {
  1101. if (tagList[i] == _self.stationDetail.station.parkingDescription) {
  1102. tagList.splice(i, 1);
  1103. }
  1104. }
  1105. _self.stationDetail.station.tagList = tagList;
  1106. }
  1107. if (distance) {
  1108. _self.stationDetail.station.distance = distance
  1109. }
  1110. var totalNum = 0;
  1111. // _self.stationDetail.station.chargingType1=0;
  1112. // _self.stationDetail.station.chargingType2=0;
  1113. // _self.stationDetail.station.chargingType3=0;
  1114. // _self.stationDetail.station.chargingType1run=0;
  1115. // _self.stationDetail.station.chargingType2run=0;
  1116. // _self.stationDetail.station.chargingType3run=0;
  1117. // for(var i in _self.stationDetail.devices ){
  1118. // var device=_self.stationDetail.devices[i]
  1119. // var keyset="";
  1120. // if(device.chargingType=='超充'){
  1121. // keyset="chargingType1";
  1122. // }
  1123. // if(device.chargingType=='快充'){
  1124. // keyset="chargingType2";
  1125. // }
  1126. // if(device.chargingType=='慢充'){
  1127. // keyset="chargingType3";
  1128. // }
  1129. // for (let j = 0; j < device.gunList.length; j++) {
  1130. // if(device.gunList[j].workStatus==0){
  1131. // _self.stationDetail.station[keyset+"run"]++;
  1132. // }
  1133. // _self.stationDetail.station[keyset]++;
  1134. // }
  1135. // }
  1136. if (_self.openlist == null) {
  1137. _self.openlist = new Map();
  1138. for (var i in _self.stationDetail.devices) {
  1139. var device = _self.stationDetail.devices[i]
  1140. totalNum += device.gunList.length
  1141. for (let j = 0; j < device.gunList.length; j++) {
  1142. _self.openlist.set(device.gunList[j].id, false);
  1143. }
  1144. //console.log(_self.stationDetail.station)
  1145. }
  1146. _self.list[0].name = "充电桩(" + totalNum + ")"
  1147. }
  1148. if (_self.stationDetail.station.distance == null && !bl) {
  1149. _self.getPoint();
  1150. }
  1151. _self.pilestate = _self.getpilestate()
  1152. }
  1153. })
  1154. },
  1155. setOpen(item) {
  1156. var obj = this.openlist.get(item.id)
  1157. if (obj) {
  1158. obj = false;
  1159. } else {
  1160. obj = true
  1161. }
  1162. this.openlist.set(item.id, obj)
  1163. this.$forceUpdate()
  1164. },
  1165. change(index) {
  1166. this.current = index;
  1167. this.items = this.list[index].items;
  1168. },
  1169. previewImage(img) {
  1170. let imgs = [];
  1171. imgs.push(img);
  1172. uni.previewImage({
  1173. urls: imgs,
  1174. current: 0
  1175. })
  1176. },
  1177. book2(item, bl) {
  1178. if (bl) {
  1179. } else {
  1180. return
  1181. }
  1182. uni.navigateTo({
  1183. url: '/pages/searchPile/stationAndPile/chargingPileDetails?isback=1&id=' + item.gunNo,
  1184. })
  1185. ////('book'+JSON.stringify(item))
  1186. },
  1187. test(item) {
  1188. if (process.env.NODE_ENV === "development") {
  1189. uni.navigateTo({
  1190. url: '/pages/searchPile/stationAndPile/chargingPileDetails?isback=1&id=' + item.gunNo,
  1191. })
  1192. }
  1193. ////('book'+JSON.stringify(item))
  1194. },
  1195. book(item, bl) {
  1196. if (bl) {
  1197. } else {
  1198. uni.showToast({
  1199. title: '当前设备不可预约'
  1200. })
  1201. return
  1202. }
  1203. uni.navigateTo({
  1204. url: '/pages/searchPile/apointment/apointmentRecharge?id=' + item.gunNo,
  1205. })
  1206. ////('book'+JSON.stringify(item))
  1207. },
  1208. getPoint() {
  1209. // //('getPoint')
  1210. WxJsApi.getLocation().then((res) => {
  1211. var latitude = parseFloat(res.latitude);
  1212. var longitude = parseFloat(res.longitude);
  1213. var startLngLat = {
  1214. longitude: longitude,
  1215. latitude: latitude
  1216. };
  1217. var endLngLat = {
  1218. longitude: _self.stationDetail.station.longitude,
  1219. latitude: _self.stationDetail.station.latitude
  1220. };
  1221. _self.calculateDistance(startLngLat, endLngLat);
  1222. _self.calculateDistanceList(startLngLat)
  1223. /*uni.showToast({
  1224. title:'getPoint'+JSON.stringify(res)
  1225. })*/
  1226. ////('当前位置' +JSON.stringify(data))
  1227. //this.latitude2 = latitude;
  1228. //this.longitude2 = longitude;
  1229. /*uni.showToast({
  1230. title:JSON.stringify(res)
  1231. })*/
  1232. //this.message=JSON.stringify(res)
  1233. }).catch(error => {
  1234. // uni.showToast({
  1235. // title: error //'getPoint'+JSON.stringify()
  1236. // })
  1237. })
  1238. },
  1239. calculateDistanceList(startLngLat) {
  1240. if (_self.stationDetail && _self.stationDetail.stationAddressList && _self.stationDetail.stationAddressList
  1241. .length) {
  1242. } else {
  1243. return
  1244. }
  1245. var list = _self.stationDetail.stationAddressList;
  1246. MapLoader().then(AMap1 => {
  1247. for (var i in list) {
  1248. var endLngLat = list[i]
  1249. var lnglat = new AMap.LngLat(startLngLat.longitude, startLngLat.latitude);
  1250. var myDistance = lnglat.distance([endLngLat.longitude, endLngLat.latitude]);
  1251. endLngLat.distance = myDistance / 1000;
  1252. endLngLat.time = myDistance / 500;
  1253. }
  1254. _self.stationAddressList = list;
  1255. _self.$forceUpdate()
  1256. //console.log("11111111111111")
  1257. //console.log(_self.stationDetail.stationAddressList)
  1258. })
  1259. },
  1260. calculateDistance(startLngLat, endLngLat) {
  1261. var _this = this;
  1262. //直线距离
  1263. MapLoader().then(AMap1 => {
  1264. var lnglat = new AMap.LngLat(startLngLat.longitude, startLngLat.latitude);
  1265. var myDistance = lnglat.distance([endLngLat.longitude, endLngLat.latitude]);
  1266. _self.stationDetail.station.distance = myDistance / 1000;
  1267. _self.stationDetail.station.time = myDistance / 500;
  1268. })
  1269. //
  1270. return
  1271. //驾车距离
  1272. var _this = this;
  1273. MapLoader().then(AMap1 => {
  1274. this.AMap = AMap;
  1275. var map = new AMap.Map("container", {
  1276. center: [116.397559, 39.89621],
  1277. zoom: 14
  1278. });
  1279. var lnglat = new AMap.LngLat(117.186602, 34.261579);
  1280. //AMap.Walking
  1281. AMap.plugin('AMap.Driving', function() {
  1282. var driving = new AMap.Driving({
  1283. // 驾车路线规划策略,AMap.DrivingPolicy.LEAST_TIME是最快捷模式
  1284. policy: AMap.DrivingPolicy.LEAST_TIME
  1285. })
  1286. //var startLngLat = [116.379028, 39.865042]
  1287. //var endLngLat = [116.427281, 39.903719]
  1288. var startLngLat2 = [startLngLat.longitude, startLngLat.latitude]
  1289. var endLngLat2 = [endLngLat.longitude, endLngLat.latitude]
  1290. driving.search(startLngLat2, endLngLat2, function(status, result) {
  1291. //(result)
  1292. //(result.routes[0].time)//秒
  1293. //(result.routes[0].distance)//米
  1294. _self.stationDetail.station.distance = result.routes[0].distance /
  1295. 1000;
  1296. _self.stationDetail.station.time = result.routes[0].time / 60;
  1297. })
  1298. })
  1299. }, e => {
  1300. //_this.mui.toast('地图加载失败');
  1301. //('地图加载失败', e)
  1302. console.log(e)
  1303. })
  1304. },
  1305. getScanCode() {
  1306. WxJsApi.scanQRCode(1).then(res => {
  1307. if (res) {
  1308. indexAPI.scanCode(res).then((response) => {
  1309. }).catch(error => {
  1310. uni.showToast({
  1311. title: error,
  1312. icon: "none"
  1313. })
  1314. })
  1315. }
  1316. }).catch(error => {
  1317. })
  1318. },
  1319. getPriceList(id) {
  1320. var formatNum = function(num) {
  1321. let res = Number(num);
  1322. return res < 10 ? '0' + res : res;
  1323. };
  1324. let data = {
  1325. stationId: id
  1326. };
  1327. api.getChargingStationPrice(data).then((res) => {
  1328. if (res.data.prices.length) {
  1329. let date = new Date();
  1330. this.station = res.data.chargingStation
  1331. let hours = date.getHours();
  1332. let minutes = date.getMinutes();
  1333. let seconds = date.getSeconds();
  1334. let date_str = formatNum(hours) + ':' + formatNum(minutes); //+ ' ' +formatWeek;
  1335. this.pricesInfo = res.data.prices[0].priceList
  1336. //console.log(this.pricesInfo)
  1337. for (var i in this.pricesInfo) {
  1338. var obj = this.pricesInfo[i]
  1339. if (date_str >= obj.startTime && date_str <= obj.endTime) {
  1340. obj.current = true;
  1341. this.pricesInfoCurrent = obj
  1342. this.pricesInfoCurrent2 = obj
  1343. if (obj.electricityPrice == 0 || this.station.stationType == 50) {
  1344. this.showtips = false
  1345. }
  1346. }
  1347. }
  1348. }
  1349. })
  1350. },
  1351. navigate(item) {
  1352. if (item) {
  1353. if (item.areaTitle) {
  1354. item.name = _self.stationDetail.station.name
  1355. }
  1356. } else {
  1357. item = _self.stationDetail.station
  1358. }
  1359. //console.log(item)
  1360. uni.showLoading({
  1361. })
  1362. WxJsApi.openLocation({
  1363. latitude: parseFloat(item.latitude), //目的地latitude
  1364. longitude: parseFloat(item.longitude), //目的地longitude
  1365. name: item.name,
  1366. address: item.address,
  1367. scale: 15, //地图缩放大小,可根据情况具体调整
  1368. success(res) {
  1369. uni.hideLoading()
  1370. },
  1371. complete() {
  1372. // uni.hideLoading()
  1373. }
  1374. });
  1375. // //('station'+JSON.stringify(_self.stationDetail.station))
  1376. // window.location.href = "https://uri.amap.com/marker?position=" + _self.stationDetail.station.longitude +
  1377. // "," + _self.stationDetail.station.latitude + "&name=" + _self.stationDetail.station.name;
  1378. },
  1379. charge() {
  1380. //('扫码充电')
  1381. //#ifdef MP-WEIXIN
  1382. uni.scanCode({
  1383. success: function(res) {
  1384. uni.navigateTo({
  1385. url: 'chargingPileDetails?pile=' + encodeURIComponent(JSON.stringify(data))
  1386. })
  1387. }
  1388. })
  1389. return;
  1390. //#endif
  1391. //('扫码充电1')
  1392. uni.navigateTo({
  1393. url: 'chargingPileDetails'
  1394. })
  1395. },
  1396. priceDetail(t, id) {
  1397. uni.navigateTo({
  1398. url: 'chargePriceDetails?stationId=' + _self.stationDetail.station.id + "&type=" + t + "&id=" +
  1399. id
  1400. })
  1401. },
  1402. map(item) {
  1403. this.navigate(item)
  1404. //var item= _self.stationDetail.station
  1405. //window.location.href="https://uri.amap.com/marker?position="+ item.longitude+","+item.latitude+"&name="+item.name;
  1406. // //('map'+JSON.stringify(_self.station))
  1407. // _self.station.address = 'xxxxxxxxxxxxx'
  1408. // //this.carhelp.set(_self.stationDetail.station.id,_self.station);
  1409. // uni.navigateTo({
  1410. // url: 'stationDetailsMap?stationId=' + _self.stationDetail.station.id
  1411. // //url:'stationDetailsMap?station='+encodeURIComponent(JSON.stringify(_self.station))
  1412. // })
  1413. },
  1414. theme(type) {
  1415. if (type == 'elder') {
  1416. document.getElementsByTagName('body')[0].setAttribute('data-theme', type);
  1417. } else {
  1418. document.getElementsByTagName('body')[0].setAttribute('data-theme', type);
  1419. }
  1420. }
  1421. }
  1422. }
  1423. </script>
  1424. <style lang="scss" scoped>
  1425. .oldTextClassF {
  1426. .stationDetail .title {
  1427. font-size: 62rpx;
  1428. }
  1429. .stationDetail .position .address {
  1430. font-size: 38rpx;
  1431. }
  1432. .stationDetail .type .type-box .box-top .pile-type {
  1433. font-size: 38rpx;
  1434. color: #101010;
  1435. }
  1436. .stationDetail .pile-state .gun-details .item .itemShowOpen .itemView .infos .gun-name {
  1437. font-size: 48rpx;
  1438. }
  1439. .stationDetail .price-infos .title {
  1440. font-size: 38rpx;
  1441. }
  1442. }
  1443. .service {
  1444. font-size: 24px;
  1445. color: #101010;
  1446. }
  1447. page {
  1448. background-color: #F2F2F2;
  1449. }
  1450. .head {
  1451. width: 100%;
  1452. height: 360rpx;
  1453. img {
  1454. width: 100%;
  1455. height: 100%;
  1456. }
  1457. }
  1458. // 站点详情
  1459. .stationDetail {
  1460. background-color: #F2F2F2;
  1461. // background: linear-gradient(180deg, rgba(255,255,255,1) 59%,rgba(255,255,255,0) 100%);
  1462. border-radius: 24rpx 24rpx 0px 0px;
  1463. margin-top: -48rpx;
  1464. color: #101010;
  1465. z-index: 99;
  1466. position: absolute;
  1467. left: 0;
  1468. right: 0;
  1469. padding-bottom: 100rpx;
  1470. .stationDetailHead {
  1471. border-radius: 24rpx 24rpx 0px 0px;
  1472. background-color: #FFF;
  1473. padding: 24rpx 32rpx 12rpx 32rpx;
  1474. }
  1475. .stationDetailBody {
  1476. padding: 24rpx 32rpx;
  1477. }
  1478. // 标题
  1479. .title {
  1480. color: rgba(16, 16, 16, 1);
  1481. font-size: 40rpx;
  1482. font-weight: bold;
  1483. }
  1484. // 标签
  1485. .tags {
  1486. display: flex;
  1487. margin-top: 8rpx;
  1488. flex-wrap: wrap;
  1489. .tags1 {
  1490. //border: 1px solid rgba(255, 139, 0, 1);
  1491. height: 40rpx;
  1492. line-height: 40rpx;
  1493. border-radius: 4px;
  1494. //color: rgba(255, 139, 0, 1);
  1495. font-size: 24rpx;
  1496. text-align: center;
  1497. padding: 0 8rpx 0 8rpx;
  1498. margin-right: 16rpx;
  1499. margin-bottom: 8rpx;
  1500. }
  1501. .sign-1 {
  1502. background-color: rgba(255, 255, 255, 100);
  1503. color: rgba(255, 139, 0, 100);
  1504. border: 1px solid rgba(255, 139, 0, 100);
  1505. }
  1506. .sign-3 {
  1507. background-color: rgba(255, 255, 255, 100);
  1508. color: #8161FF;
  1509. border: 1px solid #8161FF;
  1510. }
  1511. .sign-4 {
  1512. background-color: rgba(255, 255, 255, 100);
  1513. color: #00B962;
  1514. border: 1px solid #00B962;
  1515. }
  1516. .sign-2 {
  1517. background-color: rgba(255, 255, 255, 100);
  1518. color: rgba(153, 153, 153, 100);
  1519. border: 1px solid rgba(204, 204, 204, 100);
  1520. }
  1521. }
  1522. // 定位
  1523. .position {
  1524. display: flex;
  1525. justify-content: space-between;
  1526. margin-bottom: 24rpx;
  1527. .block {
  1528. width: 96rpx;
  1529. height: 40rpx;
  1530. line-height: 40rpx;
  1531. border-radius: 50px;
  1532. background-color: rgba(0, 185, 98, 1);
  1533. color: rgba(255, 255, 255, 1);
  1534. font-size: 22rpx;
  1535. text-align: center;
  1536. padding: 0 4rpx;
  1537. }
  1538. .address {
  1539. width: 460rpx;
  1540. //margin-left: 16rpx;
  1541. color: rgba(16, 16, 16, 1);
  1542. font-size: 32rpx;
  1543. line-height: 44rpx;
  1544. }
  1545. .distance {
  1546. display: flex;
  1547. flex-direction: column;
  1548. align-items: center;
  1549. .distance-icon {
  1550. width: 40rpx;
  1551. height: 40rpx;
  1552. display: flex;
  1553. justify-content: center;
  1554. align-items: center;
  1555. background-color: rgba(0, 185, 98, 1);
  1556. border-radius: 999px;
  1557. }
  1558. .distance-text {
  1559. color: rgba(153, 153, 153, 1);
  1560. font-size: 24rpx;
  1561. margin-top: 16rpx;
  1562. }
  1563. }
  1564. }
  1565. // 充电桩类型
  1566. .type {
  1567. display: flex;
  1568. justify-content: space-between;
  1569. .checked {
  1570. background-color: rgba(20, 23, 43, 1) !important;
  1571. .pile-type {
  1572. color: #fff !important;
  1573. }
  1574. .cut {
  1575. color: #fff !important;
  1576. }
  1577. }
  1578. .numShowview {
  1579. width: 100% !important;
  1580. }
  1581. .numShowview2 {
  1582. width: 49% !important;
  1583. }
  1584. .type-box {
  1585. //width: 334rpx;
  1586. padding: 8rpx 0;
  1587. width: 32%;
  1588. border-radius: 8rpx;
  1589. background-color: rgba(255, 255, 255, 1);
  1590. position: relative;
  1591. padding: 8rpx 0;
  1592. .box-top {
  1593. display: flex;
  1594. align-items: center;
  1595. justify-content: center;
  1596. .super,
  1597. .fast,
  1598. .slow {
  1599. width: 40rpx;
  1600. height: 40rpx;
  1601. display: flex;
  1602. justify-content: center;
  1603. align-items: center;
  1604. border-radius: 8rpx;
  1605. color: rgba(255, 255, 255, 1);
  1606. font-size: 20rpx
  1607. }
  1608. .super {
  1609. background-color: #8161FF;
  1610. }
  1611. .fast {
  1612. background-color: #1677FF;
  1613. }
  1614. .slow {
  1615. background-color: #00B962;
  1616. }
  1617. .pile-type {
  1618. color: #303133;
  1619. font-size: 32rpx;
  1620. margin-left: 4rpx;
  1621. }
  1622. }
  1623. .pile-amount {
  1624. display: flex;
  1625. justify-content: center;
  1626. .super {
  1627. color: #8161FF;
  1628. margin-right: 8rpx;
  1629. }
  1630. .fast {
  1631. color: #1677FF;
  1632. margin-right: 8rpx;
  1633. }
  1634. .free {
  1635. color: #00B962;
  1636. margin-right: 8rpx;
  1637. }
  1638. .sum {
  1639. color: #999;
  1640. margin-left: 8rpx;
  1641. }
  1642. }
  1643. }
  1644. // 尖角
  1645. .angle {
  1646. position: absolute;
  1647. width: 0;
  1648. height: 0;
  1649. display: inline-block;
  1650. border-top: 16rpx solid #000000;
  1651. border-left: 16rpx solid transparent;
  1652. border-right: 16rpx solid transparent;
  1653. bottom: -16rpx;
  1654. left: 167rpx;
  1655. }
  1656. }
  1657. // 充电桩状态
  1658. .pile-state {
  1659. border-radius: 8px 8px 0 0;
  1660. margin-top: 32rpx;
  1661. background-color: rgba(255, 255, 255, 1);
  1662. padding: 24rpx;
  1663. // 总计
  1664. .statistics {
  1665. width: 406rpx;
  1666. border: 1px solid rgba(204, 204, 204, 1);
  1667. padding: 0 16rpx;
  1668. height: 48rpx;
  1669. display: flex;
  1670. justify-content: space-between;
  1671. align-items: center;
  1672. color: #777777;
  1673. .cut {
  1674. color: #8FCFB1;
  1675. }
  1676. }
  1677. // 充电枪详情
  1678. .gun-details {
  1679. .item {
  1680. margin-bottom: 12rpx;
  1681. .open-time {
  1682. border-bottom: 1px solid rgba(238, 242, 240, 100);
  1683. // padding-left: 150rpx;
  1684. // padding-bottom: 40rpx;
  1685. display: flex;
  1686. justify-content: center;
  1687. line-height: 18px;
  1688. font-size: 14px;
  1689. color: rgb(136, 136, 136);
  1690. p {
  1691. text-indent: 112px;
  1692. }
  1693. }
  1694. .itemShowOpen {
  1695. margin-top: 24rpx;
  1696. padding-top:18rpx;
  1697. border-top: 1px dashed #d5d0d0;
  1698. display: flex;
  1699. align-items: center;
  1700. justify-content: space-between;
  1701. .itemView {
  1702. display: flex;
  1703. align-items: center;
  1704. .state {
  1705. border-radius: 4px;
  1706. background: linear-gradient(180deg, rgba(98, 228, 167, 1) 0%, rgba(0, 180, 95, 1) 100%);
  1707. padding: 4rpx 12rpx;
  1708. display: flex;
  1709. flex-direction: column;
  1710. align-items: center;
  1711. justify-content: center;
  1712. img {
  1713. width: 56rpx;
  1714. height: 56rpx;
  1715. }
  1716. .state-text {
  1717. color: rgba(255, 255, 255, 1);
  1718. font-size: 22rpx;
  1719. margin-top: -10rpx;
  1720. }
  1721. }
  1722. .color185AC6 {
  1723. //color: #185AC6
  1724. background: linear-gradient(180deg, rgba(154,192,255,1) 0%,rgba(22,119,255,1) 100%);
  1725. //background: linear-gradient(90.17deg, rgba(31, 85, 255, 1) -3.73%, rgba(39, 171, 255, 1) 98.97%);
  1726. }
  1727. .color00B962 {
  1728. //color: #00B962
  1729. //background: linear-gradient(90deg, rgba(0, 146, 77, 1) 0%, rgba(62, 232, 152, 1) 100%);
  1730. }
  1731. .colorCA9DFF {
  1732. // color: #8161FF;
  1733. background: linear-gradient(90.17deg, #4f2ae0b5 -3.73%, #8e71ffba 98.97%);
  1734. //background: linear-gradient(90.17deg, rgba(79, 42, 224, 1) -3.73%, rgba(142, 113, 255, 1) 98.97%) ;
  1735. }
  1736. .charging {
  1737. background: linear-gradient(180deg, #FFC146 0%, #FF6B00 100%);
  1738. }
  1739. //充电中
  1740. .chargingOk {
  1741. background: linear-gradient(180deg, rgba(154,192,255,1) 0%,rgba(22,119,255,1) 100%);
  1742. }
  1743. // 离线
  1744. .off-line {
  1745. background: linear-gradient(180deg, rgba(209, 204, 204, 1) 0%, rgba(148, 145, 145, 1) 100%);
  1746. }
  1747. // 详细信息
  1748. .infos {
  1749. margin-left: 16rpx;
  1750. .gun-name {
  1751. color: rgba(51, 51, 51, 1);
  1752. font-size: 44rpx;
  1753. font-weight: bold;
  1754. width: 320rpx;
  1755. white-space: nowrap;
  1756. overflow: hidden;
  1757. text-overflow: ellipsis;
  1758. text {
  1759. color: #D6D6D6;
  1760. font-weight: normal;
  1761. }
  1762. }
  1763. }
  1764. .else {
  1765. display: flex;
  1766. align-items: center;
  1767. margin-top: 8rpx;
  1768. .gun-type {
  1769. //color: rgba(22, 119, 255, 1);
  1770. color: #fff;
  1771. //background: linear-gradient(93.02deg, rgba(255,121,0,1) 39.4%,rgba(255,174,0,1) 93.51%);
  1772. border-radius: 4px;
  1773. padding: 1px 12rpx;
  1774. margin-right: 8rpx;
  1775. font-size: 22rpx;
  1776. // height: 32rpx;
  1777. }
  1778. .voltage {
  1779. margin: 0 8rpx;
  1780. }
  1781. }
  1782. }
  1783. }
  1784. }
  1785. .item-tip{
  1786. // padding-left: 100rpx;
  1787. .else {
  1788. display: flex;
  1789. align-items: center;
  1790. margin-top: 8rpx;
  1791. .gun-type {
  1792. //color: rgba(22, 119, 255, 1);
  1793. color: #fff;
  1794. //background: linear-gradient(93.02deg, rgba(255,121,0,1) 39.4%,rgba(255,174,0,1) 93.51%);
  1795. border-radius: 4px;
  1796. padding: 1px 12rpx;
  1797. margin-right: 8rpx;
  1798. font-size: 22rpx;
  1799. // height: 32rpx;
  1800. }
  1801. .voltage {
  1802. margin: 0 8rpx;
  1803. }
  1804. }
  1805. }
  1806. // 充电按钮
  1807. .charge {
  1808. width: 96rpx;
  1809. height: 48rpx;
  1810. line-height: 48rpx;
  1811. border-radius: 50px;
  1812. background-color: rgba(0, 185, 98, 1);
  1813. color: rgba(255, 255, 255, 1);
  1814. text-align: center;
  1815. }
  1816. .not-open-tag {
  1817. background-color: rgba(192, 196, 208, 100);
  1818. }
  1819. .not-enable-Appointment {
  1820. width: 168rpx;
  1821. height: 56rpx;
  1822. line-height: 56rpx;
  1823. font-size: 32rpx;
  1824. }
  1825. .electric-quantity {
  1826. width: 168rpx;
  1827. height: 52rpx;
  1828. position: relative;
  1829. img {
  1830. width: 168rpx;
  1831. height: 72rpx;
  1832. }
  1833. .percentage2 {
  1834. text-align: center;
  1835. width: 126rpx;
  1836. height: 72rpx;
  1837. color: rgba(255, 255, 255, 1);
  1838. font-size: 30rpx;
  1839. line-height: 88rpx;
  1840. position: absolute;
  1841. left: 50%;
  1842. top: 50%;
  1843. transform: translate(-50%, -50%);
  1844. }
  1845. .percentage {
  1846. text-align: center;
  1847. width: 126rpx;
  1848. height: 72rpx;
  1849. color: rgba(255, 255, 255, 1);
  1850. font-size: 34rpx;
  1851. line-height: 88rpx;
  1852. position: absolute;
  1853. left: 50%;
  1854. top: 34rpx;
  1855. transform: translate(-50%, -50%);
  1856. white-space: nowrap;
  1857. overflow: hidden;
  1858. text-overflow: ellipsis;
  1859. }
  1860. }
  1861. }
  1862. }
  1863. // 价格信息
  1864. .price-infos {
  1865. background-color: #fff;
  1866. padding: 24rpx;
  1867. border-radius: 0 0 8px 8px;
  1868. .title {
  1869. color: rgba(51, 51, 51, 1);
  1870. font-weight: bold;
  1871. font-size: 32rpx;
  1872. text {
  1873. color: #777777;
  1874. font-weight: normal;
  1875. }
  1876. }
  1877. // 分类
  1878. .classify {
  1879. display: flex;
  1880. justify-content: space-between;
  1881. margin-top: 24rpx;
  1882. .item {
  1883. border-radius: 4px;
  1884. background-color: rgba(230, 245, 237, 1);
  1885. padding: 22rpx;
  1886. .unit-price {
  1887. font-size: 56rpx;
  1888. }
  1889. .unit-price2 {
  1890. color: #999999;
  1891. font-size: 24rpx;
  1892. font-weight: normal;
  1893. text-decoration: line-through;
  1894. }
  1895. .unit-price3 {
  1896. color: #999999;
  1897. font-size: 24rpx;
  1898. font-weight: normal;
  1899. //text-decoration: line-through;
  1900. }
  1901. .unit {
  1902. color: rgba(119, 119, 119, 1);
  1903. font-size: 28rpx
  1904. }
  1905. }
  1906. // 游客价
  1907. .item-visitor {
  1908. color: #333333;
  1909. width: 42%;
  1910. }
  1911. // 充电价格
  1912. .item-member {
  1913. color: #27B148;
  1914. width: 57%;
  1915. }
  1916. // 充电价格
  1917. .item-member-vip {
  1918. color: #27B148;
  1919. width: 42%;
  1920. }
  1921. .item-vip {
  1922. //color: #5A3629;
  1923. color: rgba(255, 255, 255, 1);
  1924. //background-color:#FFF9EB ;
  1925. background: linear-gradient(88.81deg, rgba(219, 199, 167, 1) 1.89%, rgba(194, 154, 93, 1) 98%);
  1926. width: 57%;
  1927. .unit {
  1928. color: rgba(255, 255, 255, 1);
  1929. }
  1930. .register {
  1931. padding: 4rpx 16rpx;
  1932. height: 24px;
  1933. border-radius: 50px;
  1934. //background: linear-gradient(87.64deg, rgba(253, 129, 69, 1) 1.81%, rgba(252, 63, 3, 1) 100.04%);
  1935. background: linear-gradient(87.64deg, rgba(255, 255, 255, 1) 1.81%, rgba(255, 251, 215, 1) 98.08%);
  1936. color: rgba(128, 74, 0, 1);
  1937. font-size: 24rpx;
  1938. text-align: center;
  1939. margin-left: 38rpx;
  1940. }
  1941. }
  1942. .item-vip2 {
  1943. color: rgba(255, 255, 255, 1);
  1944. background: linear-gradient(32.4deg, rgba(59, 182, 254, 1) 20.49%, rgba(0, 185, 98, 1) 118.87%);
  1945. ;
  1946. width: 57%;
  1947. .register {
  1948. padding: 4rpx 16rpx;
  1949. height: 24px;
  1950. border-radius: 50px;
  1951. //background: linear-gradient(87.64deg, rgba(253, 129, 69, 1) 1.81%, rgba(252, 63, 3, 1) 100.04%);
  1952. background: linear-gradient(87.64deg, rgba(255, 255, 255, 1) 1.81%, rgba(217, 255, 237, 1) 98.08%);
  1953. color: rgba(0, 142, 75, 1);
  1954. font-size: 24rpx;
  1955. text-align: center;
  1956. margin-left: 38rpx;
  1957. }
  1958. .unit {
  1959. color: rgba(255, 255, 255, 1);
  1960. }
  1961. }
  1962. .discount-card-4 {
  1963. background: #da241e !important;
  1964. .unit {
  1965. color: #fff !important;
  1966. }
  1967. .u-progress {
  1968. background-color: #e8aaa5 !important;
  1969. color: #fff;
  1970. }
  1971. }
  1972. .item-vip3 {
  1973. color: rgba(255, 255, 255, 1);
  1974. background-color: rgba(55, 59, 80, 1);
  1975. width: 57%;
  1976. .unit-price {
  1977. font-size: 44rpx;
  1978. }
  1979. .unit {
  1980. color: rgba(204, 204, 204, 1);
  1981. font-size: 10px;
  1982. }
  1983. .progress {
  1984. display: flex;
  1985. justify-content: space-between;
  1986. color: rgba(219, 219, 219, 1);
  1987. font-size: 24rpx;
  1988. margin-bottom: 16rpx;
  1989. margin-top: 24rpx;
  1990. }
  1991. ::v-deep .u-active {
  1992. background: linear-gradient(84.49deg, rgba(59, 182, 254, 1) 4.25%, rgba(0, 185, 98, 1) 95.02%);
  1993. }
  1994. }
  1995. // 充电价格
  1996. .item-member-all {
  1997. color: #27B148;
  1998. width: 100%;
  1999. }
  2000. .register {
  2001. padding: 4rpx 16rpx;
  2002. height: 24px;
  2003. border-radius: 50px;
  2004. background: linear-gradient(87.64deg, rgba(253, 129, 69, 1) 1.81%, rgba(252, 63, 3, 1) 100.04%);
  2005. color: rgba(255, 255, 255, 1);
  2006. font-size: 24rpx;
  2007. text-align: center;
  2008. margin-left: 38rpx;
  2009. }
  2010. }
  2011. // 提示
  2012. .hint {
  2013. margin: 16rpx 0;
  2014. color: rgba(119, 119, 119, 1);
  2015. }
  2016. // 图表
  2017. .chat-box {
  2018. border-radius: 4px;
  2019. background-color: rgba(249, 249, 249, 1);
  2020. padding: 24rpx;
  2021. .chat-infos {
  2022. .item {
  2023. display: flex;
  2024. justify-content: space-between;
  2025. align-items: center;
  2026. margin-bottom: 32rpx;
  2027. .name {
  2028. display: flex;
  2029. align-items: center;
  2030. .icon {
  2031. width: 56rpx;
  2032. height: 28rpx;
  2033. margin-right: 8rpx;
  2034. }
  2035. .icon1 {
  2036. border: 2px solid rgba(0, 0, 0, 1);
  2037. }
  2038. .icon2 {
  2039. background-color: rgba(87, 228, 160, 1);
  2040. }
  2041. .icon3 {
  2042. background-color: rgba(220, 220, 220, 1);
  2043. }
  2044. .text {
  2045. color: rgba(102, 102, 102, 1);
  2046. font-size: 32rpx;
  2047. }
  2048. }
  2049. .value {
  2050. color: rgba(16, 16, 16, 1);
  2051. font-size: 32rpx;
  2052. font-weight: bold;
  2053. }
  2054. .value2 {
  2055. color: #999999;
  2056. font-size: 28rpx;
  2057. font-weight: normal;
  2058. text-decoration: line-through;
  2059. }
  2060. }
  2061. }
  2062. }
  2063. }
  2064. .chat_hhh_time {
  2065. display: flex;
  2066. justify-content: space-between;
  2067. }
  2068. .chat_hhh {
  2069. background: #f9f9f9;
  2070. text-align: center;
  2071. min-height: 160px;
  2072. display: flex;
  2073. font-size: 20rpx;
  2074. .current1 {
  2075. .chats2 {
  2076. //border: 1px solid red;
  2077. }
  2078. }
  2079. .current2 {
  2080. .chats1 {
  2081. border: 1px solid #333333;
  2082. border-bottom: 0px;
  2083. }
  2084. .chats2 {
  2085. border: 1px solid #333333;
  2086. background: #26FF6B !important;
  2087. border-top: 0px;
  2088. }
  2089. }
  2090. .chatTime {
  2091. min-width: 68rpx;
  2092. display: flex;
  2093. flex-direction: column;
  2094. justify-content: flex-end;
  2095. border: 1px solid #f9f9f9;
  2096. .chats0 {
  2097. // background-color: #ff8b17;
  2098. // color: #ffecdd;
  2099. display: flex;
  2100. justify-content: center;
  2101. flex-wrap: wrap;
  2102. flex-direction: column;
  2103. }
  2104. .chats9 {
  2105. opacity: 0;
  2106. display: flex;
  2107. justify-content: center;
  2108. flex-wrap: wrap;
  2109. flex-direction: column;
  2110. }
  2111. .chats1 {
  2112. background: #dcdcdc;
  2113. min-height: 30rpx
  2114. }
  2115. .chats2 {
  2116. background: #80e0a6;
  2117. display: flex;
  2118. flex-direction: column;
  2119. justify-content: space-between;
  2120. }
  2121. }
  2122. }
  2123. // 附加信息
  2124. .overhead-infos {
  2125. margin-top: 24rpx;
  2126. background-color: #fff;
  2127. padding: 24rpx;
  2128. border-radius: 8px;
  2129. .item {
  2130. display: flex;
  2131. align-items: center;
  2132. justify-content: space-between;
  2133. font-size: 32rpx;
  2134. .title {
  2135. color: rgba(119, 119, 119, 1);
  2136. font-size: 32rpx;
  2137. }
  2138. .value {
  2139. color: rgba(51, 51, 51, 1);
  2140. }
  2141. }
  2142. }
  2143. }
  2144. .color185AC6 {
  2145. //color: #185AC6
  2146. background: linear-gradient(90.17deg, rgba(31, 85, 255, 1) -3.73%, rgba(39, 171, 255, 1) 98.97%);
  2147. }
  2148. .color00B962 {
  2149. //color: #00B962
  2150. background: linear-gradient(90deg, rgba(0, 146, 77, 1) 0%, rgba(62, 232, 152, 1) 100%);
  2151. }
  2152. .colorCA9DFF {
  2153. // color: #8161FF;
  2154. background: linear-gradient(90.17deg, rgba(79, 42, 224, 1) -3.73%, rgba(142, 113, 255, 1) 98.97%) ;
  2155. }
  2156. .deviceAddressShow {
  2157. margin-top: 24rpx;
  2158. font-size: 36rpx;
  2159. // color:#1677FF;
  2160. color: #00b962;
  2161. // font-weight: bold;
  2162. white-space: pre;
  2163. img {
  2164. width: 48rpx;
  2165. height: 24rpx;
  2166. margin: 0 16rpx;
  2167. }
  2168. }
  2169. .deviceAddressShow2 {
  2170. color: #ff8b00;
  2171. }
  2172. </style>