chargingPileDetails.vue 77 KB

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