dcCharging.vue 45 KB

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