dcCharging.vue 41 KB

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