dcCharging.vue 54 KB

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