dcCharging.vue 61 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765
  1. <template>
  2. <view>
  3. <u-modal v-model="showlottery" class="showlottery"
  4. :show-title="false"
  5. :show-confirm-button="false" >
  6. <lottery class="lottery"
  7. :width="lwidth"
  8. :height="lheight"
  9. :isUseDefaultOptions="false"
  10. :data="dataLottery"
  11. @beforePlay="beforePlay"
  12. @afterPlay="afterPlay"
  13. @end="showlottery=false"
  14. :setWinnerFn="getWinnerFn">
  15. </lottery>
  16. </u-modal>
  17. <view v-if="chargingRecord.status==2" style="background-color: #fff; ">
  18. <ujp-navbar title="充电结束">
  19. </ujp-navbar>
  20. <view class="slogan-4 " v-for="(item,i) in bannerListYXJ" :key="i" v-if="i==0">
  21. <u-icon name="close-circle-fill" color="#989898" @click="bannerListYXJ=[]"></u-icon>
  22. <img :src="item.picUrl" @click="gotoUrl2(item.linkUrl)">
  23. </view>
  24. <view class="progress-bar2" v-if="chargingGun.gunType==2">
  25. <u-circle-progress width="300" active-color="#53b56b" duration='20' percent="100" border-width="20">
  26. <view class="u-progress-content">
  27. <text class='u-progress-info'>
  28. <p style="text-align: center;">
  29. <!-- {{chargingRecord.electricQuantity?(chargingRecord.electricQuantity/10000).toFixed(2):0}} -->
  30. {{chargingRecord.actualFee?chargingRecord.actualFee.toFixed(2):0}}
  31. </p>
  32. <p class="progress-text">充电金额(元)</p>
  33. </text>
  34. </view>
  35. </u-circle-progress>
  36. </view>
  37. <view class="progress-bar3" id="pieEcharts" v-show="chargingGun.gunType==1">
  38. <ujp-circle-progress width="500" active-color="#53b56b" duration='20' :percent="chargingRecord.startSoc" :percentEnd="chargingRecord.endSoc" border-width="20">
  39. <view class="u-progress-content">
  40. <text class='u-progress-info'>
  41. <p style="text-align: center;">
  42. {{chargingRecord.actualFee?chargingRecord.actualFee.toFixed(2):0}}
  43. </p>
  44. <p class="progress-text">充电金额(元)</p>
  45. </text>
  46. </view>
  47. </ujp-circle-progress>
  48. <!-- <ujp-circle-progress width="500" active-color="#53b56b" duration='20'
  49. :percent="42" :percentEnd="56" border-width="20">
  50. </ujp-circle-progress> -->
  51. </view>
  52. <!-- 充电信息 -->
  53. <!-- <view class="charge-infos">
  54. <view class="item">
  55. <view class="title">
  56. 充电金额
  57. </view>
  58. <view class="content">
  59. 50.00
  60. </view>
  61. </view>
  62. <view class="item">
  63. <view class="title">
  64. 充电时长
  65. </view>
  66. <view class="content">
  67. 00.00.00
  68. </view>
  69. </view>
  70. <view class="item">
  71. <view class="title">
  72. 优惠金额
  73. </view>
  74. <view class="content discounts">
  75. -6.00元
  76. </view>
  77. </view>
  78. <view class="item">
  79. <view class="title">
  80. 会员活动
  81. </view>
  82. <view class="content">
  83. 充电月卡
  84. </view>
  85. </view>
  86. </view> -->
  87. <view class="info">
  88. <view class="info-name">
  89. 充电时长
  90. </view>
  91. <view class="info-text">
  92. {{getPercent2()}}
  93. </view>
  94. </view>
  95. <view class="info" v-if="chargingGun.gunType==1&&chargingRecord.startSoc!=null&&chargingRecord.endSoc!=null">
  96. <view class="info-name">
  97. 充电SOC
  98. </view>
  99. <view class="info-text">
  100. {{chargingRecord.startSoc}}%>{{chargingRecord.endSoc}}%
  101. </view>
  102. </view>
  103. <view class="info" v-if="chargingRecord.discountAmount">
  104. <view class="info-name">
  105. 实际减免(优惠券)
  106. </view>
  107. <view class="info-text" style="color:red">
  108. {{chargingRecord.discountAmount.toFixed(2)}}元
  109. </view>
  110. </view>
  111. <view class="info" v-if="chargingRecord.dueServiceMoney&&chargingRecord.totalServiceMoney&&chargingRecord.dueServiceMoney!=chargingRecord.totalServiceMoney">
  112. <view class="info-name">
  113. 优惠金额
  114. </view>
  115. <view class="info-text" style="color:red">
  116. {{(chargingRecord.dueServiceMoney-chargingRecord.totalServiceMoney).toFixed(2)}}元
  117. </view>
  118. </view>
  119. <p style="color: rgba(119, 119, 119, 1);font-size: 24rpx; text-align: end; margin: 0 80rpx;"
  120. v-if="chargingRecord.quickChargeReduce">快充订单满{{chargingRecord.quickChargeDegree}}度服务费
  121. <span v-if="chargingRecord.serviceDiscountRatio==0" >免单</span>
  122. <span v-else >{{discountRatio10(chargingRecord.serviceDiscountRatio)}}折</span>
  123. </p>
  124. <p style="color: rgba(119, 119, 119, 1);font-size: 24rpx; text-align: end; margin: 0 80rpx;"
  125. v-if="chargingRecord.quickChargeContentId">系统自动选择最低折扣结算</p>
  126. <view class="info">
  127. <view class="info-name">
  128. 充电金额
  129. </view>
  130. <view class="info-text">
  131. {{chargingRecord.actualFee?chargingRecord.actualFee.toFixed(2):0}}元
  132. </view>
  133. </view>
  134. <view class="info" v-if="chargingRecord.remark">
  135. <view class="info-name" style="width: 80px; white-space: pre;">
  136. 结束原因
  137. </view>
  138. <view class="info-text" style="color: red;" @click="uMessageShow">
  139. {{chargingRecord.remark}}
  140. <br/><span v-if="chargingRecord.updateBy=='cfyxz'" style="color: #00b962;">点击查看小优推荐</span>
  141. </view>
  142. </view>
  143. <view class="info">
  144. <view class="info-name">
  145. 优惠券
  146. </view>
  147. <view class="info-text" style="color:red">
  148. {{couponObj&&couponObj.status=='1'?couponObj.text:'未使用'}}
  149. </view>
  150. </view>
  151. <view class="info-min" v-if="userCardBool">
  152. <view class="info-name">
  153. 会员活动
  154. </view>
  155. <view class="info-text" v-if="userCard.classify==1">
  156. 折扣卡
  157. </view>
  158. <view class="info-text" v-if="userCard.classify==2">
  159. <template v-if="userCard.monthlyRentCard.type==4">
  160. {{userCard.monthlyRentCard.name}}
  161. </template>
  162. <template v-else>
  163. 充电服务费{{userCard.monthlyRentCard.serviceFeeDiscountRate/10}}折卡
  164. </template>
  165. <!-- 充电服务费{{userCard.monthlyRentCard.serviceFeeDiscountRate/10}}折卡 -->
  166. </view>
  167. </view>
  168. <view class="info-min" v-if="userCardBool&&userCard.classify==2">
  169. <view class="info-name">
  170. </view>
  171. <view class="info-text-min">
  172. 剩余时长{{setValidity(thisdaysDistance(userCard.endTime))}} |
  173. 剩余优惠电量{{userCard.chargedDegree>userCard.chargeDegreeLimit?0:(userCard.chargeDegreeLimit-userCard.chargedDegree).toFixed(0)}}度
  174. </view>
  175. </view>
  176. <view class="bottom-ww">
  177. <u-button size="default" shape="circle" @click="gotoMain(0)">返回首页</u-button>
  178. <u-button size="default" shape="circle" @click="gotoMain(1)">查看订单详情</u-button>
  179. </view>
  180. <view class="useFreeCoupon" v-if="userParkingCoupon">
  181. <view class="title " >温馨提示:车辆出场时可出示该券</view>
  182. <view class="details showCoupon" @click="gotoUrl('pages/record/coupon?id='+id)" >
  183. <view class="showCoupon1 ">
  184. <view class="showCoupon11">
  185. <span class="showCoupon111" >免费停车优惠卷</span>
  186. </view>
  187. <view class="showCoupon12 padding1" >{{ minuteConversion(userParkingCoupon.freeMinute,true)}}</view>
  188. <view class="showCoupon13 padding1">充电时间 {{ getPercentshowCoupon(chargingRecord)}}</view>
  189. </view>
  190. <view class="showCoupon2 padding2">
  191. <u-icon name="coupon-fill" size="48" color="#FF3D00"></u-icon>
  192. <view class="showCoupon22">
  193. 出示
  194. </view>
  195. </view>
  196. </view>
  197. </view>
  198. <view class="piccBanner" v-for="(itemJNT,index ) in bannerListJNTend" @click="gotoUrl2(itemJNT.linkUrl)"
  199. v-show="index==0" :key="index" style="
  200. text-align: center;
  201. padding: 0px 16px;">
  202. <image :src="itemJNT.picUrl" style="height: 204rpx;width: 100%;border-radius: 10px;"></image>
  203. </view>
  204. <u-line color="#E6E6E6 100%" v-if="bannerListJNTend.length==0" length="81%" margin="auto" />
  205. <!-- 反馈 -->
  206. <view class="feedback">
  207. <view class="title-1">
  208. 您对本次充电服务还满意吗?
  209. </view>
  210. <view class="title-2">
  211. 请在下方描述您所遇到的问题,或填写您的反馈意见。我们将对优质内容的反馈者发放奖励!
  212. </view>
  213. <textarea value="" v-model="message" placeholder="请填写反馈内容" />
  214. <u-button class="submit" type="success" @click="submitMessage()">提交</u-button>
  215. </view>
  216. <!-- <u-line color="#E6E6E6 100%" length="81%" margin="auto"/>
  217. -->
  218. <u-divider color="#B6BDC3" style="margin-bottom:20px;" bg-color="#ffffff">已经到底了</u-divider>
  219. <view>
  220. <u-toast ref="uToast" />
  221. </view>
  222. </view>
  223. <view style="background-color: #f7f8f8; padding-bottom: 0px;" class="progress-bar-main"
  224. v-else>
  225. <u-modal v-model="descriptionShow2do" confirm-text="知道了" title="【充电SOC限制】">
  226. <view style="padding: 10px;font-size: 14px;">
  227. 为保障充电安全,并积极响应主管部门对新能源汽车充电安全工作,从即日起,该站充电设施SOC上限阈值为{{chargingStation.maxSoc}}%,即充电量达到满充电量{{chargingStation.maxSoc}}%时,充电设施将自动结束充电。
  228. </view>
  229. </u-modal>
  230. <u-modal v-model="showVin" class="showOss" @cancel="confirm()" confirm-text="继续充电" cancel-text="结束充电"
  231. :show-title="false" :show-cancel-button="true">
  232. <view class="slot-content">
  233. <u-image width="120px" style="margin: auto;" mode="widthFix"
  234. src="@/assets/static/img/充电中-缺省页.png"></u-image>
  235. <view style="padding:0 40px;font-size: 36rpx;">
  236. 系统检测出当前充电车辆与折扣卡所绑定的车辆不一致,该车辆可以正常充电,但无法享受折扣卡免服务费优惠。
  237. </view>
  238. </view>
  239. </u-modal>
  240. <view>
  241. <ujp-navbar :title="navbartitle">
  242. <view class="to-recharge" v-if="chargingRecord.payType==2"
  243. @click="gotoUrl('pages/user/finance/recharge')">
  244. 去充值
  245. </view>
  246. </ujp-navbar>
  247. <u-alert-tips type="warning"
  248. v-if="chargingGun.gunType==1&&chargingStation.maxSoc&&chargingStation.maxSoc!=100" :descStyle="{
  249. fontSize: '28rpx',
  250. color: '#ef7a30',
  251. }" @click="alerttipsCk2" :show-icon="true"
  252. :description="'【充电SOC限制】充电量达到满充电量'+chargingStation.maxSoc+'%时,充电设施将自动结束充电。点击查看详情>'"></u-alert-tips>
  253. <!-- 充电状态 -->
  254. <view class="charge-state" v-if="chargingGun.gunType==1">
  255. <view class="progress-bar">
  256. <u-circle-progress width="400" :active-color="percentColor" duration='20'
  257. :percent="percent?percent:percentValue" border-width="35">
  258. <view class="u-progress-content" v-if="chargingRecord.status==4">
  259. <text class='u-progress-info' v-if="waitNum==1">排队中</text>
  260. <text class='u-progress-info' v-else>前方等待{{waitNum-1}}位</text>
  261. </view>
  262. <view class="u-progress-content" v-else>
  263. <text class='u-progress-info'>
  264. <view style="
  265. font-size: 60rpx;
  266. font-weight: bold;
  267. color: #009B52 ;
  268. ">{{chargingRecord.statusText}}</view>
  269. <view v-if="chargingGun.gunType==1" style="
  270. font-size: 32rpx;
  271. font-weight: bold;
  272. ">SOC {{percent}}%</view>
  273. <view v-else style="
  274. font-size: 32rpx;
  275. font-weight: bold;
  276. "></view>
  277. </text>
  278. </view>
  279. <view class="bot"></view>
  280. </u-circle-progress>
  281. </view>
  282. </view>
  283. <view class="charge-state-2024-04-01" v-if="chargingGun.gunType==2">
  284. <view class="charge-state-img">
  285. <img src="@/assets/img/docharging/2.png">
  286. </view>
  287. <view class="charge-state-img2">
  288. <img src="@/assets/img/docharging/1.png">
  289. </view>
  290. <view class="charge-state-img3">
  291. {{chargingRecord.statusText}}
  292. </view>
  293. </view>
  294. <!-- 充电信息 -->
  295. <view class="charge-info">
  296. <view class="info-item">
  297. <view class="content">
  298. {{timer}}
  299. </view>
  300. <view class="name">
  301. 充电时长
  302. </view>
  303. </view>
  304. <view class="info-item">
  305. <view class="content">
  306. {{chargingRecord.dueFee?chargingRecord.dueFee.toFixed(2):'0.00'}}
  307. </view>
  308. <view class="name">
  309. 预计费用(元)
  310. </view>
  311. </view>
  312. <view class="info-item" v-if="chargingRecord.payType==1">
  313. <view class="content" v-if="chargingRecord.estimateFee">
  314. {{chargingRecord.estimateFee.toFixed(2)}}
  315. </view>
  316. <view class="name">
  317. 预充金额(元)
  318. </view>
  319. </view>
  320. <view class="info-item" v-if="chargingRecord.payType==4">
  321. <view class="content" v-if="detail.chargingFunds>0||detail.chargingFunds==0">
  322. {{detail.chargingFunds>0&&chargingRecord.dueFee?((detail.chargingFunds*1000-chargingRecord.dueFee*1000)/1000).toFixed(2):detail.chargingFunds.toFixed(2)}}
  323. </view>
  324. <view class="name">
  325. 充电金(元)
  326. </view>
  327. </view>
  328. <view class="info-item" v-else>
  329. <view class="content" v-if="detail.balance>0||detail.balance==0">
  330. {{detail.balance>0&&chargingRecord.dueFee?((detail.balance*1000-chargingRecord.dueFee*1000)/1000).toFixed(2):detail.balance.toFixed(2)}}
  331. </view>
  332. <view class="name">
  333. {{chargingRecord.payType==3?'企业':'账户'}}余额(元)
  334. </view>
  335. </view>
  336. <view class="info-item" v-if="infoShow">
  337. <view class="content">
  338. {{chargingRecord.chargeVoltage?chargingRecord.chargeVoltage:0}}V
  339. </view>
  340. <view class="name">
  341. 电压
  342. <u-icon name="error-circle" v-if="chargingGun.gunType==1" @click="voltageShow=true"
  343. size="28"></u-icon>
  344. </view>
  345. </view>
  346. <view class="info-item" v-if="infoShow">
  347. <view class="content">
  348. {{chargingRecord.chargingPower?(chargingRecord.chargingPower/1000).toFixed(2):0}}kW
  349. </view>
  350. <view class="name">
  351. 功率
  352. </view>
  353. </view>
  354. <view class="info-item" v-if="infoShow">
  355. <view class="content">
  356. {{chargingRecord.chargeAmpere?chargingRecord.chargeAmpere:0}}A
  357. </view>
  358. <view class="name">
  359. 电流
  360. </view>
  361. </view>
  362. <template v-if="NODE_ENV!=='production'">
  363. <!-- <view class="info-item" v-if="infoShow">
  364. <view class="content">
  365. {{chargingGun.beforeMeter?chargingGun.beforeMeter:0}}度
  366. </view>
  367. <view class="name">
  368. 充电前电表
  369. </view>
  370. </view> -->
  371. <!-- <view class="info-item" v-if="infoShow">
  372. <view class="content">
  373. {{chargingGun.nowMeter?chargingGun.nowMeter:0}}度
  374. </view>
  375. <view class="name">
  376. 当前电表
  377. </view>
  378. </view> -->
  379. </template>
  380. <view class="spread" @tap="spreadInfo">
  381. <view class="" v-if="this.infoShow==false">
  382. 全部信息<text class="iconfont">&#xe62b;</text>
  383. </view>
  384. <view class="pack-up" v-if="this.infoShow==true">
  385. 收起<text class="iconfont">&#xe605;</text>
  386. </view>
  387. </view>
  388. </view>
  389. <!-- 其他信息 -->
  390. <view class="else-infos">
  391. <u-modal v-model="voltageShow" :titleStyle="{
  392. 'font-size': '22px'
  393. }" title="更多充电信息" confirm-text="关闭">
  394. <view style="padding: 15px;" class="voltageShow">
  395. <view>最高允许单体电压<span>{{voltageShowNum(chargingGun.maxAllowSingleVoltage)}}V</span>
  396. </view>
  397. <view>最高单体电压<span>{{voltageShowNum(chargingGun.singleMaxVoltage)}}V</span>
  398. </view>
  399. <view>最低单体电压<span>{{voltageShowNum(chargingGun.singleMinVoltage)}}V</span>
  400. </view>
  401. <view>最高允许单体温度<span>{{voltageShowNum(chargingGun.maxAllowTemperature)}}℃</span>
  402. </view>
  403. <view>最高单体温度<span>{{voltageShowNum(chargingGun.singleMaxTemperature)}}℃</span>
  404. </view>
  405. <view>充电枪温度<span>{{voltageShowNum(chargingGun.gunTemperature)}}℃</span>
  406. </view>
  407. </view>
  408. </u-modal>
  409. <u-modal v-model="parkingTips" title="新能源汽车停车费说明" confirm-text="知道了" confirm-color="#53b56b">
  410. <view style="padding: 15px;" v-html="chargingStation.parkingSimpleDescription"></view>
  411. </u-modal>
  412. <view class="item" v-if="chargingStation.parkingSimpleDescription">
  413. <view class="title" style="
  414. width: 100%; display: flex;
  415. justify-content: space-between;
  416. " @click="parkingTips=true">
  417. <view>停车费说明 </view>
  418. <view style=" font-size: 32rpx;
  419. font-weight: 400;">
  420. {{chargingStation.parkingDescription}}
  421. <u-icon name="arrow-right" style="margin-top: 6px;" size="28"></u-icon>
  422. </view>
  423. </view>
  424. </view>
  425. <view class="item" v-if="false">
  426. <view class="title">
  427. 充电车辆
  428. </view>
  429. <view class="detail">
  430. {{chargingRecord.carNumber?chargingRecord.carNumber:'未绑定'}}
  431. </view>
  432. </view>
  433. <view class="item" v-if="price.costPrice">
  434. <view class="title">
  435. <p class="price">充电价格</p>
  436. <p class="time">{{price.startTime}}-{{price.endTime}}</p>
  437. </view>
  438. <view class="detail">
  439. <p class="electrovalence">
  440. <text class="num"
  441. v-if="userCard&&userCard.classify==1&&chargingRecord.userCardId">{{price.electricityPrice.toFixed(2)}}</text>
  442. <text class="num" v-else>
  443. <template
  444. v-if="(personInfo&&personInfo.userType==2)&&(chargingStation.giveDiscount||price.discountServicePrice)">
  445. <span>{{(price.electricityPrice+price.discountServicePrice).toFixed(2)}}</span>
  446. </template>
  447. <template v-else>
  448. {{(price.electricityPrice+price.servicePrice).toFixed(2)}}
  449. </template>
  450. </text>
  451. 元/度
  452. </p>
  453. <p class="electrovalence-monthlyCard">电价:{{price.electricityPrice}} | 服务费:
  454. <template v-if="userCard&&userCard.classify==1&&chargingRecord.userCardId">
  455. 0(月卡)
  456. </template>
  457. <template v-else>
  458. <template
  459. v-if="(personInfo&&personInfo.userType==2)&&(chargingStation.giveDiscount||price.discountServicePrice||price.discountServicePrice==0)">
  460. <span
  461. style=" text-decoration: line-through;">{{price.servicePrice}}</span>折后{{price.discountServicePrice}}
  462. </template>
  463. <template v-else>
  464. {{price.servicePrice}}
  465. </template>
  466. </template>
  467. </p>
  468. </view>
  469. </view>
  470. <view class="item">
  471. <view class="title">
  472. {{chargingRecord.chargeStrategy==0?'充电模式':''}}
  473. {{chargingRecord.chargeStrategy==2?'充电金额':''}}
  474. </view>
  475. <view class="detail">
  476. {{chargingRecord.chargeStrategy==0?'充满自停':''}}
  477. {{chargingRecord.chargeStrategy==2?chargingRecord.estimateFee.toFixed(2)+'元':''}}
  478. </view>
  479. </view>
  480. <view class="itemTips" v-show="showChargingTag">
  481. <view class="itemTips1">
  482. <img src="@/assets/img/riFill-lightbulb-flash-fill.svg">
  483. 充电小贴士:
  484. </view>
  485. <view class="itemTips2" v-html="chargingTag">
  486. </view>
  487. <view class="itemTips3">
  488. <u-button type="success" @click="gotoBtn()" class="itemTips3Btn"
  489. shape="circle">{{chargingTagUrl=='/pages/login/login'?'前往登录':'前往了解'}}</u-button>
  490. </view>
  491. </view>
  492. <view class="item">
  493. <view class="title">
  494. 优惠券
  495. </view>
  496. <view class="detail">
  497. {{couponObj&&couponObj.useText?(couponObj.useText=='服务费0折'?'免服务费':couponObj.useText):'未使用优惠券'}}
  498. </view>
  499. </view>
  500. <view class="item" v-if="userCardBool">
  501. <view class="title">
  502. 会员活动
  503. </view>
  504. <view class="detail" v-if="userCard.classify==1">
  505. 折扣卡
  506. </view>
  507. <view class="detail" v-if="userCard.classify==2">
  508. <template v-if="userCard.monthlyRentCard.type==4">
  509. {{userCard.monthlyRentCard.name}}
  510. </template>
  511. <template v-else>
  512. 充电服务费{{userCard.monthlyRentCard.serviceFeeDiscountRate/10}}折卡
  513. </template>
  514. </view>
  515. </view>
  516. <view class="item" style=" border-bottom: 0;"
  517. v-if="(personInfo.memberLevel==3||personInfo.memberLevel==4)">
  518. <view class="title">
  519. 快捷充电
  520. </view>
  521. <view class="detail" style="display: flex;">
  522. <span style=" color: #959595;">{{checked2?'已开启':'已关闭'}}</span><u-switch size="40"
  523. v-model="checked2" active-color="#00E266" @change="checkedChange2"></u-switch>
  524. </view>
  525. </view>
  526. <view class="item" style=" border-bottom: 0;">
  527. <view class="title">
  528. 充电站点
  529. </view>
  530. <view class="detail">
  531. {{chargingRecord.stationName}}
  532. <br />{{chargingRecord.deviceName}}
  533. </view>
  534. </view>
  535. </view>
  536. <view class="piccBanner" v-for="(itemJNT,index ) in bannerListJNT" @click="gotoUrl2(itemJNT.linkUrl)"
  537. v-show="index==0" :key="index" style="
  538. text-align: center;
  539. padding: 0px 16px;">
  540. <image :src="itemJNT.picUrl" style="height: 204rpx;width: 100%;border-radius: 10px;"></image>
  541. </view>
  542. <!-- 常见问题 -->
  543. <view class="common-problem ">
  544. <view class="title">
  545. 常见问题
  546. </view>
  547. <view class="tabs">
  548. <u-tabs active-color="#333333" inactive-color="#999999" :list="tabList" :is-scroll="false"
  549. :current="current" @change="change"></u-tabs>
  550. </view>
  551. <view class="collapse" v-for="(itemList,i) in newsList" :key="i" v-show="current==i">
  552. <!-- -->
  553. <u-collapse v-if="itemList.length">
  554. <u-collapse-item v-for="(item, index) in itemList" :title="(index+1)+'.'+item.title"
  555. :key="index">
  556. <!-- <textarea maxlength="-1" :auto-height="true" v-model="item.content" readonly ></textarea>
  557. -->
  558. <view v-html="item.content"></view>
  559. </u-collapse-item>
  560. </u-collapse>
  561. </view>
  562. </view>
  563. <view class="bottom-qq">
  564. <view class="img-box" @click="gotoUrl('pages/service/service')">
  565. <img src="../../../assets/img/customer-service-2-line.svg" alt="">
  566. <view>联系客服</view>
  567. </view>
  568. <view class="button-box">
  569. <button
  570. :style="(chargingRecord.status=='0'||chargingRecord.status=='1'||chargingRecord.status=='4')?'':'background-color: #b3abab;'"
  571. @click="submit">
  572. <img src="../../../assets/img/9-4/riLine-shut-down-line.svg" alt="">
  573. 结束充电</button>
  574. </view>
  575. <view class="img-box" v-if="false">
  576. <img src="../../../assets/img/tools-fill.svg" alt="">
  577. </view>
  578. </view>
  579. <u-modal v-model="show" @confirm="confirmPhone" :confirm-text="confirmText" confirm-color="#606266"
  580. :show-cancel-button="true" ref="uModal" :asyncClose="true" :title="title" :content="consumerPhone">
  581. </u-modal>
  582. <u-modal v-model="show2" @confirm="gotoGz" cancel-text="暂不关注" @cancel="cancelGz" confirm-text="前往关注"
  583. confirm-color="#53b56b" :show-cancel-button="true" ref="uModal2" :asyncClose="true">
  584. <view style="padding: 15px;">请关注<span
  585. style=" color: #53b56b;">{{projectName}}</span>公众号,以便第一时间收到充电结束消息提醒</view>
  586. </u-modal>
  587. </view>
  588. <view v-if="false">
  589. </view>
  590. </view>
  591. <uMessage ref="uMessage" :stationId="chargingGun.stationId" :deviceNo="chargingGun.deviceNo" :channelNo="chargingGun.channelNo" ></uMessage>
  592. <view class="slogan-5 " v-show="bannerListTop.length"
  593. @click="showTop=true,getBannerInfoTopBl=true">
  594. <u-icon :class="{
  595. imageshake :true
  596. }" size="45" name="gift"></u-icon>
  597. </view>
  598. <u-modal v-model="showTop" v-if="getBannerInfoTopBl" class="showOss showOssK" :show-title="false"
  599. :show-confirm-button="false">
  600. <view class="slot-content">
  601. <swiper class="swiper" circular :indicator-dots="true" :autoplay="true" :interval="2500"
  602. :duration="500">
  603. <swiper-item class="swiperitem" v-for="(item,i) in bannerListTop" :key="i">
  604. <u-image width="500" height="500" bgColor="#ff000000"
  605. style="margin: auto;min-height: 250px;" mode="widthFix" @click="clickBannerTopI(i)"
  606. :src="item.picUrl">
  607. <view slot="loading" style="height: 200px;">
  608. <u-loading mode="flower" size="186">
  609. </u-loading>
  610. </view>
  611. </u-image>
  612. </swiper-item>
  613. </swiper>
  614. <u-image width="36px" style="margin: auto; margin-top: 10px;" mode="widthFix" @click="showTop=false"
  615. src="@/assets/img/if-close-line-circled.png"></u-image>
  616. </view>
  617. </u-modal>
  618. </view>
  619. </template>
  620. <script>
  621. var formatNum = function(num) {
  622. let res = Number(num);
  623. return res < 10 ? '0' + res : res;
  624. };
  625. import * as api from "@/apis/site.js"
  626. import * as API_index from '@/apis/index.js'
  627. import * as API from '@/apis/chargeProcess.js'
  628. import * as API_weixin from '@/apis/weixin.js'
  629. import * as userAPI from '@/apis/user.js'
  630. import * as newsApi from '@/apis/news.js'
  631. import * as echarts from "echarts";
  632. import uMessage from '@/components/UMessage.vue'
  633. import lottery from '@/components/lottery/index.vue';
  634. import {
  635. newDate,
  636. secondsDistance,
  637. hourDistanceArr,
  638. currentTimeStamp,
  639. parseUnixTime,
  640. daysDistance,minuteConversion
  641. } from '@/utils'
  642. export default {
  643. components:{
  644. lottery,uMessage
  645. },
  646. data() {
  647. return {
  648. showlottery:false,
  649. barstyle: {
  650. backgroundColor: "#19be6b"
  651. },
  652. checked2: false,
  653. bannerListJNT: [],
  654. bannerListJNTend: [],
  655. bannerListYXJ: [],
  656. bannerListTop:[],
  657. tabList: [
  658. {
  659. name: '软件使用',
  660. type: 'CJWT-RJSY'
  661. },{
  662. name: '故障',
  663. type: 'CJWT-GZ'
  664. },
  665. {
  666. name: '活动优惠',
  667. type: 'CJWT-YHHD'
  668. },
  669. ],
  670. current: 0,
  671. newsList: [
  672. [],
  673. [],
  674. []
  675. ],
  676. newsType: 'CJWT-RJSY',
  677. pageIndex: 1,
  678. recordsTotal: 0,
  679. list: [
  680. ],
  681. NODE_ENV: process.car.NODE_ENV,
  682. message: '',
  683. elderMode: false,
  684. timer: '',
  685. title: '联系客服',
  686. content: '0716-8123456',
  687. confirmText: '拨打电话',
  688. detail: {},
  689. navbartitle: "充电中",
  690. percent: 0,
  691. percentValue: 0,
  692. show3: false,
  693. consumerPhone: "",
  694. id: "",
  695. chargingGun: {},
  696. chargingRecord: {},
  697. couponObj: {},
  698. show: false,
  699. show2: false,
  700. isReady: true,
  701. waitNum: '',
  702. projectName: "",
  703. userCard: null,
  704. price: {},
  705. prices: [],
  706. userParkingCoupon:null,
  707. chargingStation: {},
  708. parkingTips: false,
  709. showVin: false,
  710. showVinBl: false,
  711. descriptionShow2do: false,
  712. infoShow: false,
  713. voltageShow: false,
  714. showChargingTag: false,
  715. chargingTagUrl: false,
  716. chargingTag: false,
  717. personInfo: null,
  718. myChart: null,
  719. lwidth: 600,
  720. lheight: 600,
  721. lotteryIndex:-1,
  722. dataLottery: [
  723. {
  724. id: 2,
  725. name: '服务费5折',
  726. num:50,
  727. img: '',
  728. color: "#f7e2c3"
  729. },
  730. {
  731. id: 3,
  732. name: '服务费6折',
  733. num:60,
  734. img: '',
  735. color: "#fbf0df"
  736. },
  737. {
  738. id: 4,
  739. name: '服务费7折',
  740. num:70,
  741. img: '',
  742. color: "#f7e2c3"
  743. },
  744. {
  745. id: 5,
  746. name: '服务费8折',
  747. num:80,
  748. img: '',
  749. color: "#fbf0df"
  750. },
  751. {
  752. id: 1, // 唯一id
  753. num:0,
  754. name: '服务费免单', // 名称
  755. img: '', // 展示图片
  756. color: "#fff" ,// 轮盘区域底色
  757. },
  758. ],
  759. getBannerInfoTopBl:true,
  760. showTop:false,
  761. showTopImg:"",
  762. showTopIndex: 0,
  763. }
  764. },
  765. onLoad(op) {
  766. if (this.NODE_ENV !== 'production') {
  767. this.infoShow = true
  768. }
  769. this.projectName = process.car.ProjectName;
  770. var plus = this.carhelp.getPersonInfoPlus()
  771. this.personInfo = this.carhelp.getPersonInfo()
  772. if (this.personInfo.quickCharging) {
  773. this.checked2 = true;
  774. }
  775. // if (plus) {
  776. // this.userCard = plus.userCard;
  777. // }
  778. if (op.id) {
  779. this.id = op.id;
  780. this.init()
  781. this.getInfo()
  782. }
  783. var consumerPhone = "400-8899-619"
  784. // img="https://yktwechat.xiaoxinda.com/config/xxd2021.jpg"
  785. if (consumerPhone) {
  786. this.consumerPhone = consumerPhone
  787. }
  788. this.getBannerInfo("JNT-charging", "bannerListJNT");
  789. this.getBannerInfo("JNT-charging-end", "bannerListJNTend");
  790. this.getBannerInfo("YXJ-charging-end", "bannerListYXJ");
  791. },
  792. onShow() {
  793. if (!this.isReady) {
  794. this.isReady = true;
  795. this.addpercent();
  796. this.getInfo()
  797. }
  798. },
  799. onHide() {
  800. this.isReady = false;
  801. console.log("onHide")
  802. },
  803. onUnload() {
  804. console.log("onUnload")
  805. this.isReady = false;
  806. },
  807. onReady() {
  808. this.elderMode = this.carhelp.get('getElderModeClass') == '长辈模式';
  809. if (this.elderMode)
  810. this.theme('elder')
  811. else
  812. this.theme('standard')
  813. this.addpercent()
  814. this.getNewsList();
  815. },
  816. computed: {
  817. percentColor() {
  818. if (this.percent == 0 || this.percent > 80) {
  819. return '#53b56b'
  820. } else if (this.percent > 50) {
  821. return '#85e43e'
  822. } else if (this.percent > 40) {
  823. return '#a8ac0d'
  824. } else if (this.percent > 20) {
  825. return '#c5c90c'
  826. } else if (this.percent > 0) {
  827. return '#f26747'
  828. } else {
  829. return '#53b56b'
  830. }
  831. },
  832. userCardBool() {
  833. if (this.chargingRecord && this.chargingRecord.userCardId && !this.showVinBl && this.userCard) {
  834. return true;
  835. }
  836. return false
  837. }
  838. },
  839. methods: {
  840. getBannerInfoTop(code) {
  841. if(!this.carhelp.getOpenId()){
  842. return
  843. }
  844. var nowtime = parseUnixTime(currentTimeStamp(), '{y}-{m}-{d}')
  845. var time = this.carhelp.get("bannerListTop");
  846. if ((time && nowtime == time)) {
  847. this.getBannerInfoTopBl = false;
  848. }
  849. //特殊活动不考虑
  850. //this.getBannerInfoTopBl = true;
  851. // uni.showLoading({
  852. // title: "加载中",
  853. // mask: true,
  854. // })
  855. newsApi.getBannerInfo(code).then((res) => {
  856. this.bannerListTop = res.data;
  857. if (this.bannerListTop.length) {
  858. this.showTop = true;
  859. this.showTopImg = this.bannerListTop[0].picUrl;
  860. this.showTopIndex = 0;
  861. }
  862. this.carhelp.set("bannerListTop", nowtime);
  863. //this.test()
  864. var userInfo = this.carhelp.getPersonInfo();
  865. if (userInfo && userInfo.id) {
  866. //this.getf5surprised()
  867. } else {}
  868. //uni.hideLoading()
  869. //document.getElementsByClassName("uni-swiper-wrapper")[0].parentNode.style="background-color: rgb(255, 255, 255); height: 120px;"
  870. }).catch(error => {
  871. uni.showToast({
  872. title: error,
  873. icon: "none"
  874. })
  875. })
  876. },
  877. uMessageShow(){
  878. if(this.chargingRecord.updateBy=='cfyxz'){
  879. this.$refs.uMessage.bShow()
  880. }
  881. this.getBannerInfoTop("charge-end-top");
  882. },
  883. getWinnerFn() {
  884. // 自定义抽奖结果 ,返回值为 options 奖品列表下标,若返回 -1,则会进行随机抽奖
  885. return this.lotteryIndex
  886. },
  887. beforePlay(){
  888. console.log("beforePlay....",this.lwidth)
  889. },
  890. afterPlay(result){
  891. // uni.showModal({
  892. // confirmText: "确定",
  893. // showCancel: false,
  894. // content: result.name,
  895. // success: (res) => {
  896. // if (res.confirm) {
  897. // console.log('用户点击确定');
  898. // }
  899. // }
  900. // })
  901. },
  902. minuteConversion(a,b){
  903. return minuteConversion(a,b)
  904. },
  905. getPercentshowCoupon(chargingRecord,time,str) {
  906. if (!chargingRecord.startTime) {
  907. return '00:00:00'
  908. }
  909. var Hour = 0;
  910. var Fen = 0;
  911. var S = 0;
  912. var now = newDate(chargingRecord.startTime).getTime();
  913. var date = newDate(chargingRecord.endTime).getTime();
  914. if(time){
  915. date=date+time*1000*60
  916. }
  917. var seconds = parseInt(( date-now ) / 1000);
  918. var ms = seconds;
  919. Hour = parseInt(Math.floor(ms / (60 * 60)));
  920. Fen = parseInt(Math.floor(ms % (60 * 60) / 60));
  921. S = parseInt(Math.floor(ms % (60)));
  922. if(str){
  923. var obj = "";
  924. if(Hour){
  925. obj+=Hour+"小时"
  926. }
  927. if(Fen){
  928. obj+=Fen+"分"
  929. }
  930. if(S){
  931. obj+=S+"秒"
  932. }
  933. return obj;
  934. }else{
  935. var obj = (Hour > 9 ? "" : "0") + Hour + ":" + (Fen > 9 ? "" : "0") + Fen + ":" + (S > 9 ? "" : "0") + S
  936. return obj;
  937. }
  938. },
  939. getPie() {
  940. },
  941. getPie2() {
  942. console.log("getPie")
  943. if (!this.myChart) {
  944. this.myChart = echarts.init(document.getElementById('pieEcharts'), null, {
  945. width: uni.upx2px(450),
  946. height: uni.upx2px(450)
  947. });
  948. }
  949. var num0 = this.chargingRecord.startSoc;
  950. var num1 = this.chargingRecord.endSoc - this.chargingRecord.startSoc;
  951. var num2 = 100 - this.chargingRecord.endSoc;
  952. this.myChart.clear();
  953. var option = {
  954. series: [{
  955. name: 'Access From',
  956. type: 'pie',
  957. radius: ['65%', '70%'],
  958. labelLayout: {
  959. align: 'left'
  960. },
  961. labelLine: {
  962. show: true,
  963. smooth: 0,
  964. },
  965. data: [{
  966. value: num0,
  967. name: 'Search Engine'
  968. },
  969. {
  970. value: num1,
  971. name: 'Direct'
  972. },
  973. {
  974. value: num2,
  975. name: 'Email'
  976. }
  977. ]
  978. }]
  979. };
  980. console.log(option)
  981. this.myChart.setOption(option);
  982. },
  983. clickBannerTopI(i) {
  984. var mod = this.bannerListTop[i];
  985. //this.showTop = false;
  986. this.clickBanner(0, true, mod)
  987. },
  988. clickBannerTop() {
  989. var mod = this.bannerListTop[this.showTopIndex];
  990. this.showTop = false;
  991. this.clickBanner(0, true, mod)
  992. },
  993. clickBanner(index, bl, modout) {
  994. var uurl = "";
  995. var mod = {}
  996. if (modout) {
  997. mod = modout;
  998. }else{
  999. mod =this.bannerList[index]
  1000. }
  1001. mod.clickUrl = mod.linkUrl
  1002. if (mod.linkPicUrl && !bl) {
  1003. this.showOss = true;
  1004. this.showOssImg = mod.linkPicUrl;
  1005. this.showOssIndex = index;
  1006. } else if (mod.clickUrl == null) {
  1007. } else if (mod.clickUrl.indexOf('http') == 0) {
  1008. window.location = mod.clickUrl + uurl;
  1009. } else if (mod.clickUrl.slice(-5) == 'login' && this.userId) {
  1010. } else if (mod.clickUrl.indexOf('#/') == 0) {
  1011. if (mod.clickUrl.indexOf("?") == -1) {
  1012. mod.clickUrl += '?';
  1013. }
  1014. var url = mod.clickUrl.split("#")[1]
  1015. //window.location = mod.clickUrl;
  1016. uni.navigateTo({
  1017. url: url + uurl
  1018. })
  1019. } else if (mod.clickUrl == '#' || mod.clickUrl == '') {
  1020. } else {
  1021. uni.navigateTo({
  1022. url: mod.clickUrl + uurl
  1023. })
  1024. }
  1025. },
  1026. getBannerInfo(code, list) {
  1027. newsApi.getBannerInfo(code).then((res) => {
  1028. if (list) {
  1029. this[list] = res.data;
  1030. } else {
  1031. this.bannerList = res.data;
  1032. }
  1033. //uni.hideLoading()
  1034. //document.getElementsByClassName("uni-swiper-wrapper")[0].parentNode.style="background-color: rgb(255, 255, 255); height: 120px;"
  1035. }).catch(error => {
  1036. uni.showToast({
  1037. title: error,
  1038. icon: "none"
  1039. })
  1040. })
  1041. },
  1042. checkedChange2() {
  1043. uni.showLoading({
  1044. title: "加载中",
  1045. mask: true,
  1046. })
  1047. API_index.changeQuickCharging({
  1048. qucikStatus: this.checked2 ? 1 : 0
  1049. }).then((res) => {
  1050. var userInfo = this.carhelp.getPersonInfo();
  1051. userInfo.quickCharging = checked2;
  1052. this.carhelp.setPersonInfo(userInfo);
  1053. uni.hideLoading();
  1054. }).catch(error => {
  1055. uni.showToast({
  1056. title: error,
  1057. icon: "none"
  1058. })
  1059. })
  1060. },
  1061. thisdaysDistance(endTime) {
  1062. var date = new Date()
  1063. var date2 = newDate(endTime);
  1064. return daysDistance(date, date2)
  1065. },
  1066. change(index) {
  1067. this.current = index;
  1068. this.newsType = this.tabList[index].type;
  1069. if (this.newsList[this.current].length == 0) {
  1070. this.getNewsList(true)
  1071. }
  1072. },
  1073. getNewsList(bl) {
  1074. if(bl){
  1075. uni.showLoading({
  1076. title: "加载中",
  1077. mask: true,
  1078. })
  1079. }
  1080. newsApi.newsInfoContentList({
  1081. pageIndex: 1,
  1082. pageSize: 100,
  1083. shortName: this.newsType
  1084. }).then((res) => {
  1085. var newsList = res.data.data;
  1086. this.newsList[this.current] = newsList.reverse()
  1087. if(bl){
  1088. uni.hideLoading();
  1089. this.$forceUpdate()
  1090. }
  1091. //this.recordsTotal = res.data.recordsTotal
  1092. }).catch(error => {
  1093. uni.showToast({
  1094. title: error,
  1095. icon: "none"
  1096. })
  1097. })
  1098. },
  1099. gotoBtn() {
  1100. uni.navigateTo({
  1101. url: this.chargingTagUrl
  1102. })
  1103. },
  1104. voltageShowNum(num) {
  1105. if (num) {
  1106. if (num < 0) {
  1107. return 0
  1108. }
  1109. return num
  1110. } else {
  1111. return 0
  1112. }
  1113. },
  1114. spreadInfo() {
  1115. this.infoShow = !this.infoShow
  1116. },
  1117. alerttipsCk2() {
  1118. this.descriptionShow2do = true;
  1119. },
  1120. vinCk() {
  1121. if (this.userCard && this.userCard.vin && this.chargingGun && this.chargingGun.vin) {
  1122. if (this.userCard.vin == this.chargingGun.vin) {
  1123. return true
  1124. } else {
  1125. return false
  1126. }
  1127. } else {
  1128. return true
  1129. }
  1130. },
  1131. forPrice() {
  1132. if (this.prices && this.prices.length) {
  1133. let date = new Date();
  1134. let hours = date.getHours();
  1135. let minutes = date.getMinutes();
  1136. let seconds = date.getSeconds();
  1137. let date_str = formatNum(hours) + ':' + formatNum(minutes); //+ ' ' +formatWeek;
  1138. for (var i in this.prices[0].priceList) {
  1139. var item = this.prices[0].priceList[i];
  1140. if (date_str >= item.startTime && date_str <= item.endTime) {
  1141. this.price = item
  1142. }
  1143. }
  1144. }
  1145. },
  1146. getChargingStationPrice(id) {
  1147. if (this.prices && this.prices.length) {
  1148. this.forPrice()
  1149. return
  1150. }
  1151. if (!id || id == undefined) {
  1152. return
  1153. }
  1154. //id='e012f9fe-90a8-4a47-bb64-26ea139c3c05'
  1155. api.getChargingStationPrice2({
  1156. stationId: id,
  1157. payType: this.chargingRecord.payType,
  1158. recordId: this.chargingRecord.id
  1159. }).then((res) => {
  1160. this.prices = res.data.prices
  1161. this.chargingStation = res.data.chargingStation;
  1162. this.userCard = res.data.regUserCard;
  1163. this.forPrice()
  1164. }).catch(error => {
  1165. uni.showToast({
  1166. title: error
  1167. })
  1168. })
  1169. },
  1170. showToast() {
  1171. this.$refs.uToast.show({
  1172. title: '提交成功',
  1173. type: 'success'
  1174. })
  1175. },
  1176. submitMessage() {
  1177. if (!this.message) {
  1178. uni.showToast({
  1179. title: "请填写反馈内容",
  1180. icon: "none"
  1181. })
  1182. return
  1183. }
  1184. uni.showLoading({
  1185. title: "加载中",
  1186. mask: true,
  1187. })
  1188. userAPI.feedback({
  1189. content: this.message
  1190. }).then(response => {
  1191. uni.hideLoading()
  1192. this.message = '';
  1193. this.showToast();
  1194. }).catch(error => {
  1195. uni.showToast({
  1196. title: error
  1197. })
  1198. })
  1199. },
  1200. theme(type) {
  1201. if (type == 'elder') {
  1202. document.getElementsByTagName('body')[0].setAttribute('data-theme', type);
  1203. } else {
  1204. document.getElementsByTagName('body')[0].setAttribute('data-theme', type);
  1205. }
  1206. },
  1207. cancelGz() {
  1208. this.carhelp.setGzDate()
  1209. },
  1210. gotoGz() {
  1211. this.carhelp.setGzDate()
  1212. var url = process.car.gzUrl;
  1213. window.location.href = url
  1214. },
  1215. gotoMain(i) {
  1216. if (i == 0) {
  1217. uni.reLaunch({
  1218. url: "/pages/index/index"
  1219. })
  1220. }
  1221. if (i == 1) {
  1222. uni.navigateTo({
  1223. url: "/pages/record/details?id=" + this.id
  1224. })
  1225. }
  1226. },
  1227. addpercent() {
  1228. this.timer = this.getPercent()
  1229. if (this.isReady) {
  1230. setTimeout(() => {
  1231. if (this.chargingGun.gunType == 2 || this.percent == 0) {
  1232. this.percentValue++;
  1233. if (this.percentValue >= 100) {
  1234. this.percentValue = 0;
  1235. }
  1236. }
  1237. this.addpercent()
  1238. }, 100)
  1239. }
  1240. },
  1241. getPercent2() {
  1242. var ms = this.chargingRecord.chargingMinute * 60;
  1243. var Hour = parseInt(Math.floor(ms / (60 * 60)));
  1244. var Fen = parseInt(Math.floor(ms % (60 * 60) / 60));
  1245. var S = parseInt(Math.floor(ms % (60)));
  1246. var obj = (Hour > 9 ? "" : "0") + Hour + ":" + (Fen > 9 ? "" : "0") + Fen + ":" + (S > 9 ? "" : "0") + S
  1247. return obj;
  1248. },
  1249. getPercent() {
  1250. if (!this.chargingRecord.startTime) {
  1251. return '00:00:00'
  1252. }
  1253. var Hour = 0;
  1254. var Fen = 0;
  1255. var S = 0;
  1256. if (this.chargingRecord.status == 1) {
  1257. var second = secondsDistance(newDate(this.chargingRecord.startTime));
  1258. var ms = second;
  1259. Hour = parseInt(Math.floor(ms / (60 * 60)));
  1260. Fen = parseInt(Math.floor(ms % (60 * 60) / 60));
  1261. S = parseInt(Math.floor(ms % (60)));
  1262. }
  1263. var obj = (Hour > 9 ? "" : "0") + Hour + ":" + (Fen > 9 ? "" : "0") + Fen + ":" + (S > 9 ? "" : "0") + S
  1264. return obj;
  1265. },
  1266. init() {
  1267. API.personalCenter().then((res) => {
  1268. this.detail = res.data
  1269. if (this.chargingRecord.payType == 3 && this.chargingRecord.entAccountId) {
  1270. for (var i in this.detail.entRegList) {
  1271. var item = this.detail.entRegList[i];
  1272. if (item.enterpriseAccount.id == this.chargingRecord.entAccountId) {
  1273. this.detail.balance = item.enterpriseAccount.totalAmount
  1274. }
  1275. }
  1276. }
  1277. }).catch(error => {
  1278. uni.showToast({
  1279. title: error
  1280. })
  1281. })
  1282. },
  1283. checkSubscribe() {
  1284. API_weixin.checkSubscribe({
  1285. openId: this.carhelp.getOpenId()
  1286. }).then((res) => {
  1287. if (res.data == "0") {
  1288. this.show2 = true;
  1289. } else {
  1290. this.carhelp.setGzDate()
  1291. }
  1292. //setGzDate
  1293. }).catch(error => {
  1294. uni.showToast({
  1295. title: error
  1296. })
  1297. })
  1298. },
  1299. confirmPhone() {
  1300. this.show = false;
  1301. uni.makePhoneCall({
  1302. phoneNumber: this.consumerPhone //仅为示例
  1303. });
  1304. },
  1305. getInfo() {
  1306. // uni.showLoading({
  1307. // title: "加载中",
  1308. // mask: true,
  1309. // })
  1310. var electricQuantity = 0;
  1311. var obj = this.carhelp.get("carhelp_getChargeList")
  1312. if (obj) {
  1313. electricQuantity = parseInt(obj.electricQuantity / 10000)
  1314. }
  1315. API.chargingDetail({
  1316. id: this.id,
  1317. chargingKwh: electricQuantity
  1318. }).then((res) => {
  1319. this.showChargingTag = res.data.showChargingTag
  1320. this.chargingTagUrl = res.data.chargingTagUrl
  1321. this.chargingTag = res.data.chargingTag
  1322. if(this.chargingRecord&&this.chargingRecord.status==1&&res.data.chargingRecord.status==2){
  1323. this.lotteryApi(true)
  1324. }
  1325. this.chargingRecord = res.data.chargingRecord
  1326. if (this.chargingRecord.carNumber) {
  1327. this.navbartitle = this.chargingRecord.carNumber;
  1328. }
  1329. //(this.chargingRecord)
  1330. this.couponObj = res.data.coupon
  1331. this.chargingGun = res.data.chargingGun
  1332. this.waitNum = res.data.chargingRecord.waitNum;
  1333. this.userParkingCoupon=res.data.userParkingCoupon;
  1334. this.getChargingStationPrice(this.chargingGun.stationId)
  1335. //this.isReady = true;
  1336. //直流
  1337. if (this.chargingGun.gunType == 1) {
  1338. if (this.chargingRecord.status == 1) {
  1339. this.percent = this.chargingGun.soc
  1340. //zkx
  1341. //this.percent =12
  1342. if (this.userCardBool && !this.showVinBl && !this.vinCk()) {
  1343. this.showVin = true;
  1344. this.showVinBl = true; //只提示1次
  1345. }
  1346. }
  1347. if (this.chargingRecord.status == 2) {
  1348. //this.getPie()
  1349. }
  1350. } else if (this.chargingGun.gunType == 2) {
  1351. //交流
  1352. if (this.chargingRecord.status == 2) {
  1353. //this.percent=100;
  1354. }
  1355. }
  1356. if (this.chargingRecord.status == 2) {
  1357. //this.getPie()
  1358. console.log(this.chargingGun.stationId,this.chargingGun.deviceNo,this.chargingGun.channelNo)
  1359. setTimeout(() => {
  1360. this.uMessageShow()
  1361. }, 200)
  1362. }
  1363. //zkx
  1364. //this.percent=42;
  1365. if (this.chargingRecord.status == 1) {
  1366. if (this.carhelp.getGzDate() && !this.show2) {
  1367. //this.checkSubscribe()
  1368. }
  1369. }
  1370. if (this.isReady && this.chargingRecord.status != 2) {
  1371. var time = 1000;
  1372. if (this.chargingRecord.status == 0) {
  1373. } else {
  1374. time = 3000;
  1375. this.init();
  1376. }
  1377. console.log(time)
  1378. setTimeout(() => {
  1379. this.getInfo();
  1380. }, time)
  1381. }
  1382. // if (this.chargingRecord.status == 2 && this.userCardBool) {
  1383. // this.getHomePage()
  1384. // }
  1385. uni.hideLoading()
  1386. }).catch(error => {
  1387. uni.showToast({
  1388. title: error
  1389. })
  1390. })
  1391. },
  1392. getHomePage() {
  1393. uni.showLoading({
  1394. title: "加载中",
  1395. mask: true,
  1396. })
  1397. API.userCard({
  1398. stationId: this.chargingGun.stationId
  1399. }).then((res) => {
  1400. uni.hideLoading()
  1401. this.userCard = res.data.regUserCard
  1402. //this.canUse=res.data.canUse
  1403. //this.user = res.data
  1404. }).catch(error => {
  1405. uni.showToast({
  1406. title: error
  1407. })
  1408. })
  1409. },
  1410. lotteryApi(bl){
  1411. if(this.chargingStation.quickChargeJoinActivity
  1412. &&this.chargingStation.quickChargeReduceResult){
  1413. //this.lotteryApi()
  1414. }else{
  1415. return
  1416. }
  1417. API.getRateByRecordId({
  1418. recordId: this.chargingRecord.id
  1419. }).then((res) => {
  1420. if(res.data.serviceDiscountRatio!=null){
  1421. this.lotteryIndex=this.dataLottery.findIndex(item=>{
  1422. //console.log(res.data.serviceDiscountRatio,item.num,res.data.serviceDiscountRatio==item.num)
  1423. return res.data.serviceDiscountRatio==item.num
  1424. })
  1425. console.log(this.lotteryIndex)
  1426. if(this.lotteryIndex!=-1){
  1427. this.dataLottery[this.lotteryIndex].weight=100
  1428. this.showlottery=true
  1429. }
  1430. }else{
  1431. }
  1432. if(!bl){
  1433. this.confirm()
  1434. }
  1435. }).catch(error => {
  1436. uni.showToast({
  1437. title: error
  1438. })
  1439. })
  1440. },
  1441. submit() {
  1442. if (this.chargingRecord.status == 0 || this.chargingRecord.status == 1 || this.chargingRecord.status ==
  1443. 4) {
  1444. } else {
  1445. return
  1446. }
  1447. uni.showModal({
  1448. title: '提示',
  1449. content: '确认结束充电?',
  1450. success: res => {
  1451. if (res.confirm) {
  1452. //付钱 改为组件
  1453. if(this.chargingStation.quickChargeJoinActivity
  1454. &&this.chargingStation.quickChargeReduceResult){
  1455. this.lotteryApi()
  1456. }else{
  1457. //this.submitApi()
  1458. this.confirm()
  1459. }
  1460. } else if (res.cancel) {
  1461. //('用户点击取消');
  1462. }
  1463. }
  1464. });
  1465. },
  1466. confirm() {
  1467. ////(JSON.stringify(this.submitForm))
  1468. uni.showLoading({
  1469. title: "加载中",
  1470. mask: true,
  1471. })
  1472. //this.submitForm.deviceNo = this.detail.deviceNo;
  1473. API.stopCarCharging({
  1474. chargingRecordId: this.chargingRecord.id
  1475. }).then((res) => {
  1476. this.getInfo()
  1477. }).catch(error => {
  1478. uni.showToast({
  1479. title: error
  1480. })
  1481. })
  1482. },
  1483. }
  1484. }
  1485. </script>
  1486. <style>
  1487. page {
  1488. background: #fff;
  1489. padding-bottom: 50px;
  1490. }
  1491. </style>
  1492. <style lang="scss" scoped>
  1493. .slogan-4 {
  1494. margin-top: 10px;
  1495. display: flex;
  1496. /* text-decoration: underline; */
  1497. z-index: 999;
  1498. text-align: center;
  1499. position: fixed;
  1500. /* top: 40px; */
  1501. bottom: 180px;
  1502. right: 20px;
  1503. line-height: 20px;
  1504. font-size: 16px;
  1505. //background: linear-gradient(95deg, #FF9800, #FF5722);
  1506. //box-shadow: 0 4rpx 24rpx 0 #FF5722;
  1507. //padding-top: 8px;
  1508. color: #fff;
  1509. border-radius: 25px;
  1510. flex-direction: column;
  1511. align-items: flex-end;
  1512. img {
  1513. //height: 160rpx;
  1514. width: 144rpx;
  1515. }
  1516. }
  1517. .common-problem {
  1518. //margin: -125px 32rpx 0;
  1519. box-shadow: 0px 2px 8px 0px #1A095A34;
  1520. border-radius: 8px;
  1521. background-color: #fff;
  1522. padding: 20rpx 24rpx 48rpx 24rpx;
  1523. margin: 32rpx 40rpx 40rpx 40rpx;
  1524. .title {
  1525. color: rgba(16, 16, 16, 1);
  1526. font-size: 32rpx;
  1527. padding-bottom: 20rpx;
  1528. border-bottom: 1px solid rgba(246, 246, 246, 1);
  1529. padding-left: 32rpx;
  1530. }
  1531. .tabs {
  1532. width: 400rpx;
  1533. padding-bottom: 20rpx;
  1534. border-bottom: 1px solid rgba(246, 246, 246, 1);
  1535. ::v-deep .u-tab-bar {
  1536. background-color: #00B962 !important;
  1537. }
  1538. }
  1539. .collapse {
  1540. padding: 0 32rpx;
  1541. }
  1542. }
  1543. .voltageShow {
  1544. color: rgba(119, 119, 119, 100);
  1545. font-size: 18px;
  1546. span {
  1547. float: right;
  1548. color: rgba(51, 51, 51, 100);
  1549. font-size: 18px;
  1550. // font-family: AlibabaPuHui-bold;
  1551. font-weight: 550;
  1552. }
  1553. }
  1554. .spread {
  1555. width: 100%;
  1556. background-color: rgba(244, 249, 247, 100);
  1557. text-align: center;
  1558. border: 1px solid rgba(206, 226, 217, 100);
  1559. color: rgba(153, 153, 153, 100);
  1560. line-height: 20px;
  1561. border-radius: 0px 0px 12px 12px;
  1562. padding: 4px 0;
  1563. .iconfont {
  1564. // font-size: 16px !important
  1565. }
  1566. }
  1567. .progress-bar-main {
  1568. .info-name2 {
  1569. color: #777777;
  1570. font-size: 14px;
  1571. }
  1572. .info-name {
  1573. font-weight: bold;
  1574. font-size: 20px;
  1575. }
  1576. }
  1577. @import "@/_theme.scss";
  1578. .tittle-font {
  1579. @include themeify {
  1580. font-size: themed('font-size7');
  1581. }
  1582. /* font-size: 24px;*/
  1583. position: fixed;
  1584. top: 12px;
  1585. right: 16px;
  1586. z-index: 99999;
  1587. }
  1588. .bot {
  1589. width: 100%;
  1590. height: 0;
  1591. padding-top: 100%;
  1592. border: 2px #00b962 dotted;
  1593. border-radius: 100%;
  1594. box-sizing: border-box;
  1595. position: absolute;
  1596. top: 0px;
  1597. left: 0px;
  1598. right: 0px;
  1599. margin: auto;
  1600. }
  1601. .progress-bar {
  1602. margin-bottom: 40rpx;
  1603. text-align: center;
  1604. // margin-top: 20px;
  1605. ::v-deep .u-circle-progress {
  1606. background-color: #f7f8f8 !important;
  1607. position: relative;
  1608. // min-width:220px;
  1609. // min-height: 220px;
  1610. }
  1611. .u-progress-content {
  1612. display: flex;
  1613. align-items: center;
  1614. justify-content: center;
  1615. }
  1616. .u-progress-dot {
  1617. width: 16rpx;
  1618. height: 16rpx;
  1619. border-radius: 50%;
  1620. background-color: #fb9126;
  1621. }
  1622. .u-progress-info {
  1623. @include themeify {
  1624. font-size: themed('font-size6');
  1625. }
  1626. /* font-size: 22px;*/
  1627. padding-left: 16rpx;
  1628. letter-spacing: 2rpx;
  1629. color: rgba(51, 51, 51, 100);
  1630. }
  1631. ::v-deep .u-progress-dot[data-v-05b104e0] {
  1632. display: none;
  1633. }
  1634. ::v-deep .u-circle-progress[data-v-cab6fc66] {
  1635. margin: 40rpx;
  1636. }
  1637. }
  1638. .starting {
  1639. /* height: 22px;*/
  1640. color: rgba(0, 185, 98, 100);
  1641. @include themeify {
  1642. font-size: themed('font-size3');
  1643. height: themed('font-size6');
  1644. }
  1645. /* font-size: 16px;*/
  1646. text-align: center;
  1647. margin-top: 10px;
  1648. }
  1649. .timer {
  1650. height: 43px;
  1651. color: rgba(51, 51, 51, 100);
  1652. @include themeify {
  1653. font-size: themed('font-size13');
  1654. }
  1655. /* font-size: 36px;*/
  1656. text-align: center;
  1657. margin-top: 40px;
  1658. }
  1659. .charged {
  1660. /* height: 20px;*/
  1661. color: rgba(153, 153, 153, 100);
  1662. @include themeify {
  1663. font-size: themed('font-size2');
  1664. height: themed('font-size5')
  1665. }
  1666. /* font-size: 14px;*/
  1667. text-align: center;
  1668. margin-top: 4px;
  1669. }
  1670. .cost {
  1671. // width: 50%;
  1672. padding: 0 50px;
  1673. margin-top: 16px;
  1674. margin: auto;
  1675. width: 280px;
  1676. display: flex;
  1677. justify-content: space-between;
  1678. .cost-top {
  1679. line-height: 33px;
  1680. text-align: center;
  1681. @include themeify {
  1682. font-size: themed('font-size7');
  1683. }
  1684. /* font-size: 24px;*/
  1685. position: relative;
  1686. .cost-font {
  1687. position: absolute;
  1688. top: 0;
  1689. right: -25px;
  1690. color: #ff6200;
  1691. @include themeify {
  1692. font-size: themed('font-size7');
  1693. }
  1694. /* font-size: 24px*/
  1695. }
  1696. }
  1697. .cost-bottom {
  1698. @include themeify {
  1699. line-height: themed('font-size5');
  1700. }
  1701. /* line-height: 20px;*/
  1702. color: #999999;
  1703. text-align: center;
  1704. }
  1705. }
  1706. .line {
  1707. width: 0;
  1708. height: 36px;
  1709. border: 1px solid rgba(237, 237, 237, 100);
  1710. margin-top: 10px;
  1711. background-color: #ededed;
  1712. }
  1713. .power {
  1714. display: flex;
  1715. justify-content: space-around;
  1716. padding: 0 55px;
  1717. margin-top: 40px;
  1718. .power-num {
  1719. /* height: 27px;*/
  1720. color: rgba(51, 51, 51, 100);
  1721. @include themeify {
  1722. font-size: themed('font-size5');
  1723. height: themed('font-size9');
  1724. }
  1725. /* font-size: 20px;*/
  1726. text-align: center;
  1727. }
  1728. .power-text {
  1729. /* height: 20px;*/
  1730. color: rgba(153, 153, 153, 100);
  1731. @include themeify {
  1732. font-size: themed('font-size2');
  1733. height: themed('font-size5');
  1734. }
  1735. /* font-size: 14px;*/
  1736. text-align: center;
  1737. }
  1738. }
  1739. .info {
  1740. display: flex;
  1741. justify-content: space-between;
  1742. margin: 0 80rpx;
  1743. // height: 48px;
  1744. line-height: 68rpx;
  1745. background-color: rgba(255, 255, 255, 100);
  1746. color: rgba(16, 16, 16, 100);
  1747. //border-bottom: 1px solid #ededed;
  1748. align-items: center;
  1749. .info-name{
  1750. white-space: pre;
  1751. }
  1752. .info-text {
  1753. line-height: 48rpx;
  1754. padding: 4rpx 0 4rpx;
  1755. //width: 200px;
  1756. text-align: right;
  1757. }
  1758. }
  1759. .info-min {
  1760. display: flex;
  1761. justify-content: space-between;
  1762. margin: 0 80rpx;
  1763. // height: 48px;
  1764. //line-height: 88rpx;
  1765. background-color: rgba(255, 255, 255, 100);
  1766. color: rgba(16, 16, 16, 100);
  1767. //border-bottom: 1px solid #ededed;
  1768. align-items: center;
  1769. .info-text {
  1770. line-height: 48rpx;
  1771. padding: 4rpx 0 4rpx;
  1772. //width: 200px;
  1773. text-align: right;
  1774. }
  1775. .info-text-min {
  1776. color: rgba(119, 119, 119, 1);
  1777. font-size: 24rpx;
  1778. //line-height: 48rpx;
  1779. padding: 4rpx 0 4rpx;
  1780. //width: 200px;
  1781. text-align: right;
  1782. }
  1783. }
  1784. .charge-infos {
  1785. padding: 20px 36px;
  1786. margin: 0 auto;
  1787. .item {
  1788. display: flex;
  1789. justify-content: space-between;
  1790. color: rgba(102, 102, 102, 100);
  1791. font-size: 18px;
  1792. margin-bottom: 12px;
  1793. .discounts {
  1794. color: red
  1795. }
  1796. }
  1797. }
  1798. .bottom2 {
  1799. padding: 12px 20px;
  1800. background-color: #fff;
  1801. position: fixed;
  1802. bottom: 0;
  1803. left: 0;
  1804. right: 0;
  1805. margin: auto;
  1806. }
  1807. .progress-bar3 {
  1808. margin-top: 16rpx;
  1809. display: flex;
  1810. justify-content: center;
  1811. .u-progress-content{
  1812. color: rgba(16, 16, 16, 1);
  1813. font-size: 72rpx;
  1814. font-weight: bold;
  1815. .progress-text{
  1816. font-size: 36rpx;
  1817. font-weight: bold;
  1818. }
  1819. }
  1820. }
  1821. .progress-bar2 {
  1822. text-align: center;
  1823. ::v-deep .u-circle-progress {
  1824. // margin-left: 23.3% !important;
  1825. position: relative;
  1826. }
  1827. .u-progress-content {
  1828. display: flex;
  1829. align-items: center;
  1830. justify-content: center;
  1831. }
  1832. .u-progress-dot {
  1833. width: 16rpx;
  1834. height: 16rpx;
  1835. border-radius: 50%;
  1836. background-color: #fb9126;
  1837. }
  1838. .u-progress-info {
  1839. display: block;
  1840. @include themeify {
  1841. font-size: themed('font-size11');
  1842. }
  1843. /* font-size: 32px;*/
  1844. padding-left: 16rpx;
  1845. letter-spacing: 2rpx;
  1846. color: rgba(51, 51, 51, 100);
  1847. .progress-text {
  1848. @include themeify {
  1849. font-size: themed('font-size2');
  1850. }
  1851. /* font-size: 14px;*/
  1852. text-align: center;
  1853. color: #666666;
  1854. }
  1855. }
  1856. ::v-deep .u-progress-dot[data-v-05b104e0] {
  1857. display: none;
  1858. }
  1859. ::v-deep .u-circle-progress[data-v-cab6fc66] {
  1860. margin: 40rpx;
  1861. }
  1862. }
  1863. .time-price {
  1864. display: flex;
  1865. justify-content: space-between;
  1866. padding: 0 65px;
  1867. .item-num {
  1868. /* height: 33px;*/
  1869. color: rgba(51, 51, 51, 100);
  1870. @include themeify {
  1871. font-size: themed('font-size7');
  1872. height: themed('font-size12')
  1873. }
  1874. /* font-size: 24px;*/
  1875. text-align: center;
  1876. }
  1877. .item-text {
  1878. eight: 20px;
  1879. color: rgba(153, 153, 153, 100);
  1880. @include themeify {
  1881. font-size: themed('font-size2');
  1882. }
  1883. /* font-size: 14px;*/
  1884. text-align: center;
  1885. }
  1886. }
  1887. // .bottom {
  1888. // background-color: #fff;
  1889. // display: flex;
  1890. // width: 91.4%;
  1891. // padding: 0 16px;
  1892. // margin:0 auto 40px;
  1893. // .u-size-default {
  1894. // border: 1px solid rgba(0, 185, 98, 100);
  1895. // color: #00b962;
  1896. // width: 44%;
  1897. // }
  1898. // }
  1899. // 反馈
  1900. .feedback {
  1901. padding: 40rpx 72rpx;
  1902. .title-1 {
  1903. color: rgba(16, 16, 16, 100);
  1904. font-size: 36rpx;
  1905. }
  1906. .title-2 {
  1907. color: rgba(102, 102, 102, 100);
  1908. margin-top: 8px;
  1909. line-height: 20px;
  1910. }
  1911. textarea {
  1912. margin-top: 16px;
  1913. width: 93.5%;
  1914. height: 100px;
  1915. background-color: rgba(228, 228, 228, 100);
  1916. color: rgba(153, 153, 153, 100);
  1917. font-size: 16px;
  1918. border-radius: 12px;
  1919. padding: 12px;
  1920. line-height: 23px;
  1921. }
  1922. .submit {
  1923. height: 80rpx;
  1924. line-height: 26px;
  1925. border-radius: 50px;
  1926. background-color: rgba(0, 185, 98, 100);
  1927. color: rgba(255, 255, 255, 100);
  1928. font-size: 36rpx;
  1929. margin-top: 16px;
  1930. }
  1931. }
  1932. </style>
  1933. <style lang="scss" scoped>
  1934. .oldTextClassF {
  1935. .electrovalence-monthlyCard {}
  1936. }
  1937. page {
  1938. background-color: #f6f8f8;
  1939. padding-bottom: 60px;
  1940. }
  1941. .to-recharge {
  1942. position: absolute;
  1943. right: 22px;
  1944. color: #333333
  1945. }
  1946. // 充电状态
  1947. .charge-state {
  1948. width: 100%;
  1949. }
  1950. .charge-state-2024-04-01 {
  1951. width: 100%;
  1952. background: linear-gradient(180deg, rgba(161, 206, 250, 1) 0%, rgba(161, 206, 250, 0) 100%);
  1953. .charge-state-img {
  1954. text-align: center;
  1955. img {
  1956. animation: rotate 5s linear infinite;
  1957. width: 520rpx;
  1958. height: 520rpx;
  1959. }
  1960. }
  1961. .charge-state-img2 {
  1962. text-align: center;
  1963. position: relative;
  1964. top: -392rpx;
  1965. height: 0;
  1966. img {
  1967. width: 250rpx;
  1968. height: 250rpx;
  1969. }
  1970. }
  1971. .charge-state-img3 {
  1972. text-align: center;
  1973. position: relative;
  1974. top: -310rpx;
  1975. height: 0;
  1976. font-size: 56rpx;
  1977. color: rgba(16, 16, 16, 1);
  1978. font-weight: bold;
  1979. }
  1980. @keyframes rotate {
  1981. from {
  1982. transform: rotate(0deg);
  1983. }
  1984. to {
  1985. transform: rotate(360deg);
  1986. }
  1987. }
  1988. }
  1989. // 充电信息
  1990. .charge-info {
  1991. background-color: #ffffff;
  1992. padding: 40rpx 0px 0px 0px;
  1993. margin: 0rpx 40rpx 0;
  1994. box-shadow: 0px 2px 8px 0px #1A095A34;
  1995. border-radius: 12px;
  1996. display: flex;
  1997. flex-wrap: wrap;
  1998. justify-content: space-between;
  1999. .info-item {
  2000. width: 33%;
  2001. text-align: center;
  2002. margin-bottom: 14px;
  2003. .content {
  2004. line-height: 33px;
  2005. color: rgba(51, 51, 51, 100);
  2006. font-size: 22px;
  2007. font-weight: 550;
  2008. }
  2009. .name {
  2010. line-height: 44rpx;
  2011. color: rgba(119, 119, 119, 100);
  2012. font-size: 32rpx;
  2013. }
  2014. }
  2015. }
  2016. //其他信息
  2017. .else-infos {
  2018. // ::v-deep .u-tab-item{
  2019. // padding: 0px 60rpx 0px 0px !important;
  2020. // }
  2021. // ::v-deep .u-tab-bar{
  2022. // transform: translate(2rpx, -100%)!important;
  2023. // }
  2024. padding: 0 24rpx 48rpx 24rpx;
  2025. background-color: #ffffff;
  2026. // width: 88.2%;
  2027. box-shadow: 0px 2px 8px 0px #1A095A34;
  2028. margin: 32rpx 40rpx 40rpx 40rpx;
  2029. border-radius: 12px;
  2030. .itemTips {
  2031. border: 1px solid rgba(0, 185, 98, 1);
  2032. background-color: rgba(235, 255, 246, 1);
  2033. color: rgba(16, 16, 16, 1);
  2034. padding: 24rpx 10rpx;
  2035. ::v-deep .chargingTag {
  2036. color: #ff3d00;
  2037. font-weight: bold;
  2038. margin: 0 6rpx;
  2039. }
  2040. ::v-deep .chargingTag2 {
  2041. color: #00b962
  2042. }
  2043. .itemTips1 {
  2044. font-weight: bold;
  2045. display: flex;
  2046. align-items: center;
  2047. padding: 0 20rpx;
  2048. color: rgba(0, 185, 98, 1);
  2049. font-size: 32rpx;
  2050. img {
  2051. height: 32rpx;
  2052. width: 32rpx;
  2053. }
  2054. }
  2055. .itemTips2 {
  2056. line-height: 40rpx;
  2057. margin: 10rpx 0 20rpx 0;
  2058. padding: 0 40rpx;
  2059. }
  2060. .itemTips3 {
  2061. padding: 0 40rpx;
  2062. margin-bottom: 10rpx;
  2063. .itemTips3Btn {
  2064. height: 62rpx;
  2065. }
  2066. }
  2067. }
  2068. .item {
  2069. display: flex;
  2070. justify-content: space-between;
  2071. line-height: 23px;
  2072. padding: 10px 0 10px 0;
  2073. border-bottom: 1px solid #E9EBEE;
  2074. .title {
  2075. // width: 100px;
  2076. width: 26.6vw;
  2077. color: rgba(16, 16, 16, 100);
  2078. font-size: 18px;
  2079. font-weight: 550;
  2080. .time {
  2081. font-size: 13px;
  2082. color: #666666 100%;
  2083. font-weight: normal;
  2084. }
  2085. }
  2086. .detail {
  2087. // width: 197px;
  2088. //width: 52.5vw;
  2089. color: rgba(16, 16, 16, 100);
  2090. font-size: 16px;
  2091. text-align: right;
  2092. .electrovalence {
  2093. .num {
  2094. color: rgba(255, 61, 0, 100);
  2095. margin-right: 4px;
  2096. }
  2097. }
  2098. .electrovalence-monthlyCard {
  2099. font-size: 28rpx;
  2100. color: #959595;
  2101. }
  2102. }
  2103. }
  2104. }
  2105. // 底部按钮
  2106. .bottom-qq {
  2107. border: 1px solid rgba(242, 242, 242, 1);
  2108. background: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 1) 100%);
  2109. position: fixed;
  2110. bottom: 0;
  2111. left: 0;
  2112. right: 0;
  2113. display: flex;
  2114. padding: 16rpx 40rpx 32rpx 40rpx;
  2115. z-index: 999;
  2116. .button-box {
  2117. min-width: 80%;
  2118. }
  2119. .img-box {
  2120. // width: 48rpx;
  2121. // height: 48rpx;
  2122. //padding: 24rpx 0;
  2123. text-align: center;
  2124. font-size: 24rpx;
  2125. img {
  2126. width: 48rpx;
  2127. height: 48rpx;
  2128. }
  2129. }
  2130. button {
  2131. margin-left: 40rpx;
  2132. display: flex;
  2133. align-items: center;
  2134. justify-content: center;
  2135. //width: 45.8%;
  2136. background-color: black;
  2137. color: #fff;
  2138. // background-color: rgba(255, 255, 255, 1);
  2139. // color: rgba(0, 185, 98, 1);
  2140. height: 96rpx;
  2141. border-radius: 50px;
  2142. font-size: 32rpx;
  2143. }
  2144. }
  2145. // 底部按钮
  2146. .bottom-ww {
  2147. background: white;
  2148. //position: fixed;
  2149. bottom: 0;
  2150. left: 0;
  2151. right: 0;
  2152. display: flex;
  2153. padding: 12px 24px;
  2154. padding-bottom: 12px;
  2155. z-index: 999;
  2156. .img-box {
  2157. width: 96rpx;
  2158. height: 96rpx;
  2159. padding: 24rpx 0;
  2160. background-color: rgba(210, 215, 213, 100);
  2161. text-align: center;
  2162. border-radius: 999px;
  2163. img {}
  2164. }
  2165. button {
  2166. width: 45.8%;
  2167. // background-color: black;
  2168. // color: #fff;
  2169. background-color: rgba(255, 255, 255, 1);
  2170. color: rgba(0, 185, 98, 1);
  2171. height: 80rpx;
  2172. border-radius: 50px;
  2173. font-size: 32rpx;
  2174. }
  2175. }
  2176. .showCoupon{
  2177. display: flex;
  2178. justify-content: space-between;
  2179. align-items: center;
  2180. padding: 0 ;
  2181. .padding1{
  2182. padding-left: 32rpx;
  2183. }
  2184. .padding2{
  2185. padding-right: 32rpx;
  2186. }
  2187. .showCoupon1{
  2188. .showCoupon111{
  2189. padding: 2rpx 24rpx;
  2190. border-radius: 8px 0px 8px 0px;
  2191. background-color: rgba(255, 61, 0, 1);
  2192. color: rgba(255, 255, 255, 1);
  2193. }
  2194. .showCoupon13{
  2195. padding-bottom: 32rpx;
  2196. font-weight: bold;
  2197. }
  2198. .showCoupon12{
  2199. color: red;
  2200. font-size: 48rpx;
  2201. font-weight: bold;
  2202. margin: 16rpx 0 4rpx 0;
  2203. }
  2204. }
  2205. .showCoupon2{
  2206. border-left: 1px solid #CFCFCF;
  2207. padding-left: 32rpx;
  2208. display: flex;
  2209. flex-direction: column;
  2210. align-items: center;
  2211. }
  2212. }
  2213. .useFreeCoupon{
  2214. padding: 40rpx 72rpx;
  2215. .title{
  2216. color: rgba(255, 61, 0, 1);
  2217. text-align: center;
  2218. margin-bottom: 10rpx;
  2219. }
  2220. .showCoupon{
  2221. background-color: #e4e4e4;
  2222. border-radius: 8px;
  2223. }
  2224. }
  2225. .showlottery{
  2226. ::v-deep .u-mode-center-box{
  2227. width: 700rpx !important;
  2228. background-color:unset;
  2229. }
  2230. ::v-deep .u-model{
  2231. background-color:unset;
  2232. }
  2233. }
  2234. .slogan-5 {
  2235. z-index: 2;
  2236. margin-top: 10px;
  2237. display: flex;
  2238. justify-content: center;
  2239. /* text-decoration: underline; */
  2240. text-align: center;
  2241. position: fixed;
  2242. /* top: 40px; */
  2243. bottom: 180px;
  2244. right: 20px;
  2245. height: 80rpx;
  2246. width: 80rpx;
  2247. line-height: 20px;
  2248. font-size: 16px;
  2249. background: linear-gradient(95deg, #FF9800, #FF5722);
  2250. box-shadow: 0 4rpx 24rpx 0 #FF5722;
  2251. //padding-top: 8px;
  2252. color: #fff;
  2253. border-radius: 25px;
  2254. }
  2255. .swiper {
  2256. height: 700rpx;
  2257. .swiperitem {
  2258. height: 700rpx;
  2259. }
  2260. }
  2261. .showOssK {
  2262. ::v-deep .u-model,
  2263. ::v-deep .u-mode-center-box {
  2264. background-color: transparent;
  2265. }
  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. </style>