chargingPileDetails.vue 77 KB

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