dcCharging.vue 44 KB

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