dcCharging.vue 45 KB

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