chargingPileDetails.vue 74 KB

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