chargingPileDetails.vue 76 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142
  1. <template>
  2. <view>
  3. <!-- chargingPileDetails -->
  4. <u-popup v-model="carTempBl" @open="carTempBlInit" :closeable="true" mode="bottom">
  5. <view style="margin-top: 18px;">
  6. <view style="font-size: 48rpx;">临时车牌:{{form.carNum}}</view>
  7. <ucarkeyboard style="position: inherit !important;" ref="uKeyboard" mode="car"
  8. @confirm="car.carNum=form.carNum,carTempBl=false" @cancel="carTempBl=false" :showTips="true"
  9. :mask-close-able="false" @change="valChange" @backspace="backspace"></ucarkeyboard>
  10. </view>
  11. </u-popup>
  12. <view v-show="step==1">
  13. <ujp-navbar title="费用说明页" :startGz="false"
  14. :custom-back="customback2" ref="ujpnavbar">
  15. </ujp-navbar>
  16. <view class="main2">
  17. <view class="item">
  18. <view class="title">
  19. 充电枪编号
  20. </view>
  21. <view class="content">
  22. {{gun.gunNo}}
  23. </view>
  24. </view>
  25. <view class="item">
  26. <view class="title">
  27. 充电枪名称-充电枪类型
  28. </view>
  29. <view class="content">
  30. {{detail.name}}-{{detail.interfaceType}}{{detail.chargingType}}
  31. </view>
  32. </view>
  33. <view class="item">
  34. <view class="title">
  35. 充电枪功率
  36. </view>
  37. <view class="content">
  38. {{detail.chargingPower}}kW
  39. </view>
  40. </view>
  41. <view class="item" v-if="price">
  42. <view class="title">
  43. 电费+服务费
  44. </view>
  45. <view class="content" v-if="personInfo&&personInfo.userType==2">
  46. 当前时段:{{price.startTime}}~{{price.endTime}} 费用为
  47. <span style="color: #00b962;">{{price.costPrice.toFixed(2)}} </span>元/度
  48. <span v-if="station.giveDiscount">(含电费{{price.electricityPrice.toFixed(2)}}元/度 +
  49. 服务费{{price.discountServicePrice.toFixed(2)}}元/度(折前价{{price.servicePrice.toFixed(2)}}元/度))</span>
  50. <span v-if="!station.giveDiscount">(含电费{{price.electricityPrice.toFixed(2)}}元/度 +
  51. 服务费{{price.servicePrice.toFixed(2)}}元/度)</span>
  52. </view>
  53. <view class="content" v-else>
  54. 当前时段:{{price.startTime}}~{{price.endTime}} 费用为
  55. <span style="color: #00b962;">{{(price.electricityPrice+price.servicePrice).toFixed(2)}}
  56. </span>元/度
  57. <span>(含电费{{price.electricityPrice.toFixed(2)}}元/度 +
  58. 服务费{{price.servicePrice.toFixed(2)}}元/度)</span>
  59. </view>
  60. </view>
  61. <view class="item" v-if="station.parkingDescription">
  62. <view class="title">
  63. 停车费用
  64. </view>
  65. <view class="content"
  66. v-html="station.parkingSimpleDescription?station.parkingSimpleDescription:station.parkingDescription">
  67. </view>
  68. </view>
  69. </view>
  70. </view>
  71. <view v-show="step==0">
  72. <ujp-navbar :title="pageTitle" :startGz="false" :custom-back="customback">
  73. <view class="iconfont service" @click="openModal">
  74. &#xe60d;
  75. </view>
  76. </ujp-navbar>
  77. <!-- 未插枪提示 -->
  78. <!-- <u-alert-tips type="warning" v-if="!isInsert" :description="description" :show-icon="true"></u-alert-tips>
  79. -->
  80. <view class="main">
  81. <view class="main-head">
  82. <view class="text" v-if="haveLock&&lockStatus==1">
  83. <view class="text-1">
  84. 请下降地锁
  85. </view>
  86. <view class="text-2">
  87. 请在<span style="color:red">{{lockSafeStopTime}}秒</span>内停车入位,以免地锁抬升对您的爱车造成损伤。
  88. </view>
  89. </view>
  90. <view class="text" v-else>
  91. <view class="text-1">
  92. {{isInsert?'可充电':'未插枪'}}
  93. </view>
  94. <view class="text-2" v-if="station.stationType==50">
  95. 可进行充电
  96. </view>
  97. <view class="text-2" v-else>
  98. {{isInsert?'充电枪已连接,可进行充电':'未检测到充电枪,若已插枪,请拔出重插'}}
  99. </view>
  100. </view>
  101. <view class="charge-img">
  102. <img src="@/assets/img/charge.png" alt="">
  103. </view>
  104. </view>
  105. <view class="charging-info">
  106. <view class="address">
  107. {{station.name}}
  108. <!-- <text class="explain" @click="step=1">费用说明</text> -->
  109. </view>
  110. <view class="name">
  111. <span style="font-weight: bold;color: #000;"
  112. v-if="station.stationType!=50&&gun.sortNo">{{gun.sortNo}}号/</span><span
  113. style="font-weight: bold;color: #000;">{{detail.name}}</span><span
  114. style="font-weight: bold;color: #000;"
  115. v-if="station.stationType!=50">枪{{channelNoShow(gun.channelNo,detail.manufacturer,gun.customNo)}}</span>
  116. <text class="free" v-if="gunDetail.chargingAppointment&&gunDetail.isMeAppoint">您已预约</text>
  117. <text class="free" v-else-if="gunDetail.chargingAppointment&&!gunDetail.isMeAppoint">已被预约</text>
  118. <text class="free " :class="'workStatusText'+gun.workStatus" v-else >{{gun.workStatusText}}</text>
  119. </view>
  120. <view v-if="gun.workStatus==6" @click="operating=true"
  121. style="margin-top: 10rpx;color: rgba(255, 56, 56, 1);font-size: 28rpx; display: flex; align-items: center;" >
  122. <span style="color: #fff;background: linear-gradient(93.02deg, rgba(255,56,56,1) 39.4%,rgba(255,124,112,1) 92.42%);
  123. border-radius: 4px;
  124. padding: 0rpx 10rpx;
  125. margin-right: 8rpx;
  126. font-size: 24rpx;
  127. line-height:40rpx;
  128. " >提醒</span>
  129. 点击查看恢复供电操作指示图
  130. <u-icon name="arrow-right"></u-icon>
  131. </view>
  132. <view v-if="quickChargeReduceMethod1(station)&&personInfo&&personInfo.userType==2"
  133. style="margin-top: 10rpx;color: rgba(255, 121, 0, 1);font-size: 28rpx; display: flex; align-items: center;" >
  134. <span style="color: #fff;background: linear-gradient(93.02deg, rgba(255,121,0,1) 39.4%,rgba(255,174,0,1) 93.51%);
  135. border-radius: 4px;
  136. padding: 0rpx 10rpx;
  137. margin-right: 8rpx;
  138. font-size: 24rpx;
  139. line-height:40rpx;
  140. " >活动</span>
  141. 快充订单满{{station.quickChargeDegree}}度服务费{{discountRatio10(station.quickChargeDiscountRatio)}}折
  142. </view>
  143. <view v-if="quickChargeReduceMethod2(station)&&personInfo&&personInfo.userType==2"
  144. style="margin-top: 10rpx;color: rgba(255, 121, 0, 1);font-size: 28rpx; display: flex; align-items: center;" >
  145. <span style="color: #fff;background: linear-gradient(93.02deg, rgba(255,121,0,1) 39.4%,rgba(255,174,0,1) 93.51%);
  146. border-radius: 4px;
  147. padding: 0rpx 10rpx;
  148. margin-right: 8rpx;
  149. font-size: 24rpx;
  150. line-height:40rpx;
  151. " >活动</span>
  152. 喜迎国庆,充电有奖
  153. </view>
  154. <!-- <view class="price" v-if="detail.stationAddress">
  155. <text class="unit">{{detail.stationAddress}}</text>
  156. </view> -->
  157. <view v-if="price" class="priceListBlMain">
  158. <view class="price-3-card-view " v-if="personInfo&&personInfo.userType==2&&(userCardBool&&userCard.classify==2||(!userCardBool&&prevMonthKwhBL))">
  159. <view class="price">
  160. <text class="span">{{price.costPrice.toFixed(2)}}</text><text class="unit">元/度</text>
  161. </view>
  162. <view class="price-3-card ">
  163. <view class="num1" v-if="!userCard||userCard.serviceFeeDiscountRate==60" >
  164. <img src="@/assets/img/9-4/6折卡价.svg" />
  165. </view>
  166. <view class="num1" style=" background: #303133;
  167. color: #f4f4f4;
  168. border-radius: 4px 0 4px 4px;
  169. padding: 0 3px;
  170. margin-right: 3px;" v-else >
  171. <span v-if="userCard.cardType==4" >折扣卡 </span>
  172. <span v-else >{{userCard.serviceFeeDiscountRate/10}}折卡 </span>
  173. </view>
  174. <text
  175. class="num">{{ (price.electricityPrice+(price.servicePrice*(userCard?userCard.serviceFeeDiscountRate/100:0.6))).toFixed(2)}}元/度</text>
  176. </view>
  177. </view>
  178. <view class="price-3-card-view " v-else-if="personInfo&&personInfo.userType==2&&((userCardBool&&userCard.classify==1)||(!userCardBool&&!prevMonthKwhBL))">
  179. <view class="price">
  180. <text class="span">{{price.costPrice.toFixed(2)}}</text><text class="unit">元/度</text>
  181. </view>
  182. <view class="price-3-card price-3-card-yue ">
  183. <view class="num1">
  184. <img src="@/assets/img/9-4/月卡价格.png" />
  185. </view>
  186. <text
  187. class="num">{{ (price.electricityPrice).toFixed(2)}}元/度</text>
  188. </view>
  189. </view>
  190. <view class="price" v-else-if="false&&personInfo&&personInfo.userType==2">
  191. <text class="span">{{price.costPrice.toFixed(2)}}</text><text class="unit">元/度</text>
  192. <text class="unit"
  193. v-if="station.giveDiscount">(折前价{{((price.electricityPrice*1000+price.servicePrice*1000)/1000).toFixed(2)}}元/度)</text>
  194. </view>
  195. <view class="price-2" v-else>
  196. <view class="price-4">
  197. <text>{{((price.electricityPrice*1000+price.servicePrice*1000)/1000).toFixed(2)}}</text><text
  198. class="unit">元/度</text>
  199. </view>
  200. <view class="price-3 " v-if="station.giveDiscount">
  201. <text class="num1">会员</text>
  202. <text class="num">{{price.costPrice.toFixed(2)}}</text>
  203. <text class="unit3 ">元/度</text>
  204. </view>
  205. </view>
  206. <view class="priceListBl" @click="priceListBl=!priceListBl">
  207. {{priceListBl?'收起':'详情'}}
  208. <u-icon :name="!priceListBl?'arrow-up':'arrow-down'"></u-icon>
  209. </view>
  210. </view>
  211. <view class="chat-box" v-show="priceListBl">
  212. <view class="chat_hhh">
  213. <view class="chatTime" v-for="(item,i) in pricesInfo" :key="i" :style="'width:'+getW(item)" :class="{
  214. current1: pricesInfoCurrent.startTime==item.startTime,
  215. current2: pricesInfoCurrent2.startTime==item.startTime,
  216. }" @click="chatShowBtn(item)">
  217. <view class="chatShow" v-show="chatShow" :class="{
  218. chatShowA:i<pricesInfo.length/2,
  219. chatShowB:i>pricesInfo.length/2,
  220. chatShowNo: pricesInfoCurrent2.startTime!=item.startTime,
  221. chatShowOk: pricesInfoCurrent2.startTime==item.startTime,
  222. }">
  223. <view>时段:<span class="">{{item.startTime}}-{{item.endTime}}</span></view>
  224. <view>电价:<span class="showspan">{{item.electricityPrice}}元/度</span></view>
  225. <view>服务费:<span class="showspan">{{(personInfo&&personInfo.userType==2)&&(station.giveDiscount||(item.discountServicePrice))?item.discountServicePrice:item.servicePrice}}元/度</span></view>
  226. </view>
  227. <template v-if="station">
  228. <template
  229. v-if="(personInfo&&personInfo.userType==2)&&(station.giveDiscount||(item.discountServicePrice))">
  230. <span class="chats1" :style="'height:'+getH(item.discountServicePrice)">
  231. {{item.discountServicePrice}}</span>
  232. </template>
  233. <template v-else>
  234. <span class="chats1" :style="'height:'+getH(item.servicePrice)">
  235. {{item.servicePrice}}</span>
  236. </template>
  237. </template>
  238. <span class="chats2" :style="'height:'+getH(item.electricityPrice)">
  239. <span>{{item.electricityPrice}}</span>
  240. <span class="chats0" v-if="pricesInfoCurrent.startTime==item.startTime">
  241. <span>当前</span>
  242. <span>时段</span>
  243. </span>
  244. <span class="chats9" v-else>
  245. <span>当前</span>
  246. <span>时段</span>
  247. </span>
  248. </span>
  249. </view>
  250. </view>
  251. <view class="chat_hhh_time">
  252. <span>00:00</span>
  253. <span>12:00</span>
  254. <span>24:00</span>
  255. </view>
  256. </view>
  257. <view class="discount-card"
  258. :class="{
  259. 'discount-card-4':userCard.cardType==4
  260. }"
  261. v-if="userCardBool&&userCard.classify==2">
  262. <view class="name" v-if="userCard.cardType==4">
  263. {{projectName}}{{userCard.monthlyRentName}}
  264. </view>
  265. <view class="name" v-else>
  266. 自营站充电服务费{{userCard.serviceFeeDiscountRate/10}}折卡
  267. </view>
  268. <view class="progress">
  269. <view class="time">
  270. {{thisendTime(userCard.endTime)}}到期 | 剩余{{setValidity(thisdaysDistance(userCard.endTime))}}
  271. </view>
  272. <view class="electric-quantity" v-if="userCard.chargeDegreeLimit">
  273. 已用{{userCard.chargedDegree?userCard.chargedDegree.toFixed(0):0.00}}度 /
  274. 共{{userCard.chargeDegreeLimit}}度
  275. </view>
  276. <view class="electric-quantity" v-if="userCard.chargeDegreeLimit==0&&userCard.saveInformation">
  277. 已用{{userCard.saveInformation.num}}次 /
  278. 共省{{userCard.saveInformation.saveMoney}}元
  279. </view>
  280. </view>
  281. <u-line-progress :show-percent="false" active-color="#2979ff" :percent="thispercent(userCard)">
  282. </u-line-progress>
  283. </view>
  284. </view>
  285. </view>
  286. <view class="carImg" v-if="personInfo&&personInfo.userType!=2">
  287. <img @click="gotoLogin" src="@/assets/img/gologin/img.png">
  288. </view>
  289. <view class="class20250501" v-else-if="!userCardBool">
  290. <view class="body1">
  291. <view class="text1">近半年您已花费<span>560</span>元用于充电</view>
  292. <view class="text2">如参与充值送折扣卡活动,预计可省 <span>42.8</span> 元</view>
  293. </view>
  294. <view class="body2">
  295. <view class="botton">查看活动详情</view>
  296. </view>
  297. </view>
  298. <!-- <view class="carImg3" :class="{
  299. 'carImg3-yue':!prevMonthKwhBL
  300. }"
  301. v-else-if="carImg3Bl&&!userCardBool">
  302. <view class="carImg2" v-if="prevMonthKwhBL" >
  303. <view>
  304. <view class="carImg-1">您近30天已充电{{carImg3span1}}度</view>
  305. <view class="carImg-2">如购买6折卡,可省约<span>{{carImg3span2}}</span>元</view>
  306. <view class="carImg-3" @click="gotoUrl('pages/discountCard/productDetails')">
  307. <span>点击购买</span>
  308. </view>
  309. </view>
  310. </view>
  311. <view class="carImg2-yue" v-if="!prevMonthKwhBL" >
  312. <view>
  313. <view class="carImg-1">您近30天已充电{{carImg3span1}}度</view>
  314. <view class="carImg-2">如购买月卡,可省约<span>{{carImg3span3}}</span>元</view>
  315. <view class="carImg-3" @click="gotoUrl('pages/monthlyCardActivity/monthlyCardBuy')">
  316. <span>点击购买</span>
  317. </view>
  318. </view>
  319. </view>
  320. </view>
  321. <view class="carImg3" v-else-if="carImg4Bl&&!userCardBool">
  322. <view class="carImg2" >
  323. <view>
  324. <view class="carImg-1">每月只需12.9元</view>
  325. <view class="carImg-2">前338度电可省约<span>67.6</span>元</view>
  326. <view class="carImg-3" @click="gotoUrl('pages/discountCard/productDetails')">
  327. <span>点击购买</span>
  328. </view>
  329. </view>
  330. </view>
  331. </view> -->
  332. <view class="slogan-4 " v-show="bannerListTop.length"
  333. @click="showTop=true,getBannerInfoTopBl=true">
  334. <u-icon :class="{
  335. imageshake :true
  336. }" size="45" name="gift"></u-icon>
  337. </view>
  338. <u-modal v-model="showTop" v-if="getBannerInfoTopBl" class="showOss showOssK" :show-title="false"
  339. :show-confirm-button="false">
  340. <view class="slot-content">
  341. <swiper class="swiper" circular :indicator-dots="true" :autoplay="true" :interval="2500"
  342. :duration="500">
  343. <swiper-item class="swiperitem" v-if="showNt">
  344. <u-image width="600" style="margin: auto;min-height: 250px;" mode="widthFix"
  345. v-show="showNtStep==0" src="@/assets/img/nt/f5surprised-1.png">
  346. <view slot="loading" style="height: 200px;">
  347. <u-loading mode="flower" size="186">
  348. </u-loading>
  349. </view>
  350. </u-image>
  351. <view style="color: #ecc07d;
  352. font-size: 64rpx;
  353. position: relative;
  354. top: -220rpx;
  355. right: -100rpx; width: 400rpx;" @click="showNtStepClick" v-show="showNtStep==0">
  356. <span>.</span>
  357. </view>
  358. <u-image width="600" height="700" style="margin: auto;;min-height: 250px;"
  359. mode="scaleToFill" v-show="showNtStep==1" src="@/assets/img/nt/f5surprised-2.png">
  360. </u-image>
  361. <u-image width="600" style="margin: auto;min-height: 250px;" mode="widthFix"
  362. v-show="showNtStep==2" src="@/assets/img/nt/nt-activity-3.png">
  363. </u-image>
  364. <u-image width="500" style="color: #FFFFFF;
  365. font-size: 64rpx;
  366. position: relative;
  367. top: -540rpx;
  368. right: -60rpx;height: 0;
  369. " mode="widthFix" v-show="showNtStep==2" src="@/assets/img/nt/f5surprised-3.png">
  370. </u-image>
  371. <view style="color: #ecc07d;
  372. font-size: 72rpx;
  373. position: relative;
  374. top: -180rpx;
  375. right: -144rpx; width: 310rpx;" @click="showNtStepClick" v-show="showNtStep==2">
  376. <span>.</span>
  377. </view>
  378. <view style="color: #FFFFFF;
  379. font-size: 64rpx;
  380. position: relative;
  381. top: -528rpx;
  382. right: -80rpx;" :style="{
  383. right:showNtValue>99?'-80rpx':(showNtValue>9?'-95rpx':'-110rpx')
  384. }" v-show="showNtStep==1"><b>{{showNtValue}}</b>
  385. <span style="font-size: 28rpx;">元</span>
  386. </view>
  387. <view style="color: #ecc07d;
  388. font-size: 72rpx;
  389. position: relative;
  390. top: -270rpx;
  391. right: -144rpx; width: 310rpx;" @click="showNtStepClick" v-show="showNtStep==1">
  392. <span>.</span>
  393. </view>
  394. </swiper-item>
  395. <swiper-item class="swiperitem" v-for="(item,i) in bannerListTop" :key="i">
  396. <u-image width="500" height="500" bgColor="#ff000000"
  397. style="margin: auto;min-height: 250px;" mode="widthFix" @click="clickBannerTopI(i)"
  398. :src="item.picUrl">
  399. <view slot="loading" style="height: 200px;">
  400. <u-loading mode="flower" size="186">
  401. </u-loading>
  402. </view>
  403. </u-image>
  404. </swiper-item>
  405. </swiper>
  406. <u-image width="36px" style="margin: auto; margin-top: 10px;" mode="widthFix" @click="showTop=false"
  407. src="@/assets/img/if-close-line-circled.png"></u-image>
  408. </view>
  409. </u-modal>
  410. <view class="bottom">
  411. <!-- 解锁中 -->
  412. <!-- <u-button shape="circle" type="success" style="opacity: 0.4;">
  413. 解锁中<img style="margin-left: 4px;" src="@/assets/static/img/riLine-refresh-line.svg" alt="">
  414. </u-button> -->
  415. <!-- 刷新充电枪状态 如果改动 ,请添加 方法判断startCarCharging -->
  416. <u-button shape="circle" type="success" v-if="gun&&gun.workStatus==2">充电中</u-button>
  417. <u-button shape="circle" type="success" v-else-if="!openBool">仅单位内部员工可用</u-button>
  418. <!-- 刷新充电枪状态 如果改动 ,请添加 方法判断startCarCharging -->
  419. <u-button shape="circle" type="success" @click="getPile()"
  420. v-else-if="gunDetail.chargingAppointment&&!gunDetail.isMeAppoint">已被预约</u-button>
  421. <!-- 刷新充电枪状态 如果改动 ,请添加 方法判断startCarCharging -->
  422. <u-button shape="circle" v-else-if="haveLock&&lockStatus==1" @click="lockDown()"
  423. style="background-color:#009ED7" type="success">下降地锁</u-button>
  424. <u-button shape="circle" v-else-if="!isInsert" @click="getPile()" type="success">刷新充电枪状态</u-button>
  425. <!-- 刷新充电枪状态 如果改动 ,请添加 方法判断startCarCharging -->
  426. <!-- 开始充电 -->
  427. <u-button shape="circle" type="success" v-else @click="charge()">开始充电</u-button>
  428. <view v-if="lastTiming&&lastTiming.startTime&&gunDetail.nextTiming">
  429. <view style="
  430. text-align: center;
  431. color: #FF9800;
  432. margin-top: 10px;
  433. " >
  434. <u-icon
  435. style=" margin-top: 2px;"
  436. size="30"
  437. name="info-circle"
  438. ></u-icon>
  439. 已设置{{lastTiming.startTime}}的定时充电,再次启动将会覆盖设置
  440. </view>
  441. <view @click="onShowRole = true,gotoUrl('pages/user/myReservation/chargingRe')"
  442. style="width: 100%; text-align: center;color: #00B962; margin-top: 10px;">
  443. 预约充电列表<u-icon name="arrow-right-double" color="#00B962" size="22"></u-icon>
  444. </view>
  445. </view>
  446. </view>
  447. <view class="carImg3" style=" background: 0;margin-top: 20rpx;" v-if="station.nightRemind&&station.nightRemindContent" >
  448. <img :src="station.nightRemindContent" style=" width: 100%;height: 200rpx;">
  449. </view>
  450. <view class="cost-explainMain" >
  451. <view class="cost-explain" >
  452. <view class="text">
  453. 充电记录
  454. </view>
  455. <view class="iconfont" style="
  456. font-size: 32rpx;
  457. text-align: right;" @click="gotoUrl('pages/record/index')">
  458. 查看&#xe600;
  459. </view>
  460. </view>
  461. <view class="cost-explain useFreeCoupon" v-if="station.useFreeCoupon" >
  462. ↑↑充电结束后查看记录使用“免费停车优惠劵”
  463. </view>
  464. <view class="cost-explain" v-if="station.id=='f62ce857-1301-4cf3-9c02-74d378c25ab2'" >
  465. <view class="text" style="width: 100%;">
  466. 费用说明
  467. <view class="iconfont" style="color: #1bbe6b;
  468. font-size: 28rpx;
  469. display: initial; float: right;" @click="step=1">
  470. 查看更多&#xe600;
  471. </view>
  472. </view>
  473. </view>
  474. <p style="text-indent: 2em; font-size: 28rpx;" v-if="station.id=='f62ce857-1301-4cf3-9c02-74d378c25ab2'" >
  475. 停车费调整:本停车场,新能源汽车充电,最高<span style="color:red">只减免2小时</span>停车费用,<span style="color:red">超出部分</span>按停车场规定缴费
  476. </p>
  477. <view class="cost-explain" v-else >
  478. <view class="text">
  479. 费用说明
  480. </view>
  481. <view class="iconfont" style="
  482. font-size: 32rpx;
  483. text-align: right;" @click="step=1">
  484. 查看&#xe600;
  485. </view>
  486. </view>
  487. <view class="cost-explain" :class="{
  488. 'cost-explain2':!car
  489. }" >
  490. <view class="text">
  491. 入场车辆
  492. </view>
  493. <view class="car-number" v-if="!car||!carplateMust" @click="carDet()">
  494. {{car?car.carNum:'填车牌号可减免部分停车费用'}}
  495. <img v-if="!car" src="@/assets/static/img/riLine-edit-box-line2.svg" alt="">
  496. </view>
  497. <view class="car-number" v-else >
  498. {{car?car.carNum:'填车牌号可减免部分停车费用'}}
  499. <!-- <img v-if="car&&car.carNum" @click="carTempBl=true"
  500. src="@/assets/static/img/riLine-edit-box-line2.svg" alt=""> -->
  501. <img @click="carTempBl=true" src="@/assets/static/img/riLine-edit-box-line2.svg" alt="">
  502. </view>
  503. </view>
  504. </view>
  505. <!--提示 -->
  506. <view class="tips">
  507. <p class="p" @click="chargeTest">站点标签:</p>
  508. <view class="sign" v-if="station.stationType==50">
  509. <view class="sign-tag sign-0" v-if="station.isRecommend">推荐</view>
  510. <view class="sign-tag sign-5" v-if="station.isAlways">常用</view>
  511. <view class="sign-tag sign-6" v-if="station.isSpecial">特价</view>
  512. {{station.address}}
  513. </view>
  514. <view class="sign" v-else>
  515. <view class="sign-tag sign-0" v-if="station.isRecommend">推荐</view>
  516. <view class="sign-tag sign-5" v-if="station.isAlways">常用</view>
  517. <view class="sign-tag sign-6" v-if="station.isSpecial">特价</view>
  518. <!-- -->
  519. <view class="sign-1 sign-tag "
  520. v-if="station.giveDiscount&&station.discountRatio&&station.discountRatio!=100">
  521. 会员{{discountRatio10(station.discountRatio)}}折</view>
  522. <view class="sign-3 sign-tag" v-if="station.category=='超充'">160kW超充站</view>
  523. <view class="sign-4 sign-tag" v-if="station.nightLowPriceEnabled">
  524. 夜间超低价</view>
  525. <view class="sign-2 sign-tag" v-if="station.platformType==1">自营站</view>
  526. <view class="sign-2 sign-tag" v-if="station.tagList.length != 0"
  527. v-for="(tagName,tagIndex) in station.tagList" :style="'border: 1px solid '+tagNameBy(tagName,1)+';color:'+tagNameBy(tagName,1)"
  528. :key="tagIndex">{{tagNameBy(tagName,0)}}</view>
  529. </view>
  530. <p class="p" @click="chargeTest" style="margin-top: 20rpx;">注意事项:</p>
  531. <!-- <view class="content" v-if="!isInsert">
  532. 点击降锁后,请稍等几十秒,待地锁完全下降后,再驶入车位。
  533. </view> -->
  534. <view class="content">
  535. 1.车停好,请熄火后再充电;<br />
  536. 2.请确保充电枪插接到位;<br />
  537. 3.车辆充电时,请关闭车内电源;<br />
  538. 4.充电完毕,请及时拔枪;<br />
  539. 5.填写车牌号,离场时可减免部分停车费。
  540. </view>
  541. </view>
  542. <!-- 弹窗 -->
  543. <view>
  544. <u-modal v-model="show" @confirm="confirmPhone" :confirm-text="confirmText" confirm-color="#606266"
  545. :show-cancel-button="true" ref="uModal" :asyncClose="true" :title="title" :content="consumerPhone"
  546. :content-style="{fontSize: '24px',color: '#101010'}"></u-modal>
  547. </view>
  548. </view>
  549. <u-modal v-model="showNt" class="showOss2" :show-title="false" :show-confirm-button="false">
  550. <view class="slot-content">
  551. <u-image width="600" style="margin: auto;min-height: 250px;" mode="widthFix" v-show="showNtStep==0"
  552. src="@/assets/img/nt/news-activity-2.png">
  553. <view slot="loading" style="height: 200px;">
  554. <u-loading mode="flower" size="186">
  555. </u-loading>
  556. </view>
  557. </u-image>
  558. <view style="color: #ecc07d;
  559. font-size: 64rpx;
  560. position: relative;
  561. top: -220rpx;
  562. right: -100rpx; width: 400rpx;" @click="showNtStepClick" v-show="showNtStep==0">
  563. <span>.</span>
  564. </view>
  565. <u-image width="600" style="margin: auto;min-height: 250px;" mode="widthFix" v-show="showNtStep==1"
  566. src="@/assets/img/nt/news-activity-1.png">
  567. </u-image>
  568. <view style="color: #FFFFFF;
  569. font-size: 64rpx;
  570. position: relative;
  571. top: -600rpx;
  572. right: -80rpx;" :style="{
  573. right:showNtValue>99?'-80rpx':(showNtValue>9?'-95rpx':'-110rpx')
  574. }" v-show="showNtStep==1"><b>{{showNtValue}}</b>
  575. <span style="font-size: 28rpx;">元</span>
  576. </view>
  577. <view style="color: #ecc07d;
  578. font-size: 72rpx;
  579. position: relative;
  580. top: -290rpx;
  581. right: -144rpx; width: 310rpx;" @click="showNtStepClick" v-show="showNtStep==1">
  582. <span>.</span>
  583. </view>
  584. </view>
  585. </u-modal>
  586. <u-modal v-model="show3" class="showOss" confirm-text="注册会员" cancel-text="先不注册" :show-title="false" width="650"
  587. border-radius="30" title="" :show-cancel-button="false" :show-confirm-button="false">
  588. <view class="slot-content">
  589. <!-- :show-title="false" -->
  590. <view>
  591. <img v-if="branchParameterBl('ud')" src="@/assets/img/gologin/nipic.png" style="width: 100%;"></img>
  592. <img v-else src="@/assets/img/Nipic_24385267_20191128181916139081.png" style="width: 100%;"></img>
  593. </view>
  594. <view>
  595. <table class="classtable">
  596. <tr>
  597. <td class="td1">
  598. <img src="@/assets/img/Nipic_vip.png" style="width: 24px;"></img>
  599. <p style="color: #FF9800;line-height: 10px;">会员</p>
  600. </td>
  601. <td class="td2">
  602. <p v-if="branchParameterBl()" ><span class="dian">·</span>充电最低<span style="color:#4aa461">0.66元</span>/度(含服务费)</p>
  603. <p><span class="dian">·</span>账户充值赠送代金券</p>
  604. <p><span class="dian">·</span>更有<span style="color:#4aa461">会员充电折扣、服务费包月会员资格</span>等超多福利
  605. </p>
  606. <p v-if="branchParameterBl('ud')"><span class="dian">·</span>与51充电联盟会员共享数据,包括账户余额、优惠卡券等</p>
  607. </td>
  608. </tr>
  609. <tr>
  610. <td style="color: #fff;line-height: 3px;">.</td>
  611. </tr>
  612. <tr>
  613. <td class="td1">
  614. <img src="@/assets/img/Nipic_youke.png" style="width: 24px;"></img>
  615. <p style="color: rgb(74, 164, 97);line-height: 10px;">游客</p>
  616. </td>
  617. <td class="td2">
  618. <p><span class="dian">·</span>临时车牌快速充电</p>
  619. <p><span class="dian">·</span>无需注册 先付后退</p>
  620. <p><span class="dian">·</span><span style="color:#F44336">不可使用</span>平台各类代金券</p>
  621. </td>
  622. </tr>
  623. </table>
  624. </view>
  625. <view class="btnview">
  626. <!-- <u-button shape="circle" @click="show3=false"
  627. style=" width: 200rpx; background-color: #fff !important; margin: 20rpx;float: left;margin-bottom: 20px; "
  628. szie="mini" type="success" plain>继续充电</u-button> -->
  629. <view class="btnview1">
  630. <u-button shape="circle" style=" float: left; width: 400rpx; margin: 20rpx; " szie="mini"
  631. type="success" @click="gotoUrl('pages/login/login')">注册会员</u-button>
  632. </view>
  633. <view class="btnview2" @click="show3=false,show4=true">暂不注册,先充电</view>
  634. </view>
  635. </view>
  636. </u-modal>
  637. <u-modal v-model="quickChargingBl" class="quickMain" confirm-text="注册会员" cancel-text="先不注册" :show-title="false" width="650"
  638. border-radius="30" title="" :show-cancel-button="false" :show-confirm-button="false">
  639. <view class="quickMain-slot-content">
  640. <!-- :show-title="false" -->
  641. <view class="quickMain-img">
  642. <img src="@/assets/img/member/10.png" ></img>
  643. </view>
  644. <view class="quickMain-bodyMain" >
  645. <view class="quickMain-body">
  646. <view class="quickMain-text1">快捷充电功能上线!</view>
  647. <view class="quickMain-text2">
  648. 恭喜您达到
  649. <img src="@/assets/img/9-4/白金会员.svg" ></img>
  650. <span style="color:#3F51B5;">白金会员</span>等级,您已获得<span style="color: #19be6b;">【快捷充电】</span>功能体验资格。
  651. </view>
  652. <view class="quickMain-text2">
  653. 当您插枪扫码后,在个人账户余额充足的情况下,自动帮您选择充满自停模式并开始充电。如需关闭此功能,可在“我的”-“设置”中修改。
  654. </view>
  655. </view>
  656. <view class="btnview">
  657. <!-- <u-button shape="circle" @click="show3=false"
  658. style=" width: 200rpx; background-color: #fff !important; margin: 20rpx;float: left;margin-bottom: 20px; "
  659. szie="mini" type="success" plain>继续充电</u-button> -->
  660. <view class="btnview1">
  661. <u-button shape="circle" style=" float: left; width: 400rpx; margin: 20rpx; " szie="mini"
  662. type="success" @click="checkedChange2(1)">同意并记住我的选择</u-button>
  663. </view>
  664. <view class="btnview2" @click="checkedChange2(0)">暂不启用</view>
  665. </view>
  666. </view>
  667. </view>
  668. </u-modal>
  669. <u-modal v-model="carplateMustModel" :mask-close-able="true"
  670. @cancel="carTempBl=true" :title="station.name+'提醒您'"
  671. cancel-text="其他车牌号" :confirm-text="car?car.carNum:''" :show-cancel-button="true" >
  672. <view @click="carplateMustModel=false"
  673. style=" position: absolute;
  674. top: 0;
  675. right: 3px;">关闭</view>
  676. <view style="padding: 20px;">
  677. 当前绑定的车牌号为<span style="color:#19be6b">{{car?car.carNum:''}}</span><br/>
  678. 车辆充电,车牌号一致可<span style="color:#FF5722">减免停车费</span>,不一致可使用临时车牌号,用于出入停车场
  679. </view>
  680. </u-modal>
  681. <u-modal v-model="show1" @confirm="gotoGz" cancel-text="暂不关注" confirm-text="前往关注" :show-cancel-button="false"
  682. confirm-color="#53b56b" ref="uModal2" :asyncClose="true">
  683. <view style="padding: 15px;">请先关注<span style=" color: #53b56b;">{{projectName}}</span>公众号,然后进行车辆充电</view>
  684. </u-modal>
  685. <quickRegistration v-if="show4" @login="loginMethod" :carNum="car?car.carNum:''" ></quickRegistration>
  686. <u-popup v-model="operating" mode="center" >
  687. <view @click="operating=false"
  688. style="background-color: #53a849;
  689. text-align: center;
  690. width: 600rpx; ">
  691. <img style=" width: 400rpx;"
  692. src="@/assets/img/gologin/操作指引-tuya.png"></img>
  693. </view>
  694. </u-popup>
  695. </view>
  696. </template>
  697. <script>
  698. import * as loginApi from '@/apis/login.js'
  699. import * as API_index from '@/apis/index.js'
  700. import * as API from "@/apis/chargeProcess.js"
  701. import * as userApi from '@/apis/user.js'
  702. import * as newsApi from '@/apis/news.js'
  703. import ucarkeyboard from '@/components/Ucarkeyboard.vue'
  704. import * as API_weixin from '@/apis/weixin.js'
  705. import quickRegistration from '@/components/QuickRegistration.vue'
  706. import {
  707. newDate,
  708. hourDistanceArr,
  709. currentTimeStamp,
  710. parseUnixTime,
  711. daysDistance
  712. } from '@/utils'
  713. export default {
  714. components: {
  715. ucarkeyboard,quickRegistration
  716. },
  717. data() {
  718. return {
  719. pageTitle:"充电枪详情",
  720. show1: false,
  721. show2: false,
  722. show3: false,
  723. show4: false,
  724. operating:false,
  725. carImg3Bl:false,
  726. carImg4Bl:false,
  727. carImg3span1:0,
  728. carImg3span2:0,
  729. carImg3span3:0,
  730. pricesInfoCurrent: {},
  731. pricesInfoCurrent2: {},
  732. show3: false,
  733. temporaryCarNum: "",
  734. form: {
  735. carNum: '',
  736. defaultFlag: true,
  737. },
  738. priceListBl: false,
  739. pricesInfo: [],
  740. showNt: false,
  741. showNtStep: 0,
  742. showNtValue: 30,
  743. station: {},
  744. step: 0,
  745. bannerList: [],
  746. isInsert: false,
  747. isReady: false,
  748. onShowRole: false,
  749. id: "",
  750. car: {},
  751. isback: false,
  752. gun: {},
  753. prices: {},
  754. personInfo: {},
  755. price: {
  756. costPrice: 0,
  757. electricityPrice: 0,
  758. discountServicePrice: 0,
  759. servicePrice: 0,
  760. },
  761. gunDetail: {},
  762. haveLock: false,
  763. lockSafeStopTime: 0,
  764. lockStatus: '', // 1抬锁 2落锁
  765. carplateMust: false,
  766. detail: {
  767. no: '',
  768. interface: '',
  769. type: '',
  770. power: 0,
  771. price: [
  772. ]
  773. },
  774. consumerPhone: "",
  775. description: '充电前请确保您的车辆已与充电桩连接!并关闭车内电源。',
  776. show: false,
  777. title: '联系客服',
  778. showVin: false,
  779. confirmText: '拨打电话',
  780. content: '余额不足5,请先充值。',
  781. carDetText: '',
  782. userCard: null,
  783. canUse: false,
  784. openStatus: 0,
  785. isVip: false,
  786. openBoolShow: false,
  787. carTempBl: false,
  788. maxlength: 8,
  789. chatShowId: "",
  790. chatShow: false,
  791. startCarChargingBl:false,
  792. quickChargingBl:false,
  793. carplateMustModel:false,
  794. carplateMustModelFirst:true,
  795. projectName: "",
  796. showrecharge:"",
  797. bannerListTop:[],
  798. getBannerInfoTopBl:true,
  799. showTop:false,
  800. showTopImg:"",
  801. showTopIndex: 0,
  802. YSTX:"",
  803. lastTiming:{}
  804. }
  805. },
  806. computed: {
  807. prevMonthKwhBL(){
  808. if(this.carImg3span1>=1000){
  809. return false
  810. }
  811. return true
  812. },
  813. openBool() {
  814. if (this.openStatus == '3') {
  815. return this.isVip
  816. }
  817. return true
  818. },
  819. userCardBool() {
  820. if (this.userCard) {
  821. var date = new Date().getTime()
  822. var reg = new RegExp('-', 'gi')
  823. var str = this.userCard.endTime;
  824. //console.log(str.replace(reg,'/'))
  825. var date2 = new Date(str.replace(reg, '/')).getTime();
  826. if (date < date2) {
  827. return true;
  828. }
  829. }
  830. return false
  831. },
  832. },
  833. onShow() {
  834. console.log("1111")
  835. uni.hideToast();
  836. this.checkSubscribe()
  837. if (this.onShowRole) {
  838. this.getPile()
  839. }
  840. },
  841. onReady() {
  842. },
  843. onLoad(op) {
  844. this.init(op)
  845. },
  846. methods: {
  847. onShowK() {
  848. console.log("222")
  849. uni.hideToast();
  850. this.checkSubscribe()
  851. if (this.onShowRole) {
  852. this.getPile()
  853. }
  854. },
  855. init(op){
  856. this.projectName = process.car.ProjectName;
  857. var consumerPhone = "400-8899-619"
  858. // img="https://yktwechat.xiaoxinda.com/config/xxd2021.jpg"
  859. if (consumerPhone) {
  860. this.consumerPhone = consumerPhone
  861. }
  862. var carDetText = "填写车牌号,充电时可以减免部分停车费用"
  863. // img="https://yktwechat.xiaoxinda.com/config/xxd2021.jpg"
  864. if (carDetText) {
  865. this.carDetText = carDetText
  866. }
  867. if( this.branchParameterBl('ud')){
  868. //this.getf5surprised()
  869. this.getBannerInfoTop("home-top2");
  870. }
  871. try{
  872. }catch(e){
  873. }
  874. this.findNoLTextConfigure()
  875. //this.startCarCharging()
  876. if (op.isback) {
  877. this.isback = true
  878. }
  879. if (op.id) {
  880. this.id = op.id
  881. var personInfo = this.carhelp.getPersonInfo()
  882. this.personInfo = personInfo
  883. var userInfo = this.carhelp.getPersonInfo();
  884. if (this.personInfo && this.personInfo.userType == "1") {
  885. this.show3 = true
  886. }else{
  887. }
  888. if (userInfo && userInfo.id) {
  889. //this.getNewYear()
  890. } else {
  891. //this.getBannerInfoTop("home-top");
  892. }
  893. this.getPile()
  894. } else {
  895. uni.showToast({
  896. title: "请扫码充电"
  897. })
  898. }
  899. },
  900. findNoLTextConfigure(){
  901. loginApi.findNoLTextConfigure().then((response) => {
  902. this.carhelp.setConfig(response.data.configure)
  903. this.YSTX=this.carhelp.getConfig().YSTX
  904. }).catch(error => {
  905. uni.showToast({
  906. title: error,
  907. icon: "none"
  908. })
  909. })
  910. },
  911. loginMethod(){
  912. var personInfo = this.carhelp.getPersonInfo()
  913. this.personInfo = personInfo
  914. this.getPile()
  915. },
  916. cancelGz() {
  917. this.carhelp.setGzDate()
  918. },
  919. gotoGz() {
  920. this.carhelp.setGzDate()
  921. var url = process.car.gzUrl;
  922. window.location.href = url
  923. },
  924. checkSubscribe() {
  925. API_weixin.checkSubscribe({
  926. openId: this.carhelp.getOpenId()
  927. }).then((res) => {
  928. if (res.data == "0") {
  929. this.show1 = true
  930. } else {
  931. //this.init();
  932. this.show1 = false;
  933. this.show2 = true;
  934. //this.carhelp.setGzDate()
  935. }
  936. //setGzDate
  937. }).catch(error => {
  938. uni.showToast({
  939. title: error
  940. })
  941. })
  942. },
  943. checkedChange2(checked2) {
  944. uni.showLoading({
  945. title: "加载中",
  946. mask: true,
  947. })
  948. API_index.changeQuickCharging({qucikStatus: checked2}).then((res) => {
  949. var userInfo = this.carhelp.getPersonInfo();
  950. userInfo.quickCharging=checked2;
  951. this.carhelp.setPersonInfo(userInfo);
  952. this.quickChargingBl=false;
  953. uni.hideLoading();
  954. if(checked2){
  955. this.startCarCharging()
  956. }
  957. }).catch(error => {
  958. uni.showToast({
  959. title: error,
  960. icon: "none"
  961. })
  962. })
  963. },
  964. chatShowBtn(item) {
  965. if(this.chatShow == false){
  966. this.chatShow = true
  967. }else if(item.startTime!=this.pricesInfoCurrent2.startTime){
  968. this.chatShow = true
  969. }else{
  970. this.chatShow = false
  971. }
  972. this.pricesInfoCurrent2=item
  973. },
  974. clickBannerTopI(i) {
  975. var mod = this.bannerListTop[i];
  976. //this.showTop = false;
  977. this.clickBanner(0, true, mod)
  978. },
  979. clickBannerTop() {
  980. var mod = this.bannerListTop[this.showTopIndex];
  981. this.showTop = false;
  982. this.clickBanner(0, true, mod)
  983. },
  984. clickBanner(index, bl, modout) {
  985. var uurl = "";
  986. var mod = {}
  987. if (modout) {
  988. mod = modout;
  989. }else{
  990. mod =this.bannerList[index]
  991. }
  992. mod.clickUrl = mod.linkUrl
  993. if (mod.linkPicUrl && !bl) {
  994. this.showOss = true;
  995. this.showOssImg = mod.linkPicUrl;
  996. this.showOssIndex = index;
  997. } else if (mod.clickUrl == null) {
  998. } else if (mod.clickUrl.indexOf('http') == 0) {
  999. window.location = mod.clickUrl + uurl;
  1000. } else if (mod.clickUrl.slice(-5) == 'login' && this.userId) {
  1001. } else if (mod.clickUrl.indexOf('#/') == 0) {
  1002. if (mod.clickUrl.indexOf("?") == -1) {
  1003. mod.clickUrl += '?';
  1004. }
  1005. var url = mod.clickUrl.split("#")[1]
  1006. //window.location = mod.clickUrl;
  1007. uni.navigateTo({
  1008. url: url + uurl
  1009. })
  1010. } else if (mod.clickUrl == '#' || mod.clickUrl == '') {
  1011. } else {
  1012. uni.navigateTo({
  1013. url: mod.clickUrl + uurl
  1014. })
  1015. }
  1016. },
  1017. getBannerInfo(code) {
  1018. uni.showLoading({
  1019. title: "加载中",
  1020. mask: true,
  1021. })
  1022. newsApi.getBannerInfo(code).then((res) => {
  1023. uni.hideLoading();
  1024. this.bannerList = res.data;
  1025. // document.getElementsByClassName("uni-swiper-wrapper")[0].parentNode.style="background-color: rgb(255, 255, 255); height: 300px;"
  1026. }).catch(error => {
  1027. uni.showToast({
  1028. title: error,
  1029. icon: "none"
  1030. })
  1031. })
  1032. },
  1033. thisdaysDistance(endTime) {
  1034. var date = new Date()
  1035. var date2 = newDate(endTime);
  1036. return daysDistance(date, date2)
  1037. },
  1038. thisendTime(endTime) {
  1039. if (endTime) {
  1040. var reg = new RegExp('-', 'gi')
  1041. var str = endTime.substring(0, 10).replace(reg, '.')
  1042. return str
  1043. }
  1044. return ''
  1045. },
  1046. thispercent(userCard) {
  1047. if(userCard.classify==1||(userCard.classify==2&&userCard.chargeDegreeLimit==0)){
  1048. var k1=daysDistance(userCard.startTime, userCard.endTime)
  1049. var k2=this.thisdaysDistance(userCard.endTime)
  1050. var p=(k1-k2)/k2* 100
  1051. if (p > 100) {
  1052. p = 100
  1053. }
  1054. return p.toFixed(0)
  1055. }else if(userCard.classify==2){
  1056. var p = 0
  1057. if (userCard && userCard.chargeDegreeLimit) {
  1058. p = userCard.chargedDegree / userCard.chargeDegreeLimit * 100
  1059. }
  1060. if (p > 100) {
  1061. p = 100
  1062. }
  1063. return p.toFixed(0)
  1064. }else{
  1065. return 0
  1066. }
  1067. },
  1068. carTempBlInit() {
  1069. var aaa = this.$refs.uKeyboard.changeCarInputValue();
  1070. console.log(aaa)
  1071. if (this.form.carNum.length && !aaa) {
  1072. var c = this.$refs.uKeyboard.changeCarInputMode();
  1073. }
  1074. },
  1075. // 按键被点击(点击退格键不会触发此事件)
  1076. // 按键被点击(点击退格键不会触发此事件)
  1077. valChange(val) {
  1078. if (this.form.carNum.length >= this.maxlength) {
  1079. return
  1080. }
  1081. if (true) {
  1082. this.form.carNum += val;
  1083. } else {
  1084. }
  1085. // 将每次按键的值拼接到form.carNum变量中,注意+=写法
  1086. //(this.form.carNum);
  1087. var aaa = this.$refs.uKeyboard.changeCarInputValue();
  1088. if ((this.form.carNum.length == 0) && aaa) {
  1089. this.$refs.uKeyboard.changeCarInputMode();
  1090. } else if (!aaa) {
  1091. this.$refs.uKeyboard.changeCarInputMode();
  1092. }
  1093. },
  1094. // 退格键被点击
  1095. backspace() {
  1096. // 删除form.carNum的最后一个字符
  1097. if (this.form.carNum.length) {
  1098. if (true) {
  1099. this.form.carNum = this.form.carNum.substr(0, this.form.carNum.length - 1);
  1100. } else {
  1101. //this.selectIndex=-1;
  1102. }
  1103. }
  1104. //(this.form.carNum);
  1105. var aaa = this.$refs.uKeyboard.changeCarInputValue();
  1106. if (this.form.carNum.length == 0 && aaa) {
  1107. this.$refs.uKeyboard.changeCarInputMode();
  1108. }
  1109. },
  1110. lockDown() {
  1111. uni.showLoading({
  1112. title: "加载中",
  1113. mask: true,
  1114. })
  1115. API.lockDown({
  1116. gunId: this.gun.id
  1117. }).then((res) => {
  1118. uni.hideLoading()
  1119. this.lockStatus = res.data.lockStatus
  1120. setTimeout(() => {
  1121. this.getPile()
  1122. }, 5 * 1000)
  1123. }).catch(error2 => {
  1124. uni.showToast({
  1125. title: error2
  1126. })
  1127. })
  1128. },
  1129. workStatus2() {
  1130. API_index.findChargeData().then((res) => {
  1131. var list = res.data.chargingRecordList;
  1132. var obj = null;
  1133. for (var i = 0; i < list.length; i++) {
  1134. if (list[i].deviceNo == this.detail.deviceNo && list[i].channelNo == this.gun.channelNo) {
  1135. obj = list[i];
  1136. break;
  1137. }
  1138. }
  1139. if (obj) {
  1140. uni.redirectTo({
  1141. url: "/pages/searchPile/chargeProcess/dcCharging?id=" + obj.id
  1142. })
  1143. }
  1144. }).catch(error => {
  1145. uni.showToast({
  1146. title: error,
  1147. icon: "none"
  1148. })
  1149. })
  1150. },
  1151. priceDetail() {
  1152. uni.navigateTo({
  1153. url: 'chargePriceDetails?stationId=' + this.detail.stationId + "&type=" + this.detail.type +
  1154. "&id=" + this.detail.id
  1155. })
  1156. },
  1157. customback2() {
  1158. this.step = 0;
  1159. },
  1160. customback() {
  1161. if (this.isback) {
  1162. if (this.$refs.ujpnavbar) {
  1163. this.$refs.ujpnavbar.navberBack()
  1164. } else {
  1165. uni.navigateBack({
  1166. })
  1167. }
  1168. } else {
  1169. uni.reLaunch({
  1170. url: "/pages/login/welcome"
  1171. })
  1172. }
  1173. },
  1174. gotoLogin() {
  1175. this.onShowRole = true
  1176. if (false) {
  1177. } else {
  1178. uni.navigateTo({
  1179. url: "/pages/login/login?jpcode=jp_team51_charge_id:A_" + this.id
  1180. })
  1181. }
  1182. },
  1183. carTemp() {
  1184. },
  1185. carDet(t) {
  1186. if(this.car&&this.car.carNum){
  1187. return
  1188. }
  1189. this.onShowRole = true
  1190. var url="/pages/user/car/carDet?jpcode=jp_team51_charge_id:A_" + this.id
  1191. if( this.car&& this.car.id){
  1192. url+="&id="+this.car.id
  1193. }
  1194. uni.navigateTo({
  1195. url: url
  1196. })
  1197. },
  1198. openModal() {
  1199. this.show = true;
  1200. },
  1201. confirmPhone() {
  1202. this.show = false;
  1203. uni.makePhoneCall({
  1204. phoneNumber: this.consumerPhone //仅为示例
  1205. });
  1206. },
  1207. role(bl) {
  1208. if (bl) {
  1209. return true;
  1210. }
  1211. if (this.carplateMust) {
  1212. if (this.car && this.car.carNum) {
  1213. } else {
  1214. uni.showModal({
  1215. title: "提示",
  1216. content: "填写车牌号,离场时可减免部分停车费",
  1217. confirmText: "填写车牌号",
  1218. cancelText: "继续充电",
  1219. success: res1 => {
  1220. if (res1.confirm) {
  1221. this.carDet()
  1222. } else if (res1.cancel) {
  1223. //('用户点击取消');
  1224. this.charge(true)
  1225. }
  1226. }
  1227. })
  1228. return false;
  1229. }
  1230. }
  1231. return true;
  1232. },
  1233. getChargeList(){
  1234. var obj=this.carhelp.get("carhelp_getChargeList")
  1235. var time=new Date( ).toLocaleString().substr(0,12).replace("T"," ");
  1236. if(obj&&time==obj.time){
  1237. var num1=parseInt(obj.electricQuantity);
  1238. var num2=parseInt(obj.totalServiceMoney) ;
  1239. this.carImg3span1=parseInt(num1/10000);
  1240. this.carImg3span2=parseInt(num2*0.4) ;
  1241. this.carImg3span3=parseInt(num2) ;
  1242. if(num2*0.4>20||this.carImg3span1>=1000){
  1243. this.carImg3Bl=true;
  1244. }else{
  1245. this.carImg4Bl=true;
  1246. }
  1247. console.log("carhelp_getChargeList",this.carImg3span1,this.carImg3span2)
  1248. return
  1249. }
  1250. var date =new Date().getTime()-30*1000*60*60*24;
  1251. var startDate =parseUnixTime(new Date(date),'{y}-{m}-{d}');
  1252. API_index.chargingRecordData({
  1253. pageIndex: 1,
  1254. pageSize:999,
  1255. startDate: startDate,
  1256. // endDate: this.endDate
  1257. }).then((res) => {
  1258. var chargeList =res.data.data;
  1259. var num1=0;
  1260. var num2=0;
  1261. for(var i in chargeList){
  1262. var obj=chargeList[i]
  1263. if(obj.status==2){
  1264. num1+=obj.electricQuantity
  1265. num2+=obj.totalServiceMoney
  1266. }
  1267. }
  1268. console.log(num1,num2)
  1269. this.carhelp.set("carhelp_getChargeList",{
  1270. time: time,
  1271. electricQuantity:num1,
  1272. totalServiceMoney:num2
  1273. })
  1274. this.carImg3span1=parseInt(num1/10000);
  1275. this.carImg3span2=parseInt(num2*0.4) ;
  1276. this.carImg3span3=parseInt(num2) ;
  1277. if(num2*0.4>20||this.carImg3span1>=1000){
  1278. this.carImg3Bl=true;
  1279. }else{
  1280. this.carImg4Bl=true;
  1281. }
  1282. }).catch(error => {
  1283. uni.showToast({
  1284. title: error,
  1285. icon: "none"
  1286. })
  1287. })
  1288. },
  1289. getUserCard() {
  1290. uni.showLoading({
  1291. title: "加载中",
  1292. mask: true,
  1293. })
  1294. API.userCard({
  1295. stationId: this.detail.stationId
  1296. }).then((res2) => {
  1297. uni.hideLoading()
  1298. this.userCard = res2.data.regUserCard
  1299. //this.canUse=res2.data.canUse
  1300. //this.user = res.data
  1301. this.personInfo = this.carhelp.getPersonInfo()
  1302. if (!this.userCardBool) {
  1303. if (this.personInfo && this.personInfo.userType == "2") {
  1304. try{
  1305. //this.getChargeList()
  1306. }catch(e){
  1307. //TODO handle the exception
  1308. console.log(e)
  1309. }
  1310. }
  1311. }
  1312. //快捷充电
  1313. if (this.personInfo && (this.personInfo.memberLevel == "3"||this.personInfo.memberLevel == "4") ) {
  1314. if(this.personInfo.quickCharging){
  1315. if(this.startCarChargingBl==false){
  1316. this.startCarCharging()
  1317. }
  1318. }else if(this.personInfo.quickCharging==null){
  1319. //初始化
  1320. this.quickChargingBl=true
  1321. }
  1322. }
  1323. }).catch(error2 => {
  1324. uni.showToast({
  1325. title: error2
  1326. })
  1327. })
  1328. },
  1329. getH(item) {
  1330. return item * 100 + 'px'
  1331. },
  1332. getW(item) {
  1333. var t1 = item.endTime.substring(0, 2)
  1334. var t2 = item.startTime.substring(0, 2)
  1335. var k = parseInt(t1) - parseInt(t2);
  1336. return 100 / 24 * k + "%"
  1337. },
  1338. getPile() {
  1339. uni.showLoading({
  1340. title: "加载中",
  1341. mask: true,
  1342. })
  1343. API.chargingDeviceGunDetail({
  1344. gunNo: this.id,
  1345. jpcode: "jp_team51_charge_id:A_" + this.id
  1346. }).then((res) => {
  1347. uni.hideLoading()
  1348. this.gunDetail = res.data;
  1349. this.detail = res.data.device
  1350. if(this.detail.homeApplyId){
  1351. this.pageTitle= "我的家桩充电详情"
  1352. }
  1353. this.station = res.data.station
  1354. this.carplateMust = this.station.carNumRequired;
  1355. this.prices = res.data.prices
  1356. this.pricesInfo = res.data.prices
  1357. this.price = res.data.price
  1358. this.lastTiming=res.data.lastTiming
  1359. this.pricesInfoCurrent = {
  1360. ...this.price
  1361. }
  1362. this.pricesInfoCurrent2 = {
  1363. ...this.price
  1364. }
  1365. this.gun = res.data.gun
  1366. if(this.gun &&this.gun.workStatus==6){
  1367. this.operating=true;
  1368. }
  1369. this.car =res.data.car
  1370. if (this.carplateMust && this.car && this.car.carNum&&this.carplateMustModelFirst) {
  1371. this.carplateMustModel=true;
  1372. this.carplateMustModelFirst=false;
  1373. } else {
  1374. }
  1375. this.getTemporaryCarNumByOpenId()
  1376. this.lockStatus = res.data.lockStatus;
  1377. this.haveLock = res.data.haveLock;
  1378. this.lockSafeStopTime = res.data.lockSafeStopTime
  1379. this.isVip = res.data.isVip
  1380. this.openStatus = res.data.station.openStatus
  1381. this.isInsert = this.gun.insertStatus
  1382. if (!this.openBool) {
  1383. //this.openBoolShow=true;
  1384. uni.showModal({
  1385. title: "提示",
  1386. content: "当前设备仅供内部使用,如有问题可联系客服",
  1387. showCancel: false,
  1388. success: () => {
  1389. }
  1390. })
  1391. }
  1392. if (res.data.chargingAppointment) {
  1393. if (res.data.isMeAppoint) {
  1394. this.getUserCard();
  1395. } else {
  1396. var chargingAppointment = res.data.chargingAppointment
  1397. var data = newDate(chargingAppointment.createTime).getTime()
  1398. var c = hourDistanceArr(new Date(), new Date(data + chargingAppointment
  1399. .reserveMinutes * 60 * 1000))
  1400. var description = '当前充电枪已被其他车主预约,' + c[1] + '分' + c[2] + "秒后预约自动失效。";
  1401. this.isReady = false;
  1402. uni.showModal({
  1403. title: "提示",
  1404. content: description,
  1405. showCancel: false,
  1406. success: () => {
  1407. }
  1408. })
  1409. }
  1410. } else {
  1411. this.getUserCard();
  1412. }
  1413. if (this.gun.workStatus == 2) {
  1414. this.workStatus2()
  1415. }
  1416. }).catch(error => {
  1417. uni.hideLoading()
  1418. uni.showModal({
  1419. title: "提示",
  1420. content: "设备扫码异常",
  1421. confirmText: "前往首页",
  1422. showCancel: false,
  1423. success: () => {
  1424. uni.reLaunch({
  1425. url: "/pages/index/index"
  1426. })
  1427. }
  1428. })
  1429. // uni.showToast({
  1430. // title: error
  1431. // })
  1432. })
  1433. },
  1434. chargeTest(bl) {
  1435. if (process.env.NODE_ENV === "development" && process.car.SIMPLE_RUN) {
  1436. var url = '/pages/searchPile/chargeProcess/charge?stationId=' + this.detail.stationId +
  1437. '&deviceNo=' + this.detail.deviceNo + "&gun=" + this.gun.channelNo + "&carNumber=" + (
  1438. this.car ? this.car.carNum : '');
  1439. url+="&id="+this.id
  1440. uni.navigateTo({
  1441. url: url
  1442. })
  1443. }
  1444. },
  1445. charge(bl) {
  1446. if (!this.role(bl)) {
  1447. return
  1448. }
  1449. if(this.detail.homeApplyId){
  1450. this.startCarCharging()
  1451. }else{
  1452. var url = '/pages/searchPile/chargeProcess/charge?stationId=' + this.detail.stationId +
  1453. '&deviceNo=' + this.detail.deviceNo + "&gun=" + this.gun.channelNo + "&carNumber=" + (
  1454. this.car ? this.car.carNum : '');
  1455. if(this.isback){
  1456. url+="&startMode=1"
  1457. }
  1458. url+="&id="+this.id
  1459. uni.navigateTo({
  1460. url: url
  1461. })
  1462. }
  1463. },
  1464. isInsertBtn() {
  1465. this.isInsert = true;
  1466. },
  1467. getNewYear() {
  1468. //var obj=this.carhelp.get("newyear_activity2023")
  1469. //
  1470. var sz = ["1615623336912621569", "1615623336912621568"];
  1471. var code = parseInt(Math.random() * 2)
  1472. this.carhelp.set("newyear_activity2023", {
  1473. nt: sz[code],
  1474. code: code,
  1475. status: 0
  1476. })
  1477. //先查询另一个领取过没
  1478. userApi.exchangeDetail({
  1479. key: sz[code == 0 ? 1 : 0]
  1480. }).then((res) => {
  1481. if (!res.data.enabled) {
  1482. if (res.data.code == 2) {
  1483. //未开始
  1484. } else {
  1485. //已经结束
  1486. }
  1487. //this.getBannerInfoTop("home-top");
  1488. } else if (res.data.status == 1) {
  1489. //this.getBannerInfoTop("home-top");
  1490. //已经兑换,或者不能兑换
  1491. } else if (res.data.status == 2) {
  1492. // this.showNtValue=res.data.totalDiscount
  1493. this.exchangeDetail(sz[code]);
  1494. } else {
  1495. //res.data.status==0
  1496. //this.showNtValue=res.data.totalDiscount
  1497. this.exchangeDetail(sz[code], sz[code == 0 ? 1 : 0]);
  1498. }
  1499. }).catch(error => {
  1500. this.showNt = false;
  1501. uni.showToast({
  1502. title: error,
  1503. icon: "none"
  1504. })
  1505. })
  1506. },
  1507. exchangeDetail(exchangeCode, code2) {
  1508. uni.showLoading({
  1509. title: "加载中",
  1510. mask: true,
  1511. })
  1512. userApi.exchangeDetail({
  1513. key: exchangeCode
  1514. }).then((res) => {
  1515. uni.hideLoading();
  1516. //
  1517. if (!res.data.enabled) {
  1518. if (res.data.code == 2) {
  1519. //未开始
  1520. } else {
  1521. //已经结束
  1522. }
  1523. //this.getBannerInfoTop("home-top");
  1524. } else if (res.data.status == 1) {
  1525. //this.getBannerInfoTop("home-top");
  1526. //已经兑换,
  1527. } else if (res.data.status == 2) {
  1528. if (code2) {
  1529. //试试另一张卷
  1530. var c = this.carhelp.get("newyear_activity2023")
  1531. if (c) {
  1532. this.carhelp.set("newyear_activity2023", {
  1533. nt: code2,
  1534. code: c.code == 0 ? 1 : 0,
  1535. status: 0
  1536. })
  1537. }
  1538. this.exchangeDetail(code2)
  1539. } else {
  1540. //this.getBannerInfoTop("home-top");
  1541. }
  1542. //不能兑换
  1543. } else {
  1544. this.showNt = true
  1545. this.showNtStep = 0;
  1546. this.showNtValue = res.data.totalDiscount
  1547. }
  1548. }).catch(error => {
  1549. this.showNt = false;
  1550. uni.showToast({
  1551. title: error,
  1552. icon: "none"
  1553. })
  1554. })
  1555. },
  1556. getTemporaryCarNumByOpenId() {
  1557. try {
  1558. API.getTemporaryCarNumByOpenId(this.carhelp.getOpenId()).then((res) => {
  1559. this.temporaryCarNum = res.data
  1560. var temporaryCarNum = res.data
  1561. if (this.temporaryCarNum) {
  1562. var k=false
  1563. if( this.carplateMustModel==true){
  1564. k=true
  1565. this.carplateMustModel=false
  1566. }
  1567. this.carTempBl = false;
  1568. uni.showModal({
  1569. title: "临牌提醒",
  1570. content: `查询到[${temporaryCarNum}]入场记录`,
  1571. confirmText: "使用临牌",
  1572. cancelText: "取消",
  1573. success: res1 => {
  1574. if (res1.confirm) {
  1575. //this.carDet()
  1576. this.car = {
  1577. carNum: temporaryCarNum
  1578. }
  1579. } else if (res1.cancel) {
  1580. //('用户点击取消');
  1581. if(k){
  1582. this.carplateMustModel=true
  1583. }
  1584. }
  1585. }
  1586. })
  1587. }
  1588. }).catch(error => {
  1589. })
  1590. } catch (e) {
  1591. //TODO handle the exception
  1592. console.log("errorerrorerrorerrorerror")
  1593. }
  1594. },
  1595. redeemNow(exchangeCode) {
  1596. uni.showLoading({
  1597. title: "加载中",
  1598. mask: true,
  1599. })
  1600. userApi.exchange({
  1601. key: exchangeCode
  1602. }).then((res) => {
  1603. uni.hideLoading();
  1604. this.showNtStep = 1
  1605. this.carhelp.set("newyear_activity2023", {
  1606. nt: exchangeCode,
  1607. status: 1
  1608. })
  1609. }).catch(error => {
  1610. this.showNt = false;
  1611. uni.showToast({
  1612. title: error,
  1613. icon: "none"
  1614. })
  1615. })
  1616. },
  1617. showNtStepClick() {
  1618. if (this.showNtStep == 0) {
  1619. var obj = this.carhelp.get("newyear_activity2023")
  1620. if (this.personInfo.userType != 1) {
  1621. this.redeemNow(obj.nt)
  1622. } else {
  1623. this.showNt = false;
  1624. uni.showModal({
  1625. title: "提示",
  1626. content: "游客无法兑换,请先注册为会员后再兑换",
  1627. confirmText: "前往注册",
  1628. success: res1 => {
  1629. if (res1.confirm) {
  1630. uni.navigateTo({
  1631. url: '/pages/login/login'
  1632. })
  1633. } else if (res1.cancel) {
  1634. //('用户点击取消');
  1635. }
  1636. }
  1637. })
  1638. }
  1639. } else if (this.showNtStep == 1 || this.showNtStep == 2 || this.showNtStep == 3 || this.showNtStep == 4) {
  1640. this.showNt = false;
  1641. uni.navigateTo({
  1642. url: "/pages/user/coupon/myCoupon"
  1643. })
  1644. }
  1645. },
  1646. getf5surprised() {
  1647. uni.showLoading({
  1648. title: "加载中",
  1649. mask: true,
  1650. })
  1651. userApi.exchangeGroupDetail2("周年红包").then((res) => {
  1652. uni.hideLoading();
  1653. var data=res.data;
  1654. this.key=""
  1655. this.couponList=[]
  1656. if(data.length){
  1657. this.couponList = res.data[0].couponList;
  1658. if(this.couponList&&this.couponList.length){
  1659. //this.getBannerInfoTop()
  1660. this.getBannerInfoTop("home-top2");
  1661. }
  1662. }
  1663. }).catch(error => {
  1664. uni.showToast({
  1665. title: error,
  1666. icon: "none"
  1667. })
  1668. })
  1669. },
  1670. getBannerInfoTop(code) {
  1671. if(!this.carhelp.getOpenId()){
  1672. return
  1673. }
  1674. var nowtime = parseUnixTime(currentTimeStamp(), '{y}-{m}-{d}')
  1675. var time = this.carhelp.get("bannerListTop");
  1676. if ((time && nowtime == time)) {
  1677. this.getBannerInfoTopBl = false;
  1678. }
  1679. //特殊活动不考虑
  1680. //this.getBannerInfoTopBl = true;
  1681. // uni.showLoading({
  1682. // title: "加载中",
  1683. // mask: true,
  1684. // })
  1685. newsApi.getBannerInfo(code).then((res) => {
  1686. this.bannerListTop = res.data;
  1687. if (this.bannerListTop.length) {
  1688. this.showTop = true;
  1689. this.showTopImg = this.bannerListTop[0].picUrl;
  1690. this.showTopIndex = 0;
  1691. }
  1692. this.carhelp.set("bannerListTop", nowtime);
  1693. //this.test()
  1694. var userInfo = this.carhelp.getPersonInfo();
  1695. if (userInfo && userInfo.id) {
  1696. //this.getf5surprised()
  1697. } else {}
  1698. //uni.hideLoading()
  1699. //document.getElementsByClassName("uni-swiper-wrapper")[0].parentNode.style="background-color: rgb(255, 255, 255); height: 120px;"
  1700. }).catch(error => {
  1701. uni.showToast({
  1702. title: error,
  1703. icon: "none"
  1704. })
  1705. })
  1706. },
  1707. startCarCharging(){
  1708. if(this.gun&&this.gun.workStatus==2){
  1709. uni.showModal({
  1710. title: '提示',
  1711. showCancel:false,
  1712. content:"快捷充电失败:充电中",
  1713. })
  1714. }else if(!this.openBool){
  1715. uni.showModal({
  1716. title: '提示',
  1717. showCancel:false,
  1718. content:"快捷充电失败:仅单位内部员工可用"
  1719. })
  1720. }else if(this.gunDetail.chargingAppointment&&!this.gunDetail.isMeAppoint){
  1721. uni.showModal({
  1722. title: '提示',
  1723. showCancel:false,
  1724. content:"快捷充电失败:已被预约"
  1725. })
  1726. }else if(this.haveLock&&this.lockStatus==1){
  1727. uni.showModal({
  1728. title: '提示',
  1729. showCancel:false,
  1730. content:"快捷充电失败:下降地锁"
  1731. })
  1732. }else if(!this.isInsert){
  1733. uni.showModal({
  1734. title: '提示',
  1735. showCancel:false,
  1736. content:"快捷充电失败:未插枪"
  1737. })
  1738. }else {
  1739. this.startCarChargingApi();
  1740. }
  1741. },
  1742. startCarChargingApi(){
  1743. uni.showLoading({
  1744. title:"快捷充电启动",
  1745. mask: true,
  1746. })
  1747. this.startCarChargingBl=true;
  1748. var submitForm={
  1749. deviceNo:this.detail.deviceNo,
  1750. channelNo:this.gun.channelNo,
  1751. carNumber:this.car ? this.car.carNum : '',
  1752. chargeStrategy:0,
  1753. amount:0,
  1754. payType:2,
  1755. }
  1756. if(this.userCardBool){
  1757. submitForm.userCardId=this.userCard.id
  1758. }
  1759. API.startCarCharging(submitForm).then((res) => {
  1760. if (res.data.status == "5") {
  1761. var _this=this;
  1762. var recordId=res.data.recordId;
  1763. uni.showModal({
  1764. title: '启动充电失败',
  1765. confirmText:"充值",
  1766. cancelText:"暂不启用",
  1767. content:"个人账户余额不足10元,无法启动快捷充电",
  1768. success: function (res) {
  1769. if (res.confirm) {
  1770. console.log('用户点击确定');
  1771. _this.gotoUrl("pages/user/finance/recharge?recordId=" + recordId);
  1772. } else if (res.cancel) {
  1773. _this.checkedChange2(0);
  1774. console.log('用户点击取消');
  1775. }
  1776. }
  1777. })
  1778. uni.hideLoading()
  1779. }else{
  1780. this.gotoUrl("pages/searchPile/chargeProcess/dcCharging?id=" + res.data.recordId);
  1781. }
  1782. }).catch(error => {
  1783. uni.hideLoading()
  1784. if (error == '用户账户余额不足!') {
  1785. var _this=this;
  1786. uni.showModal({
  1787. title: '快捷充电失败',
  1788. confirmText:"充值",
  1789. content:"用户余额不足!",
  1790. success: function (res) {
  1791. if (res.confirm) {
  1792. console.log('用户点击确定');
  1793. _this.showrecharge=true
  1794. } else if (res.cancel) {
  1795. console.log('用户点击取消');
  1796. }
  1797. }
  1798. })
  1799. } else {
  1800. uni.showModal({
  1801. title: '提示',
  1802. showCancel:false,
  1803. content:"充电失败:"+( error?error:'未知错误')
  1804. })
  1805. }
  1806. })
  1807. }
  1808. },
  1809. }
  1810. </script>
  1811. <style lang="scss">
  1812. .priceListBlMain {
  1813. display: flex;
  1814. justify-content: space-between;
  1815. align-items: last baseline;
  1816. }
  1817. .discount-card {
  1818. box-shadow: 0px 0px 8px 0px rgba(0, 65, 30, 0.1);
  1819. border: 1px solid rgba(225, 236, 231, 1);
  1820. border-radius: 8px;
  1821. //background-color: rgba(55, 59, 80, 1);
  1822. padding: 24rpx;
  1823. margin-top: 24rpx;
  1824. .name {
  1825. //color: rgba(255, 255, 255, 1);
  1826. font-size: 32rpx;
  1827. }
  1828. .progress {
  1829. display: flex;
  1830. justify-content: space-between;
  1831. flex-wrap: wrap;
  1832. // color: rgba(219, 219, 219, 1);
  1833. font-size: 24rpx;
  1834. margin-bottom: 16rpx;
  1835. margin-top: 24rpx;
  1836. }
  1837. ::v-deep .u-active {
  1838. background: linear-gradient(84.49deg, rgba(59, 182, 254, 1) 4.25%, rgba(0, 185, 98, 1) 95.02%);
  1839. }
  1840. }
  1841. .discount-card-4 {
  1842. background: #da241e !important;
  1843. .unit{
  1844. color:#fff !important;
  1845. }
  1846. .u-progress{
  1847. background-color:#cf4c42 !important;
  1848. color: #fff;
  1849. }
  1850. .name{
  1851. color: #ffd695!important;
  1852. font-size: 36rpx;
  1853. font-family: "SimSun", Arial, sans-serif;
  1854. font-weight: 400;
  1855. text-shadow: 2px 1px 0px #800400 ;
  1856. }
  1857. .progress{
  1858. color: #fff;
  1859. }
  1860. }
  1861. .temporaryCarNum {
  1862. text-align: right;
  1863. margin-bottom: 10px;
  1864. margin: 0 40rpx;
  1865. span {
  1866. margin: 0 8rpx;
  1867. color: #19be6b;
  1868. }
  1869. }
  1870. .oldTextClassF {
  1871. .tips {
  1872. padding: 36rpx;
  1873. .p {
  1874. font-size: 42rpx !important;
  1875. }
  1876. .content {
  1877. font-size: 34rpx !important;
  1878. }
  1879. }
  1880. .bottom {
  1881. .u-btn {
  1882. font-size: 48rpx
  1883. }
  1884. }
  1885. .text-1 {
  1886. font-size: 56rpx !important;
  1887. }
  1888. .text-2 {
  1889. font-size: 38rpx !important;
  1890. }
  1891. .charging-info {
  1892. .name {
  1893. font-size: 36rpx !important;
  1894. .free {
  1895. font-weight: bold;
  1896. font-size: 36rpx !important;
  1897. }
  1898. }
  1899. .address {
  1900. font-size: 44rpx;
  1901. font-weight: bold;
  1902. }
  1903. .price {
  1904. font-weight: bold;
  1905. font-size: 60rpx !important;
  1906. .unit {
  1907. font-weight: normal;
  1908. font-size: 36rpx !important;
  1909. }
  1910. }
  1911. }
  1912. }
  1913. page {
  1914. background-color: #F6F8F8;
  1915. padding-bottom: 100px;
  1916. }
  1917. .service {
  1918. font-size: 24px;
  1919. color: #101010;
  1920. position: absolute;
  1921. right: 16px;
  1922. }
  1923. .main2 {
  1924. background-color: #fff;
  1925. padding-left: 16px;
  1926. .item {
  1927. border-bottom: 1px solid #e5e7ea;
  1928. padding: 16px 0;
  1929. .title {
  1930. line-height: 16px;
  1931. color: rgba(119, 119, 119, 100);
  1932. font-size: 16px;
  1933. .more {
  1934. font-size: 24px;
  1935. color: #b3b3b3;
  1936. float: right;
  1937. margin-right: 8px;
  1938. }
  1939. }
  1940. .content {
  1941. line-height: 24px;
  1942. color: rgba(16, 16, 16, 100);
  1943. font-size: 16px;
  1944. margin-top: 8px;
  1945. padding-right: 30px;
  1946. }
  1947. }
  1948. }
  1949. .main {
  1950. padding: 40rpx 40rpx 24rpx 40rpx;
  1951. background-image: linear-gradient(#D6EEDC, #F6F8F8);
  1952. .text-1 {
  1953. color: rgba(0, 170, 90, 100);
  1954. font-size: 48rpx;
  1955. line-height: 33px;
  1956. }
  1957. .text-2 {
  1958. color: rgba(102, 102, 102, 100);
  1959. font-size: 32rpx;
  1960. line-height: 22px;
  1961. }
  1962. .charging-info {
  1963. background-color: #fff;
  1964. margin: 0px auto;
  1965. border-radius: 12px;
  1966. padding: 20rpx 38rpx;
  1967. .name {
  1968. margin-top: 8rpx;
  1969. color: #777777;
  1970. font-size: 32rpx;
  1971. .free {
  1972. display: inline-block;
  1973. //width: 72px;
  1974. padding:4rpx 24rpx ;
  1975. //height: 20px;
  1976. line-height: 20px;
  1977. border-radius: 50px;
  1978. background-color: rgba(208, 246, 228, 100);
  1979. color: rgba(0, 185, 98, 100);
  1980. font-size: 28rpx;
  1981. text-align: center;
  1982. margin-left: 12px;
  1983. }
  1984. .workStatusText6{
  1985. background-color: rgba(255, 214, 210, 1);
  1986. color: rgba(255, 56, 56, 1);
  1987. }
  1988. }
  1989. .price-3-card-view {
  1990. display: flex;
  1991. align-items: last baseline;
  1992. .price-3-card {
  1993. max-width: 240rpx;
  1994. min-width: 220rpx;
  1995. display: flex;
  1996. background: linear-gradient(93.02deg, rgba(59, 182, 254, 1) 39.4%, rgba(0, 185, 98, 1) 92.96%);
  1997. border-radius: 4px;
  1998. height: 32rpx;
  1999. min-height: 32rpx;
  2000. margin-left: 32rpx;
  2001. // align-items: center;
  2002. line-height: 32rpx;
  2003. .num1 {
  2004. img {
  2005. // width: 88rpx;
  2006. //width: 34px;
  2007. height: 32rpx;
  2008. }
  2009. ::v-deep .u-image {
  2010. min-height: 32rpx;
  2011. }
  2012. font-size: 22rpx;
  2013. background: rgb(48, 49, 51);
  2014. }
  2015. .num {
  2016. padding: 0 6rpx 0 6rpx;
  2017. color: rgba(255, 255, 255, 1);
  2018. font-size: 22rpx;
  2019. display: flex;
  2020. align-items: center;
  2021. }
  2022. }
  2023. .price-3-card-yue{
  2024. background: linear-gradient(88.81deg, rgba(219,199,167,1) 1.89%,rgba(194,154,93,1) 98%);
  2025. }
  2026. }
  2027. .price-2 {
  2028. display: flex;
  2029. align-items: baseline;
  2030. .price-4 {
  2031. color: rgba(0, 185, 98, 100);
  2032. font-size: 56rpx;
  2033. margin-top: 0rpx;
  2034. display: flex;
  2035. align-items: baseline;
  2036. .unit {
  2037. font-size: 32rpx;
  2038. color: #666666;
  2039. margin-left: 4px;
  2040. }
  2041. }
  2042. .price-3 {
  2043. font-size: 24rpx;
  2044. color: #fff;
  2045. margin-left: 8rpx;
  2046. padding-right: 9rpx;
  2047. background: #00B962;
  2048. border-radius: 8rpx;
  2049. .num1 {
  2050. padding-left: 12rpx;
  2051. border-radius: 8rpx 0 8rpx 8rpx;
  2052. padding-right: 18rpx;
  2053. background: #121212;
  2054. -webkit-clip-path: polygon(0 0, 93% 0, 84% 100%, 0% 100%);
  2055. clip-path: polygon(0 0, 93% 0, 84% 100%, 0% 100%);
  2056. }
  2057. }
  2058. }
  2059. .price {
  2060. color: rgba(0, 185, 98, 100);
  2061. //font-size: 56rpx;
  2062. margin: 8rpx 0;
  2063. .span {
  2064. font-size: 56rpx;
  2065. }
  2066. .unit {
  2067. font-size: 32rpx;
  2068. color: #666666;
  2069. margin-left: 4px;
  2070. }
  2071. }
  2072. .address {
  2073. color: #333333;
  2074. font-size: 40rpx;
  2075. .explain {
  2076. line-height: 22px;
  2077. color: rgba(22, 119, 255, 100);
  2078. font-size: 32rpx;
  2079. float: right;
  2080. }
  2081. }
  2082. }
  2083. }
  2084. .main-head {
  2085. display: flex;
  2086. justify-content: space-between;
  2087. }
  2088. .charge-img {
  2089. width: 80px;
  2090. overflow: hidden;
  2091. height: 80px;
  2092. // margin-right: 16rpx;
  2093. img {
  2094. width: 100%;
  2095. }
  2096. }
  2097. .cost-explainMain{
  2098. margin: 24rpx 40rpx 24rpx 40rpx;
  2099. padding: 30rpx 40rpx;
  2100. background-color: #fff;
  2101. // background-color: #fff;
  2102. // margin: 0 40rpx;
  2103. border-radius: 12px;
  2104. // padding: 38rpx 40rpx;
  2105. // display: flex;
  2106. font-size: 36rpx;
  2107. // 费用说明
  2108. .cost-explain {
  2109. margin-bottom: 12rpx;
  2110. border-radius: 12px;
  2111. display: flex;
  2112. justify-content: space-between;
  2113. align-items: center;
  2114. .car-number {
  2115. display: flex;
  2116. font-size: 32rpx;
  2117. }
  2118. img {
  2119. vertical-align: middle;
  2120. }
  2121. .text {
  2122. font-size: 36rpx;
  2123. color: #101010;
  2124. //width: 330rpx;
  2125. white-space: pre;
  2126. }
  2127. .iconfont {
  2128. color: #b3b3b3;
  2129. font-size: 48rpx
  2130. }
  2131. }
  2132. .cost-explain2{
  2133. .car-number{
  2134. font-size: 28rpx;
  2135. color: #FF3D00;
  2136. }
  2137. }
  2138. }
  2139. .tips {
  2140. background-color: #fff;
  2141. padding: 40rpx;
  2142. margin: 8rpx 40rpx 0 40rpx;
  2143. border-radius: 12px;
  2144. .p {
  2145. line-height: 25px;
  2146. color: #333333;
  2147. font-size: 32rpx;
  2148. font-weight: 550;
  2149. }
  2150. .content {
  2151. margin-top: 16rpx;
  2152. line-height: 22px;
  2153. color: #666666;
  2154. font-size: 28rpx;
  2155. }
  2156. }
  2157. .bottom {
  2158. width: 100%;
  2159. padding: 28rpx 0;
  2160. .u-btn {
  2161. margin: 0 40rpx;
  2162. line-height: 88rpx;
  2163. height: 88rpx;
  2164. font-size: 40rpx
  2165. }
  2166. }
  2167. ::v-deep .u-alert-desc {
  2168. color: rgba(255, 115, 0, 100);
  2169. font-size: 16px
  2170. }
  2171. // 入场车辆
  2172. .carp {
  2173. margin: 0 40rpx;
  2174. }
  2175. .carImg {
  2176. margin: 0 40rpx;
  2177. img {
  2178. width: 100%;
  2179. }
  2180. }
  2181. .carImg3 {
  2182. margin: 0 40rpx;
  2183. background: linear-gradient(32.4deg, rgba(59,182,254,1) 20.49%,rgba(0,185,98,1) 118.87%);
  2184. border-radius: 8px;
  2185. }
  2186. .carImg3-yue {
  2187. margin: 0 40rpx;
  2188. background: linear-gradient(88.81deg, rgba(219,199,167,1) 1.89%,rgba(194,154,93,1) 98%);
  2189. border-radius: 8px;
  2190. }
  2191. .carImg2-yue {
  2192. line-height: 20px;
  2193. color: rgba(255, 255, 255, 1);
  2194. font-size: 32rpx;
  2195. padding:40rpx;
  2196. //background: linear-gradient(88.81deg, rgba(219,199,167,1) 1.89%,rgba(194,154,93,1) 98%);
  2197. background: url('@/assets/img/9-4/antFill-crown.svg');
  2198. background-repeat: repeat-y;
  2199. background-position-x: 440rpx;
  2200. .carImg-2{
  2201. span{
  2202. font-size: 48rpx;
  2203. color:red;
  2204. margin: 0 4rpx;
  2205. font-weight: bold;
  2206. padding:0rpx 4rpx;
  2207. }
  2208. }
  2209. .carImg-3{
  2210. margin-top:8rpx ;
  2211. span{
  2212. padding:8rpx 16rpx;
  2213. border-radius: 12px;
  2214. background-color: rgba(255, 255, 255, 1);
  2215. text-align: center;
  2216. color: #795626 ;
  2217. font-size: 12px;
  2218. }
  2219. }
  2220. }
  2221. .carImg2 {
  2222. line-height: 20px;
  2223. color: rgba(255, 255, 255, 1);
  2224. font-size: 32rpx;
  2225. padding:40rpx;
  2226. background: url('@/assets/img/9-4/6show.png');
  2227. background-repeat: repeat-y;
  2228. background-position-x: 440rpx;
  2229. .carImg-2{
  2230. span{
  2231. font-size: 48rpx;
  2232. color:red;
  2233. margin: 0 4rpx;
  2234. font-weight: bold;
  2235. padding:0rpx 4rpx;
  2236. }
  2237. }
  2238. .carImg-3{
  2239. margin-top:8rpx ;
  2240. span{
  2241. padding:8rpx 16rpx;
  2242. border-radius: 12px;
  2243. background-color: rgba(255, 255, 255, 1);
  2244. text-align: center;
  2245. color: rgba(0, 130, 69, 1);
  2246. font-size: 12px;
  2247. }
  2248. }
  2249. }
  2250. .showOss2 {
  2251. ::v-deep .u-model,
  2252. ::v-deep .u-mode-center-box {
  2253. background-color: transparent;
  2254. }
  2255. }
  2256. .classtable {
  2257. margin: 0rpx 40rpx;
  2258. .td1 {
  2259. width: 50rpx;
  2260. padding: 12rpx 0;
  2261. text-align: center;
  2262. img {
  2263. width: 48rpx;
  2264. height: 48rpx;
  2265. }
  2266. font-size: 10px;
  2267. }
  2268. .td2 {
  2269. padding-left: 16rpx;
  2270. font-size: 12px;
  2271. line-height: 24px;
  2272. .dian {
  2273. padding: 0 10rpx
  2274. }
  2275. }
  2276. }
  2277. .btnview {
  2278. display: flex;
  2279. flex-direction: column;
  2280. align-items: center;
  2281. .btnview1 {}
  2282. .btnview2 {
  2283. color: #999999;
  2284. margin-top: 20rpx;
  2285. padding-bottom: 48rpx;
  2286. }
  2287. }
  2288. .sign-6 {
  2289. //background: linear-gradient(89.4deg, rgba(255,61,0,1) 2.8%,rgba(255,134,0,1) 98.02%);
  2290. background: linear-gradient(89.4deg, rgba(0, 164, 87, 1) 2.8%, rgba(0, 206, 141, 1) 98.02%);
  2291. color: rgba(255, 255, 255, 1);
  2292. padding: 0 10rpx;
  2293. }
  2294. .chat_hhh_time {
  2295. display: flex;
  2296. justify-content: space-between;
  2297. }
  2298. .chat_hhh {
  2299. .chatShow {
  2300. .showspan{
  2301. float: right;
  2302. color: #00b962;
  2303. }
  2304. margin-bottom: 280rpx;
  2305. //height: 160px;
  2306. visibility: hidden;
  2307. // width: 120px;
  2308. padding: 4rpx 16rpx;
  2309. text-align: initial;
  2310. /* 定位 */
  2311. position: absolute;
  2312. z-index: 1;
  2313. padding: 4rpx 16rpx;
  2314. background-color: #fff;
  2315. color: rgba(102, 102, 102, 1);
  2316. border-radius: 3px;
  2317. font-size: 24rpx;
  2318. box-shadow: 0px 0px 4px 0px rgba(0, 0, 0, 0.2);
  2319. }
  2320. .chatShowA {
  2321. margin-left: -60rpx;
  2322. }
  2323. .chatShowB {
  2324. margin-left: -160rpx;
  2325. }
  2326. .chatShowNo {
  2327. visibility: hidden;
  2328. }
  2329. .chatShowOk {
  2330. visibility: visible;
  2331. }
  2332. background: #f9f9f9;
  2333. text-align: center;
  2334. min-height: 160px;
  2335. display: flex;
  2336. font-size: 20rpx;
  2337. .current1 {
  2338. .chats2 {
  2339. //border: 1px solid red;
  2340. }
  2341. }
  2342. .current2 {
  2343. .chats1 {
  2344. border: 1px solid #333333;
  2345. border-bottom: 0px;
  2346. }
  2347. .chats2 {
  2348. border: 1px solid #333333;
  2349. background: #26FF6B !important;
  2350. border-top: 0px;
  2351. }
  2352. }
  2353. .chatTime {
  2354. min-width: 68rpx;
  2355. display: flex;
  2356. flex-direction: column;
  2357. justify-content: flex-end;
  2358. border: 1px solid #f9f9f9;
  2359. .chats0 {
  2360. // background-color: #ff8b17;
  2361. // color: #ffecdd;
  2362. display: flex;
  2363. justify-content: center;
  2364. flex-wrap: wrap;
  2365. flex-direction: column;
  2366. }
  2367. .chats9 {
  2368. opacity: 0;
  2369. display: flex;
  2370. justify-content: center;
  2371. flex-wrap: wrap;
  2372. flex-direction: column;
  2373. }
  2374. .chats1 {
  2375. background: #dcdcdc;
  2376. min-height: 30rpx
  2377. }
  2378. .chats2 {
  2379. background: #80e0a6;
  2380. display: flex;
  2381. flex-direction: column;
  2382. justify-content: space-between;
  2383. }
  2384. }
  2385. }
  2386. .quickMain{
  2387. ::v-deep .u-mode-center-box{
  2388. background-color: transparent;
  2389. }
  2390. ::v-deep .u-model{
  2391. background-color: transparent;
  2392. }
  2393. .quickMain-slot-content{
  2394. .quickMain-img{
  2395. position: relative;
  2396. top: 120rpx;
  2397. text-align: center;
  2398. img{
  2399. width: 160rpx;
  2400. height: 240rpx;
  2401. }
  2402. }
  2403. .quickMain-bodyMain{
  2404. background-color:#fff;
  2405. border-radius: 15px;
  2406. }
  2407. .quickMain-body{
  2408. margin:0 56rpx ;
  2409. color: rgba(51, 51, 51, 1);
  2410. .quickMain-text1{
  2411. font-size: 48rpx;
  2412. text-align: center;
  2413. padding: 132rpx 0 32rpx 0;
  2414. }
  2415. .quickMain-text2{
  2416. margin-bottom: 20rpx ;
  2417. //color: rgba(51, 51, 51, 1);
  2418. font-size: 32rpx;
  2419. img{
  2420. width: 40rpx;
  2421. //height: 120px;
  2422. }
  2423. }
  2424. }
  2425. }
  2426. }
  2427. .slogan-4 {
  2428. z-index: 2;
  2429. margin-top: 10px;
  2430. display: flex;
  2431. justify-content: center;
  2432. /* text-decoration: underline; */
  2433. text-align: center;
  2434. position: fixed;
  2435. /* top: 40px; */
  2436. bottom: 180px;
  2437. right: 20px;
  2438. height: 80rpx;
  2439. width: 80rpx;
  2440. line-height: 20px;
  2441. font-size: 16px;
  2442. background: linear-gradient(95deg, #FF9800, #FF5722);
  2443. box-shadow: 0 4rpx 24rpx 0 #FF5722;
  2444. //padding-top: 8px;
  2445. color: #fff;
  2446. border-radius: 25px;
  2447. }
  2448. .imageshake {
  2449. position: relative;
  2450. animation: shake 0.5s ease-in-out infinite;
  2451. }
  2452. @keyframes shake {
  2453. 0% {
  2454. transform: rotate(0deg);
  2455. }
  2456. 25% {
  2457. transform: rotate(8deg);
  2458. }
  2459. 50% {
  2460. transform: rotate(0deg);
  2461. }
  2462. 75% {
  2463. transform: rotate(-8deg);
  2464. }
  2465. 100% {
  2466. transform: rotate(0deg);
  2467. }
  2468. }
  2469. .showOssK {
  2470. ::v-deep .u-model,
  2471. ::v-deep .u-mode-center-box {
  2472. background-color: transparent;
  2473. }
  2474. }
  2475. // .showOss {
  2476. // ::v-deep .u-model,
  2477. // ::v-deep .u-mode-center-box {
  2478. // background-color: transparent;
  2479. // }
  2480. // }
  2481. .swiper {
  2482. height: 700rpx;
  2483. .swiperitem {
  2484. height: 700rpx;
  2485. }
  2486. }
  2487. .useFreeCoupon{
  2488. font-size: 24rpx;
  2489. color:#FF3D00;
  2490. }
  2491. .sign {
  2492. display: flex;
  2493. flex-wrap: wrap;
  2494. margin-top: 10px;
  2495. .sign-tag {
  2496. height: 36rpx;
  2497. line-height: 32rpx;
  2498. border-radius: 8rpx;
  2499. //background-color: rgba(255, 255, 255, 100);
  2500. //color: rgba(255, 139, 0, 100);
  2501. font-size: 10px;
  2502. text-align: center;
  2503. //border: 1px solid rgba(255, 139, 0, 100);
  2504. padding: 0 8rpx;
  2505. margin-right: 8rpx;
  2506. margin-bottom: 8rpx;
  2507. }
  2508. .sign-0 {
  2509. background: linear-gradient(89.4deg, rgba(129, 97, 255, 1) 2.8%, rgba(169, 147, 255, 1) 98.02%);
  2510. color: rgba(255, 255, 255, 1);
  2511. //padding: 0 10rpx;
  2512. //border: 1px solid rgba(255, 139, 0, 100);
  2513. }
  2514. .sign-5 {
  2515. background: linear-gradient(89.4deg, rgba(255, 61, 0, 1) 2.8%, rgba(255, 134, 0, 1) 98.02%);
  2516. color: rgba(255, 255, 255, 1);
  2517. //padding: 0 10rpx;
  2518. }
  2519. .sign-1 {
  2520. background-color: rgba(255, 255, 255, 100);
  2521. color: rgba(255, 139, 0, 100);
  2522. border: 1px solid rgba(255, 139, 0, 100);
  2523. }
  2524. .sign-2 {
  2525. background-color: rgba(255, 255, 255, 100);
  2526. color: rgba(153, 153, 153, 100);
  2527. border: 1px solid rgba(204, 204, 204, 100);
  2528. }
  2529. .sign-3 {
  2530. background-color: rgba(255, 255, 255, 100);
  2531. color: #8161FF;
  2532. border: 1px solid #8161FF;
  2533. }
  2534. .sign-4 {
  2535. background-color: rgba(255, 255, 255, 100);
  2536. color: #00B962;
  2537. border: 1px solid #00B962;
  2538. }
  2539. }
  2540. .class20250501{
  2541. width: 670rpx;
  2542. height: 200rpx;
  2543. background: url(@/assets/img/20250501/char-index-1.png) ;
  2544. background-size: 100%;
  2545. margin: 0 40rpx;
  2546. //background: linear-gradient(32.4deg, rgba(59,182,254,1) 20.49%,rgba(0,185,98,1) 118.87%);
  2547. border-radius: 8px;
  2548. padding:32rpx 32rpx 16rpx 32rpx;
  2549. display: flex;
  2550. flex-direction: column;
  2551. justify-content: space-between;
  2552. .body1{
  2553. color: #fff;
  2554. font-size: 32rpx;
  2555. span{
  2556. }
  2557. .text1{
  2558. font-weight: bold;
  2559. }
  2560. .text2{
  2561. }
  2562. }
  2563. .body2{
  2564. .botton{
  2565. padding: 2px 6px;
  2566. line-height: 20px;
  2567. border-radius: 50px;
  2568. background-color: rgba(255, 255, 255, 1);
  2569. font-size: 12px;
  2570. color: rgba(0, 130, 69, 1);
  2571. }
  2572. }
  2573. }
  2574. </style>