dcCharging.vue 47 KB

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