dcCharging.vue 63 KB

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