dcCharging.vue 45 KB

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