dcCharging.vue 43 KB

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