dcCharging.vue 44 KB

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