dcCharging.vue 57 KB

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