dcCharging.vue 54 KB

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