chargingPileDetails.vue 68 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819
  1. <template>
  2. <view>
  3. <u-popup v-model="carTempBl" @open="carTempBlInit" :closeable="true" mode="bottom">
  4. <view style="margin-top: 18px;">
  5. <view style="font-size: 48rpx;">临时车牌:{{form.carNum}}</view>
  6. <ucarkeyboard style="position: inherit !important;" ref="uKeyboard" mode="car"
  7. @confirm="car.carNum=form.carNum,carTempBl=false" @cancel="carTempBl=false" :showTips="true"
  8. :mask-close-able="false" @change="valChange" @backspace="backspace"></ucarkeyboard>
  9. </view>
  10. </u-popup>
  11. <view v-show="step==1">
  12. <ujp-navbar title="费用说明页" :startGz="false"
  13. :custom-back="customback2" ref="ujpnavbar">
  14. </ujp-navbar>
  15. <view class="main2">
  16. <view class="item">
  17. <view class="title">
  18. 充电枪编号
  19. </view>
  20. <view class="content">
  21. {{gun.gunNo}}
  22. </view>
  23. </view>
  24. <view class="item">
  25. <view class="title">
  26. 充电枪名称-充电枪类型
  27. </view>
  28. <view class="content">
  29. {{detail.name}}-{{detail.interfaceType}}{{detail.chargingType}}
  30. </view>
  31. </view>
  32. <view class="item">
  33. <view class="title">
  34. 充电枪功率
  35. </view>
  36. <view class="content">
  37. {{detail.chargingPower}}kW
  38. </view>
  39. </view>
  40. <view class="item" v-if="price">
  41. <view class="title">
  42. 电费+服务费
  43. </view>
  44. <view class="content" v-if="personInfo&&personInfo.userType==2">
  45. 当前时段:{{price.startTime}}~{{price.endTime}} 费用为
  46. <span style="color: #00b962;">{{price.costPrice.toFixed(2)}} </span>元/度
  47. <span v-if="station.giveDiscount">(含电费{{price.electricityPrice.toFixed(2)}}元/度 +
  48. 服务费{{price.discountServicePrice.toFixed(2)}}元/度(折前价{{price.servicePrice.toFixed(2)}}元/度))</span>
  49. <span v-if="!station.giveDiscount">(含电费{{price.electricityPrice.toFixed(2)}}元/度 +
  50. 服务费{{price.servicePrice.toFixed(2)}}元/度)</span>
  51. </view>
  52. <view class="content" v-else>
  53. 当前时段:{{price.startTime}}~{{price.endTime}} 费用为
  54. <span style="color: #00b962;">{{(price.electricityPrice+price.servicePrice).toFixed(2)}}
  55. </span>元/度
  56. <span>(含电费{{price.electricityPrice.toFixed(2)}}元/度 +
  57. 服务费{{price.servicePrice.toFixed(2)}}元/度)</span>
  58. </view>
  59. </view>
  60. <view class="item" v-if="station.parkingDescription">
  61. <view class="title">
  62. 停车费用
  63. </view>
  64. <view class="content"
  65. v-html="station.parkingSimpleDescription?station.parkingSimpleDescription:station.parkingDescription">
  66. </view>
  67. </view>
  68. </view>
  69. </view>
  70. <view v-show="step==0">
  71. <ujp-navbar title="充电枪详情" :startGz="false" :custom-back="customback">
  72. <view class="iconfont service" @click="openModal">
  73. &#xe60d;
  74. </view>
  75. </ujp-navbar>
  76. <!-- 未插枪提示 -->
  77. <!-- <u-alert-tips type="warning" v-if="!isInsert" :description="description" :show-icon="true"></u-alert-tips>
  78. -->
  79. <view class="main">
  80. <view class="main-head">
  81. <view class="text" v-if="haveLock&&lockStatus==1">
  82. <view class="text-1">
  83. 请下降地锁
  84. </view>
  85. <view class="text-2">
  86. 请在<span style="color:red">{{lockSafeStopTime}}秒</span>内停车入位,以免地锁抬升对您的爱车造成损伤。
  87. </view>
  88. </view>
  89. <view class="text" v-else>
  90. <view class="text-1">
  91. {{isInsert?'可充电':'未插枪'}}
  92. </view>
  93. <view class="text-2" v-if="station.stationType==50">
  94. 可进行充电
  95. </view>
  96. <view class="text-2" v-else>
  97. {{isInsert?'充电枪已连接,可进行充电':'未检测到充电枪,若已插枪,请拔出重插'}}
  98. </view>
  99. </view>
  100. <view class="charge-img">
  101. <img src="../../../assets/img/charge.png" alt="">
  102. </view>
  103. </view>
  104. <view class="charging-info">
  105. <view class="address">
  106. {{station.name}}
  107. <!-- <text class="explain" @click="step=1">费用说明</text> -->
  108. </view>
  109. <view class="name">
  110. <span style="font-weight: bold;color: #000;"
  111. v-if="station.stationType!=50&&gun.sortNo">{{gun.sortNo}}号/</span><span
  112. style="font-weight: bold;color: #000;">{{detail.name}}</span><span
  113. style="font-weight: bold;color: #000;"
  114. v-if="station.stationType!=50">枪{{channelNoShow(gun.channelNo,detail.manufacturer,gun.customNo)}}</span>
  115. <text class="free" v-if="gunDetail.chargingAppointment&&gunDetail.isMeAppoint">您已预约</text>
  116. <text class="free" v-else-if="gunDetail.chargingAppointment&&!gunDetail.isMeAppoint">已被预约</text>
  117. <text class="free" v-else>{{gun.workStatusText}}</text>
  118. </view>
  119. <view class="price" v-if="detail.deviceAddress">
  120. <text class="unit">{{detail.deviceAddress}}</text>
  121. </view>
  122. <view v-if="price" class="priceListBlMain">
  123. <view class="price-3-card-view " v-if="personInfo&&personInfo.userType==2&&(userCardBool&&userCard.classify==2||(!userCardBool&&prevMonthKwhBL))">
  124. <view class="price">
  125. <text class="span">{{price.costPrice.toFixed(2)}}</text><text class="unit">元/度</text>
  126. </view>
  127. <view class="price-3-card ">
  128. <view class="num1" v-if="!userCard||userCard.serviceFeeDiscountRate==60" >
  129. <img src="@/assets/img/9-4/6折卡价.svg" />
  130. </view>
  131. <view class="num1" style=" background: #303133;
  132. color: #f4f4f4;
  133. border-radius: 4px 0 4px 4px;
  134. padding: 0 3px;
  135. margin-right: 3px;" v-else >
  136. <span v-if="userCard.cardType==4" >折扣卡 </span>
  137. <span v-else >{{userCard.serviceFeeDiscountRate/10}}折卡 </span>
  138. </view>
  139. <text
  140. class="num">{{ (price.electricityPrice+(price.servicePrice*(userCard?userCard.serviceFeeDiscountRate/100:0.6))).toFixed(2)}}元/度</text>
  141. </view>
  142. </view>
  143. <view class="price-3-card-view " v-else-if="personInfo&&personInfo.userType==2&&((userCardBool&&userCard.classify==1)||(!userCardBool&&!prevMonthKwhBL))">
  144. <view class="price">
  145. <text class="span">{{price.costPrice.toFixed(2)}}</text><text class="unit">元/度</text>
  146. </view>
  147. <view class="price-3-card price-3-card-yue ">
  148. <view class="num1">
  149. <img src="@/assets/img/9-4/月卡价格.png" />
  150. </view>
  151. <text
  152. class="num">{{ (price.electricityPrice).toFixed(2)}}元/度</text>
  153. </view>
  154. </view>
  155. <view class="price" v-else-if="false&&personInfo&&personInfo.userType==2">
  156. <text class="span">{{price.costPrice.toFixed(2)}}</text><text class="unit">元/度</text>
  157. <text class="unit"
  158. v-if="station.giveDiscount">(折前价{{((price.electricityPrice*1000+price.servicePrice*1000)/1000).toFixed(2)}}元/度)</text>
  159. </view>
  160. <view class="price-2" v-else>
  161. <view class="price-4">
  162. <text>{{((price.electricityPrice*1000+price.servicePrice*1000)/1000).toFixed(2)}}</text><text
  163. class="unit">元/度</text>
  164. </view>
  165. <view class="price-3 " v-if="station.giveDiscount">
  166. <text class="num1">会员</text>
  167. <text class="num">{{price.costPrice.toFixed(2)}}</text>
  168. <text class="unit3 ">元/度</text>
  169. </view>
  170. </view>
  171. <view class="priceListBl" @click="priceListBl=!priceListBl">
  172. {{priceListBl?'收起':'详情'}}
  173. <u-icon :name="!priceListBl?'arrow-up':'arrow-down'"></u-icon>
  174. </view>
  175. </view>
  176. <view class="chat-box" v-show="priceListBl">
  177. <view class="chat_hhh">
  178. <view class="chatTime" v-for="(item,i) in pricesInfo" :key="i" :style="'width:'+getW(item)" :class="{
  179. current1: pricesInfoCurrent.startTime==item.startTime,
  180. current2: pricesInfoCurrent2.startTime==item.startTime,
  181. }" @click="chatShowBtn(item)">
  182. <view class="chatShow" v-show="chatShow" :class="{
  183. chatShowA:i<pricesInfo.length/2,
  184. chatShowB:i>pricesInfo.length/2,
  185. chatShowNo: pricesInfoCurrent2.startTime!=item.startTime,
  186. chatShowOk: pricesInfoCurrent2.startTime==item.startTime,
  187. }">
  188. <view>时段:<span class="">{{item.startTime}}-{{item.endTime}}</span></view>
  189. <view>电价:<span class="showspan">{{item.electricityPrice}}元/度</span></view>
  190. <view>服务费:<span class="showspan">{{(personInfo&&personInfo.userType==2)&&(station.giveDiscount||(item.discountServicePrice))?item.discountServicePrice:item.servicePrice}}元/度</span></view>
  191. </view>
  192. <template v-if="station">
  193. <template
  194. v-if="(personInfo&&personInfo.userType==2)&&(station.giveDiscount||(item.discountServicePrice))">
  195. <span class="chats1" :style="'height:'+getH(item.discountServicePrice)">
  196. {{item.discountServicePrice}}</span>
  197. </template>
  198. <template v-else>
  199. <span class="chats1" :style="'height:'+getH(item.servicePrice)">
  200. {{item.servicePrice}}</span>
  201. </template>
  202. </template>
  203. <span class="chats2" :style="'height:'+getH(item.electricityPrice)">
  204. <span>{{item.electricityPrice}}</span>
  205. <span class="chats0" v-if="pricesInfoCurrent.startTime==item.startTime">
  206. <span>当前</span>
  207. <span>时段</span>
  208. </span>
  209. <span class="chats9" v-else>
  210. <span>当前</span>
  211. <span>时段</span>
  212. </span>
  213. </span>
  214. </view>
  215. </view>
  216. <view class="chat_hhh_time">
  217. <span>00:00</span>
  218. <span>12:00</span>
  219. <span>24:00</span>
  220. </view>
  221. </view>
  222. <view class="discount-card"
  223. :class="{
  224. 'discount-card-4':userCard.cardType==4
  225. }"
  226. v-if="userCardBool&&userCard.classify==2">
  227. <view class="name" v-if="userCard.cardType==4">
  228. {{projectName}}{{userCard.monthlyRentName}}
  229. </view>
  230. <view class="name" v-else>
  231. 自营站充电服务费{{userCard.serviceFeeDiscountRate/10}}折卡
  232. </view>
  233. <view class="progress">
  234. <view class="time">
  235. {{thisendTime(userCard.endTime)}}到期 | 剩余{{setValidity(thisdaysDistance(userCard.endTime))}}
  236. </view>
  237. <view class="electric-quantity">
  238. 已用{{userCard.chargedDegree?userCard.chargedDegree.toFixed(0):0.00}}度 /
  239. 共{{userCard.chargeDegreeLimit}}度
  240. </view>
  241. </view>
  242. <u-line-progress :show-percent="false" active-color="#2979ff" :percent="thispercent(userCard)">
  243. </u-line-progress>
  244. </view>
  245. </view>
  246. </view>
  247. <view class="carImg" v-if="personInfo&&personInfo.userType!=2">
  248. <img @click="gotoLogin" src="@/assets/img/gologin/img.png">
  249. </view>
  250. <view class="carImg3" :class="{
  251. 'carImg3-yue':!prevMonthKwhBL
  252. }"
  253. v-else-if="carImg3Bl&&!userCardBool">
  254. <view class="carImg2" v-if="prevMonthKwhBL" >
  255. <view>
  256. <view class="carImg-1">您近30天已充电{{carImg3span1}}度</view>
  257. <view class="carImg-2">如购买6折卡,可省约<span>{{carImg3span2}}</span>元</view>
  258. <view class="carImg-3" @click="gotoUrl('pages/discountCard/productDetails')">
  259. <span>点击购买</span>
  260. </view>
  261. </view>
  262. </view>
  263. <view class="carImg2-yue" v-if="!prevMonthKwhBL" >
  264. <view>
  265. <view class="carImg-1">您近30天已充电{{carImg3span1}}度</view>
  266. <view class="carImg-2">如购买月卡,可省约<span>{{carImg3span3}}</span>元</view>
  267. <view class="carImg-3" @click="gotoUrl('pages/monthlyCardActivity/monthlyCardBuy')">
  268. <span>点击购买</span>
  269. </view>
  270. </view>
  271. </view>
  272. </view>
  273. <view class="carImg3" v-else-if="carImg4Bl&&!userCardBool">
  274. <view class="carImg2" >
  275. <view>
  276. <view class="carImg-1">每月只需12.9元</view>
  277. <view class="carImg-2">前338度电可省约<span>67.6</span>元</view>
  278. <view class="carImg-3" @click="gotoUrl('pages/discountCard/productDetails')">
  279. <span>点击购买</span>
  280. </view>
  281. </view>
  282. </view>
  283. </view>
  284. <view class="slogan-4 " v-show="bannerListTop.length"
  285. @click="showTop=true,getBannerInfoTopBl=true">
  286. <u-icon :class="{
  287. imageshake :true
  288. }" size="45" name="gift"></u-icon>
  289. </view>
  290. <u-modal v-model="showTop" v-if="getBannerInfoTopBl" class="showOss showOssK" :show-title="false"
  291. :show-confirm-button="false">
  292. <view class="slot-content">
  293. <swiper class="swiper" circular :indicator-dots="true" :autoplay="true" :interval="2500"
  294. :duration="500">
  295. <swiper-item class="swiperitem" v-if="showNt">
  296. <u-image width="600" style="margin: auto;min-height: 250px;" mode="widthFix"
  297. v-show="showNtStep==0" src="@/assets/img/nt/f5surprised-1.png">
  298. <view slot="loading" style="height: 200px;">
  299. <u-loading mode="flower" size="186">
  300. </u-loading>
  301. </view>
  302. </u-image>
  303. <view style="color: #ecc07d;
  304. font-size: 64rpx;
  305. position: relative;
  306. top: -220rpx;
  307. right: -100rpx; width: 400rpx;" @click="showNtStepClick" v-show="showNtStep==0">
  308. <span>.</span>
  309. </view>
  310. <u-image width="600" height="700" style="margin: auto;;min-height: 250px;"
  311. mode="scaleToFill" v-show="showNtStep==1" src="@/assets/img/nt/f5surprised-2.png">
  312. </u-image>
  313. <u-image width="600" style="margin: auto;min-height: 250px;" mode="widthFix"
  314. v-show="showNtStep==2" src="@/assets/img/nt/nt-activity-3.png">
  315. </u-image>
  316. <u-image width="500" style="color: #FFFFFF;
  317. font-size: 64rpx;
  318. position: relative;
  319. top: -540rpx;
  320. right: -60rpx;height: 0;
  321. " mode="widthFix" v-show="showNtStep==2" src="@/assets/img/nt/f5surprised-3.png">
  322. </u-image>
  323. <view style="color: #ecc07d;
  324. font-size: 72rpx;
  325. position: relative;
  326. top: -180rpx;
  327. right: -144rpx; width: 310rpx;" @click="showNtStepClick" v-show="showNtStep==2">
  328. <span>.</span>
  329. </view>
  330. <view style="color: #FFFFFF;
  331. font-size: 64rpx;
  332. position: relative;
  333. top: -528rpx;
  334. right: -80rpx;" :style="{
  335. right:showNtValue>99?'-80rpx':(showNtValue>9?'-95rpx':'-110rpx')
  336. }" v-show="showNtStep==1"><b>{{showNtValue}}</b>
  337. <span style="font-size: 28rpx;">元</span>
  338. </view>
  339. <view style="color: #ecc07d;
  340. font-size: 72rpx;
  341. position: relative;
  342. top: -270rpx;
  343. right: -144rpx; width: 310rpx;" @click="showNtStepClick" v-show="showNtStep==1">
  344. <span>.</span>
  345. </view>
  346. </swiper-item>
  347. <swiper-item class="swiperitem" v-for="(item,i) in bannerListTop" :key="i">
  348. <u-image width="500" height="500" bgColor="#ff000000"
  349. style="margin: auto;min-height: 250px;" mode="widthFix" @click="clickBannerTopI(i)"
  350. :src="item.picUrl">
  351. <view slot="loading" style="height: 200px;">
  352. <u-loading mode="flower" size="186">
  353. </u-loading>
  354. </view>
  355. </u-image>
  356. </swiper-item>
  357. </swiper>
  358. <u-image width="36px" style="margin: auto; margin-top: 10px;" mode="widthFix" @click="showTop=false"
  359. src="@/assets/img/if-close-line-circled.png"></u-image>
  360. </view>
  361. </u-modal>
  362. <view class="bottom">
  363. <!-- 解锁中 -->
  364. <!-- <u-button shape="circle" type="success" style="opacity: 0.4;">
  365. 解锁中<img style="margin-left: 4px;" src="@/assets/static/img/riLine-refresh-line.svg" alt="">
  366. </u-button> -->
  367. <!-- 刷新充电枪状态 如果改动 ,请添加 方法判断startCarCharging -->
  368. <u-button shape="circle" type="success" v-if="gun&&gun.workStatus==2">充电中</u-button>
  369. <u-button shape="circle" type="success" v-else-if="!openBool">仅单位内部员工可用</u-button>
  370. <!-- 刷新充电枪状态 如果改动 ,请添加 方法判断startCarCharging -->
  371. <u-button shape="circle" type="success" @click="getPile()"
  372. v-else-if="gunDetail.chargingAppointment&&!gunDetail.isMeAppoint">已被预约</u-button>
  373. <!-- 刷新充电枪状态 如果改动 ,请添加 方法判断startCarCharging -->
  374. <u-button shape="circle" v-else-if="haveLock&&lockStatus==1" @click="lockDown()"
  375. style="background-color:#009ED7" type="success">下降地锁</u-button>
  376. <u-button shape="circle" v-else-if="!isInsert" @click="getPile()" type="success">刷新充电枪状态</u-button>
  377. <!-- 刷新充电枪状态 如果改动 ,请添加 方法判断startCarCharging -->
  378. <!-- 开始充电 -->
  379. <u-button shape="circle" type="success" v-else @click="charge()">开始充电</u-button>
  380. </view>
  381. <view class="cost-explainMain" >
  382. <view class="cost-explain" v-if="station.id=='f62ce857-1301-4cf3-9c02-74d378c25ab2'" >
  383. <view class="text" style="width: 100%;">
  384. 费用说明
  385. <view class="iconfont" style="color: #1bbe6b;
  386. font-size: 28rpx;
  387. display: initial; float: right;" @click="step=1">
  388. 查看更多&#xe600;
  389. </view>
  390. <view style="text-indent: 2em; font-size: 28rpx;">
  391. 停车费调整:
  392. 本停车场,新能源汽车充电,最高<span style="color:red">只减免2小时</span>停车费用,<span style="color:red">超出部分</span>按停车场规定缴费
  393. </view>
  394. </view>
  395. </view>
  396. <view class="cost-explain" v-else >
  397. <view class="text">
  398. 费用说明
  399. </view>
  400. <view class="iconfont" style="
  401. font-size: 32rpx;
  402. text-align: right;" @click="step=1">
  403. 查看&#xe600;
  404. </view>
  405. </view>
  406. <view class="cost-explain" :class="{
  407. 'cost-explain2':!car
  408. }" >
  409. <view class="text">
  410. 入场车辆
  411. </view>
  412. <view class="car-number" v-if="!car||!carplateMust" @click="carDet()">
  413. {{car?car.carNum:'填车牌号可减免部分停车费用'}}
  414. <img v-if="!car" src="@/assets/static/img/riLine-edit-box-line2.svg" alt="">
  415. </view>
  416. <view class="car-number" v-else >
  417. {{car?car.carNum:'填车牌号可减免部分停车费用'}}
  418. <!-- <img v-if="car&&car.carNum" @click="carTempBl=true"
  419. src="@/assets/static/img/riLine-edit-box-line2.svg" alt=""> -->
  420. <img @click="carTempBl=true" src="@/assets/static/img/riLine-edit-box-line2.svg" alt="">
  421. </view>
  422. </view>
  423. </view>
  424. <!--提示 -->
  425. <view class="tips">
  426. <p class="p" @click="chargeTest">注意事项:</p>
  427. <!-- <view class="content" v-if="!isInsert">
  428. 点击降锁后,请稍等几十秒,待地锁完全下降后,再驶入车位。
  429. </view> -->
  430. <view class="content">
  431. 1.车停好,请熄火后再充电;<br />
  432. 2.请确保充电枪插接到位;<br />
  433. 3.车辆充电时,请关闭车内电源;<br />
  434. 4.充电完毕,请及时拔枪;<br />
  435. 5.填写车牌号,离场时可减免部分停车费。
  436. </view>
  437. </view>
  438. <!-- 弹窗 -->
  439. <view>
  440. <u-modal v-model="show" @confirm="confirmPhone" :confirm-text="confirmText" confirm-color="#606266"
  441. :show-cancel-button="true" ref="uModal" :asyncClose="true" :title="title" :content="consumerPhone"
  442. :content-style="{fontSize: '24px',color: '#101010'}"></u-modal>
  443. </view>
  444. </view>
  445. <u-modal v-model="showNt" class="showOss2" :show-title="false" :show-confirm-button="false">
  446. <view class="slot-content">
  447. <u-image width="600" style="margin: auto;min-height: 250px;" mode="widthFix" v-show="showNtStep==0"
  448. src="@/assets/img/nt/news-activity-2.png">
  449. <view slot="loading" style="height: 200px;">
  450. <u-loading mode="flower" size="186">
  451. </u-loading>
  452. </view>
  453. </u-image>
  454. <view style="color: #ecc07d;
  455. font-size: 64rpx;
  456. position: relative;
  457. top: -220rpx;
  458. right: -100rpx; width: 400rpx;" @click="showNtStepClick" v-show="showNtStep==0">
  459. <span>.</span>
  460. </view>
  461. <u-image width="600" style="margin: auto;min-height: 250px;" mode="widthFix" v-show="showNtStep==1"
  462. src="@/assets/img/nt/news-activity-1.png">
  463. </u-image>
  464. <view style="color: #FFFFFF;
  465. font-size: 64rpx;
  466. position: relative;
  467. top: -600rpx;
  468. right: -80rpx;" :style="{
  469. right:showNtValue>99?'-80rpx':(showNtValue>9?'-95rpx':'-110rpx')
  470. }" v-show="showNtStep==1"><b>{{showNtValue}}</b>
  471. <span style="font-size: 28rpx;">元</span>
  472. </view>
  473. <view style="color: #ecc07d;
  474. font-size: 72rpx;
  475. position: relative;
  476. top: -290rpx;
  477. right: -144rpx; width: 310rpx;" @click="showNtStepClick" v-show="showNtStep==1">
  478. <span>.</span>
  479. </view>
  480. </view>
  481. </u-modal>
  482. <u-modal v-model="show3" class="showOss" confirm-text="注册会员" cancel-text="先不注册" :show-title="false" width="650"
  483. border-radius="30" title="" :show-cancel-button="false" :show-confirm-button="false">
  484. <view class="slot-content">
  485. <!-- :show-title="false" -->
  486. <view>
  487. <img v-if="branchParameterBl('ud')" src="@/assets/img/gologin/nipic.png" style="width: 100%;"></img>
  488. <img v-else src="@/assets/img/Nipic_24385267_20191128181916139081.png" style="width: 100%;"></img>
  489. </view>
  490. <view>
  491. <table class="classtable">
  492. <tr>
  493. <td class="td1">
  494. <img src="@/assets/img/Nipic_vip.png" style="width: 24px;"></img>
  495. <p style="color: #FF9800;line-height: 10px;">会员</p>
  496. </td>
  497. <td class="td2">
  498. <p v-if="branchParameterBl()" ><span class="dian">·</span>充电最低<span style="color:#4aa461">0.66元</span>/度(含服务费)</p>
  499. <p><span class="dian">·</span>账户充值赠送代金券</p>
  500. <p><span class="dian">·</span>更有<span style="color:#4aa461">会员充电折扣、服务费包月会员资格</span>等超多福利
  501. </p>
  502. <p v-if="branchParameterBl('ud')"><span class="dian">·</span>与51充电联盟会员共享数据,包括账户余额、优惠卡券等</p>
  503. </td>
  504. </tr>
  505. <tr>
  506. <td style="color: #fff;line-height: 3px;">.</td>
  507. </tr>
  508. <tr>
  509. <td class="td1">
  510. <img src="@/assets/img/Nipic_youke.png" style="width: 24px;"></img>
  511. <p style="color: rgb(74, 164, 97);line-height: 10px;">游客</p>
  512. </td>
  513. <td class="td2">
  514. <p><span class="dian">·</span>临时车牌快速充电</p>
  515. <p><span class="dian">·</span>无需注册 先付后退</p>
  516. <p><span class="dian">·</span><span style="color:#F44336">不可使用</span>平台各类代金券</p>
  517. </td>
  518. </tr>
  519. </table>
  520. </view>
  521. <view class="btnview">
  522. <!-- <u-button shape="circle" @click="show3=false"
  523. style=" width: 200rpx; background-color: #fff !important; margin: 20rpx;float: left;margin-bottom: 20px; "
  524. szie="mini" type="success" plain>继续充电</u-button> -->
  525. <view class="btnview1">
  526. <u-button shape="circle" style=" float: left; width: 400rpx; margin: 20rpx; " szie="mini"
  527. type="success" @click="gotoUrl('pages/login/login')">注册会员</u-button>
  528. </view>
  529. <view class="btnview2" @click="show3=false,show4=true">暂不注册,先充电</view>
  530. </view>
  531. </view>
  532. </u-modal>
  533. <u-modal v-model="quickChargingBl" class="quickMain" confirm-text="注册会员" cancel-text="先不注册" :show-title="false" width="650"
  534. border-radius="30" title="" :show-cancel-button="false" :show-confirm-button="false">
  535. <view class="quickMain-slot-content">
  536. <!-- :show-title="false" -->
  537. <view class="quickMain-img">
  538. <img src="@/assets/img/member/10.png" ></img>
  539. </view>
  540. <view class="quickMain-bodyMain" >
  541. <view class="quickMain-body">
  542. <view class="quickMain-text1">快捷充电功能上线!</view>
  543. <view class="quickMain-text2">
  544. 恭喜您达到
  545. <img src="@/assets/img/9-4/白金会员.svg" ></img>
  546. <span style="color:#3F51B5;">白金会员</span>等级,您已获得<span style="color: #19be6b;">【快捷充电】</span>功能体验资格。
  547. </view>
  548. <view class="quickMain-text2">
  549. 当您插枪扫码后,在个人账户余额充足的情况下,自动帮您选择充满自停模式并开始充电。如需关闭此功能,可在“我的”-“设置”中修改。
  550. </view>
  551. </view>
  552. <view class="btnview">
  553. <!-- <u-button shape="circle" @click="show3=false"
  554. style=" width: 200rpx; background-color: #fff !important; margin: 20rpx;float: left;margin-bottom: 20px; "
  555. szie="mini" type="success" plain>继续充电</u-button> -->
  556. <view class="btnview1">
  557. <u-button shape="circle" style=" float: left; width: 400rpx; margin: 20rpx; " szie="mini"
  558. type="success" @click="checkedChange2(1)">同意并记住我的选择</u-button>
  559. </view>
  560. <view class="btnview2" @click="checkedChange2(0)">暂不启用</view>
  561. </view>
  562. </view>
  563. </view>
  564. </u-modal>
  565. <u-modal v-model="carplateMustModel" :mask-close-able="true"
  566. @cancel="carTempBl=true" :title="station.name+'提醒您'"
  567. cancel-text="临时车牌号" confirm-text="默认车牌号" :show-cancel-button="true" >
  568. <view style="padding: 20px;">
  569. 当前绑定的车牌号为<span style="color:#19be6b">{{car?car.carNum:''}}</span><br/>
  570. 车辆充电,车牌号一致可<span style="color:#FF5722">减免停车费</span>,不一致可使用临时车牌号,用于出入停车场
  571. </view>
  572. </u-modal>
  573. <u-modal v-model="show1" @confirm="gotoGz" cancel-text="暂不关注" confirm-text="前往关注" :show-cancel-button="false"
  574. confirm-color="#53b56b" ref="uModal2" :asyncClose="true">
  575. <view style="padding: 15px;">请先关注<span style=" color: #53b56b;">{{projectName}}</span>公众号,然后进行车辆充电</view>
  576. </u-modal>
  577. <quickRegistration v-if="show4" @login="loginMethod" :carNum="car?car.carNum:''" ></quickRegistration>
  578. </view>
  579. </template>
  580. <script>
  581. import * as API_index from '@/apis/index.js'
  582. import * as API from "@/apis/chargeProcess.js"
  583. import * as userApi from '@/apis/user.js'
  584. import * as newsApi from '@/apis/news.js'
  585. import ucarkeyboard from '@/components/Ucarkeyboard.vue'
  586. import * as API_weixin from '@/apis/weixin.js'
  587. import quickRegistration from '@/components/QuickRegistration.vue'
  588. import {
  589. newDate,
  590. hourDistanceArr,
  591. currentTimeStamp,
  592. parseUnixTime,
  593. daysDistance
  594. } from '@/utils'
  595. export default {
  596. components: {
  597. ucarkeyboard,quickRegistration
  598. },
  599. data() {
  600. return {
  601. show1: false,
  602. show2: false,
  603. show3: false,
  604. show4: false,
  605. carImg3Bl:false,
  606. carImg4Bl:false,
  607. carImg3span1:0,
  608. carImg3span2:0,
  609. carImg3span3:0,
  610. pricesInfoCurrent: {},
  611. pricesInfoCurrent2: {},
  612. show3: false,
  613. temporaryCarNum: "",
  614. form: {
  615. carNum: '',
  616. defaultFlag: true,
  617. },
  618. priceListBl: false,
  619. pricesInfo: [],
  620. showNt: false,
  621. showNtStep: 0,
  622. showNtValue: 30,
  623. station: {},
  624. step: 0,
  625. bannerList: [],
  626. isInsert: false,
  627. isReady: false,
  628. onShowRole: false,
  629. id: "",
  630. car: {},
  631. isback: false,
  632. gun: {},
  633. prices: {},
  634. personInfo: {},
  635. price: {
  636. costPrice: 0,
  637. electricityPrice: 0,
  638. discountServicePrice: 0,
  639. servicePrice: 0,
  640. },
  641. gunDetail: {},
  642. haveLock: false,
  643. lockSafeStopTime: 0,
  644. lockStatus: '', // 1抬锁 2落锁
  645. carplateMust: false,
  646. detail: {
  647. no: '',
  648. interface: '',
  649. type: '',
  650. power: 0,
  651. price: [
  652. ]
  653. },
  654. consumerPhone: "",
  655. description: '充电前请确保您的车辆已与充电桩连接!并关闭车内电源。',
  656. show: false,
  657. title: '联系客服',
  658. showVin: false,
  659. confirmText: '拨打电话',
  660. content: '余额不足5,请先充值。',
  661. carDetText: '',
  662. userCard: null,
  663. canUse: false,
  664. openStatus: 0,
  665. isVip: false,
  666. openBoolShow: false,
  667. carTempBl: false,
  668. maxlength: 8,
  669. chatShowId: "",
  670. chatShow: false,
  671. startCarChargingBl:false,
  672. quickChargingBl:false,
  673. carplateMustModel:false,
  674. projectName: "",
  675. showrecharge:"",
  676. bannerListTop:[],
  677. getBannerInfoTopBl:true,
  678. showTop:false,
  679. showTopImg:"",
  680. showTopIndex: 0,
  681. }
  682. },
  683. computed: {
  684. prevMonthKwhBL(){
  685. if(this.carImg3span1>=1000){
  686. return false
  687. }
  688. return true
  689. },
  690. openBool() {
  691. if (this.openStatus == '3') {
  692. return this.isVip
  693. }
  694. return true
  695. },
  696. userCardBool() {
  697. if (this.userCard) {
  698. var date = new Date().getTime()
  699. var reg = new RegExp('-', 'gi')
  700. var str = this.userCard.endTime;
  701. //console.log(str.replace(reg,'/'))
  702. var date2 = new Date(str.replace(reg, '/')).getTime();
  703. if (date < date2) {
  704. return true;
  705. }
  706. }
  707. return false
  708. },
  709. },
  710. onShow() {
  711. uni.hideToast();
  712. this.checkSubscribe()
  713. if (this.onShowRole) {
  714. this.getPile()
  715. }
  716. },
  717. onReady() {
  718. this.projectName = process.car.ProjectName;
  719. var consumerPhone = "400-8899-619"
  720. // img="https://yktwechat.xiaoxinda.com/config/xxd2021.jpg"
  721. if (consumerPhone) {
  722. this.consumerPhone = consumerPhone
  723. }
  724. var carDetText = "填写车牌号,充电时可以减免部分停车费用"
  725. // img="https://yktwechat.xiaoxinda.com/config/xxd2021.jpg"
  726. if (carDetText) {
  727. this.carDetText = carDetText
  728. }
  729. if( this.branchParameterBl('ud')){
  730. this.getf5surprised()
  731. }
  732. },
  733. onLoad(op) {
  734. //this.startCarCharging()
  735. if (op.isback) {
  736. this.isback = true
  737. }
  738. if (op.id) {
  739. this.id = op.id
  740. var personInfo = this.carhelp.getPersonInfo()
  741. this.personInfo = personInfo
  742. var userInfo = this.carhelp.getPersonInfo();
  743. if (this.personInfo && this.personInfo.userType == "1") {
  744. this.show3 = true
  745. }else{
  746. }
  747. if (userInfo && userInfo.id) {
  748. //this.getNewYear()
  749. } else {
  750. //this.getBannerInfoTop("home-top");
  751. }
  752. this.getPile()
  753. } else {
  754. uni.showToast({
  755. title: "请扫码充电"
  756. })
  757. }
  758. },
  759. methods: {
  760. loginMethod(){
  761. var personInfo = this.carhelp.getPersonInfo()
  762. this.personInfo = personInfo
  763. this.getPile()
  764. },
  765. cancelGz() {
  766. this.carhelp.setGzDate()
  767. },
  768. gotoGz() {
  769. this.carhelp.setGzDate()
  770. var url = process.car.gzUrl;
  771. window.location.href = url
  772. },
  773. checkSubscribe() {
  774. API_weixin.checkSubscribe({
  775. openId: this.carhelp.getOpenId()
  776. }).then((res) => {
  777. if (res.data == "0") {
  778. this.show1 = true
  779. } else {
  780. //this.init();
  781. this.show1 = false;
  782. this.show2 = true;
  783. //this.carhelp.setGzDate()
  784. }
  785. //setGzDate
  786. }).catch(error => {
  787. uni.showToast({
  788. title: error
  789. })
  790. })
  791. },
  792. checkedChange2(checked2) {
  793. uni.showLoading({
  794. title: "加载中",
  795. mask: true,
  796. })
  797. API_index.changeQuickCharging({qucikStatus: checked2}).then((res) => {
  798. var userInfo = this.carhelp.getPersonInfo();
  799. userInfo.quickCharging=checked2;
  800. this.carhelp.setPersonInfo(userInfo);
  801. this.quickChargingBl=false;
  802. uni.hideLoading();
  803. if(checked2){
  804. this.startCarCharging()
  805. }
  806. }).catch(error => {
  807. uni.showToast({
  808. title: error,
  809. icon: "none"
  810. })
  811. })
  812. },
  813. chatShowBtn(item) {
  814. if(this.chatShow == false){
  815. this.chatShow = true
  816. }else if(item.startTime!=this.pricesInfoCurrent2.startTime){
  817. this.chatShow = true
  818. }else{
  819. this.chatShow = false
  820. }
  821. this.pricesInfoCurrent2=item
  822. },
  823. clickBannerTopI(i) {
  824. var mod = this.bannerListTop[i];
  825. //this.showTop = false;
  826. this.clickBanner(0, true, mod)
  827. },
  828. clickBannerTop() {
  829. var mod = this.bannerListTop[this.showTopIndex];
  830. this.showTop = false;
  831. this.clickBanner(0, true, mod)
  832. },
  833. clickBanner(index, bl, modout) {
  834. var uurl = "";
  835. var mod = this.bannerList[index]
  836. if (modout) {
  837. mod = modout;
  838. }
  839. mod.clickUrl = mod.linkUrl
  840. if (mod.linkPicUrl && !bl) {
  841. this.showOss = true;
  842. this.showOssImg = mod.linkPicUrl;
  843. this.showOssIndex = index;
  844. } else if (mod.clickUrl == null) {
  845. } else if (mod.clickUrl.indexOf('http') == 0) {
  846. window.location = mod.clickUrl + uurl;
  847. } else if (mod.clickUrl.slice(-5) == 'login' && this.userId) {
  848. } else if (mod.clickUrl.indexOf('#/') == 0) {
  849. if (mod.clickUrl.indexOf("?") == -1) {
  850. mod.clickUrl += '?';
  851. }
  852. var url = mod.clickUrl.split("#")[1]
  853. //window.location = mod.clickUrl;
  854. uni.navigateTo({
  855. url: url + uurl
  856. })
  857. } else if (mod.clickUrl == '#' || mod.clickUrl == '') {
  858. } else {
  859. uni.navigateTo({
  860. url: mod.clickUrl + uurl
  861. })
  862. }
  863. },
  864. getBannerInfo(code) {
  865. uni.showLoading({
  866. title: "加载中",
  867. mask: true,
  868. })
  869. newsApi.getBannerInfo(code).then((res) => {
  870. uni.hideLoading();
  871. this.bannerList = res.data;
  872. // document.getElementsByClassName("uni-swiper-wrapper")[0].parentNode.style="background-color: rgb(255, 255, 255); height: 300px;"
  873. }).catch(error => {
  874. uni.showToast({
  875. title: error,
  876. icon: "none"
  877. })
  878. })
  879. },
  880. thisdaysDistance(endTime) {
  881. var date = new Date()
  882. var date2 = newDate(endTime);
  883. return daysDistance(date, date2)
  884. },
  885. thisendTime(endTime) {
  886. if (endTime) {
  887. var reg = new RegExp('-', 'gi')
  888. var str = endTime.substring(0, 10).replace(reg, '.')
  889. return str
  890. }
  891. return ''
  892. },
  893. thispercent(userCard) {
  894. var p = 0
  895. if (userCard && userCard.chargeDegreeLimit) {
  896. p = userCard.chargedDegree / userCard.chargeDegreeLimit * 100
  897. }
  898. if (p > 100) {
  899. p = 100
  900. }
  901. return p.toFixed(0)
  902. },
  903. carTempBlInit() {
  904. var aaa = this.$refs.uKeyboard.changeCarInputValue();
  905. console.log(aaa)
  906. if (this.form.carNum.length && !aaa) {
  907. var c = this.$refs.uKeyboard.changeCarInputMode();
  908. }
  909. },
  910. // 按键被点击(点击退格键不会触发此事件)
  911. // 按键被点击(点击退格键不会触发此事件)
  912. valChange(val) {
  913. if (this.form.carNum.length >= this.maxlength) {
  914. return
  915. }
  916. if (true) {
  917. this.form.carNum += val;
  918. } else {
  919. }
  920. // 将每次按键的值拼接到form.carNum变量中,注意+=写法
  921. //(this.form.carNum);
  922. var aaa = this.$refs.uKeyboard.changeCarInputValue();
  923. if ((this.form.carNum.length == 0) && aaa) {
  924. this.$refs.uKeyboard.changeCarInputMode();
  925. } else if (!aaa) {
  926. this.$refs.uKeyboard.changeCarInputMode();
  927. }
  928. },
  929. // 退格键被点击
  930. backspace() {
  931. // 删除form.carNum的最后一个字符
  932. if (this.form.carNum.length) {
  933. if (true) {
  934. this.form.carNum = this.form.carNum.substr(0, this.form.carNum.length - 1);
  935. } else {
  936. //this.selectIndex=-1;
  937. }
  938. }
  939. //(this.form.carNum);
  940. var aaa = this.$refs.uKeyboard.changeCarInputValue();
  941. if (this.form.carNum.length == 0 && aaa) {
  942. this.$refs.uKeyboard.changeCarInputMode();
  943. }
  944. },
  945. lockDown() {
  946. uni.showLoading({
  947. title: "加载中",
  948. mask: true,
  949. })
  950. API.lockDown({
  951. gunId: this.gun.id
  952. }).then((res) => {
  953. uni.hideLoading()
  954. this.lockStatus = res.data.lockStatus
  955. setTimeout(() => {
  956. this.getPile()
  957. }, 5 * 1000)
  958. }).catch(error2 => {
  959. uni.showToast({
  960. title: error2
  961. })
  962. })
  963. },
  964. workStatus2() {
  965. API_index.findChargeData().then((res) => {
  966. var list = res.data.chargingRecordList;
  967. var obj = null;
  968. for (var i = 0; i < list.length; i++) {
  969. if (list[i].deviceNo == this.detail.deviceNo && list[i].channelNo == this.gun.channelNo) {
  970. obj = list[i];
  971. break;
  972. }
  973. }
  974. if (obj) {
  975. uni.redirectTo({
  976. url: "/pages/searchPile/chargeProcess/dcCharging?id=" + obj.id
  977. })
  978. }
  979. }).catch(error => {
  980. uni.showToast({
  981. title: error,
  982. icon: "none"
  983. })
  984. })
  985. },
  986. priceDetail() {
  987. uni.navigateTo({
  988. url: 'chargePriceDetails?stationId=' + this.detail.stationId + "&type=" + this.detail.type +
  989. "&id=" + this.detail.id
  990. })
  991. },
  992. customback2() {
  993. this.step = 0;
  994. },
  995. customback() {
  996. if (this.isback) {
  997. if (this.$refs.ujpnavbar) {
  998. this.$refs.ujpnavbar.navberBack()
  999. } else {
  1000. uni.navigateBack({
  1001. })
  1002. }
  1003. } else {
  1004. uni.reLaunch({
  1005. url: "/pages/login/welcome"
  1006. })
  1007. }
  1008. },
  1009. gotoLogin() {
  1010. this.onShowRole = true
  1011. if (false) {
  1012. } else {
  1013. uni.navigateTo({
  1014. url: "/pages/login/login?jpcode=jp_team51_charge_id:A_" + this.id
  1015. })
  1016. }
  1017. },
  1018. carTemp() {
  1019. },
  1020. carDet(t) {
  1021. if(this.car){
  1022. return
  1023. }
  1024. this.onShowRole = true
  1025. var url="/pages/user/car/carDet?jpcode=jp_team51_charge_id:A_" + this.id
  1026. if( this.car&& this.car.id){
  1027. url+="&id="+this.car.id
  1028. }
  1029. uni.navigateTo({
  1030. url: url
  1031. })
  1032. },
  1033. openModal() {
  1034. this.show = true;
  1035. },
  1036. confirmPhone() {
  1037. this.show = false;
  1038. uni.makePhoneCall({
  1039. phoneNumber: this.consumerPhone //仅为示例
  1040. });
  1041. },
  1042. role(bl) {
  1043. if (bl) {
  1044. return true;
  1045. }
  1046. if (this.carplateMust) {
  1047. if (this.car && this.car.carNum) {
  1048. } else {
  1049. uni.showModal({
  1050. title: "提示",
  1051. content: "填写车牌号,离场时可减免部分停车费",
  1052. confirmText: "填写车牌号",
  1053. cancelText: "继续充电",
  1054. success: res1 => {
  1055. if (res1.confirm) {
  1056. this.carDet()
  1057. } else if (res1.cancel) {
  1058. //('用户点击取消');
  1059. this.charge(true)
  1060. }
  1061. }
  1062. })
  1063. return false;
  1064. }
  1065. }
  1066. return true;
  1067. },
  1068. getChargeList(){
  1069. var obj=this.carhelp.get("carhelp_getChargeList")
  1070. var time=new Date( ).toLocaleString().substr(0,12).replace("T"," ");
  1071. if(obj&&time==obj.time){
  1072. var num1=parseInt(obj.electricQuantity);
  1073. var num2=parseInt(obj.totalServiceMoney) ;
  1074. this.carImg3span1=parseInt(num1/10000);
  1075. this.carImg3span2=parseInt(num2*0.4) ;
  1076. this.carImg3span3=parseInt(num2) ;
  1077. if(num2*0.4>20||this.carImg3span1>=1000){
  1078. this.carImg3Bl=true;
  1079. }else{
  1080. this.carImg4Bl=true;
  1081. }
  1082. console.log("carhelp_getChargeList",this.carImg3span1,this.carImg3span2)
  1083. return
  1084. }
  1085. var date =new Date().getTime()-30*1000*60*60*24;
  1086. var startDate =parseUnixTime(new Date(date),'{y}-{m}-{d}');
  1087. API_index.chargingRecordData({
  1088. pageIndex: 1,
  1089. pageSize:999,
  1090. startDate: startDate,
  1091. // endDate: this.endDate
  1092. }).then((res) => {
  1093. var chargeList =res.data.data;
  1094. var num1=0;
  1095. var num2=0;
  1096. for(var i in chargeList){
  1097. var obj=chargeList[i]
  1098. if(obj.status==2){
  1099. num1+=obj.electricQuantity
  1100. num2+=obj.totalServiceMoney
  1101. }
  1102. }
  1103. console.log(num1,num2)
  1104. this.carhelp.set("carhelp_getChargeList",{
  1105. time: time,
  1106. electricQuantity:num1,
  1107. totalServiceMoney:num2
  1108. })
  1109. this.carImg3span1=parseInt(num1/10000);
  1110. this.carImg3span2=parseInt(num2*0.4) ;
  1111. this.carImg3span3=parseInt(num2) ;
  1112. if(num2*0.4>20||this.carImg3span1>=1000){
  1113. this.carImg3Bl=true;
  1114. }else{
  1115. this.carImg4Bl=true;
  1116. }
  1117. }).catch(error => {
  1118. uni.showToast({
  1119. title: error,
  1120. icon: "none"
  1121. })
  1122. })
  1123. },
  1124. getUserCard() {
  1125. uni.showLoading({
  1126. title: "加载中",
  1127. mask: true,
  1128. })
  1129. API.userCard({
  1130. stationId: this.detail.stationId
  1131. }).then((res2) => {
  1132. uni.hideLoading()
  1133. this.userCard = res2.data.regUserCard
  1134. //this.canUse=res2.data.canUse
  1135. //this.user = res.data
  1136. this.personInfo = this.carhelp.getPersonInfo()
  1137. if (!this.userCardBool) {
  1138. if (this.personInfo && this.personInfo.userType == "2") {
  1139. try{
  1140. this.getChargeList()
  1141. }catch(e){
  1142. //TODO handle the exception
  1143. console.log(e)
  1144. }
  1145. }
  1146. }
  1147. //快捷充电
  1148. if (this.personInfo && (this.personInfo.memberLevel == "3"||this.personInfo.memberLevel == "4") ) {
  1149. if(this.personInfo.quickCharging){
  1150. if(this.startCarChargingBl==false){
  1151. this.startCarCharging()
  1152. }
  1153. }else if(this.personInfo.quickCharging==null){
  1154. //初始化
  1155. this.quickChargingBl=true
  1156. }
  1157. }
  1158. }).catch(error2 => {
  1159. uni.showToast({
  1160. title: error2
  1161. })
  1162. })
  1163. },
  1164. getH(item) {
  1165. return item * 100 + 'px'
  1166. },
  1167. getW(item) {
  1168. var t1 = item.endTime.substring(0, 2)
  1169. var t2 = item.startTime.substring(0, 2)
  1170. var k = parseInt(t1) - parseInt(t2);
  1171. return 100 / 24 * k + "%"
  1172. },
  1173. getPile() {
  1174. uni.showLoading({
  1175. title: "加载中",
  1176. mask: true,
  1177. })
  1178. API.chargingDeviceGunDetail({
  1179. gunNo: this.id,
  1180. jpcode: "jp_team51_charge_id:A_" + this.id
  1181. }).then((res) => {
  1182. uni.hideLoading()
  1183. this.gunDetail = res.data;
  1184. this.detail = res.data.device
  1185. this.station = res.data.station
  1186. this.carplateMust = this.station.carNumRequired;
  1187. this.prices = res.data.prices
  1188. this.pricesInfo = res.data.prices
  1189. this.price = res.data.price
  1190. this.pricesInfoCurrent = {
  1191. ...this.price
  1192. }
  1193. this.pricesInfoCurrent2 = {
  1194. ...this.price
  1195. }
  1196. this.gun = res.data.gun
  1197. this.car =res.data.car
  1198. if (this.carplateMust && this.car && this.car.carNum) {
  1199. this.carplateMustModel=true;
  1200. // uni.showModal({
  1201. // title: "使用车牌" + this.car.carNum,
  1202. // content: "车牌号一致可减免停车费,不一致可使用临时车牌号,用于出入停车场,当前默认车牌号为" + this.car.carNum,
  1203. // confirmText: "默认车牌号",
  1204. // cancelText: "临时车牌号",
  1205. // success: res1 => {
  1206. // if (res1.confirm) {
  1207. // //this.carDet()
  1208. // } else if (res1.cancel) {
  1209. // //('用户点击取消');
  1210. // this.carTempBl = true;
  1211. // this.getTemporaryCarNumByOpenId()
  1212. // }
  1213. // }
  1214. // })
  1215. } else {
  1216. this.getTemporaryCarNumByOpenId()
  1217. }
  1218. this.lockStatus = res.data.lockStatus;
  1219. this.haveLock = res.data.haveLock;
  1220. this.lockSafeStopTime = res.data.lockSafeStopTime
  1221. this.isVip = res.data.isVip
  1222. this.openStatus = res.data.station.openStatus
  1223. this.isInsert = this.gun.insertStatus
  1224. if (!this.openBool) {
  1225. //this.openBoolShow=true;
  1226. uni.showModal({
  1227. title: "提示",
  1228. content: "当前设备仅单位内部员工可用,如有问题可联系客服",
  1229. showCancel: false,
  1230. success: () => {
  1231. }
  1232. })
  1233. }
  1234. if (res.data.chargingAppointment) {
  1235. if (res.data.isMeAppoint) {
  1236. this.getUserCard();
  1237. } else {
  1238. var chargingAppointment = res.data.chargingAppointment
  1239. var data = newDate(chargingAppointment.createTime).getTime()
  1240. var c = hourDistanceArr(new Date(), new Date(data + chargingAppointment
  1241. .reserveMinutes * 60 * 1000))
  1242. var description = '当前充电枪已被其他车主预约,' + c[1] + '分' + c[2] + "秒后预约自动失效。";
  1243. this.isReady = false;
  1244. uni.showModal({
  1245. title: "提示",
  1246. content: description,
  1247. showCancel: false,
  1248. success: () => {
  1249. }
  1250. })
  1251. }
  1252. } else {
  1253. this.getUserCard();
  1254. }
  1255. if (this.gun.workStatus == 2) {
  1256. this.workStatus2()
  1257. }
  1258. }).catch(error => {
  1259. uni.hideLoading()
  1260. uni.showModal({
  1261. title: "提示",
  1262. content: "设备扫码异常",
  1263. confirmText: "前往首页",
  1264. showCancel: false,
  1265. success: () => {
  1266. uni.reLaunch({
  1267. url: "/pages/index/index"
  1268. })
  1269. }
  1270. })
  1271. // uni.showToast({
  1272. // title: error
  1273. // })
  1274. })
  1275. },
  1276. chargeTest(bl) {
  1277. if (process.env.NODE_ENV === "development" && process.car.SIMPLE_RUN) {
  1278. var url = '/pages/searchPile/chargeProcess/charge?stationId=' + this.detail.stationId +
  1279. '&deviceNo=' + this.detail.deviceNo + "&gun=" + this.gun.channelNo + "&carNumber=" + (
  1280. this.car ? this.car.carNum : '');
  1281. url+="&id="+this.id
  1282. uni.navigateTo({
  1283. url: url
  1284. })
  1285. }
  1286. },
  1287. charge(bl) {
  1288. if (!this.role(bl)) {
  1289. return
  1290. }
  1291. var url = '/pages/searchPile/chargeProcess/charge?stationId=' + this.detail.stationId +
  1292. '&deviceNo=' + this.detail.deviceNo + "&gun=" + this.gun.channelNo + "&carNumber=" + (
  1293. this.car ? this.car.carNum : '');
  1294. if(this.isback){
  1295. url+="&startMode=1"
  1296. }
  1297. url+="&id="+this.id
  1298. uni.navigateTo({
  1299. url: url
  1300. })
  1301. },
  1302. isInsertBtn() {
  1303. this.isInsert = true;
  1304. },
  1305. getNewYear() {
  1306. //var obj=this.carhelp.get("newyear_activity2023")
  1307. //
  1308. var sz = ["1615623336912621569", "1615623336912621568"];
  1309. var code = parseInt(Math.random() * 2)
  1310. this.carhelp.set("newyear_activity2023", {
  1311. nt: sz[code],
  1312. code: code,
  1313. status: 0
  1314. })
  1315. //先查询另一个领取过没
  1316. userApi.exchangeDetail({
  1317. key: sz[code == 0 ? 1 : 0]
  1318. }).then((res) => {
  1319. if (!res.data.enabled) {
  1320. if (res.data.code == 2) {
  1321. //未开始
  1322. } else {
  1323. //已经结束
  1324. }
  1325. //this.getBannerInfoTop("home-top");
  1326. } else if (res.data.status == 1) {
  1327. //this.getBannerInfoTop("home-top");
  1328. //已经兑换,或者不能兑换
  1329. } else if (res.data.status == 2) {
  1330. // this.showNtValue=res.data.totalDiscount
  1331. this.exchangeDetail(sz[code]);
  1332. } else {
  1333. //res.data.status==0
  1334. //this.showNtValue=res.data.totalDiscount
  1335. this.exchangeDetail(sz[code], sz[code == 0 ? 1 : 0]);
  1336. }
  1337. }).catch(error => {
  1338. this.showNt = false;
  1339. uni.showToast({
  1340. title: error,
  1341. icon: "none"
  1342. })
  1343. })
  1344. },
  1345. exchangeDetail(exchangeCode, code2) {
  1346. uni.showLoading({
  1347. title: "加载中",
  1348. mask: true,
  1349. })
  1350. userApi.exchangeDetail({
  1351. key: exchangeCode
  1352. }).then((res) => {
  1353. uni.hideLoading();
  1354. //
  1355. if (!res.data.enabled) {
  1356. if (res.data.code == 2) {
  1357. //未开始
  1358. } else {
  1359. //已经结束
  1360. }
  1361. //this.getBannerInfoTop("home-top");
  1362. } else if (res.data.status == 1) {
  1363. //this.getBannerInfoTop("home-top");
  1364. //已经兑换,
  1365. } else if (res.data.status == 2) {
  1366. if (code2) {
  1367. //试试另一张卷
  1368. var c = this.carhelp.get("newyear_activity2023")
  1369. if (c) {
  1370. this.carhelp.set("newyear_activity2023", {
  1371. nt: code2,
  1372. code: c.code == 0 ? 1 : 0,
  1373. status: 0
  1374. })
  1375. }
  1376. this.exchangeDetail(code2)
  1377. } else {
  1378. //this.getBannerInfoTop("home-top");
  1379. }
  1380. //不能兑换
  1381. } else {
  1382. this.showNt = true
  1383. this.showNtStep = 0;
  1384. this.showNtValue = res.data.totalDiscount
  1385. }
  1386. }).catch(error => {
  1387. this.showNt = false;
  1388. uni.showToast({
  1389. title: error,
  1390. icon: "none"
  1391. })
  1392. })
  1393. },
  1394. getTemporaryCarNumByOpenId() {
  1395. try {
  1396. API.getTemporaryCarNumByOpenId(this.carhelp.getOpenId()).then((res) => {
  1397. this.temporaryCarNum = res.data
  1398. var temporaryCarNum = res.data
  1399. if (this.temporaryCarNum) {
  1400. this.carTempBl = false;
  1401. uni.showModal({
  1402. title: "临牌提醒",
  1403. content: `查询到[${temporaryCarNum}]入场记录`,
  1404. confirmText: "使用临牌",
  1405. cancelText: "取消",
  1406. success: res1 => {
  1407. if (res1.confirm) {
  1408. //this.carDet()
  1409. this.car = {
  1410. carNum: temporaryCarNum
  1411. }
  1412. } else if (res1.cancel) {
  1413. //('用户点击取消');
  1414. }
  1415. }
  1416. })
  1417. }
  1418. }).catch(error => {
  1419. })
  1420. } catch (e) {
  1421. //TODO handle the exception
  1422. console.log("errorerrorerrorerrorerror")
  1423. }
  1424. },
  1425. redeemNow(exchangeCode) {
  1426. uni.showLoading({
  1427. title: "加载中",
  1428. mask: true,
  1429. })
  1430. userApi.exchange({
  1431. key: exchangeCode
  1432. }).then((res) => {
  1433. uni.hideLoading();
  1434. this.showNtStep = 1
  1435. this.carhelp.set("newyear_activity2023", {
  1436. nt: exchangeCode,
  1437. status: 1
  1438. })
  1439. }).catch(error => {
  1440. this.showNt = false;
  1441. uni.showToast({
  1442. title: error,
  1443. icon: "none"
  1444. })
  1445. })
  1446. },
  1447. showNtStepClick() {
  1448. if (this.showNtStep == 0) {
  1449. var obj = this.carhelp.get("newyear_activity2023")
  1450. if (this.personInfo.userType != 1) {
  1451. this.redeemNow(obj.nt)
  1452. } else {
  1453. this.showNt = false;
  1454. uni.showModal({
  1455. title: "提示",
  1456. content: "游客无法兑换,请先注册为会员后再兑换",
  1457. confirmText: "前往注册",
  1458. success: res1 => {
  1459. if (res1.confirm) {
  1460. uni.navigateTo({
  1461. url: '/pages/login/login'
  1462. })
  1463. } else if (res1.cancel) {
  1464. //('用户点击取消');
  1465. }
  1466. }
  1467. })
  1468. }
  1469. } else if (this.showNtStep == 1 || this.showNtStep == 2 || this.showNtStep == 3 || this.showNtStep == 4) {
  1470. this.showNt = false;
  1471. uni.navigateTo({
  1472. url: "/pages/user/coupon/myCoupon"
  1473. })
  1474. }
  1475. },
  1476. getf5surprised() {
  1477. uni.showLoading({
  1478. title: "加载中",
  1479. mask: true,
  1480. })
  1481. userApi.exchangeGroupDetail2("周年红包").then((res) => {
  1482. uni.hideLoading();
  1483. var data=res.data;
  1484. this.key=""
  1485. this.couponList=[]
  1486. if(data.length){
  1487. this.couponList = res.data[0].couponList;
  1488. if(this.couponList&&this.couponList.length){
  1489. //this.getBannerInfoTop()
  1490. this.getBannerInfoTop("home-top2");
  1491. }
  1492. }
  1493. }).catch(error => {
  1494. uni.showToast({
  1495. title: error,
  1496. icon: "none"
  1497. })
  1498. })
  1499. },
  1500. getBannerInfoTop(code) {
  1501. var nowtime = parseUnixTime(currentTimeStamp(), '{y}-{m}-{d}')
  1502. var time = this.carhelp.get("bannerListTop");
  1503. if ((time && nowtime == time)) {
  1504. this.getBannerInfoTopBl = false;
  1505. }
  1506. //特殊活动不考虑
  1507. this.getBannerInfoTopBl = true;
  1508. // uni.showLoading({
  1509. // title: "加载中",
  1510. // mask: true,
  1511. // })
  1512. newsApi.getBannerInfo(code).then((res) => {
  1513. this.bannerListTop = res.data;
  1514. if (this.bannerListTop.length) {
  1515. this.showTop = true;
  1516. this.showTopImg = this.bannerListTop[0].picUrl;
  1517. this.showTopIndex = 0;
  1518. }
  1519. this.carhelp.set("bannerListTop", nowtime);
  1520. //this.test()
  1521. var userInfo = this.carhelp.getPersonInfo();
  1522. if (userInfo && userInfo.id) {
  1523. //this.getf5surprised()
  1524. } else {}
  1525. //uni.hideLoading()
  1526. //document.getElementsByClassName("uni-swiper-wrapper")[0].parentNode.style="background-color: rgb(255, 255, 255); height: 120px;"
  1527. }).catch(error => {
  1528. uni.showToast({
  1529. title: error,
  1530. icon: "none"
  1531. })
  1532. })
  1533. },
  1534. startCarCharging(){
  1535. if(this.gun&&this.gun.workStatus==2){
  1536. uni.showModal({
  1537. title: '提示',
  1538. showCancel:false,
  1539. content:"快捷充电失败:充电中",
  1540. })
  1541. }else if(!this.openBool){
  1542. uni.showModal({
  1543. title: '提示',
  1544. showCancel:false,
  1545. content:"快捷充电失败:仅单位内部员工可用"
  1546. })
  1547. }else if(this.gunDetail.chargingAppointment&&!this.gunDetail.isMeAppoint){
  1548. uni.showModal({
  1549. title: '提示',
  1550. showCancel:false,
  1551. content:"快捷充电失败:已被预约"
  1552. })
  1553. }else if(this.haveLock&&this.lockStatus==1){
  1554. uni.showModal({
  1555. title: '提示',
  1556. showCancel:false,
  1557. content:"快捷充电失败:下降地锁"
  1558. })
  1559. }else if(!this.isInsert){
  1560. uni.showModal({
  1561. title: '提示',
  1562. showCancel:false,
  1563. content:"快捷充电失败:未插枪"
  1564. })
  1565. }else {
  1566. this.startCarChargingApi();
  1567. }
  1568. },
  1569. startCarChargingApi(){
  1570. uni.showLoading({
  1571. title:"快捷充电启动",
  1572. mask: true,
  1573. })
  1574. this.startCarChargingBl=true;
  1575. var submitForm={
  1576. deviceNo:this.detail.deviceNo,
  1577. channelNo:this.gun.channelNo,
  1578. carNumber:this.car ? this.car.carNum : '',
  1579. chargeStrategy:0,
  1580. amount:0,
  1581. payType:2,
  1582. }
  1583. if(this.userCardBool){
  1584. submitForm.userCardId=this.userCard.id
  1585. }
  1586. API.startCarCharging(submitForm).then((res) => {
  1587. if (res.data.status == "5") {
  1588. var _this=this;
  1589. var recordId=res.data.recordId;
  1590. uni.showModal({
  1591. title: '快捷充电失败',
  1592. confirmText:"充值",
  1593. cancelText:"暂不启用",
  1594. content:"个人账户余额不足10元,无法启动快捷充电",
  1595. success: function (res) {
  1596. if (res.confirm) {
  1597. console.log('用户点击确定');
  1598. _this.gotoUrl("pages/user/finance/recharge?recordId=" + recordId);
  1599. } else if (res.cancel) {
  1600. _this.checkedChange2(0);
  1601. console.log('用户点击取消');
  1602. }
  1603. }
  1604. })
  1605. uni.hideLoading()
  1606. }else{
  1607. this.gotoUrl("pages/searchPile/chargeProcess/dcCharging?id=" + res.data.recordId);
  1608. }
  1609. }).catch(error => {
  1610. uni.hideLoading()
  1611. if (error == '用户账户余额不足!') {
  1612. var _this=this;
  1613. uni.showModal({
  1614. title: '快捷充电失败',
  1615. confirmText:"充值",
  1616. content:"用户余额不足!",
  1617. success: function (res) {
  1618. if (res.confirm) {
  1619. console.log('用户点击确定');
  1620. _this.showrecharge=true
  1621. } else if (res.cancel) {
  1622. console.log('用户点击取消');
  1623. }
  1624. }
  1625. })
  1626. } else {
  1627. uni.showModal({
  1628. title: '提示',
  1629. showCancel:false,
  1630. content:"充电失败:"+( error?error:'未知错误')
  1631. })
  1632. }
  1633. })
  1634. }
  1635. },
  1636. }
  1637. </script>
  1638. <style lang="scss">
  1639. .priceListBlMain {
  1640. display: flex;
  1641. justify-content: space-between;
  1642. align-items: last baseline;
  1643. }
  1644. .discount-card {
  1645. box-shadow: 0px 0px 8px 0px rgba(0, 65, 30, 0.1);
  1646. border: 1px solid rgba(225, 236, 231, 1);
  1647. border-radius: 8px;
  1648. //background-color: rgba(55, 59, 80, 1);
  1649. padding: 24rpx;
  1650. margin-top: 24rpx;
  1651. .name {
  1652. //color: rgba(255, 255, 255, 1);
  1653. font-size: 32rpx;
  1654. }
  1655. .progress {
  1656. display: flex;
  1657. justify-content: space-between;
  1658. flex-wrap: wrap;
  1659. // color: rgba(219, 219, 219, 1);
  1660. font-size: 24rpx;
  1661. margin-bottom: 16rpx;
  1662. margin-top: 24rpx;
  1663. }
  1664. /deep/.u-active {
  1665. background: linear-gradient(84.49deg, rgba(59, 182, 254, 1) 4.25%, rgba(0, 185, 98, 1) 95.02%);
  1666. }
  1667. }
  1668. .discount-card-4 {
  1669. background: #da241e !important;
  1670. .unit{
  1671. color:#fff !important;
  1672. }
  1673. .u-progress{
  1674. background-color:#cf4c42 !important;
  1675. color: #fff;
  1676. }
  1677. .name{
  1678. color: #ffd695!important;
  1679. font-size: 36rpx;
  1680. font-family: "SimSun", Arial, sans-serif;
  1681. font-weight: 400;
  1682. text-shadow: 2px 1px 0px #800400 ;
  1683. }
  1684. .progress{
  1685. color: #fff;
  1686. }
  1687. }
  1688. .temporaryCarNum {
  1689. text-align: right;
  1690. margin-bottom: 10px;
  1691. margin: 0 40rpx;
  1692. span {
  1693. margin: 0 8rpx;
  1694. color: #19be6b;
  1695. }
  1696. }
  1697. .oldTextClassF {
  1698. .tips {
  1699. padding: 36rpx;
  1700. .p {
  1701. font-size: 42rpx !important;
  1702. }
  1703. .content {
  1704. font-size: 34rpx !important;
  1705. }
  1706. }
  1707. .bottom {
  1708. .u-btn {
  1709. font-size: 48rpx
  1710. }
  1711. }
  1712. .text-1 {
  1713. font-size: 56rpx !important;
  1714. }
  1715. .text-2 {
  1716. font-size: 38rpx !important;
  1717. }
  1718. .charging-info {
  1719. .name {
  1720. font-size: 36rpx !important;
  1721. .free {
  1722. font-weight: bold;
  1723. font-size: 36rpx !important;
  1724. }
  1725. }
  1726. .address {
  1727. font-size: 44rpx;
  1728. font-weight: bold;
  1729. }
  1730. .price {
  1731. font-weight: bold;
  1732. font-size: 60rpx !important;
  1733. .unit {
  1734. font-weight: normal;
  1735. font-size: 36rpx !important;
  1736. }
  1737. }
  1738. }
  1739. }
  1740. page {
  1741. background-color: #F6F8F8;
  1742. padding-bottom: 100px;
  1743. }
  1744. .service {
  1745. font-size: 24px;
  1746. color: #101010;
  1747. position: absolute;
  1748. right: 16px;
  1749. }
  1750. .main2 {
  1751. background-color: #fff;
  1752. padding-left: 16px;
  1753. .item {
  1754. border-bottom: 1px solid #e5e7ea;
  1755. padding: 16px 0;
  1756. .title {
  1757. line-height: 16px;
  1758. color: rgba(119, 119, 119, 100);
  1759. font-size: 16px;
  1760. .more {
  1761. font-size: 24px;
  1762. color: #b3b3b3;
  1763. float: right;
  1764. margin-right: 8px;
  1765. }
  1766. }
  1767. .content {
  1768. line-height: 24px;
  1769. color: rgba(16, 16, 16, 100);
  1770. font-size: 16px;
  1771. margin-top: 8px;
  1772. padding-right: 30px;
  1773. }
  1774. }
  1775. }
  1776. .main {
  1777. padding: 40rpx 40rpx 24rpx 40rpx;
  1778. background-image: linear-gradient(#D6EEDC, #F6F8F8);
  1779. .text-1 {
  1780. color: rgba(0, 170, 90, 100);
  1781. font-size: 48rpx;
  1782. line-height: 33px;
  1783. }
  1784. .text-2 {
  1785. color: rgba(102, 102, 102, 100);
  1786. font-size: 32rpx;
  1787. line-height: 22px;
  1788. }
  1789. .charging-info {
  1790. background-color: #fff;
  1791. margin: 0px auto;
  1792. border-radius: 12px;
  1793. padding: 20rpx 38rpx;
  1794. .name {
  1795. margin-top: 8rpx;
  1796. color: #777777;
  1797. font-size: 32rpx;
  1798. .free {
  1799. display: inline-block;
  1800. width: 72px;
  1801. height: 20px;
  1802. line-height: 20px;
  1803. border-radius: 50px;
  1804. background-color: rgba(208, 246, 228, 100);
  1805. color: rgba(0, 185, 98, 100);
  1806. font-size: 28rpx;
  1807. text-align: center;
  1808. margin-left: 12px;
  1809. }
  1810. }
  1811. .price-3-card-view {
  1812. display: flex;
  1813. align-items: last baseline;
  1814. .price-3-card {
  1815. max-width: 240rpx;
  1816. min-width: 220rpx;
  1817. display: flex;
  1818. background: linear-gradient(93.02deg, rgba(59, 182, 254, 1) 39.4%, rgba(0, 185, 98, 1) 92.96%);
  1819. border-radius: 4px;
  1820. height: 32rpx;
  1821. min-height: 32rpx;
  1822. margin-left: 32rpx;
  1823. // align-items: center;
  1824. line-height: 32rpx;
  1825. .num1 {
  1826. img {
  1827. // width: 88rpx;
  1828. //width: 34px;
  1829. height: 32rpx;
  1830. }
  1831. /deep/.u-image {
  1832. min-height: 32rpx;
  1833. }
  1834. font-size: 22rpx;
  1835. background: rgb(48, 49, 51);
  1836. }
  1837. .num {
  1838. padding: 0 6rpx 0 6rpx;
  1839. color: rgba(255, 255, 255, 1);
  1840. font-size: 22rpx;
  1841. display: flex;
  1842. align-items: center;
  1843. }
  1844. }
  1845. .price-3-card-yue{
  1846. background: linear-gradient(88.81deg, rgba(219,199,167,1) 1.89%,rgba(194,154,93,1) 98%);
  1847. }
  1848. }
  1849. .price-2 {
  1850. display: flex;
  1851. align-items: baseline;
  1852. .price-4 {
  1853. color: rgba(0, 185, 98, 100);
  1854. font-size: 56rpx;
  1855. margin-top: 0rpx;
  1856. display: flex;
  1857. align-items: baseline;
  1858. .unit {
  1859. font-size: 32rpx;
  1860. color: #666666;
  1861. margin-left: 4px;
  1862. }
  1863. }
  1864. .price-3 {
  1865. font-size: 24rpx;
  1866. color: #fff;
  1867. margin-left: 8rpx;
  1868. padding-right: 9rpx;
  1869. background: #00B962;
  1870. border-radius: 8rpx;
  1871. .num1 {
  1872. padding-left: 12rpx;
  1873. border-radius: 8rpx 0 8rpx 8rpx;
  1874. padding-right: 18rpx;
  1875. background: #121212;
  1876. -webkit-clip-path: polygon(0 0, 93% 0, 84% 100%, 0% 100%);
  1877. clip-path: polygon(0 0, 93% 0, 84% 100%, 0% 100%);
  1878. }
  1879. }
  1880. }
  1881. .price {
  1882. color: rgba(0, 185, 98, 100);
  1883. //font-size: 56rpx;
  1884. margin: 8rpx 0;
  1885. .span {
  1886. font-size: 56rpx;
  1887. }
  1888. .unit {
  1889. font-size: 32rpx;
  1890. color: #666666;
  1891. margin-left: 4px;
  1892. }
  1893. }
  1894. .address {
  1895. color: #333333;
  1896. font-size: 40rpx;
  1897. .explain {
  1898. line-height: 22px;
  1899. color: rgba(22, 119, 255, 100);
  1900. font-size: 32rpx;
  1901. float: right;
  1902. }
  1903. }
  1904. }
  1905. }
  1906. .main-head {
  1907. display: flex;
  1908. justify-content: space-between;
  1909. }
  1910. .charge-img {
  1911. width: 80px;
  1912. overflow: hidden;
  1913. height: 80px;
  1914. // margin-right: 16rpx;
  1915. img {
  1916. width: 100%;
  1917. }
  1918. }
  1919. .cost-explainMain{
  1920. margin: 24rpx 40rpx 24rpx 40rpx;
  1921. padding: 30rpx 40rpx;
  1922. background-color: #fff;
  1923. // background-color: #fff;
  1924. // margin: 0 40rpx;
  1925. border-radius: 12px;
  1926. // padding: 38rpx 40rpx;
  1927. // display: flex;
  1928. font-size: 36rpx;
  1929. .cost-explain2{
  1930. .car-number{
  1931. color: #FF3D00;
  1932. }
  1933. }
  1934. // 费用说明
  1935. .cost-explain {
  1936. margin-bottom: 12rpx;
  1937. border-radius: 12px;
  1938. display: flex;
  1939. justify-content: space-between;
  1940. align-items: center;
  1941. .car-number {
  1942. display: flex;
  1943. font-size: 32rpx;
  1944. }
  1945. img {
  1946. vertical-align: middle;
  1947. }
  1948. .text {
  1949. font-size: 36rpx;
  1950. color: #101010;
  1951. //width: 330rpx;
  1952. white-space: pre;
  1953. }
  1954. .iconfont {
  1955. color: #b3b3b3;
  1956. font-size: 48rpx
  1957. }
  1958. }
  1959. }
  1960. .tips {
  1961. background-color: #fff;
  1962. padding: 40rpx;
  1963. margin: 8rpx 40rpx 0 40rpx;
  1964. border-radius: 12px;
  1965. .p {
  1966. line-height: 25px;
  1967. color: #333333;
  1968. font-size: 32rpx;
  1969. font-weight: 550;
  1970. }
  1971. .content {
  1972. margin-top: 16rpx;
  1973. line-height: 22px;
  1974. color: #666666;
  1975. font-size: 28rpx;
  1976. }
  1977. }
  1978. .bottom {
  1979. width: 100%;
  1980. padding: 28rpx 0;
  1981. .u-btn {
  1982. margin: 0 40rpx;
  1983. line-height: 88rpx;
  1984. height: 88rpx;
  1985. font-size: 40rpx
  1986. }
  1987. }
  1988. /deep/.u-alert-desc {
  1989. color: rgba(255, 115, 0, 100);
  1990. font-size: 16px
  1991. }
  1992. // 入场车辆
  1993. .carp {
  1994. margin: 0 40rpx;
  1995. }
  1996. .carImg {
  1997. margin: 0 40rpx;
  1998. img {
  1999. width: 100%;
  2000. }
  2001. }
  2002. .carImg3 {
  2003. margin: 0 40rpx;
  2004. background: linear-gradient(32.4deg, rgba(59,182,254,1) 20.49%,rgba(0,185,98,1) 118.87%);
  2005. border-radius: 8px;
  2006. }
  2007. .carImg3-yue {
  2008. margin: 0 40rpx;
  2009. background: linear-gradient(88.81deg, rgba(219,199,167,1) 1.89%,rgba(194,154,93,1) 98%);
  2010. border-radius: 8px;
  2011. }
  2012. .carImg2-yue {
  2013. line-height: 20px;
  2014. color: rgba(255, 255, 255, 1);
  2015. font-size: 32rpx;
  2016. padding:40rpx;
  2017. //background: linear-gradient(88.81deg, rgba(219,199,167,1) 1.89%,rgba(194,154,93,1) 98%);
  2018. background: url('../../../assets/img/9-4/antFill-crown.svg');
  2019. background-repeat: repeat-y;
  2020. background-position-x: 440rpx;
  2021. .carImg-2{
  2022. span{
  2023. font-size: 48rpx;
  2024. color:red;
  2025. margin: 0 4rpx;
  2026. font-weight: bold;
  2027. padding:0rpx 4rpx;
  2028. }
  2029. }
  2030. .carImg-3{
  2031. margin-top:8rpx ;
  2032. span{
  2033. padding:8rpx 16rpx;
  2034. border-radius: 12px;
  2035. background-color: rgba(255, 255, 255, 1);
  2036. text-align: center;
  2037. color: #795626 ;
  2038. font-size: 12px;
  2039. }
  2040. }
  2041. }
  2042. .carImg2 {
  2043. line-height: 20px;
  2044. color: rgba(255, 255, 255, 1);
  2045. font-size: 32rpx;
  2046. padding:40rpx;
  2047. background: url('../../../assets/img/9-4/6show.png');
  2048. background-repeat: repeat-y;
  2049. background-position-x: 440rpx;
  2050. .carImg-2{
  2051. span{
  2052. font-size: 48rpx;
  2053. color:red;
  2054. margin: 0 4rpx;
  2055. font-weight: bold;
  2056. padding:0rpx 4rpx;
  2057. }
  2058. }
  2059. .carImg-3{
  2060. margin-top:8rpx ;
  2061. span{
  2062. padding:8rpx 16rpx;
  2063. border-radius: 12px;
  2064. background-color: rgba(255, 255, 255, 1);
  2065. text-align: center;
  2066. color: rgba(0, 130, 69, 1);
  2067. font-size: 12px;
  2068. }
  2069. }
  2070. }
  2071. .showOss2 {
  2072. /deep/.u-model,
  2073. /deep/.u-mode-center-box {
  2074. background-color: transparent;
  2075. }
  2076. }
  2077. .classtable {
  2078. margin: 0rpx 40rpx;
  2079. .td1 {
  2080. width: 50rpx;
  2081. padding: 12rpx 0;
  2082. text-align: center;
  2083. img {
  2084. width: 48rpx;
  2085. height: 48rpx;
  2086. }
  2087. font-size: 10px;
  2088. }
  2089. .td2 {
  2090. padding-left: 16rpx;
  2091. font-size: 12px;
  2092. line-height: 24px;
  2093. .dian {
  2094. padding: 0 10rpx
  2095. }
  2096. }
  2097. }
  2098. .btnview {
  2099. display: flex;
  2100. flex-direction: column;
  2101. align-items: center;
  2102. .btnview1 {}
  2103. .btnview2 {
  2104. color: #999999;
  2105. margin-top: 20rpx;
  2106. padding-bottom: 48rpx;
  2107. }
  2108. }
  2109. .chat_hhh_time {
  2110. display: flex;
  2111. justify-content: space-between;
  2112. }
  2113. .chat_hhh {
  2114. .chatShow {
  2115. .showspan{
  2116. float: right;
  2117. color: #00b962;
  2118. }
  2119. margin-bottom: 280rpx;
  2120. //height: 160px;
  2121. visibility: hidden;
  2122. // width: 120px;
  2123. padding: 4rpx 16rpx;
  2124. text-align: initial;
  2125. /* 定位 */
  2126. position: absolute;
  2127. z-index: 1;
  2128. padding: 4rpx 16rpx;
  2129. background-color: #fff;
  2130. color: rgba(102, 102, 102, 1);
  2131. border-radius: 3px;
  2132. font-size: 24rpx;
  2133. box-shadow: 0px 0px 4px 0px rgba(0, 0, 0, 0.2);
  2134. }
  2135. .chatShowA {
  2136. margin-left: -60rpx;
  2137. }
  2138. .chatShowB {
  2139. margin-left: -160rpx;
  2140. }
  2141. .chatShowNo {
  2142. visibility: hidden;
  2143. }
  2144. .chatShowOk {
  2145. visibility: visible;
  2146. }
  2147. background: #f9f9f9;
  2148. text-align: center;
  2149. min-height: 160px;
  2150. display: flex;
  2151. font-size: 20rpx;
  2152. .current1 {
  2153. .chats2 {
  2154. //border: 1px solid red;
  2155. }
  2156. }
  2157. .current2 {
  2158. .chats1 {
  2159. border: 1px solid #333333;
  2160. border-bottom: 0px;
  2161. }
  2162. .chats2 {
  2163. border: 1px solid #333333;
  2164. background: #26FF6B !important;
  2165. border-top: 0px;
  2166. }
  2167. }
  2168. .chatTime {
  2169. min-width: 68rpx;
  2170. display: flex;
  2171. flex-direction: column;
  2172. justify-content: flex-end;
  2173. border: 1px solid #f9f9f9;
  2174. .chats0 {
  2175. // background-color: #ff8b17;
  2176. // color: #ffecdd;
  2177. display: flex;
  2178. justify-content: center;
  2179. flex-wrap: wrap;
  2180. flex-direction: column;
  2181. }
  2182. .chats9 {
  2183. opacity: 0;
  2184. display: flex;
  2185. justify-content: center;
  2186. flex-wrap: wrap;
  2187. flex-direction: column;
  2188. }
  2189. .chats1 {
  2190. background: #dcdcdc;
  2191. min-height: 30rpx
  2192. }
  2193. .chats2 {
  2194. background: #80e0a6;
  2195. display: flex;
  2196. flex-direction: column;
  2197. justify-content: space-between;
  2198. }
  2199. }
  2200. }
  2201. .quickMain{
  2202. /deep/.u-mode-center-box{
  2203. background-color: transparent;
  2204. }
  2205. /deep/.u-model{
  2206. background-color: transparent;
  2207. }
  2208. .quickMain-slot-content{
  2209. .quickMain-img{
  2210. position: relative;
  2211. top: 120rpx;
  2212. text-align: center;
  2213. img{
  2214. width: 160rpx;
  2215. height: 240rpx;
  2216. }
  2217. }
  2218. .quickMain-bodyMain{
  2219. background-color:#fff;
  2220. border-radius: 15px;
  2221. }
  2222. .quickMain-body{
  2223. margin:0 56rpx ;
  2224. color: rgba(51, 51, 51, 1);
  2225. .quickMain-text1{
  2226. font-size: 48rpx;
  2227. text-align: center;
  2228. padding: 132rpx 0 32rpx 0;
  2229. }
  2230. .quickMain-text2{
  2231. margin-bottom: 20rpx ;
  2232. //color: rgba(51, 51, 51, 1);
  2233. font-size: 32rpx;
  2234. img{
  2235. width: 40rpx;
  2236. //height: 120px;
  2237. }
  2238. }
  2239. }
  2240. }
  2241. }
  2242. .slogan-4 {
  2243. z-index: 2;
  2244. margin-top: 10px;
  2245. display: flex;
  2246. justify-content: center;
  2247. /* text-decoration: underline; */
  2248. text-align: center;
  2249. position: fixed;
  2250. /* top: 40px; */
  2251. bottom: 180px;
  2252. right: 20px;
  2253. height: 80rpx;
  2254. width: 80rpx;
  2255. line-height: 20px;
  2256. font-size: 16px;
  2257. background: linear-gradient(95deg, #FF9800, #FF5722);
  2258. box-shadow: 0 4rpx 24rpx 0 #FF5722;
  2259. //padding-top: 8px;
  2260. color: #fff;
  2261. border-radius: 25px;
  2262. }
  2263. .imageshake {
  2264. position: relative;
  2265. animation: shake 0.5s ease-in-out infinite;
  2266. }
  2267. @keyframes shake {
  2268. 0% {
  2269. transform: rotate(0deg);
  2270. }
  2271. 25% {
  2272. transform: rotate(8deg);
  2273. }
  2274. 50% {
  2275. transform: rotate(0deg);
  2276. }
  2277. 75% {
  2278. transform: rotate(-8deg);
  2279. }
  2280. 100% {
  2281. transform: rotate(0deg);
  2282. }
  2283. }
  2284. .showOssK {
  2285. /deep/.u-model,
  2286. /deep/.u-mode-center-box {
  2287. background-color: transparent;
  2288. }
  2289. }
  2290. // .showOss {
  2291. // /deep/.u-model,
  2292. // /deep/.u-mode-center-box {
  2293. // background-color: transparent;
  2294. // }
  2295. // }
  2296. .swiper {
  2297. height: 700rpx;
  2298. .swiperitem {
  2299. height: 700rpx;
  2300. }
  2301. }
  2302. </style>