dcCharging.vue 44 KB

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