dcCharging.vue 50 KB

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