dcCharging.vue 47 KB

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