chargingPileDetails.vue 77 KB

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