dcCharging.vue 64 KB

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