dcCharging.vue 58 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547
  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>
  593. </template>
  594. <script>
  595. var formatNum = function(num) {
  596. let res = Number(num);
  597. return res < 10 ? '0' + res : res;
  598. };
  599. import * as api from "@/apis/site.js"
  600. import * as API_index from '@/apis/index.js'
  601. import * as API from '@/apis/chargeProcess.js'
  602. import * as API_weixin from '@/apis/weixin.js'
  603. import * as userAPI from '@/apis/user.js'
  604. import * as newsApi from '@/apis/news.js'
  605. import * as echarts from "echarts";
  606. import uMessage from '@/components/UMessage.vue'
  607. import lottery from '@/components/lottery/index.vue';
  608. import {
  609. newDate,
  610. secondsDistance,
  611. hourDistanceArr,
  612. daysDistance,minuteConversion
  613. } from '@/utils'
  614. export default {
  615. components:{
  616. lottery,uMessage
  617. },
  618. data() {
  619. return {
  620. showlottery:false,
  621. barstyle: {
  622. backgroundColor: "#19be6b"
  623. },
  624. checked2: false,
  625. bannerListJNT: [],
  626. bannerListJNTend: [],
  627. bannerListYXJ: [],
  628. tabList: [
  629. {
  630. name: '软件使用',
  631. type: 'CJWT-RJSY'
  632. },{
  633. name: '故障',
  634. type: 'CJWT-GZ'
  635. },
  636. {
  637. name: '活动优惠',
  638. type: 'CJWT-YHHD'
  639. },
  640. ],
  641. current: 0,
  642. newsList: [
  643. [],
  644. [],
  645. []
  646. ],
  647. newsType: 'CJWT-RJSY',
  648. pageIndex: 1,
  649. recordsTotal: 0,
  650. list: [
  651. ],
  652. NODE_ENV: process.car.NODE_ENV,
  653. message: '',
  654. elderMode: false,
  655. timer: '',
  656. title: '联系客服',
  657. content: '0716-8123456',
  658. confirmText: '拨打电话',
  659. detail: {},
  660. navbartitle: "充电中",
  661. percent: 0,
  662. percentValue: 0,
  663. show3: false,
  664. consumerPhone: "",
  665. id: "",
  666. chargingGun: {},
  667. chargingRecord: {},
  668. couponObj: {},
  669. show: false,
  670. show2: false,
  671. isReady: true,
  672. waitNum: '',
  673. projectName: "",
  674. userCard: null,
  675. price: {},
  676. prices: [],
  677. userParkingCoupon:null,
  678. chargingStation: {},
  679. parkingTips: false,
  680. showVin: false,
  681. showVinBl: false,
  682. descriptionShow2do: false,
  683. infoShow: false,
  684. voltageShow: false,
  685. showChargingTag: false,
  686. chargingTagUrl: false,
  687. chargingTag: false,
  688. personInfo: null,
  689. myChart: null,
  690. lwidth: 600,
  691. lheight: 600,
  692. lotteryIndex:-1,
  693. dataLottery: [
  694. {
  695. id: 2,
  696. name: '服务费5折',
  697. num:50,
  698. img: '',
  699. color: "#f7e2c3"
  700. },
  701. {
  702. id: 3,
  703. name: '服务费6折',
  704. num:60,
  705. img: '',
  706. color: "#fbf0df"
  707. },
  708. {
  709. id: 4,
  710. name: '服务费7折',
  711. num:70,
  712. img: '',
  713. color: "#f7e2c3"
  714. },
  715. {
  716. id: 5,
  717. name: '服务费8折',
  718. num:80,
  719. img: '',
  720. color: "#fbf0df"
  721. },
  722. {
  723. id: 1, // 唯一id
  724. num:0,
  725. name: '服务费免单', // 名称
  726. img: '', // 展示图片
  727. color: "#fff" ,// 轮盘区域底色
  728. }
  729. ],
  730. }
  731. },
  732. onLoad(op) {
  733. if (this.NODE_ENV !== 'production') {
  734. this.infoShow = true
  735. }
  736. this.projectName = process.car.ProjectName;
  737. var plus = this.carhelp.getPersonInfoPlus()
  738. this.personInfo = this.carhelp.getPersonInfo()
  739. if (this.personInfo.quickCharging) {
  740. this.checked2 = true;
  741. }
  742. // if (plus) {
  743. // this.userCard = plus.userCard;
  744. // }
  745. if (op.id) {
  746. this.id = op.id;
  747. this.init()
  748. this.getInfo()
  749. }
  750. var consumerPhone = "400-8899-619"
  751. // img="https://yktwechat.xiaoxinda.com/config/xxd2021.jpg"
  752. if (consumerPhone) {
  753. this.consumerPhone = consumerPhone
  754. }
  755. this.getBannerInfo("JNT-charging", "bannerListJNT");
  756. this.getBannerInfo("JNT-charging-end", "bannerListJNTend");
  757. this.getBannerInfo("YXJ-charging-end", "bannerListYXJ");
  758. },
  759. onShow() {
  760. if (!this.isReady) {
  761. this.isReady = true;
  762. this.addpercent();
  763. this.getInfo()
  764. }
  765. },
  766. onHide() {
  767. this.isReady = false;
  768. console.log("onHide")
  769. },
  770. onUnload() {
  771. console.log("onUnload")
  772. this.isReady = false;
  773. },
  774. onReady() {
  775. this.elderMode = this.carhelp.get('getElderModeClass') == '长辈模式';
  776. if (this.elderMode)
  777. this.theme('elder')
  778. else
  779. this.theme('standard')
  780. this.addpercent()
  781. this.getNewsList();
  782. },
  783. computed: {
  784. percentColor() {
  785. if (this.percent == 0 || this.percent > 80) {
  786. return '#53b56b'
  787. } else if (this.percent > 50) {
  788. return '#85e43e'
  789. } else if (this.percent > 40) {
  790. return '#a8ac0d'
  791. } else if (this.percent > 20) {
  792. return '#c5c90c'
  793. } else if (this.percent > 0) {
  794. return '#f26747'
  795. } else {
  796. return '#53b56b'
  797. }
  798. },
  799. userCardBool() {
  800. if (this.chargingRecord && this.chargingRecord.userCardId && !this.showVinBl && this.userCard) {
  801. return true;
  802. }
  803. return false
  804. }
  805. },
  806. methods: {
  807. uMessageShow(){
  808. if(this.chargingRecord.updateBy=='cfyxz'){
  809. this.$refs.uMessage.bShow()
  810. }
  811. },
  812. getWinnerFn() {
  813. // 自定义抽奖结果 ,返回值为 options 奖品列表下标,若返回 -1,则会进行随机抽奖
  814. return this.lotteryIndex
  815. },
  816. beforePlay(){
  817. console.log("beforePlay....",this.lwidth)
  818. },
  819. afterPlay(result){
  820. // uni.showModal({
  821. // confirmText: "确定",
  822. // showCancel: false,
  823. // content: result.name,
  824. // success: (res) => {
  825. // if (res.confirm) {
  826. // console.log('用户点击确定');
  827. // }
  828. // }
  829. // })
  830. },
  831. minuteConversion(a,b){
  832. return minuteConversion(a,b)
  833. },
  834. getPercentshowCoupon(chargingRecord,time,str) {
  835. if (!chargingRecord.startTime) {
  836. return '00:00:00'
  837. }
  838. var Hour = 0;
  839. var Fen = 0;
  840. var S = 0;
  841. var now = newDate(chargingRecord.startTime).getTime();
  842. var date = newDate(chargingRecord.endTime).getTime();
  843. if(time){
  844. date=date+time*1000*60
  845. }
  846. var seconds = parseInt(( date-now ) / 1000);
  847. var ms = seconds;
  848. Hour = parseInt(Math.floor(ms / (60 * 60)));
  849. Fen = parseInt(Math.floor(ms % (60 * 60) / 60));
  850. S = parseInt(Math.floor(ms % (60)));
  851. if(str){
  852. var obj = "";
  853. if(Hour){
  854. obj+=Hour+"小时"
  855. }
  856. if(Fen){
  857. obj+=Fen+"分"
  858. }
  859. if(S){
  860. obj+=S+"秒"
  861. }
  862. return obj;
  863. }else{
  864. var obj = (Hour > 9 ? "" : "0") + Hour + ":" + (Fen > 9 ? "" : "0") + Fen + ":" + (S > 9 ? "" : "0") + S
  865. return obj;
  866. }
  867. },
  868. getPie() {
  869. },
  870. getPie2() {
  871. console.log("getPie")
  872. if (!this.myChart) {
  873. this.myChart = echarts.init(document.getElementById('pieEcharts'), null, {
  874. width: uni.upx2px(450),
  875. height: uni.upx2px(450)
  876. });
  877. }
  878. var num0 = this.chargingRecord.startSoc;
  879. var num1 = this.chargingRecord.endSoc - this.chargingRecord.startSoc;
  880. var num2 = 100 - this.chargingRecord.endSoc;
  881. this.myChart.clear();
  882. var option = {
  883. series: [{
  884. name: 'Access From',
  885. type: 'pie',
  886. radius: ['65%', '70%'],
  887. labelLayout: {
  888. align: 'left'
  889. },
  890. labelLine: {
  891. show: true,
  892. smooth: 0,
  893. },
  894. data: [{
  895. value: num0,
  896. name: 'Search Engine'
  897. },
  898. {
  899. value: num1,
  900. name: 'Direct'
  901. },
  902. {
  903. value: num2,
  904. name: 'Email'
  905. }
  906. ]
  907. }]
  908. };
  909. console.log(option)
  910. this.myChart.setOption(option);
  911. },
  912. getBannerInfo(code, list) {
  913. newsApi.getBannerInfo(code).then((res) => {
  914. if (list) {
  915. this[list] = res.data;
  916. } else {
  917. this.bannerList = res.data;
  918. }
  919. //uni.hideLoading()
  920. //document.getElementsByClassName("uni-swiper-wrapper")[0].parentNode.style="background-color: rgb(255, 255, 255); height: 120px;"
  921. }).catch(error => {
  922. uni.showToast({
  923. title: error,
  924. icon: "none"
  925. })
  926. })
  927. },
  928. checkedChange2() {
  929. uni.showLoading({
  930. title: "加载中",
  931. mask: true,
  932. })
  933. API_index.changeQuickCharging({
  934. qucikStatus: this.checked2 ? 1 : 0
  935. }).then((res) => {
  936. var userInfo = this.carhelp.getPersonInfo();
  937. userInfo.quickCharging = checked2;
  938. this.carhelp.setPersonInfo(userInfo);
  939. uni.hideLoading();
  940. }).catch(error => {
  941. uni.showToast({
  942. title: error,
  943. icon: "none"
  944. })
  945. })
  946. },
  947. thisdaysDistance(endTime) {
  948. var date = new Date()
  949. var date2 = newDate(endTime);
  950. return daysDistance(date, date2)
  951. },
  952. change(index) {
  953. this.current = index;
  954. this.newsType = this.tabList[index].type;
  955. if (this.newsList[this.current].length == 0) {
  956. this.getNewsList(true)
  957. }
  958. },
  959. getNewsList(bl) {
  960. if(bl){
  961. uni.showLoading({
  962. title: "加载中",
  963. mask: true,
  964. })
  965. }
  966. newsApi.newsInfoContentList({
  967. pageIndex: 1,
  968. pageSize: 100,
  969. shortName: this.newsType
  970. }).then((res) => {
  971. var newsList = res.data.data;
  972. this.newsList[this.current] = newsList.reverse()
  973. if(bl){
  974. uni.hideLoading();
  975. this.$forceUpdate()
  976. }
  977. //this.recordsTotal = res.data.recordsTotal
  978. }).catch(error => {
  979. uni.showToast({
  980. title: error,
  981. icon: "none"
  982. })
  983. })
  984. },
  985. gotoBtn() {
  986. uni.navigateTo({
  987. url: this.chargingTagUrl
  988. })
  989. },
  990. voltageShowNum(num) {
  991. if (num) {
  992. if (num < 0) {
  993. return 0
  994. }
  995. return num
  996. } else {
  997. return 0
  998. }
  999. },
  1000. spreadInfo() {
  1001. this.infoShow = !this.infoShow
  1002. },
  1003. alerttipsCk2() {
  1004. this.descriptionShow2do = true;
  1005. },
  1006. vinCk() {
  1007. if (this.userCard && this.userCard.vin && this.chargingGun && this.chargingGun.vin) {
  1008. if (this.userCard.vin == this.chargingGun.vin) {
  1009. return true
  1010. } else {
  1011. return false
  1012. }
  1013. } else {
  1014. return true
  1015. }
  1016. },
  1017. forPrice() {
  1018. if (this.prices && this.prices.length) {
  1019. let date = new Date();
  1020. let hours = date.getHours();
  1021. let minutes = date.getMinutes();
  1022. let seconds = date.getSeconds();
  1023. let date_str = formatNum(hours) + ':' + formatNum(minutes); //+ ' ' +formatWeek;
  1024. for (var i in this.prices[0].priceList) {
  1025. var item = this.prices[0].priceList[i];
  1026. if (date_str >= item.startTime && date_str <= item.endTime) {
  1027. this.price = item
  1028. }
  1029. }
  1030. }
  1031. },
  1032. getChargingStationPrice(id) {
  1033. if (this.prices && this.prices.length) {
  1034. this.forPrice()
  1035. return
  1036. }
  1037. if (!id || id == undefined) {
  1038. return
  1039. }
  1040. //id='e012f9fe-90a8-4a47-bb64-26ea139c3c05'
  1041. api.getChargingStationPrice2({
  1042. stationId: id,
  1043. payType: this.chargingRecord.payType,
  1044. recordId: this.chargingRecord.id
  1045. }).then((res) => {
  1046. this.prices = res.data.prices
  1047. this.chargingStation = res.data.chargingStation;
  1048. this.userCard = res.data.regUserCard;
  1049. this.forPrice()
  1050. }).catch(error => {
  1051. uni.showToast({
  1052. title: error
  1053. })
  1054. })
  1055. },
  1056. showToast() {
  1057. this.$refs.uToast.show({
  1058. title: '提交成功',
  1059. type: 'success'
  1060. })
  1061. },
  1062. submitMessage() {
  1063. if (!this.message) {
  1064. uni.showToast({
  1065. title: "请填写反馈内容",
  1066. icon: "none"
  1067. })
  1068. return
  1069. }
  1070. uni.showLoading({
  1071. title: "加载中",
  1072. mask: true,
  1073. })
  1074. userAPI.feedback({
  1075. content: this.message
  1076. }).then(response => {
  1077. uni.hideLoading()
  1078. this.message = '';
  1079. this.showToast();
  1080. }).catch(error => {
  1081. uni.showToast({
  1082. title: error
  1083. })
  1084. })
  1085. },
  1086. theme(type) {
  1087. if (type == 'elder') {
  1088. document.getElementsByTagName('body')[0].setAttribute('data-theme', type);
  1089. } else {
  1090. document.getElementsByTagName('body')[0].setAttribute('data-theme', type);
  1091. }
  1092. },
  1093. cancelGz() {
  1094. this.carhelp.setGzDate()
  1095. },
  1096. gotoGz() {
  1097. this.carhelp.setGzDate()
  1098. var url = process.car.gzUrl;
  1099. window.location.href = url
  1100. },
  1101. gotoMain(i) {
  1102. if (i == 0) {
  1103. uni.reLaunch({
  1104. url: "/pages/index/index"
  1105. })
  1106. }
  1107. if (i == 1) {
  1108. uni.navigateTo({
  1109. url: "/pages/record/details?id=" + this.id
  1110. })
  1111. }
  1112. },
  1113. addpercent() {
  1114. this.timer = this.getPercent()
  1115. if (this.isReady) {
  1116. setTimeout(() => {
  1117. if (this.chargingGun.gunType == 2 || this.percent == 0) {
  1118. this.percentValue++;
  1119. if (this.percentValue >= 100) {
  1120. this.percentValue = 0;
  1121. }
  1122. }
  1123. this.addpercent()
  1124. }, 100)
  1125. }
  1126. },
  1127. getPercent2() {
  1128. var ms = this.chargingRecord.chargingMinute * 60;
  1129. var Hour = parseInt(Math.floor(ms / (60 * 60)));
  1130. var Fen = parseInt(Math.floor(ms % (60 * 60) / 60));
  1131. var S = parseInt(Math.floor(ms % (60)));
  1132. var obj = (Hour > 9 ? "" : "0") + Hour + ":" + (Fen > 9 ? "" : "0") + Fen + ":" + (S > 9 ? "" : "0") + S
  1133. return obj;
  1134. },
  1135. getPercent() {
  1136. if (!this.chargingRecord.startTime) {
  1137. return '00:00:00'
  1138. }
  1139. var Hour = 0;
  1140. var Fen = 0;
  1141. var S = 0;
  1142. if (this.chargingRecord.status == 1) {
  1143. var second = secondsDistance(newDate(this.chargingRecord.startTime));
  1144. var ms = second;
  1145. Hour = parseInt(Math.floor(ms / (60 * 60)));
  1146. Fen = parseInt(Math.floor(ms % (60 * 60) / 60));
  1147. S = parseInt(Math.floor(ms % (60)));
  1148. }
  1149. var obj = (Hour > 9 ? "" : "0") + Hour + ":" + (Fen > 9 ? "" : "0") + Fen + ":" + (S > 9 ? "" : "0") + S
  1150. return obj;
  1151. },
  1152. init() {
  1153. API.personalCenter().then((res) => {
  1154. this.detail = res.data
  1155. if (this.chargingRecord.payType == 3 && this.chargingRecord.entAccountId) {
  1156. for (var i in this.detail.entRegList) {
  1157. var item = this.detail.entRegList[i];
  1158. if (item.enterpriseAccount.id == this.chargingRecord.entAccountId) {
  1159. this.detail.balance = item.enterpriseAccount.totalAmount
  1160. }
  1161. }
  1162. }
  1163. }).catch(error => {
  1164. uni.showToast({
  1165. title: error
  1166. })
  1167. })
  1168. },
  1169. checkSubscribe() {
  1170. API_weixin.checkSubscribe({
  1171. openId: this.carhelp.getOpenId()
  1172. }).then((res) => {
  1173. if (res.data == "0") {
  1174. this.show2 = true;
  1175. } else {
  1176. this.carhelp.setGzDate()
  1177. }
  1178. //setGzDate
  1179. }).catch(error => {
  1180. uni.showToast({
  1181. title: error
  1182. })
  1183. })
  1184. },
  1185. confirmPhone() {
  1186. this.show = false;
  1187. uni.makePhoneCall({
  1188. phoneNumber: this.consumerPhone //仅为示例
  1189. });
  1190. },
  1191. getInfo() {
  1192. // uni.showLoading({
  1193. // title: "加载中",
  1194. // mask: true,
  1195. // })
  1196. var electricQuantity = 0;
  1197. var obj = this.carhelp.get("carhelp_getChargeList")
  1198. if (obj) {
  1199. electricQuantity = parseInt(obj.electricQuantity / 10000)
  1200. }
  1201. API.chargingDetail({
  1202. id: this.id,
  1203. chargingKwh: electricQuantity
  1204. }).then((res) => {
  1205. this.showChargingTag = res.data.showChargingTag
  1206. this.chargingTagUrl = res.data.chargingTagUrl
  1207. this.chargingTag = res.data.chargingTag
  1208. if(this.chargingRecord&&this.chargingRecord.status==1&&res.data.chargingRecord.status==2){
  1209. this.lotteryApi(true)
  1210. }
  1211. this.chargingRecord = res.data.chargingRecord
  1212. if (this.chargingRecord.carNumber) {
  1213. this.navbartitle = this.chargingRecord.carNumber;
  1214. }
  1215. //(this.chargingRecord)
  1216. this.couponObj = res.data.coupon
  1217. this.chargingGun = res.data.chargingGun
  1218. this.waitNum = res.data.chargingRecord.waitNum;
  1219. this.userParkingCoupon=res.data.userParkingCoupon;
  1220. this.getChargingStationPrice(this.chargingGun.stationId)
  1221. //this.isReady = true;
  1222. //直流
  1223. if (this.chargingGun.gunType == 1) {
  1224. if (this.chargingRecord.status == 1) {
  1225. this.percent = this.chargingGun.soc
  1226. //zkx
  1227. //this.percent =12
  1228. if (this.userCardBool && !this.showVinBl && !this.vinCk()) {
  1229. this.showVin = true;
  1230. this.showVinBl = true; //只提示1次
  1231. }
  1232. }
  1233. if (this.chargingRecord.status == 2) {
  1234. //this.getPie()
  1235. }
  1236. } else if (this.chargingGun.gunType == 2) {
  1237. //交流
  1238. if (this.chargingRecord.status == 2) {
  1239. //this.percent=100;
  1240. }
  1241. }
  1242. if (this.chargingRecord.status == 2) {
  1243. //this.getPie()
  1244. console.log(this.chargingGun.stationId,this.chargingGun.deviceNo,this.chargingGun.channelNo)
  1245. setTimeout(() => {
  1246. this.uMessageShow()
  1247. }, 200)
  1248. }
  1249. //zkx
  1250. //this.percent=42;
  1251. if (this.chargingRecord.status == 1) {
  1252. if (this.carhelp.getGzDate() && !this.show2) {
  1253. //this.checkSubscribe()
  1254. }
  1255. }
  1256. if (this.isReady && this.chargingRecord.status != 2) {
  1257. var time = 1000;
  1258. if (this.chargingRecord.status == 0) {
  1259. } else {
  1260. time = 3000;
  1261. this.init();
  1262. }
  1263. console.log(time)
  1264. setTimeout(() => {
  1265. this.getInfo();
  1266. }, time)
  1267. }
  1268. // if (this.chargingRecord.status == 2 && this.userCardBool) {
  1269. // this.getHomePage()
  1270. // }
  1271. uni.hideLoading()
  1272. }).catch(error => {
  1273. uni.showToast({
  1274. title: error
  1275. })
  1276. })
  1277. },
  1278. getHomePage() {
  1279. uni.showLoading({
  1280. title: "加载中",
  1281. mask: true,
  1282. })
  1283. API.userCard({
  1284. stationId: this.chargingGun.stationId
  1285. }).then((res) => {
  1286. uni.hideLoading()
  1287. this.userCard = res.data.regUserCard
  1288. //this.canUse=res.data.canUse
  1289. //this.user = res.data
  1290. }).catch(error => {
  1291. uni.showToast({
  1292. title: error
  1293. })
  1294. })
  1295. },
  1296. lotteryApi(bl){
  1297. if(this.chargingStation.quickChargeJoinActivity
  1298. &&this.chargingStation.quickChargeReduceResult){
  1299. //this.lotteryApi()
  1300. }else{
  1301. return
  1302. }
  1303. API.getRateByRecordId({
  1304. recordId: this.chargingRecord.id
  1305. }).then((res) => {
  1306. if(res.data.serviceDiscountRatio!=null){
  1307. this.lotteryIndex=this.dataLottery.findIndex(item=>{
  1308. //console.log(res.data.serviceDiscountRatio,item.num,res.data.serviceDiscountRatio==item.num)
  1309. return res.data.serviceDiscountRatio==item.num
  1310. })
  1311. console.log(this.lotteryIndex)
  1312. if(this.lotteryIndex!=-1){
  1313. this.dataLottery[this.lotteryIndex].weight=100
  1314. this.showlottery=true
  1315. }
  1316. }else{
  1317. }
  1318. if(!bl){
  1319. this.confirm()
  1320. }
  1321. }).catch(error => {
  1322. uni.showToast({
  1323. title: error
  1324. })
  1325. })
  1326. },
  1327. submit() {
  1328. if (this.chargingRecord.status == 0 || this.chargingRecord.status == 1 || this.chargingRecord.status ==
  1329. 4) {
  1330. } else {
  1331. return
  1332. }
  1333. uni.showModal({
  1334. title: '提示',
  1335. content: '确认结束充电?',
  1336. success: res => {
  1337. if (res.confirm) {
  1338. //付钱 改为组件
  1339. if(this.chargingStation.quickChargeJoinActivity
  1340. &&this.chargingStation.quickChargeReduceResult){
  1341. this.lotteryApi()
  1342. }else{
  1343. //this.submitApi()
  1344. this.confirm()
  1345. }
  1346. } else if (res.cancel) {
  1347. //('用户点击取消');
  1348. }
  1349. }
  1350. });
  1351. },
  1352. confirm() {
  1353. ////(JSON.stringify(this.submitForm))
  1354. uni.showLoading({
  1355. title: "加载中",
  1356. mask: true,
  1357. })
  1358. //this.submitForm.deviceNo = this.detail.deviceNo;
  1359. API.stopCarCharging({
  1360. chargingRecordId: this.chargingRecord.id
  1361. }).then((res) => {
  1362. this.getInfo()
  1363. }).catch(error => {
  1364. uni.showToast({
  1365. title: error
  1366. })
  1367. })
  1368. },
  1369. }
  1370. }
  1371. </script>
  1372. <style>
  1373. page {
  1374. background: #fff;
  1375. padding-bottom: 50px;
  1376. }
  1377. </style>
  1378. <style lang="scss" scoped>
  1379. .slogan-4 {
  1380. margin-top: 10px;
  1381. display: flex;
  1382. /* text-decoration: underline; */
  1383. z-index: 999;
  1384. text-align: center;
  1385. position: fixed;
  1386. /* top: 40px; */
  1387. bottom: 180px;
  1388. right: 20px;
  1389. line-height: 20px;
  1390. font-size: 16px;
  1391. //background: linear-gradient(95deg, #FF9800, #FF5722);
  1392. //box-shadow: 0 4rpx 24rpx 0 #FF5722;
  1393. //padding-top: 8px;
  1394. color: #fff;
  1395. border-radius: 25px;
  1396. flex-direction: column;
  1397. align-items: flex-end;
  1398. img {
  1399. //height: 160rpx;
  1400. width: 144rpx;
  1401. }
  1402. }
  1403. .common-problem {
  1404. //margin: -125px 32rpx 0;
  1405. box-shadow: 0px 2px 8px 0px #1A095A34;
  1406. border-radius: 8px;
  1407. background-color: #fff;
  1408. padding: 20rpx 24rpx 48rpx 24rpx;
  1409. margin: 32rpx 40rpx 40rpx 40rpx;
  1410. .title {
  1411. color: rgba(16, 16, 16, 1);
  1412. font-size: 32rpx;
  1413. padding-bottom: 20rpx;
  1414. border-bottom: 1px solid rgba(246, 246, 246, 1);
  1415. padding-left: 32rpx;
  1416. }
  1417. .tabs {
  1418. width: 400rpx;
  1419. padding-bottom: 20rpx;
  1420. border-bottom: 1px solid rgba(246, 246, 246, 1);
  1421. /deep/.u-tab-bar {
  1422. background-color: #00B962 !important;
  1423. }
  1424. }
  1425. .collapse {
  1426. padding: 0 32rpx;
  1427. }
  1428. }
  1429. .voltageShow {
  1430. color: rgba(119, 119, 119, 100);
  1431. font-size: 18px;
  1432. span {
  1433. float: right;
  1434. color: rgba(51, 51, 51, 100);
  1435. font-size: 18px;
  1436. // font-family: AlibabaPuHui-bold;
  1437. font-weight: 550;
  1438. }
  1439. }
  1440. .spread {
  1441. width: 100%;
  1442. background-color: rgba(244, 249, 247, 100);
  1443. text-align: center;
  1444. border: 1px solid rgba(206, 226, 217, 100);
  1445. color: rgba(153, 153, 153, 100);
  1446. line-height: 20px;
  1447. border-radius: 0px 0px 12px 12px;
  1448. padding: 4px 0;
  1449. .iconfont {
  1450. // font-size: 16px !important
  1451. }
  1452. }
  1453. .progress-bar-main {
  1454. .info-name2 {
  1455. color: #777777;
  1456. font-size: 14px;
  1457. }
  1458. .info-name {
  1459. font-weight: bold;
  1460. font-size: 20px;
  1461. }
  1462. }
  1463. @import "@/_theme.scss";
  1464. .tittle-font {
  1465. @include themeify {
  1466. font-size: themed('font-size7');
  1467. }
  1468. /* font-size: 24px;*/
  1469. position: fixed;
  1470. top: 12px;
  1471. right: 16px;
  1472. z-index: 99999;
  1473. }
  1474. .bot {
  1475. width: 100%;
  1476. height: 0;
  1477. padding-top: 100%;
  1478. border: 2px #00b962 dotted;
  1479. border-radius: 100%;
  1480. box-sizing: border-box;
  1481. position: absolute;
  1482. top: 0px;
  1483. left: 0px;
  1484. right: 0px;
  1485. margin: auto;
  1486. }
  1487. .progress-bar {
  1488. margin-bottom: 40rpx;
  1489. text-align: center;
  1490. // margin-top: 20px;
  1491. /deep/.u-circle-progress {
  1492. background-color: #f7f8f8 !important;
  1493. position: relative;
  1494. // min-width:220px;
  1495. // min-height: 220px;
  1496. }
  1497. .u-progress-content {
  1498. display: flex;
  1499. align-items: center;
  1500. justify-content: center;
  1501. }
  1502. .u-progress-dot {
  1503. width: 16rpx;
  1504. height: 16rpx;
  1505. border-radius: 50%;
  1506. background-color: #fb9126;
  1507. }
  1508. .u-progress-info {
  1509. @include themeify {
  1510. font-size: themed('font-size6');
  1511. }
  1512. /* font-size: 22px;*/
  1513. padding-left: 16rpx;
  1514. letter-spacing: 2rpx;
  1515. color: rgba(51, 51, 51, 100);
  1516. }
  1517. /deep/.u-progress-dot[data-v-05b104e0] {
  1518. display: none;
  1519. }
  1520. /deep/.u-circle-progress[data-v-cab6fc66] {
  1521. margin: 40rpx;
  1522. }
  1523. }
  1524. .starting {
  1525. /* height: 22px;*/
  1526. color: rgba(0, 185, 98, 100);
  1527. @include themeify {
  1528. font-size: themed('font-size3');
  1529. height: themed('font-size6');
  1530. }
  1531. /* font-size: 16px;*/
  1532. text-align: center;
  1533. margin-top: 10px;
  1534. }
  1535. .timer {
  1536. height: 43px;
  1537. color: rgba(51, 51, 51, 100);
  1538. @include themeify {
  1539. font-size: themed('font-size13');
  1540. }
  1541. /* font-size: 36px;*/
  1542. text-align: center;
  1543. margin-top: 40px;
  1544. }
  1545. .charged {
  1546. /* height: 20px;*/
  1547. color: rgba(153, 153, 153, 100);
  1548. @include themeify {
  1549. font-size: themed('font-size2');
  1550. height: themed('font-size5')
  1551. }
  1552. /* font-size: 14px;*/
  1553. text-align: center;
  1554. margin-top: 4px;
  1555. }
  1556. .cost {
  1557. // width: 50%;
  1558. padding: 0 50px;
  1559. margin-top: 16px;
  1560. margin: auto;
  1561. width: 280px;
  1562. display: flex;
  1563. justify-content: space-between;
  1564. .cost-top {
  1565. line-height: 33px;
  1566. text-align: center;
  1567. @include themeify {
  1568. font-size: themed('font-size7');
  1569. }
  1570. /* font-size: 24px;*/
  1571. position: relative;
  1572. .cost-font {
  1573. position: absolute;
  1574. top: 0;
  1575. right: -25px;
  1576. color: #ff6200;
  1577. @include themeify {
  1578. font-size: themed('font-size7');
  1579. }
  1580. /* font-size: 24px*/
  1581. }
  1582. }
  1583. .cost-bottom {
  1584. @include themeify {
  1585. line-height: themed('font-size5');
  1586. }
  1587. /* line-height: 20px;*/
  1588. color: #999999;
  1589. text-align: center;
  1590. }
  1591. }
  1592. .line {
  1593. width: 0;
  1594. height: 36px;
  1595. border: 1px solid rgba(237, 237, 237, 100);
  1596. margin-top: 10px;
  1597. background-color: #ededed;
  1598. }
  1599. .power {
  1600. display: flex;
  1601. justify-content: space-around;
  1602. padding: 0 55px;
  1603. margin-top: 40px;
  1604. .power-num {
  1605. /* height: 27px;*/
  1606. color: rgba(51, 51, 51, 100);
  1607. @include themeify {
  1608. font-size: themed('font-size5');
  1609. height: themed('font-size9');
  1610. }
  1611. /* font-size: 20px;*/
  1612. text-align: center;
  1613. }
  1614. .power-text {
  1615. /* height: 20px;*/
  1616. color: rgba(153, 153, 153, 100);
  1617. @include themeify {
  1618. font-size: themed('font-size2');
  1619. height: themed('font-size5');
  1620. }
  1621. /* font-size: 14px;*/
  1622. text-align: center;
  1623. }
  1624. }
  1625. .info {
  1626. display: flex;
  1627. justify-content: space-between;
  1628. margin: 0 80rpx;
  1629. // height: 48px;
  1630. line-height: 68rpx;
  1631. background-color: rgba(255, 255, 255, 100);
  1632. color: rgba(16, 16, 16, 100);
  1633. //border-bottom: 1px solid #ededed;
  1634. align-items: center;
  1635. .info-name{
  1636. white-space: pre;
  1637. }
  1638. .info-text {
  1639. line-height: 48rpx;
  1640. padding: 4rpx 0 4rpx;
  1641. //width: 200px;
  1642. text-align: right;
  1643. }
  1644. }
  1645. .info-min {
  1646. display: flex;
  1647. justify-content: space-between;
  1648. margin: 0 80rpx;
  1649. // height: 48px;
  1650. //line-height: 88rpx;
  1651. background-color: rgba(255, 255, 255, 100);
  1652. color: rgba(16, 16, 16, 100);
  1653. //border-bottom: 1px solid #ededed;
  1654. align-items: center;
  1655. .info-text {
  1656. line-height: 48rpx;
  1657. padding: 4rpx 0 4rpx;
  1658. //width: 200px;
  1659. text-align: right;
  1660. }
  1661. .info-text-min {
  1662. color: rgba(119, 119, 119, 1);
  1663. font-size: 24rpx;
  1664. //line-height: 48rpx;
  1665. padding: 4rpx 0 4rpx;
  1666. //width: 200px;
  1667. text-align: right;
  1668. }
  1669. }
  1670. .charge-infos {
  1671. padding: 20px 36px;
  1672. margin: 0 auto;
  1673. .item {
  1674. display: flex;
  1675. justify-content: space-between;
  1676. color: rgba(102, 102, 102, 100);
  1677. font-size: 18px;
  1678. margin-bottom: 12px;
  1679. .discounts {
  1680. color: red
  1681. }
  1682. }
  1683. }
  1684. .bottom2 {
  1685. padding: 12px 20px;
  1686. background-color: #fff;
  1687. position: fixed;
  1688. bottom: 0;
  1689. left: 0;
  1690. right: 0;
  1691. margin: auto;
  1692. }
  1693. .progress-bar3 {
  1694. margin-top: 16rpx;
  1695. display: flex;
  1696. justify-content: center;
  1697. .u-progress-content{
  1698. color: rgba(16, 16, 16, 1);
  1699. font-size: 72rpx;
  1700. font-weight: bold;
  1701. .progress-text{
  1702. font-size: 36rpx;
  1703. font-weight: bold;
  1704. }
  1705. }
  1706. }
  1707. .progress-bar2 {
  1708. text-align: center;
  1709. /deep/.u-circle-progress {
  1710. // margin-left: 23.3% !important;
  1711. position: relative;
  1712. }
  1713. .u-progress-content {
  1714. display: flex;
  1715. align-items: center;
  1716. justify-content: center;
  1717. }
  1718. .u-progress-dot {
  1719. width: 16rpx;
  1720. height: 16rpx;
  1721. border-radius: 50%;
  1722. background-color: #fb9126;
  1723. }
  1724. .u-progress-info {
  1725. display: block;
  1726. @include themeify {
  1727. font-size: themed('font-size11');
  1728. }
  1729. /* font-size: 32px;*/
  1730. padding-left: 16rpx;
  1731. letter-spacing: 2rpx;
  1732. color: rgba(51, 51, 51, 100);
  1733. .progress-text {
  1734. @include themeify {
  1735. font-size: themed('font-size2');
  1736. }
  1737. /* font-size: 14px;*/
  1738. text-align: center;
  1739. color: #666666;
  1740. }
  1741. }
  1742. /deep/.u-progress-dot[data-v-05b104e0] {
  1743. display: none;
  1744. }
  1745. /deep/.u-circle-progress[data-v-cab6fc66] {
  1746. margin: 40rpx;
  1747. }
  1748. }
  1749. .time-price {
  1750. display: flex;
  1751. justify-content: space-between;
  1752. padding: 0 65px;
  1753. .item-num {
  1754. /* height: 33px;*/
  1755. color: rgba(51, 51, 51, 100);
  1756. @include themeify {
  1757. font-size: themed('font-size7');
  1758. height: themed('font-size12')
  1759. }
  1760. /* font-size: 24px;*/
  1761. text-align: center;
  1762. }
  1763. .item-text {
  1764. eight: 20px;
  1765. color: rgba(153, 153, 153, 100);
  1766. @include themeify {
  1767. font-size: themed('font-size2');
  1768. }
  1769. /* font-size: 14px;*/
  1770. text-align: center;
  1771. }
  1772. }
  1773. // .bottom {
  1774. // background-color: #fff;
  1775. // display: flex;
  1776. // width: 91.4%;
  1777. // padding: 0 16px;
  1778. // margin:0 auto 40px;
  1779. // .u-size-default {
  1780. // border: 1px solid rgba(0, 185, 98, 100);
  1781. // color: #00b962;
  1782. // width: 44%;
  1783. // }
  1784. // }
  1785. // 反馈
  1786. .feedback {
  1787. padding: 40rpx 72rpx;
  1788. .title-1 {
  1789. color: rgba(16, 16, 16, 100);
  1790. font-size: 36rpx;
  1791. }
  1792. .title-2 {
  1793. color: rgba(102, 102, 102, 100);
  1794. margin-top: 8px;
  1795. line-height: 20px;
  1796. }
  1797. textarea {
  1798. margin-top: 16px;
  1799. width: 93.5%;
  1800. height: 100px;
  1801. background-color: rgba(228, 228, 228, 100);
  1802. color: rgba(153, 153, 153, 100);
  1803. font-size: 16px;
  1804. border-radius: 12px;
  1805. padding: 12px;
  1806. line-height: 23px;
  1807. }
  1808. .submit {
  1809. height: 80rpx;
  1810. line-height: 26px;
  1811. border-radius: 50px;
  1812. background-color: rgba(0, 185, 98, 100);
  1813. color: rgba(255, 255, 255, 100);
  1814. font-size: 36rpx;
  1815. margin-top: 16px;
  1816. }
  1817. }
  1818. </style>
  1819. <style lang="scss" scoped>
  1820. .oldTextClassF {
  1821. .electrovalence-monthlyCard {}
  1822. }
  1823. page {
  1824. background-color: #f6f8f8;
  1825. padding-bottom: 60px;
  1826. }
  1827. .to-recharge {
  1828. position: absolute;
  1829. right: 22px;
  1830. color: #333333
  1831. }
  1832. // 充电状态
  1833. .charge-state {
  1834. width: 100%;
  1835. }
  1836. .charge-state-2024-04-01 {
  1837. width: 100%;
  1838. background: linear-gradient(180deg, rgba(161, 206, 250, 1) 0%, rgba(161, 206, 250, 0) 100%);
  1839. .charge-state-img {
  1840. text-align: center;
  1841. img {
  1842. animation: rotate 5s linear infinite;
  1843. width: 520rpx;
  1844. height: 520rpx;
  1845. }
  1846. }
  1847. .charge-state-img2 {
  1848. text-align: center;
  1849. position: relative;
  1850. top: -392rpx;
  1851. height: 0;
  1852. img {
  1853. width: 250rpx;
  1854. height: 250rpx;
  1855. }
  1856. }
  1857. .charge-state-img3 {
  1858. text-align: center;
  1859. position: relative;
  1860. top: -310rpx;
  1861. height: 0;
  1862. font-size: 56rpx;
  1863. color: rgba(16, 16, 16, 1);
  1864. font-weight: bold;
  1865. }
  1866. @keyframes rotate {
  1867. from {
  1868. transform: rotate(0deg);
  1869. }
  1870. to {
  1871. transform: rotate(360deg);
  1872. }
  1873. }
  1874. }
  1875. // 充电信息
  1876. .charge-info {
  1877. background-color: #ffffff;
  1878. padding: 40rpx 0px 0px 0px;
  1879. margin: 0rpx 40rpx 0;
  1880. box-shadow: 0px 2px 8px 0px #1A095A34;
  1881. border-radius: 12px;
  1882. display: flex;
  1883. flex-wrap: wrap;
  1884. justify-content: space-between;
  1885. .info-item {
  1886. width: 33%;
  1887. text-align: center;
  1888. margin-bottom: 14px;
  1889. .content {
  1890. line-height: 33px;
  1891. color: rgba(51, 51, 51, 100);
  1892. font-size: 22px;
  1893. font-weight: 550;
  1894. }
  1895. .name {
  1896. line-height: 44rpx;
  1897. color: rgba(119, 119, 119, 100);
  1898. font-size: 32rpx;
  1899. }
  1900. }
  1901. }
  1902. //其他信息
  1903. .else-infos {
  1904. // /deep/.u-tab-item{
  1905. // padding: 0px 60rpx 0px 0px !important;
  1906. // }
  1907. // /deep/.u-tab-bar{
  1908. // transform: translate(2rpx, -100%)!important;
  1909. // }
  1910. padding: 0 24rpx 48rpx 24rpx;
  1911. background-color: #ffffff;
  1912. // width: 88.2%;
  1913. box-shadow: 0px 2px 8px 0px #1A095A34;
  1914. margin: 32rpx 40rpx 40rpx 40rpx;
  1915. border-radius: 12px;
  1916. .itemTips {
  1917. border: 1px solid rgba(0, 185, 98, 1);
  1918. background-color: rgba(235, 255, 246, 1);
  1919. color: rgba(16, 16, 16, 1);
  1920. padding: 24rpx 10rpx;
  1921. /deep/.chargingTag {
  1922. color: #ff3d00;
  1923. font-weight: bold;
  1924. margin: 0 6rpx;
  1925. }
  1926. /deep/.chargingTag2 {
  1927. color: #00b962
  1928. }
  1929. .itemTips1 {
  1930. font-weight: bold;
  1931. display: flex;
  1932. align-items: center;
  1933. padding: 0 20rpx;
  1934. color: rgba(0, 185, 98, 1);
  1935. font-size: 32rpx;
  1936. img {
  1937. height: 32rpx;
  1938. width: 32rpx;
  1939. }
  1940. }
  1941. .itemTips2 {
  1942. line-height: 40rpx;
  1943. margin: 10rpx 0 20rpx 0;
  1944. padding: 0 40rpx;
  1945. }
  1946. .itemTips3 {
  1947. padding: 0 40rpx;
  1948. margin-bottom: 10rpx;
  1949. .itemTips3Btn {
  1950. height: 62rpx;
  1951. }
  1952. }
  1953. }
  1954. .item {
  1955. display: flex;
  1956. justify-content: space-between;
  1957. line-height: 23px;
  1958. padding: 10px 0 10px 0;
  1959. border-bottom: 1px solid #E9EBEE;
  1960. .title {
  1961. // width: 100px;
  1962. width: 26.6vw;
  1963. color: rgba(16, 16, 16, 100);
  1964. font-size: 18px;
  1965. font-weight: 550;
  1966. .time {
  1967. font-size: 13px;
  1968. color: #666666 100%;
  1969. font-weight: normal;
  1970. }
  1971. }
  1972. .detail {
  1973. // width: 197px;
  1974. //width: 52.5vw;
  1975. color: rgba(16, 16, 16, 100);
  1976. font-size: 16px;
  1977. text-align: right;
  1978. .electrovalence {
  1979. .num {
  1980. color: rgba(255, 61, 0, 100);
  1981. margin-right: 4px;
  1982. }
  1983. }
  1984. .electrovalence-monthlyCard {
  1985. font-size: 28rpx;
  1986. color: #959595;
  1987. }
  1988. }
  1989. }
  1990. }
  1991. // 底部按钮
  1992. .bottom-qq {
  1993. border: 1px solid rgba(242, 242, 242, 1);
  1994. background: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 1) 100%);
  1995. position: fixed;
  1996. bottom: 0;
  1997. left: 0;
  1998. right: 0;
  1999. display: flex;
  2000. padding: 16rpx 40rpx 32rpx 40rpx;
  2001. z-index: 999;
  2002. .button-box {
  2003. min-width: 80%;
  2004. }
  2005. .img-box {
  2006. // width: 48rpx;
  2007. // height: 48rpx;
  2008. //padding: 24rpx 0;
  2009. text-align: center;
  2010. font-size: 24rpx;
  2011. img {
  2012. width: 48rpx;
  2013. height: 48rpx;
  2014. }
  2015. }
  2016. button {
  2017. margin-left: 40rpx;
  2018. display: flex;
  2019. align-items: center;
  2020. justify-content: center;
  2021. //width: 45.8%;
  2022. background-color: black;
  2023. color: #fff;
  2024. // background-color: rgba(255, 255, 255, 1);
  2025. // color: rgba(0, 185, 98, 1);
  2026. height: 96rpx;
  2027. border-radius: 50px;
  2028. font-size: 32rpx;
  2029. }
  2030. }
  2031. // 底部按钮
  2032. .bottom-ww {
  2033. background: white;
  2034. //position: fixed;
  2035. bottom: 0;
  2036. left: 0;
  2037. right: 0;
  2038. display: flex;
  2039. padding: 12px 24px;
  2040. padding-bottom: 12px;
  2041. z-index: 999;
  2042. .img-box {
  2043. width: 96rpx;
  2044. height: 96rpx;
  2045. padding: 24rpx 0;
  2046. background-color: rgba(210, 215, 213, 100);
  2047. text-align: center;
  2048. border-radius: 999px;
  2049. img {}
  2050. }
  2051. button {
  2052. width: 45.8%;
  2053. // background-color: black;
  2054. // color: #fff;
  2055. background-color: rgba(255, 255, 255, 1);
  2056. color: rgba(0, 185, 98, 1);
  2057. height: 80rpx;
  2058. border-radius: 50px;
  2059. font-size: 32rpx;
  2060. }
  2061. }
  2062. .showCoupon{
  2063. display: flex;
  2064. justify-content: space-between;
  2065. align-items: center;
  2066. padding: 0 ;
  2067. .padding1{
  2068. padding-left: 32rpx;
  2069. }
  2070. .padding2{
  2071. padding-right: 32rpx;
  2072. }
  2073. .showCoupon1{
  2074. .showCoupon111{
  2075. padding: 2rpx 24rpx;
  2076. border-radius: 8px 0px 8px 0px;
  2077. background-color: rgba(255, 61, 0, 1);
  2078. color: rgba(255, 255, 255, 1);
  2079. }
  2080. .showCoupon13{
  2081. padding-bottom: 32rpx;
  2082. font-weight: bold;
  2083. }
  2084. .showCoupon12{
  2085. color: red;
  2086. font-size: 48rpx;
  2087. font-weight: bold;
  2088. margin: 16rpx 0 4rpx 0;
  2089. }
  2090. }
  2091. .showCoupon2{
  2092. border-left: 1px solid #CFCFCF;
  2093. padding-left: 32rpx;
  2094. display: flex;
  2095. flex-direction: column;
  2096. align-items: center;
  2097. }
  2098. }
  2099. .useFreeCoupon{
  2100. padding: 40rpx 72rpx;
  2101. .title{
  2102. color: rgba(255, 61, 0, 1);
  2103. text-align: center;
  2104. margin-bottom: 10rpx;
  2105. }
  2106. .showCoupon{
  2107. background-color: #e4e4e4;
  2108. border-radius: 8px;
  2109. }
  2110. }
  2111. .showlottery{
  2112. /deep/.u-mode-center-box{
  2113. width: 700rpx !important;
  2114. background-color:unset;
  2115. }
  2116. /deep/.u-model{
  2117. background-color:unset;
  2118. }
  2119. }
  2120. </style>