index.vue 71 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019
  1. <template>
  2. <view>
  3. <ujp-navbar title="折扣卡购买" :show="false"></ujp-navbar>
  4. <!-- 头部图片 -->
  5. <view class="background">
  6. <!-- 新闻 -->
  7. <view class=" options-item" v-show="flag&&newsList.length > 0" >
  8. <!-- ////@click="toNewsArticleDetails" -->
  9. <ujp-notice-bar
  10. @click="toNewsArticleDetails"
  11. color="#FF3D00" bg-color="#fff"
  12. :list="newsList"></ujp-notice-bar>
  13. </view>
  14. <view class="u-navbar-placeholder" style="width: 100%; height: 64rpx;"></view>
  15. <view class="banner">
  16. <u-swiper bg-color="#fff" :img-mode="'scaleToFill'" :list="bannerList"
  17. @click="clickBanner" :name="'picUrl'">
  18. </u-swiper>
  19. </view>
  20. <!-- 选项列表 -->
  21. <view class="option-list" v-if="false">
  22. <view class="list-item" @click="getScanCode">
  23. <view class="icon iconfont" style="background: linear-gradient(45deg,#00B962,#5FE4A6);">
  24. &#xe61a;
  25. </view>
  26. <view class="text oldTextjp2" oldstyle="font-size: 18px;">
  27. 扫码充电
  28. </view>
  29. </view>
  30. <view class="list-item" @click="fastRecharge">
  31. <view class="icon iconfont" style="background: linear-gradient(45deg,#23AD9B,#4BD2C0);">
  32. &#xe629;
  33. </view>
  34. <view class="text oldTextjp2" oldstyle="font-size: 18px;">
  35. 快速充值
  36. </view>
  37. </view>
  38. <view class="list-item" @click="chargingRecord">
  39. <view class="icon iconfont" style="background: linear-gradient(45deg,#407DE4,#6FA5FF );">
  40. &#xe625;
  41. </view>
  42. <view class="text oldTextjp2" oldstyle="font-size: 18px;">
  43. 充电记录
  44. </view>
  45. </view>
  46. <view class="list-item" @click="toSearchPile">
  47. <view class="icon iconfont" style="background: linear-gradient(45deg,#6366FF,#9D9FFF);">
  48. &#xe622;
  49. </view>
  50. <view class="text oldTextjp2" oldstyle="font-size: 18px;">
  51. 附近站点
  52. </view>
  53. </view>
  54. </view>
  55. <!-- 充值活动 -->
  56. <view class=" top-up" v-if="activityList.length > 0 && !activityListShow">
  57. <view class="card-box">
  58. <view class="card" v-for="(item,index) in activityList" :key="item.id"
  59. @click="rechargeActivity(item)">
  60. <img :src="item.picUrl" alt="">
  61. </view>
  62. </view>
  63. </view>
  64. <u-modal v-model="showOss" class="showOss" :show-title="false" :show-confirm-button="false">
  65. <view class="slot-content">
  66. <u-image width="250px" style="margin: auto;min-height: 250px;" mode="widthFix"
  67. @click="clickBanner(showOssIndex,true)" :src="showOssImg">
  68. <view slot="loading" style="height: 200px;">
  69. <u-loading mode="flower" size="186">
  70. </u-loading>
  71. </view>
  72. </u-image>
  73. <u-image width="36px" style="margin: auto;" mode="widthFix" @click="showOss=false"
  74. src="../../assets/img/if-close-line-circled.png"></u-image>
  75. </view>
  76. </u-modal>
  77. <!-- 专享优惠券 -->
  78. <!--
  79. <view class="couponmain" v-if="false&&bannerListTop[showTopIndex].topmodel=='coupon'">
  80. <view class="main">
  81. <view class="exclusive">
  82. <p class="exclusive1">恭喜你</p>
  83. <p class="exclusive2">获得{{bannerListTop[showTopIndex].value}}元月卡卷</p>
  84. <view class="img">
  85. <img src="../../assets/img/Frame915.png" alt="">
  86. <view class="num">
  87. {{bannerListTop[showTopIndex].value}}<span class="unit">元</span>
  88. </view>
  89. <view class="unit2">月卡优惠券</view>
  90. <view class="ticket-info">
  91. <view class="ticket-name">
  92. {{bannerListTop[showTopIndex].text}}
  93. </view>
  94. </view>
  95. </view>
  96. <view class="exclusive-text"> 持月卡在指定站点充电,充电服务费全免</view>
  97. <button class="exclusive-btn" @click="clickBannerTop()" shape="circle">立即开通</button>
  98. </view>
  99. </view>
  100. </view> -->
  101. <u-modal v-model="showTop" v-if="getBannerInfoTopBl" class="showOss" :show-title="false" :show-confirm-button="false">
  102. <view class="slot-content" >
  103. <swiper class="swiper" circular :indicator-dots="true" :autoplay="true" :interval="2500"
  104. :duration="500">
  105. <swiper-item class="swiperitem" v-if="showNt">
  106. <u-image width="600" style="margin: auto;min-height: 250px;" mode="widthFix" v-show="showNtStep==0"
  107. src="@/assets/img/nt/f5surprised-1.png">
  108. <view slot="loading" style="height: 200px;">
  109. <u-loading mode="flower" size="186">
  110. </u-loading>
  111. </view>
  112. </u-image>
  113. <view style="color: #ecc07d;
  114. font-size: 64rpx;
  115. position: relative;
  116. top: -220rpx;
  117. right: -100rpx; width: 400rpx;" @click="showNtStepClick" v-show="showNtStep==0">
  118. <span>.</span>
  119. </view>
  120. <u-image width="600" height="700" style="margin: auto;;min-height: 250px;" mode="scaleToFill"
  121. v-show="showNtStep==1" src="@/assets/img/nt/f5surprised-2.png">
  122. </u-image>
  123. <u-image width="600" style="margin: auto;min-height: 250px;" mode="widthFix"
  124. v-show="showNtStep==2" src="@/assets/img/nt/nt-activity-3.png">
  125. </u-image>
  126. <u-image width="500" style="color: #FFFFFF;
  127. font-size: 64rpx;
  128. position: relative;
  129. top: -540rpx;
  130. right: -60rpx;height: 0;
  131. " mode="widthFix" v-show="showNtStep==2" src="@/assets/img/nt/f5surprised-3.png">
  132. </u-image>
  133. <view style="color: #ecc07d;
  134. font-size: 72rpx;
  135. position: relative;
  136. top: -180rpx;
  137. right: -144rpx; width: 310rpx;" @click="showNtStepClick" v-show="showNtStep==2">
  138. <span>.</span>
  139. </view>
  140. <view style="color: #FFFFFF;
  141. font-size: 64rpx;
  142. position: relative;
  143. top: -528rpx;
  144. right: -80rpx;" :style="{
  145. right:showNtValue>99?'-80rpx':(showNtValue>9?'-95rpx':'-110rpx')
  146. }" v-show="showNtStep==1"><b>{{showNtValue}}</b>
  147. <span style="font-size: 28rpx;">元</span>
  148. </view>
  149. <view style="color: #ecc07d;
  150. font-size: 72rpx;
  151. position: relative;
  152. top: -270rpx;
  153. right: -144rpx; width: 310rpx;" @click="showNtStepClick" v-show="showNtStep==1">
  154. <span>.</span>
  155. </view>
  156. </swiper-item>
  157. <swiper-item class="swiperitem" v-for="(item,i) in bannerListTop" :key="i">
  158. <u-image width="500" height="500" bgColor="#ff000000" style="margin: auto;min-height: 250px;"
  159. mode="widthFix" @click="clickBannerTopI(i)" :src="item.picUrl">
  160. <view slot="loading" style="height: 200px;">
  161. <u-loading mode="flower" size="186">
  162. </u-loading>
  163. </view>
  164. </u-image>
  165. </swiper-item>
  166. </swiper>
  167. <u-image width="36px"
  168. style="margin: auto; margin-top: 10px;" mode="widthFix" @click="showTop=false"
  169. src="../../assets/img/if-close-line-circled.png"></u-image>
  170. </view>
  171. </u-modal>
  172. <!-- 模式选择 -->
  173. <u-mask :show="show">
  174. <view class="wrap">
  175. <view class="shema" @tap.stop>
  176. <view class="title">
  177. 设置浏览模式
  178. </view>
  179. <view class="">
  180. <u-radio-group v-model="value">
  181. <u-radio v-for="(item, index) in list" :key="index" :name="item.name"
  182. :disabled="item.disabled" active-color="#00B962">
  183. {{item.name}}
  184. <p v-if="item.name == '长辈模式'">字体更大 看的清楚</p>
  185. <p v-if="item.name == '标准模式'">信息丰富 功能全面</p>
  186. </u-radio>
  187. </u-radio-group>
  188. </view>
  189. <view class="hint">可在 {{""}}我的-设置 {{""}}页面中切换</view>
  190. <view class="btn-box">
  191. <u-button class="choice-btn" type="success" shape="circle"
  192. @click="elderClick">我选好了</u-button>
  193. </view>
  194. </view>
  195. </view>
  196. </u-mask>
  197. <!-- <view class="top-up-title oldTextjp" oldstyle="font-size:20px;"><text class="line"></text>最新活动</view>
  198. <view class="img-box">
  199. <view class="img-1" v-for="(item,index) in activityList" :key="item.id"
  200. @click="rechargeActivity(item)">
  201. <img :src="item.picUrl" alt="">
  202. </view>
  203. </view> -->
  204. </view>
  205. <!-- 最新活动 -->
  206. <view class=" top-up" v-if="activityList.length > 0 && activityListShow">
  207. <view class="top-up-title oldTextjp" oldstyle="font-size:20px;"><text class="line"></text>最新活动</view>
  208. <view class="img-box2">
  209. <view class="left-image" :style="{backgroundImage: 'url(' + activityDateList.picUrl + ')'}"
  210. @click="rechargeActivity(activityDateList)">
  211. <p>{{activityDateList.name}}</p>
  212. <view class="time-activities">
  213. 距活动结束仅剩 <text class="time">{{description}}</text>
  214. </view>
  215. </view>
  216. <view class="right-image">
  217. <img class="margin-bottom" v-for="(item,index) in activityList" :key="item.id"
  218. @click="rechargeActivity(item)" :src="item.narrowUrl" alt="">
  219. <!-- <img class="margin-bottom" src="../../assets/img/topup2.png" alt="" @click="rechargeActivity(0)">
  220. <img class="margin-bottom" src="../../assets/img/topup3.png" alt="" @click="rechargeActivity(1)"> -->
  221. </view>
  222. </view>
  223. </view>
  224. <template v-if="message == 'getLocation:ok' && stationList.length != 0 && chargeList.length == 0">
  225. <view class=" top-up">
  226. <view class="top-up-title oldTextjp" oldstyle="font-size:20px;"><text class="line"></text>附近站点
  227. <view class="pack-up" v-show="!listShow" @click="listShow=true">
  228. 收起<text class="iconfont">&#xe607;</text>
  229. </view>
  230. <view class="pack-up" v-if="listShow" @click="listShow=false">
  231. 展开<text class="iconfont">&#xe62c;</text>
  232. </view>
  233. </view>
  234. </view>
  235. <!-- 附近站点 -->
  236. <template v-for="(stationData,i) in stationList" >
  237. <view class="station" :key="i+'abcd'" v-show="!listShow||i==0"
  238. @click="gotoUrl('pages/searchPile/stationAndPile/stationDetails?id=' + stationData.id)">
  239. <view class="head">
  240. <view class="title oldTextjp" oldstyle="font-size: 20px;">
  241. {{stationData.name}}
  242. </view>
  243. <view class="distance ">
  244. <text class="iconfont"
  245. style="color:#666666">&#xe615;</text>{{stationData.distance!=null&&stationData.distance>0.1 ? stationData.distance.toFixed(1)+'公里':'小于100米'}}
  246. </view>
  247. </view>
  248. <view class="sign" v-if="stationData.stationType==50">
  249. <view class="sign-tag sign-0" v-if="stationData.isRecommend">推荐</view>
  250. <view class="sign-tag sign-5" v-if="stationData.isAlways">常用</view>
  251. <view class="sign-tag sign-6" v-if="stationData.isSpecial">特价</view>
  252. {{stationData.address}}
  253. </view>
  254. <view class="sign" v-else>
  255. <view class="sign-tag sign-0" v-if="stationData.isRecommend">推荐</view>
  256. <view class="sign-tag sign-5" v-if="stationData.isAlways">常用</view>
  257. <view class="sign-tag sign-6" v-if="stationData.isSpecial">特价</view>
  258. <!-- -->
  259. <view class="sign-1"
  260. v-if="stationData.giveDiscount&&stationData.discountRatio&&stationData.discountRatio!=100">
  261. 会员{{discountRatio10(stationData.discountRatio)}}折</view>
  262. <view class="sign-3" v-if="stationData.category=='超充'">160kW超充站</view>
  263. <view class="sign-4"
  264. v-if="stationData.nightLowPriceEnabled">
  265. 夜间超低价</view>
  266. <view class="sign-2" v-if="stationData.platformType==1">自营站</view>
  267. <view class="sign-2" v-if="stationData.tagList.length != 0"
  268. v-for="(tagName,tagIndex) in stationData.tagList" :key="tagIndex">{{tagName}}</view>
  269. </view>
  270. <view class="price-free oldTextClass">
  271. <view class="price" v-if="personInfo&&personInfo.userType==2">
  272. <view class="price-1">
  273. <text class="num">
  274. {{!stationData.giveDiscount ? (stationData.electricityPrice+stationData.servicePrice).toFixed(2)
  275. : (stationData.electricityPrice+stationData.discountServicePrice).toFixed(2)}}</text>
  276. <text class="unit " oldstyle="font-size: 48rpx;">元/度</text>
  277. </view>
  278. <view class="price-2 " oldstyle="font-size: 48rpx;" v-if="stationData.giveDiscount">
  279. <text
  280. class="num">{{(stationData.electricityPrice+stationData.servicePrice).toFixed(2)}}</text>
  281. <text class="unit ">元/度</text>
  282. </view>
  283. </view>
  284. <!-- 游客价格-->
  285. <view class="price" v-else>
  286. <view class="price-1">
  287. <text class="num">
  288. {{(stationData.electricityPrice+stationData.servicePrice).toFixed(2)}}</text>
  289. <text class="unit " oldstyle="font-size: 48rpx;">元/度</text>
  290. </view>
  291. <view class="price-3 " oldstyle="font-size: 48rpx;" v-if="stationData.giveDiscount">
  292. <text class="num1">会员</text>
  293. <text class="num">{{ (stationData.electricityPrice+stationData.discountServicePrice).toFixed(2)}}</text>
  294. <text class="unit ">元/度</text>
  295. </view>
  296. </view>
  297. <view class="free">
  298. <view class="fast" v-if="stationData.fastNum">
  299. <view class="fast-font">
  300. </view>
  301. <view class="num">
  302. {{stationData.fastAvailableNum}}
  303. </view>
  304. <view class="num1">
  305. /{{stationData.fastNum}}
  306. </view>
  307. </view>
  308. <view class="slow oldTextjp2" oldstyle="margin-left: 1px;" v-if="stationData.slowNum">
  309. <view class="slow-font">
  310. </view>
  311. <view class="num">
  312. {{stationData.slowAvailableNum}}
  313. </view>
  314. <view class="num1">
  315. /{{stationData.slowNum}}
  316. </view>
  317. </view>
  318. </view>
  319. </view>
  320. </view>
  321. <view class="piccBanner" @click="gotoUrl('pages/user/sharePicc')" :key="i" style="
  322. text-align: center;
  323. padding: 4px 16px;
  324. margin-top: 8px; " v-if="(stationList.length<=2&&stationList.length-1==i)||(stationList.length>2&&i==1)">
  325. <image src="@/assets/img/gologin/piccBanner.png" style="height: 154rpx;width: 100%;" ></image>
  326. </view>
  327. </template>
  328. <view class="bottom" @click="searchStationData(true)" v-if="recordsTotal2!=stationList.length">
  329. <view class="bot">
  330. <view class="bot-line"></view>
  331. <view class="bot-text " style="color: #00B962;">点击查看更多站点</view>
  332. <view class="bot-line"></view>
  333. </view>
  334. </view>
  335. <view class="bottom" v-else>
  336. <view class="bot">
  337. <view class="bot-line"></view>
  338. <view class="bot-text " style="color: #00B962;">已经到底了</view>
  339. <view class="bot-line"></view>
  340. </view>
  341. </view>
  342. </template>
  343. <template v-if="loading&&message == 'getLocation:ok' && stationList.length == 0 && chargeList.length == 0">
  344. <view class="location-box">
  345. <view class="location">
  346. <view class="location-text">
  347. <view class="text-1 oldTextjp" oldstyle="font-size: 20px;">
  348. {{loading?'查询失败':'加载中'}}
  349. </view>
  350. <view class="text-2 oldTextjp2" oldstyle="font-size: 16px;">
  351. {{loading?'未查询到可用的站点':'正在为你查找附近的站点'}}
  352. </view>
  353. <view class="text-3 oldTextjp2"
  354. v-if="loading"
  355. oldstyle="font-size: 16px;" @click="toSearchPile" >
  356. 去找桩
  357. </view>
  358. </view>
  359. <view class="img-box">
  360. <img src="static/img/暂无网络信号-缺省页 1.png">
  361. </view>
  362. </view>
  363. </view>
  364. </template>
  365. <!-- 定位 -->
  366. <view class="location-box"
  367. v-if="message != 'getLocation:ok' && stationList.length == 0 && chargeList.length == 0">
  368. <view class="location">
  369. <view class="location-text">
  370. <view class="text-1 oldTextjp" oldstyle="font-size: 20px;">
  371. 定位中...
  372. </view>
  373. <view class="text-2 oldTextjp2" oldstyle="font-size: 16px;">
  374. 授权定位后可查询附近充电站
  375. </view>
  376. <view class="text-3 oldTextjp2" oldstyle="font-size: 16px;" @click="getPoint()">
  377. 重新定位
  378. </view>
  379. </view>
  380. <view class="img-box">
  381. <img src="static/img/暂无网络信号-缺省页 1.png">
  382. </view>
  383. </view>
  384. </view>
  385. <!-- 附近站点 -->
  386. <view class="station" v-for="(stationData,i) in defaultStation" :key="i" v-if="stationList.length == 0 && chargeList.length == 0"
  387. @click="gotoUrl('pages/searchPile/stationAndPile/stationDetails?id=' + stationData.id)">
  388. <view class="head">
  389. <view class="title oldTextjp" oldstyle="font-size: 20px;">
  390. {{stationData.name}}
  391. </view>
  392. <view class="distance " v-if="false">
  393. <text class="iconfont"
  394. style="color:#666666">&#xe615;</text>{{stationData.distance!=null&&stationData.distance>0.1 ? stationData.distance.toFixed(1)+'公里':'小于100米'}}
  395. </view>
  396. </view>
  397. <view class="sign" >
  398. <view class="sign-tag sign-0" >推荐</view>
  399. <!-- -->
  400. <view class="sign-1"
  401. v-if="stationData.giveDiscount&&stationData.discountRatio&&stationData.discountRatio!=100">
  402. 会员{{discountRatio10(stationData.discountRatio)}}折</view>
  403. <view class="sign-3" v-if="stationData.category=='超充'">160kW超充站</view>
  404. <view class="sign-4"
  405. v-if="stationData.nightLowPriceEnabled">
  406. 夜间超低价</view>
  407. <view class="sign-2" v-if="stationData.platformType==1">自营站</view>
  408. <view class="sign-2" v-if="stationData.tagList.length != 0"
  409. v-for="(tagName,tagIndex) in stationData.tagList" :key="tagIndex">{{tagName}}</view>
  410. </view>
  411. <view class="price-free oldTextClass">
  412. <view class="price" v-if="personInfo&&personInfo.userType==2">
  413. <view class="price-1 ">
  414. <text class="num">
  415. {{!stationData.giveDiscount ? (stationData.electricityPrice+stationData.servicePrice).toFixed(2)
  416. : (stationData.electricityPrice+stationData.discountServicePrice).toFixed(2)}}</text>
  417. <text class="unit " oldstyle="font-size: 48rpx;">元/度</text>
  418. </view>
  419. <view class="price-2 " oldstyle="font-size: 48rpx;" v-if="stationData.giveDiscount">
  420. <text
  421. class="num">{{(stationData.electricityPrice+stationData.servicePrice).toFixed(2)}}</text>
  422. <text class="unit ">元/度</text>
  423. </view>
  424. </view>
  425. <!-- 游客价格-->
  426. <view class="price" v-else>
  427. <view class="price-1">
  428. <text class="num">
  429. {{(stationData.electricityPrice+stationData.servicePrice).toFixed(2)}}</text>
  430. <text class="unit " oldstyle="font-size: 48rpx;">元/度</text>
  431. </view>
  432. <view class="price-3 " oldstyle="font-size: 48rpx;" v-if="stationData.giveDiscount">
  433. <text class="num1">会员</text>
  434. <text class="num">{{ (stationData.electricityPrice+stationData.discountServicePrice).toFixed(2)}}</text>
  435. <text class="unit ">元/度</text>
  436. </view>
  437. </view>
  438. <view class="free">
  439. <view class="fast" v-if="stationData.fastNum">
  440. <view class="fast-font">
  441. </view>
  442. <view class="num">
  443. {{stationData.fastAvailableNum}}
  444. </view>
  445. <view class="num">
  446. /{{stationData.fastNum}}
  447. </view>
  448. </view>
  449. <view class="slow oldTextjp2" oldstyle="margin-left: 1px;" v-if="stationData.slowNum">
  450. <view class="slow-font">
  451. </view>
  452. <view class="num">
  453. {{stationData.slowAvailableNum}}
  454. </view>
  455. <view class="num1">
  456. /{{stationData.slowNum}}
  457. </view>
  458. </view>
  459. </view>
  460. </view>
  461. </view>
  462. <view class="piccBanner" v-if="stationList.length == 0 && chargeList.length == 0"
  463. @click="gotoUrl('pages/user/sharePicc')" style="
  464. text-align: center;
  465. padding: 4px 16px;
  466. margin-top: 8px; " >
  467. <image src="@/assets/img/gologin/piccBanner.png" style="height: 154rpx;width: 100%;" ></image>
  468. </view>
  469. <!-- 新闻 -->
  470. <view class="news-title" v-if="chargeList.length > 0">
  471. <view class="news-title-left oldTextjp" oldstyle="font-size:20px;">
  472. <view class="line" style="margin-top:4px;"></view>充电车辆
  473. <view class="lineBox" v-if="chargeList.length > 1">{{chargeList.length }}</view>
  474. </view>
  475. <view class="more oldTextjp2" oldstyle="font-size:16px;" v-if="chargeList.length > 3" @click="toAll">查看全部
  476. <view class="more-icon iconfont"> &#xe600;</view>
  477. </view>
  478. </view>
  479. <!-- 充电状态 -->
  480. <view class="state1 state" v-if="chargeList.length > 0" v-for="(item,index) in chargeList" v-show="index<3"
  481. :key="item.id" @click="gotoUrl('pages/searchPile/chargeProcess/dcCharging?id=' + item.id)">
  482. <view class="state-text">
  483. <view class="text-1 " oldstyle="font-size: 20px;">
  484. <span v-if="item.carNumber">{{item.carNumber}}</span>
  485. {{item.statusText}}...
  486. </view>
  487. <view v-if="item.status == '0'" class="text-2 " oldstyle="font-size: 16px;">
  488. 启动中
  489. </view>
  490. <view v-if="item.status == '1'" class="text-2 " oldstyle="font-size: 16px;">
  491. 已充
  492. <span
  493. class="text-21">{{item.electricQuantity?(item.electricQuantity/10000).toFixed(1):'0.0'}}度</span>
  494. 合计<span class="text-22">{{item.dueFee != null ? item.dueFee.toFixed(2) : '0.00'}}元</span>
  495. <view style="display: initial;" v-if="item.endSoc">电量<span class="text-21">{{item.endSoc}}%</span>
  496. </view>
  497. </view>
  498. <!-- <view v-if="item.status == '2'" class="text-2" style="color: red;">
  499. 超出时间将收取占位费
  500. </view> -->
  501. <view v-if="item.status == '4'" class="text-2 oldTextjp2" oldstyle="font-size: 16px;">
  502. <span v-if="item.waitNum==1">请耐心等待</span>
  503. <span v-else>前方等待{{item.waitNum-1}}位</span>
  504. </view>
  505. <view class="text-3 " oldstyle="font-size: 16px;">
  506. <p style=" width: 160%;">
  507. {{item.deviceName}}枪{{channelNoShow(item.channelNo,item.manufacturer)}}/{{item.stationName}}<br />当前电价{{item.chargingCostPrice.toFixed(2)}}元/度
  508. </p>
  509. </view>
  510. </view>
  511. <view class="img-box4">
  512. <img v-if="item.status == '0'" src="static/img/等待中-缺省页.png">
  513. <img v-if="item.status == '1'" src="static/img/充电中-缺省页.png">
  514. <img v-if="item.status == '2'" src="static/img/已充满-缺省页.png">
  515. <img v-if="item.status == '4'" src="static/img/等待中-缺省页.png">
  516. <view class="img-view">
  517. <view class="more-icon iconfont">查看 &#xe600;</view>
  518. </view>
  519. </view>
  520. </view>
  521. <view class="bottom" v-if="chargeList.length > 3" @click="toAll()">
  522. <view class="bot">
  523. <view class="bot-line"></view>
  524. <view class="bot-text " style="color: #00B962;">点击查看全部充电车辆</view>
  525. <view class="bot-line"></view>
  526. </view>
  527. </view>
  528. <!-- 新闻 -->
  529. <view id="options-item" class="news-title" v-if="newsList.length > 0" >
  530. <!-- <view class="news-title-left oldTextjp" oldstyle="font-size:20px;">
  531. <view class="line" style="margin-top:4px;"></view>活动公告
  532. </view>
  533. <view class="more oldTextjp2" oldstyle="font-size:16px;" >更多<view
  534. class="more-icon iconfont"> &#xe600;</view>
  535. </view> -->
  536. <ujp-notice-bar
  537. @click="toNewsArticleDetails"
  538. color="#FF3D00" bg-color="#fff"
  539. :list="newsList"></ujp-notice-bar>
  540. </view>
  541. <view class="news-title" >
  542. <view class="news-title-left oldTextjp" oldstyle="font-size:20px;">
  543. <view class="line" style="margin-top:4px;"></view>51商城
  544. </view>
  545. <view class="more oldTextjp2" oldstyle="font-size:16px;" >
  546. 备货中,敬请期待!
  547. </view>
  548. </view>
  549. <view class="shopList" @click="bhz" >
  550. <view class="shopItem" v-for="(item,i) in shopList" :key="i">
  551. <view class="shopItemImg">
  552. <img :src="item.img" >
  553. </view>
  554. <view class="shopItemName" >
  555. <img v-if="item.iszy" style="width:52px; height:16px; vertical-align: middle;" src="@/assets/img/buy/ptzy.png">
  556. {{item.name}}</view>
  557. <view class="shopItemPrice" >
  558. <view class="shopItemPrice1" v-if="personInfo&&personInfo.userType==2&&personInfo.memberLevel&&item.prices" >
  559. ¥{{item.prices[personInfo.memberLevel]?item.prices[personInfo.memberLevel]:item.price+"&&"}}</view>
  560. <view class="shopItemPrice1" v-else >¥{{item.price}}</view>
  561. <view class="shopItemPrice2">
  562. <u-icon name="shopping-cart"></u-icon>
  563. </view>
  564. </view>
  565. </view>
  566. </view>
  567. <view class="bottom">
  568. <view class="bot">
  569. <view class="bot-line"></view>
  570. <view class="bot-text oldTextjp2" oldstyle="font-size: 14px;">已经到底了</view>
  571. <view class="bot-line"></view>
  572. </view>
  573. </view>
  574. <!-- 导航栏 -->
  575. <view class="navigation">
  576. <view class="login-prompt" v-if="!userId">
  577. 登录显示更多会员服务
  578. <text class="button" @click="toLogin">登录/注册</text>
  579. </view>
  580. </view>
  581. <view class="slogan-4 " v-show="couponList.length||bannerListTop.length"
  582. @click="showTop=true,getBannerInfoTopBl=true">
  583. <u-icon :class="{
  584. imageshake :couponList.length&&showNtStep==0
  585. }"
  586. size="45"
  587. name="gift"></u-icon>
  588. </view>
  589. <Tabbar :current="0" ref="tabbarMain" :elderStatus="elderStatus"></Tabbar>
  590. </view>
  591. </template>
  592. <script>
  593. import * as API from '@/apis/index.js'
  594. import * as newsApi from '@/apis/news.js'
  595. import * as WxJsApi from '@/utils/wxJsApi.js'
  596. import * as siteApi from '@/apis/site.js'
  597. import * as loginApi from '@/apis/login.js'
  598. import * as userApi from '@/apis/user.js'
  599. import MapLoader from '@/utils/AMap'
  600. import Tabbar from '@/components/Tabbar.vue'
  601. var img1=require("@/assets/img/shopimg/1.png")
  602. var img2=require("@/assets/img/shopimg/2.png")
  603. var img3=require("@/assets/img/shopimg/3.png")
  604. var img4=require("@/assets/img/shopimg/4.png")
  605. import {
  606. newDate,
  607. currentTimeStamp,
  608. parseUnixTime,
  609. secondsDistance,
  610. hourDistanceArr
  611. } from '@/utils'
  612. export default {
  613. components: {
  614. Tabbar
  615. },
  616. data() {
  617. return {
  618. listShow: false,
  619. stationList: [],
  620. bannerList: [],
  621. bannerListTop: [],
  622. timeOut: false,
  623. pointTimeOut: true,
  624. chargeList: [],
  625. activityList: [],
  626. userId: '',
  627. newsList: [],
  628. pageIndex: 1,
  629. recordsTotal: 0,
  630. longitude: '',
  631. latitude: '',
  632. message: '',
  633. indexLogo: '',
  634. showOss: false,
  635. showOssImg: '',
  636. showOssIndex: '',
  637. loading:false,
  638. showTop: false,
  639. showTopImg: '',
  640. showTopIndex: 0,
  641. getBannerInfoTopBl:true,
  642. newsListData:[],
  643. show: false,
  644. list: [{
  645. name: '长辈模式',
  646. disabled: false
  647. },
  648. {
  649. name: '标准模式',
  650. disabled: false
  651. },
  652. ],
  653. // u-radio-group的v-model绑定的值如果设置为某个radio的name,就会被默认选中
  654. value: '长辈模式',
  655. elderStatus: false,
  656. fontMode: '',
  657. description: '00:00:00',
  658. activityDate: '',
  659. activityDateList: {},
  660. activityListShow: false,
  661. personInfo: {},
  662. showNt: false,
  663. showNtStep: 0,
  664. showNtValue: 30,
  665. couponList: [],
  666. couponSelect: {},
  667. pageIndex2: 1,
  668. recordsTotal2: 0,
  669. defaultStation:[],
  670. flag:true,
  671. windowHeight:300,
  672. shopList:[
  673. {
  674. iszy:1,
  675. name:"7KW交流充电桩4G共享版",
  676. price:"1488",
  677. prices:["1488","1088","988","888","888"],
  678. img:img1
  679. },{
  680. iszy:1,
  681. name:"7KW交流充电桩即插即充版",
  682. price:"1088",
  683. prices:["1088","888","788","688","688"],
  684. img:img2
  685. },{
  686. name:"联通流量卡99元全国流量套餐卡纯流量",
  687. price:"99",
  688. img:img3
  689. },{
  690. price:"1880",
  691. name:"10通道智能充电桩(4G版)",
  692. img:img4
  693. }]
  694. }
  695. },
  696. onLoad(op) {
  697. if (op.jpcode) {
  698. var k = API.codeOperation(op.jpcode)
  699. if (k) {
  700. uni.navigateTo({
  701. url: k
  702. })
  703. }
  704. }
  705. },
  706. onUnload() {
  707. this.timeOut = false;
  708. this.pointTimeOut = false;
  709. },
  710. onHide() {
  711. this.timeOut = false;
  712. this.pointTimeOut = false;
  713. },
  714. onReachBottom() {
  715. // if (this.newsList.length < this.recordsTotal) {
  716. // this.myLoadmore();
  717. // }
  718. },
  719. onShow() {
  720. if (this.$refs.tabbarMain) {
  721. this.$refs.tabbarMain.setcount(0);
  722. }
  723. if (!this.pointTimeOut) {
  724. this.pointTimeOut = true
  725. this.getPointTimeOut();
  726. }
  727. this.getUserInfo();
  728. },
  729. onReady() {
  730. WxJsApi.getWxConfig(['getLocation', 'addEventListener', 'scanQRCode']).then((res) => {
  731. // //(res)
  732. }).catch(error => {
  733. //(res)
  734. })
  735. this.getBannerInfo("homepage");
  736. this.getBannerInfoTop("home-top");
  737. //this.getBannerInfoTop("home-top");
  738. this.getPointTimeOut();
  739. this.getNewsList();
  740. this.getActivityInfoList();
  741. this.getChargingStationDetail()
  742. var _this=this
  743. uni.getSystemInfo({
  744. success: function (res) {
  745. console.log(res.windowHeight)
  746. _this.windowHeight=res.windowHeight
  747. }
  748. });
  749. },
  750. onPageScroll(e) {
  751. this.onPageScrollMethod()
  752. },
  753. updated(){
  754. this.onPageScrollMethod()
  755. },
  756. methods: {
  757. onPageScrollMethod(){
  758. const query = uni.createSelectorQuery().in(this);
  759. query.select('#options-item').boundingClientRect(data => {
  760. // console.log("节点离页面顶部的距离为" + data.top);
  761. console.log("onPageScrollMethod" );
  762. //console.log(this.windowHeight,e.scrollTop ,data.top)
  763. if(data){
  764. if (this.windowHeight>= data.top+80) {
  765. this.flag =false;
  766. } else {
  767. this.flag = true;
  768. }
  769. }
  770. }).exec();
  771. },
  772. getChargingStationDetail(){
  773. var defaultStation=process.car.defaultStation
  774. for(var item in defaultStation){
  775. siteApi.getChargingStationDetail({
  776. stationId:defaultStation[item]
  777. }).then((res) => {
  778. var station=res.data.station
  779. //this.MapLoaderthen(station)
  780. this.defaultStation.push(station)
  781. }).catch(error => {
  782. uni.showToast({
  783. title: error,
  784. icon: "none"
  785. })
  786. })
  787. }
  788. },
  789. getf5surprised() {
  790. userApi.exchangeGroupDetail("逢5红包").then((res) => {
  791. var message = res.message;
  792. this.couponList = res.data;
  793. if (this.couponList.length) {
  794. var list = res.data;
  795. var x = 0;
  796. for (var i in list) {
  797. var obj = list[i]
  798. if (!obj.probability) {
  799. continue;
  800. }
  801. var end = x + obj.probability;
  802. obj.start = x;
  803. obj.end = end;
  804. x = end;
  805. }
  806. var code = parseInt(Math.random() * x)
  807. // console.log(code)
  808. // console.log(list)
  809. var selectObj = null;
  810. for (var i in list) {
  811. var obj = list[i]
  812. if (!obj.probability) {
  813. continue;
  814. }
  815. if (code >= obj.start && code < obj.end) {
  816. selectObj = obj;
  817. this.couponSelect = selectObj;
  818. break
  819. }
  820. }
  821. if (selectObj) {
  822. this.showNt = true
  823. this.showTop = true;
  824. this.showNtStep = 0;
  825. this.showNtValue = this.couponSelect.totalDiscount
  826. } else {
  827. //this.getBannerInfoTop("home-top");
  828. }
  829. //console.log(selectObj)
  830. // this.exchangeDetailF5(selectObj.key);
  831. } else if (message == '1001') { //
  832. //周五,但是因为手里有卷, 所以不能抽
  833. var nowtime = parseUnixTime(currentTimeStamp(), '{y}-{m}-{d}')
  834. var time = this.carhelp.get("getf5surprised-time");
  835. if ((time && nowtime == time)) {
  836. //this.getBannerInfoTop("home-top");
  837. } else {
  838. this.carhelp.set("getf5surprised-time", nowtime);
  839. }
  840. this.showNt = true
  841. this.showTop = true;
  842. this.showNtStep = 2;
  843. } else {
  844. //this.getBannerInfoTop("home-top");
  845. }
  846. }).catch(error => {
  847. uni.showToast({
  848. title: error,
  849. icon: "none"
  850. })
  851. })
  852. },
  853. getNewYear() {
  854. //var obj=this.carhelp.get("newyear_activity2023-2-15")
  855. //
  856. var sz = ["1615623336912621591", "1615623336912621590"];
  857. var code = parseInt(Math.random() * 2)
  858. this.carhelp.set("newyear_activity2023-2-15", {
  859. nt: sz[code],
  860. code: code,
  861. status: 0
  862. })
  863. //先查询另一个领取过没
  864. userApi.exchangeDetail({
  865. key: sz[code == 0 ? 1 : 0]
  866. }).then((res) => {
  867. if (!res.data.enabled) {
  868. if (res.data.code == 2) {
  869. //未开始
  870. } else {
  871. //已经结束
  872. }
  873. //this.getBannerInfoTop("home-top");
  874. } else if (res.data.status == 1) {
  875. //this.getBannerInfoTop("home-top");
  876. //已经兑换,或者不能兑换
  877. } else if (res.data.status == 2) {
  878. // this.showNtValue=res.data.totalDiscount
  879. this.exchangeDetail(sz[code]);
  880. } else {
  881. //res.data.status==0
  882. //this.showNtValue=res.data.totalDiscount
  883. this.exchangeDetail(sz[code], sz[code == 0 ? 1 : 0]);
  884. }
  885. }).catch(error => {
  886. //this.showNt = false;
  887. uni.showToast({
  888. title: error,
  889. icon: "none"
  890. })
  891. })
  892. },
  893. exchangeDetail(exchangeCode, code2) {
  894. uni.showLoading({
  895. title: "加载中",
  896. mask: true,
  897. })
  898. userApi.exchangeDetail({
  899. key: exchangeCode
  900. }).then((res) => {
  901. uni.hideLoading();
  902. //
  903. if (!res.data.enabled) {
  904. if (res.data.code == 2) {
  905. //未开始
  906. } else {
  907. //已经结束
  908. }
  909. //this.getBannerInfoTop("home-top");
  910. } else if (res.data.status == 1) {
  911. //this.getBannerInfoTop("home-top");
  912. //已经兑换,
  913. } else if (res.data.status == 2) {
  914. if (code2) {
  915. //试试另一张卷
  916. var c = this.carhelp.get("newyear_activity2023-2-15")
  917. if (c) {
  918. this.carhelp.set("newyear_activity2023-2-15", {
  919. nt: code2,
  920. code: c.code == 0 ? 1 : 0,
  921. status: 0
  922. })
  923. }
  924. this.exchangeDetail(code2)
  925. } else {
  926. //this.getBannerInfoTop("home-top");
  927. }
  928. //不能兑换
  929. } else {
  930. this.showNt = true
  931. this.showTop = true;
  932. this.showNtStep = 0;
  933. this.showNtValue = res.data.totalDiscount
  934. }
  935. }).catch(error => {
  936. //this.showNt = false;
  937. uni.showToast({
  938. title: error,
  939. icon: "none"
  940. })
  941. })
  942. },
  943. redeemF5(exchangeCode) {
  944. uni.showLoading({
  945. title: "加载中",
  946. mask: true,
  947. })
  948. userApi.exchangeByGroupFive({
  949. key: exchangeCode
  950. }).then((res) => {
  951. uni.hideLoading();
  952. this.showNtStep = 1
  953. var nowtime = parseUnixTime(currentTimeStamp(), '{y}-{m}-{d}')
  954. this.carhelp.set("getf5surprised-time", nowtime);
  955. }).catch(error => {
  956. //this.showNt = false;
  957. uni.showToast({
  958. title: error,
  959. icon: "none"
  960. })
  961. })
  962. },
  963. redeemNow(exchangeCode) {
  964. uni.showLoading({
  965. title: "加载中",
  966. mask: true,
  967. })
  968. userApi.exchange({
  969. key: exchangeCode
  970. }).then((res) => {
  971. uni.hideLoading();
  972. this.showNtStep = 1
  973. this.carhelp.set("newyear_activity2023-2-15", {
  974. nt: exchangeCode,
  975. status: 1
  976. })
  977. }).catch(error => {
  978. //this.showNt = false;
  979. uni.showToast({
  980. title: error,
  981. icon: "none"
  982. })
  983. })
  984. },
  985. showNtStepClick() {
  986. if (this.showNtStep == 0) {
  987. if (this.personInfo.userType == 1) {
  988. this.showTop = false;
  989. //this.showNt = false;
  990. uni.showModal({
  991. title: "提示",
  992. content: "游客无法兑换,请先注册为会员后再兑换",
  993. confirmText: "前往注册",
  994. success: res1 => {
  995. if (res1.confirm) {
  996. uni.navigateTo({
  997. url: '/pages/login/login'
  998. })
  999. } else if (res1.cancel) {
  1000. //('用户点击取消');
  1001. }
  1002. }
  1003. })
  1004. }else if(!this.personInfo.carLicense){
  1005. this.showTop = false;
  1006. uni.showModal({
  1007. title: "提示",
  1008. content: "请先车辆认证后再兑换",
  1009. confirmText: "车辆信息",
  1010. success: res1 => {
  1011. if (res1.confirm) {
  1012. uni.navigateTo({
  1013. url: '/pages/user/car/carDet'
  1014. })
  1015. } else if (res1.cancel) {
  1016. //('用户点击取消');
  1017. }
  1018. }
  1019. })
  1020. }else {
  1021. this.redeemF5(this.couponSelect.key);
  1022. }
  1023. } else if (this.showNtStep == 1 || this.showNtStep == 2 || this.showNtStep == 3 || this.showNtStep == 4) {
  1024. //this.showNt = false;
  1025. uni.navigateTo({
  1026. url: "/pages/user/coupon/myCoupon"
  1027. })
  1028. }
  1029. },
  1030. test() {
  1031. if (process.env.NODE_ENV === "development") {
  1032. }
  1033. },
  1034. goSearch() {
  1035. this.$refs.tabbarMain.beforeSwitch(1)
  1036. },
  1037. nextTop(index) {
  1038. this.showTopImg = this.bannerListTop[index + 1].picUrl;
  1039. this.showTopIndex = index + 1;
  1040. },
  1041. getDescriptionTime() {
  1042. var date = this.activityDate;
  1043. var dateMonth1 = new Date().getMonth() + 1;
  1044. var dateDay1 = new Date().getDate();
  1045. var dateMonth2 = parseInt(date.slice(5, 7));
  1046. var dateDay2 = parseInt(date.slice(8, 10));
  1047. if (dateMonth1 < dateMonth2) {
  1048. var days = new Date(new Date().getFullYear(), dateMonth1, 0).getDate();
  1049. dateDay2 = dateDay2 + days;
  1050. console.log(dateDay2)
  1051. }
  1052. if (dateDay1 < dateDay2 - 2) {
  1053. this.description = dateDay2 - dateDay1 + '天'
  1054. } else {
  1055. var dateTime2 = new Date(date).getTime()
  1056. var c = hourDistanceArr(new Date(), new Date(dateTime2))
  1057. if (c[0] < 10) {
  1058. c[0] = '0' + c[0];
  1059. }
  1060. if (c[1] < 10) {
  1061. c[1] = '0' + c[1];
  1062. }
  1063. if (c[2] < 10) {
  1064. c[2] = '0' + c[2];
  1065. }
  1066. this.description = c[0] + ':' + c[1] + ':' + c[2];
  1067. if (this.description == '00:00:00') {
  1068. this.activityListShow = false;
  1069. }
  1070. setTimeout(() => {
  1071. this.getDescriptionTime();
  1072. }, 1000)
  1073. }
  1074. },
  1075. getUserInfo() {
  1076. uni.showLoading({
  1077. title: "加载中",
  1078. mask: true,
  1079. })
  1080. loginApi.findByOpenId({
  1081. openId: this.carhelp.getOpenId(),
  1082. noerror: true,
  1083. }).then((res) => {
  1084. uni.hideLoading();
  1085. if (res.code == 200 && res.result) {
  1086. this.personInfo = res.data.regUser;
  1087. var token = res ? res.data.token : '';
  1088. this.carhelp.setPersonInfo(res.data.regUser);
  1089. this.carhelp.setToken(token);
  1090. this.carhelp.setPersonInfoPlus(res.data);
  1091. }
  1092. console.log("--------------")
  1093. if (res.data && res.data.regUser) {
  1094. // if (res.data.regUser.fontMode == null) {
  1095. // this.show = true;
  1096. // } else {
  1097. // this.show = false;
  1098. // this.fontMode = res.data.regUser.fontMode;
  1099. // if (this.fontMode == '1') {
  1100. // this.carhelp.set("getElderModeClass", "长辈模式");
  1101. // } else {
  1102. // this.carhelp.set("getElderModeClass", "标准模式");
  1103. // }
  1104. // }
  1105. this.userId = res.data.regUser.id;
  1106. this.getFindChargeData();
  1107. if(res.data.regUser.fontMode=="1"){
  1108. this.checked = true;
  1109. this.carhelp.set("getElderModeClass","长辈模式")
  1110. }
  1111. if (this.carhelp.get("getElderModeClass")) {
  1112. if (this.carhelp.get("getElderModeClass") == "长辈模式") {
  1113. this.elderStatus = true;
  1114. } else {
  1115. this.elderStatus = false;
  1116. }
  1117. }else{
  1118. this.carhelp.set("getElderModeClass", "标准模式");
  1119. this.elderStatus = false;
  1120. }
  1121. } else {
  1122. if (!this.carhelp.get("getElderModeClass")) {
  1123. this.carhelp.set("getElderModeClass", "标准模式");
  1124. }
  1125. this.elderStatus = true;
  1126. var obj = this.carhelp.get("friends_invitation")
  1127. // this.carhelp.set("friends_invitation",{
  1128. // op:op,
  1129. // date:new Date().getTime()
  1130. // })
  1131. if (obj && false) {
  1132. if (obj.date + 1000 * 60 * 60 * 24 > new Date().getTime()) {
  1133. this.friendsInvitation(obj)
  1134. }
  1135. }
  1136. }
  1137. }).catch(error => {
  1138. uni.showToast({
  1139. title: error,
  1140. icon: "none"
  1141. })
  1142. })
  1143. },
  1144. friendsInvitation(obj) {
  1145. uni.showLoading({
  1146. title: "加载中",
  1147. mask: true,
  1148. })
  1149. API.findActivity({
  1150. id: obj.op.id,
  1151. code: obj.op.icode
  1152. }).then((res) => {
  1153. uni.hideLoading()
  1154. obj.activityInfo = res.data.activityInfo;
  1155. var name = res.data.activityInfo.name;
  1156. var title = "参与活动"
  1157. var okbtn = "前往注册"
  1158. var endTime = res.data.activityInfo.endTime;
  1159. if (endTime && secondsDistance(newDate(endTime)) > 0) {
  1160. name = "活动已结束"
  1161. okbtn = "继续注册"
  1162. title = "提示"
  1163. obj = null
  1164. }
  1165. this.carhelp.set("friends_invitation", obj)
  1166. uni.showModal({
  1167. title: title,
  1168. content: name,
  1169. confirmText: okbtn,
  1170. success: res1 => {
  1171. if (res1.confirm) {
  1172. uni.navigateTo({
  1173. url: '/pages/login/login'
  1174. })
  1175. } else if (res1.cancel) {
  1176. //('用户点击取消');
  1177. }
  1178. }
  1179. })
  1180. }).catch(error => {
  1181. uni.showToast({
  1182. title: error,
  1183. icon: "none"
  1184. })
  1185. })
  1186. },
  1187. clickBannerTopI(i) {
  1188. var mod = this.bannerListTop[i];
  1189. //this.showTop = false;
  1190. this.clickBanner(0, true, mod)
  1191. },
  1192. clickBannerTop() {
  1193. var mod = this.bannerListTop[this.showTopIndex];
  1194. this.showTop = false;
  1195. this.clickBanner(0, true, mod)
  1196. },
  1197. clickBanner(index, bl, modout) {
  1198. var uurl = "";
  1199. var mod = this.bannerList[index]
  1200. if (modout) {
  1201. mod = modout;
  1202. }
  1203. mod.clickUrl = mod.linkUrl
  1204. if (mod.linkPicUrl && !bl) {
  1205. this.showOss = true;
  1206. this.showOssImg = mod.linkPicUrl;
  1207. this.showOssIndex = index;
  1208. } else if (mod.clickUrl == null) {
  1209. } else if (mod.clickUrl.indexOf('http') == 0) {
  1210. window.location = mod.clickUrl + uurl;
  1211. } else if (mod.clickUrl.slice(-5) == 'login' && this.userId) {
  1212. } else if (mod.clickUrl.indexOf('#/') == 0) {
  1213. if (mod.clickUrl.indexOf("?") == -1) {
  1214. mod.clickUrl += '?';
  1215. }
  1216. var url = mod.clickUrl.split("#")[1]
  1217. //window.location = mod.clickUrl;
  1218. uni.navigateTo({
  1219. url: url + uurl
  1220. })
  1221. } else if (mod.clickUrl == '#' || mod.clickUrl == '') {
  1222. } else {
  1223. uni.navigateTo({
  1224. url: mod.clickUrl + uurl
  1225. })
  1226. }
  1227. },
  1228. getBannerInfoTop(code) {
  1229. var nowtime = parseUnixTime(currentTimeStamp(), '{y}-{m}-{d}')
  1230. var time = this.carhelp.get("bannerListTop");
  1231. if ((time && nowtime == time)) {
  1232. this.getBannerInfoTopBl=false;
  1233. }
  1234. uni.showLoading({
  1235. title: "加载中",
  1236. mask: true,
  1237. })
  1238. newsApi.getBannerInfo(code).then((res) => {
  1239. this.bannerListTop = res.data;
  1240. if (this.bannerListTop.length) {
  1241. this.showTop = true;
  1242. this.showTopImg = this.bannerListTop[0].picUrl;
  1243. this.showTopIndex = 0;
  1244. }
  1245. this.carhelp.set("bannerListTop", nowtime);
  1246. //this.test()
  1247. var userInfo = this.carhelp.getPersonInfo();
  1248. if (userInfo && userInfo.id) {
  1249. this.getf5surprised()
  1250. } else {
  1251. }
  1252. uni.hideLoading()
  1253. //document.getElementsByClassName("uni-swiper-wrapper")[0].parentNode.style="background-color: rgb(255, 255, 255); height: 120px;"
  1254. }).catch(error => {
  1255. uni.showToast({
  1256. title: error,
  1257. icon: "none"
  1258. })
  1259. })
  1260. },
  1261. getBannerInfo(code) {
  1262. uni.showLoading({
  1263. title: "加载中",
  1264. mask: true,
  1265. })
  1266. newsApi.getBannerInfo(code).then((res) => {
  1267. this.bannerList = res.data;
  1268. uni.hideLoading()
  1269. //document.getElementsByClassName("uni-swiper-wrapper")[0].parentNode.style="background-color: rgb(255, 255, 255); height: 120px;"
  1270. }).catch(error => {
  1271. uni.showToast({
  1272. title: error,
  1273. icon: "none"
  1274. })
  1275. })
  1276. },
  1277. elderClick() {
  1278. if (this.value == "长辈模式") {
  1279. this.elderStatus = true;
  1280. this.carhelp.set("getElderModeClass", "长辈模式");
  1281. this.fontMode = '1';
  1282. } else {
  1283. this.elderStatus = false;
  1284. this.carhelp.set("getElderModeClass", "标准模式");
  1285. this.fontMode = '0';
  1286. }
  1287. API.changeFont({
  1288. fontMode: this.fontMode
  1289. }).then((res) => {
  1290. this.show = false;
  1291. }).catch(error => {
  1292. uni.showToast({
  1293. title: error,
  1294. icon: "none"
  1295. })
  1296. })
  1297. },
  1298. bhz(){
  1299. uni.showToast({
  1300. title: "备货中,敬请期待",
  1301. icon: "none"
  1302. })
  1303. },
  1304. getPointTimeOut() {
  1305. setTimeout(() => {
  1306. if (this.pointTimeOut) {
  1307. this.getPoint();
  1308. }
  1309. }, 1000)
  1310. },
  1311. getFindChargeData() {
  1312. API.findChargeData().then((res) => {
  1313. //this.onPageScrollMethod()
  1314. this.chargeList = res.data.chargingRecordList;
  1315. var list = res.data.chargingRecordList;
  1316. for (var i = 0; i < list.length; i++) {
  1317. if (list[i].status == '1' || list[i].status == '4') {
  1318. this.timeOut = true;
  1319. }
  1320. }
  1321. if (this.timeOut && this.pointTimeOut) {
  1322. setTimeout(() => {
  1323. this.getFindChargeData();
  1324. }, 5000)
  1325. }
  1326. }).catch(error => {
  1327. uni.showToast({
  1328. title: error,
  1329. icon: "none"
  1330. })
  1331. })
  1332. },
  1333. toAll() {
  1334. uni.navigateTo({
  1335. url: '/pages/index/all'
  1336. })
  1337. },
  1338. toSearchPile() {
  1339. uni.navigateTo({
  1340. url: '/pages/searchPile/searchPile'
  1341. })
  1342. },
  1343. toLogin() {
  1344. uni.navigateTo({
  1345. url: '/pages/login/login'
  1346. })
  1347. },
  1348. toNewsNotice() {
  1349. // uni.navigateTo({
  1350. // url: '/pages/article/newsNotice'
  1351. // })
  1352. uni.navigateTo({
  1353. url: '/pages/index/activity'
  1354. })
  1355. },
  1356. toNewsArticleDetails(e) {
  1357. // uni.navigateTo({
  1358. // url: '/pages/article/newsNotice'
  1359. // })
  1360. if(this.newsListData.length==1){
  1361. e=0
  1362. }
  1363. if(!e){
  1364. e=0
  1365. }
  1366. console.log(e)
  1367. var item=this.newsListData[e]
  1368. uni.navigateTo({
  1369. url: '/pages/article/articleDetails?id='+item.id
  1370. })
  1371. },
  1372. //微信扫二维码
  1373. getScanCode() {
  1374. if (this.userId) {
  1375. WxJsApi.scanQRCode(1).then(res => {
  1376. //("scanQRCode------" + res)
  1377. if (res) {
  1378. API.scanCode(res).then((response) => {
  1379. }).catch(error => {
  1380. uni.showToast({
  1381. title: error,
  1382. icon: "none"
  1383. })
  1384. })
  1385. }
  1386. }).catch(error => {
  1387. })
  1388. } else {
  1389. uni.navigateTo({
  1390. url: '/pages/login/login'
  1391. })
  1392. }
  1393. },
  1394. fastRecharge() {
  1395. if (this.userId) {
  1396. if(this.personInfo.userType==1){
  1397. uni.showToast({
  1398. title:"游客模式只支持“先付后退”"
  1399. })
  1400. }else{
  1401. uni.navigateTo({
  1402. url: '/pages/user/finance/recharge'
  1403. })
  1404. }
  1405. } else {
  1406. uni.navigateTo({
  1407. url: '/pages/login/login'
  1408. })
  1409. }
  1410. },
  1411. chargingRecord() {
  1412. if (this.userId) {
  1413. uni.navigateTo({
  1414. url: '/pages/record/index'
  1415. })
  1416. } else {
  1417. uni.navigateTo({
  1418. url: '/pages/login/login'
  1419. })
  1420. }
  1421. },
  1422. rechargeActivity(item) {
  1423. if (this.userId) {
  1424. var uurl = "&uid=" + this.userId;
  1425. var mod = item
  1426. if (mod.clickUrl == null) {
  1427. } else if (mod.clickUrl.indexOf('http') == 0) {
  1428. window.location = mod.clickUrl + uurl;
  1429. } else if (mod.clickUrl.indexOf('#/') == 0) {
  1430. if (mod.clickUrl.indexOf("?") == -1) {
  1431. mod.clickUrl += '?';
  1432. }
  1433. var url = mod.clickUrl.split("#")[1]
  1434. //window.location = mod.clickUrl;
  1435. uni.navigateTo({
  1436. url: url + uurl
  1437. })
  1438. } else if (mod.clickUrl == '#' || mod.clickUrl == '') {
  1439. } else {
  1440. uni.navigateTo({
  1441. url: mod.clickUrl + uurl
  1442. })
  1443. }
  1444. } else {
  1445. uni.navigateTo({
  1446. url: '/pages/login/login'
  1447. })
  1448. }
  1449. },
  1450. getActivityInfoList() {
  1451. uni.showLoading({
  1452. title: "加载中",
  1453. mask: true,
  1454. })
  1455. API.activityInfoList({
  1456. pageIndex: 1,
  1457. pageSize: 10
  1458. }).then((res) => {
  1459. uni.hideLoading()
  1460. var list = res.data.data;
  1461. for (let i = 0; i < list.length; i++) {
  1462. if (list[i].type == 2 && list[i].endTime != null) {
  1463. this.activityListShow = true;
  1464. var reg = new RegExp('-', 'gi');
  1465. this.activityDate = list[i].endTime.replace(reg, '/');
  1466. console.log(this.activityDate)
  1467. this.activityDateList = list[i];
  1468. list.splice(i, 1);
  1469. this.getDescriptionTime();
  1470. }
  1471. }
  1472. this.activityList = list;
  1473. }).catch(error => {
  1474. uni.showToast({
  1475. title: error,
  1476. icon: "none"
  1477. })
  1478. })
  1479. },
  1480. searchStationData(bl) {
  1481. if (bl) {
  1482. this.pageIndex2++;
  1483. }
  1484. var data = {
  1485. longitude: this.longitude,
  1486. latitude: this.latitude,
  1487. pageIndex: this.pageIndex2,
  1488. pageSize: 3
  1489. }
  1490. if (this.carhelp.getPersonInfo()) {
  1491. data.openId = this.carhelp.getOpenId()
  1492. }
  1493. this.loading = false
  1494. siteApi.searchStationData(data).then((response) => {
  1495. //this.onPageScrollMethod()
  1496. if (this.pageIndex2 == 1) {
  1497. this.stationList = response.data.data;
  1498. // this.listForm.totalPage = response.data.totalPage;
  1499. } else {
  1500. this.stationList = [
  1501. ...this.stationList,
  1502. ...response.data.data
  1503. ];
  1504. }
  1505. this.recordsTotal2 = response.data.recordsTotal;
  1506. this.loading = true
  1507. console.log(this.loading)
  1508. if (false&&response.data.data.length&&false) {
  1509. var stationDataList = response.data.data;
  1510. MapLoader().then(AMap1 => {
  1511. for (var i in stationDataList) {
  1512. var item = stationDataList[i]
  1513. var lnglat = new AMap.LngLat(this.longitude, this.latitude);
  1514. var myDistance = lnglat.distance([item.longitude, item.latitude]);
  1515. item.distance = myDistance / 1000;
  1516. console.log(item.distance)
  1517. }
  1518. })
  1519. //this.stationData = stationDataList;
  1520. }
  1521. }).catch(error => {
  1522. console.log(error,"123")
  1523. uni.showToast({
  1524. title: error,
  1525. icon: "none"
  1526. })
  1527. })
  1528. },
  1529. getPoint() {
  1530. if (this.stationList.length != 0) {
  1531. return
  1532. }
  1533. WxJsApi.getLocation().then((res) => {
  1534. this.latitude = parseFloat(res.latitude);
  1535. this.longitude = parseFloat(res.longitude);
  1536. this.message = res.errMsg;
  1537. if (res.errMsg != 'getLocation:ok') {
  1538. uni.showToast({
  1539. title: res
  1540. })
  1541. } else {
  1542. this.searchStationData()
  1543. }
  1544. }).catch(error => {
  1545. uni.showToast({
  1546. title: error,
  1547. icon: "none"
  1548. })
  1549. })
  1550. },
  1551. getNewsList(bl) {
  1552. uni.showLoading({
  1553. title: "加载中",
  1554. mask: true,
  1555. })
  1556. newsApi.newsInfoList({
  1557. pageIndex: 1,
  1558. pageSize: 5,
  1559. shortName:'GDXW',
  1560. //shortName:'TZGG'
  1561. }).then((res) => {
  1562. uni.hideLoading()
  1563. var data1=res.data.data;
  1564. var data2=[];
  1565. if(data1.length==1){
  1566. data2=[
  1567. ...data1,
  1568. ...data1
  1569. ]
  1570. }else{
  1571. data2=[
  1572. ...data1
  1573. ]
  1574. }
  1575. this.newsListData= data2
  1576. this.newsList = data2.map(item=>{
  1577. return item.title
  1578. })
  1579. }).catch(error => {
  1580. uni.showToast({
  1581. title: error,
  1582. icon: "none"
  1583. })
  1584. })
  1585. },
  1586. myLoadmore() {
  1587. //this.pageIndex += 1;
  1588. //this.getNewsList()
  1589. },
  1590. }
  1591. }
  1592. </script>
  1593. <style lang="scss" scoped>
  1594. .swiper{
  1595. height: 700rpx;
  1596. .swiperitem{
  1597. height: 700rpx;
  1598. }
  1599. }
  1600. .couponmain {
  1601. .main {
  1602. margin: 100px auto 0;
  1603. position: relative;
  1604. .content {
  1605. padding: 24px;
  1606. padding-top: 50px;
  1607. background-color: #fff;
  1608. box-shadow: 0px 0px 0px 1px rgba(254, 229, 147, 100);
  1609. border: 2px solid rgba(253, 217, 141, 100);
  1610. border-radius: 8px;
  1611. .img {
  1612. width: 44vw;
  1613. height: 134px;
  1614. position: absolute;
  1615. top: -88px;
  1616. right: 0px;
  1617. img {
  1618. width: 100%;
  1619. height: 100%;
  1620. }
  1621. }
  1622. .title {
  1623. font-size: 16px;
  1624. color: rgba(84, 45, 45, 100);
  1625. margin-bottom: 13px;
  1626. }
  1627. .text {
  1628. line-height: 24px;
  1629. color: rgba(84, 45, 45, 100);
  1630. font-size: 16px;
  1631. text-align: justify;
  1632. text-decoration: underline;
  1633. text-decoration-color: #ECE3BA;
  1634. text-indent: 32px;
  1635. }
  1636. .sign {
  1637. text-align: right;
  1638. margin-top: 8px;
  1639. font-size: 16px;
  1640. }
  1641. }
  1642. // 专享优惠券
  1643. .exclusive {
  1644. background-color: #F5E4C8;
  1645. margin-top: 20px;
  1646. padding: 32rpx 32rpx 32rpx 32rpx;
  1647. box-shadow: 0px 0px 0px 1px rgba(254, 229, 147, 100);
  1648. border: 2px solid rgba(253, 217, 141, 100);
  1649. border-radius: 8px;
  1650. .exclusive1 {
  1651. font-size: 48rpx;
  1652. color: rgba(51, 51, 51, 1);
  1653. font-family: SourceHanSerif-bold;
  1654. }
  1655. .exclusive2 {
  1656. font-family: PingFangSC-regular;
  1657. color: rgba(51, 51, 51, 1);
  1658. font-size: 36rpx;
  1659. }
  1660. p {
  1661. width: 100%;
  1662. text-align: center;
  1663. //color: rgba(255, 73, 75, 100);
  1664. //font-size: 20px;
  1665. }
  1666. .img {
  1667. // width: 74.4vw;
  1668. // height: 84px;
  1669. margin-top: 16px;
  1670. position: relative;
  1671. img {
  1672. width: 100%;
  1673. height: 100%;
  1674. }
  1675. }
  1676. .num {
  1677. font-size: 54rpx;
  1678. color: rgba(252, 237, 179, 100);
  1679. position: absolute;
  1680. top: 10px;
  1681. left: 8vw;
  1682. font-weight: 600;
  1683. .unit {
  1684. font-size: 24rpx;
  1685. color: rgba(252, 237, 179, 100);
  1686. }
  1687. }
  1688. .unit2 {
  1689. font-size: 12px;
  1690. color: #FFF;
  1691. position: absolute;
  1692. top: 90rpx;
  1693. left: 24rpx;
  1694. }
  1695. .exclusive-text {
  1696. color: #333333;
  1697. font-size: 16rpx;
  1698. }
  1699. .exclusive-btn {
  1700. width: 80%;
  1701. margin-top: 48rpx;
  1702. border-radius: 50px;
  1703. background: linear-gradient(90.58deg, rgba(225, 208, 165, 1) 0.05%, rgba(228, 190, 132, 1) 98.67%);
  1704. color: rgba(51, 51, 51, 1);
  1705. font-size: 36rpx;
  1706. text-align: center;
  1707. box-shadow: 0px 8rpx 20rpx 0px rgba(184, 155, 103, 40);
  1708. font-family: -apple-system;
  1709. // width: 87.4%;
  1710. // margin-top: 20px;
  1711. // background-image: linear-gradient(#ffff00, #ff9600);
  1712. // color: #521e00;
  1713. // font-size: 20px;
  1714. // border-radius: 50px;
  1715. }
  1716. .ticket-info {
  1717. width: 40vw;
  1718. text-align: center;
  1719. position: absolute;
  1720. top: 18px;
  1721. right: 16rpx;
  1722. .ticket-name {
  1723. line-height: 40rpx;
  1724. color: rgba(16, 16, 16, 100);
  1725. font-size: 16rpx;
  1726. }
  1727. .condition {
  1728. line-height: 22px;
  1729. color: #8a6f6f;
  1730. font-size: 12px;
  1731. }
  1732. }
  1733. }
  1734. }
  1735. }
  1736. .oldTextClassF {
  1737. .text-2 {
  1738. font-size: 36rpx !important;
  1739. }
  1740. .text-3 {
  1741. font-size: 34rpx !important;
  1742. }
  1743. .station .price-free .price-1 .num {
  1744. font-size: 48rpx !important;
  1745. line-height: 40rpx;
  1746. font-weight: bold;
  1747. }
  1748. }
  1749. /deep/.u-image__loading {
  1750. background: #ff000000;
  1751. }
  1752. // 头部图片
  1753. img {
  1754. width: 100%;
  1755. // height: 100%;
  1756. }
  1757. .background {
  1758. background: linear-gradient(#D6EEDC, #F3F4F4);
  1759. padding-top: 16px;
  1760. }
  1761. .banner {
  1762. width: 91.4%;
  1763. margin: 0 auto;
  1764. border-radius: 12px;
  1765. height: 100px;
  1766. overflow: hidden;
  1767. /deep/uni-swiper{
  1768. height: 100px !important;
  1769. }
  1770. }
  1771. // 选项列表
  1772. .option-list {
  1773. padding-top: 15px;
  1774. line-height: 20px;
  1775. border-radius: 8px;
  1776. text-align: center;
  1777. margin: auto;
  1778. display: flex;
  1779. justify-content: space-around;
  1780. .list-item {
  1781. // 图标
  1782. .icon {
  1783. width: 40px;
  1784. height: 40px;
  1785. border-radius: 99px;
  1786. line-height: 40px;
  1787. font-size: 24px;
  1788. text-align: center;
  1789. margin: auto;
  1790. color: #ffffff;
  1791. }
  1792. .text {
  1793. margin-top: 4px;
  1794. }
  1795. }
  1796. }
  1797. .flex {
  1798. display: flex;
  1799. }
  1800. // 站点
  1801. .pack-up {
  1802. float: right;
  1803. font-size: 16px;
  1804. color: rgba(119, 119, 119, 100);
  1805. }
  1806. .station,
  1807. .location,
  1808. .state1 {
  1809. box-shadow: 0px 4rpx 12rpx 0px #008c4a33;
  1810. }
  1811. // 附近站点改版
  1812. .station {
  1813. width: 91.4%;
  1814. border-radius: 8px;
  1815. padding: 12px 12px 12px 11px;
  1816. background-color: #fff;
  1817. margin: 8px auto 0;
  1818. .head {
  1819. display: flex;
  1820. justify-content: space-between;
  1821. align-items: center;
  1822. .title {
  1823. color: rgba(16, 16, 16, 100);
  1824. font-size: 32rpx;
  1825. font-weight: 550;
  1826. width: 440rpx;
  1827. text-overflow: ellipsis;
  1828. overflow: hidden;
  1829. white-space: nowrap;
  1830. }
  1831. .distance {
  1832. width: 180rpx;
  1833. color: rgba(102, 102, 102, 100);
  1834. font-size: 32rpx;
  1835. text-align: end;
  1836. .iconfont {
  1837. font-size: 24rpx;
  1838. margin-right: 4rpx;
  1839. }
  1840. }
  1841. }
  1842. .sign {
  1843. display: flex;
  1844. flex-wrap: wrap;
  1845. margin-top: 16rpx;
  1846. height: 46rpx;
  1847. overflow: hidden;
  1848. .sign-tag {
  1849. line-height: 40rpx;
  1850. border-radius: 8rpx;
  1851. //background-color: rgba(255, 255, 255, 100);
  1852. //color: rgba(255, 139, 0, 100);
  1853. font-size: 24rpx;
  1854. text-align: center;
  1855. //border: 1px solid rgba(255, 139, 0, 100);
  1856. padding: 0 8rpx 14rpx 8rpx;
  1857. margin-right: 16rpx;
  1858. margin-bottom: 8rpx;
  1859. }
  1860. .sign-0 {
  1861. background: linear-gradient(89.4deg, rgba(129,97,255,1) 2.8%,rgba(169,147,255,1) 98.02%);
  1862. color: rgba(255, 255, 255, 1);
  1863. padding: 0 10rpx;
  1864. //border: 1px solid rgba(255, 139, 0, 100);
  1865. }
  1866. .sign-5 {
  1867. background: linear-gradient(89.4deg, rgba(255,61,0,1) 2.8%,rgba(255,134,0,1) 98.02%);
  1868. color: rgba(255, 255, 255, 1);
  1869. padding: 0 10rpx;
  1870. }
  1871. .sign-6 {
  1872. //background: linear-gradient(89.4deg, rgba(255,61,0,1) 2.8%,rgba(255,134,0,1) 98.02%);
  1873. background: linear-gradient(89.4deg, rgba(0,164,87,1) 2.8%,rgba(0,206,141,1) 98.02%);
  1874. color: rgba(255, 255, 255, 1);
  1875. padding: 0 10rpx;
  1876. }
  1877. .sign-1 {
  1878. line-height: 40rpx;
  1879. border-radius: 8rpx;
  1880. background-color: rgba(255, 255, 255, 100);
  1881. color: rgba(255, 139, 0, 100);
  1882. font-size: 24rpx;
  1883. text-align: center;
  1884. border: 1px solid rgba(255, 139, 0, 100);
  1885. padding: 0 8rpx;
  1886. margin-right: 16rpx;
  1887. margin-bottom: 8rpx;
  1888. }
  1889. .sign-2 {
  1890. line-height: 40rpx;
  1891. border-radius: 8rpx;
  1892. background-color: rgba(255, 255, 255, 100);
  1893. color: rgba(153, 153, 153, 100);
  1894. font-size: 24rpx;
  1895. text-align: center;
  1896. border: 1px solid rgba(204, 204, 204, 100);
  1897. padding: 0 8rpx;
  1898. margin-right: 16rpx;
  1899. margin-bottom: 8rpx;
  1900. }
  1901. .sign-3 {
  1902. line-height: 40rpx;
  1903. border-radius: 8rpx;
  1904. background-color: rgba(255, 255, 255, 100);
  1905. color: #8161FF;
  1906. font-size: 24rpx;
  1907. text-align: center;
  1908. border: 1px solid #8161FF;
  1909. padding: 0 8rpx;
  1910. margin-right: 16rpx;
  1911. margin-bottom: 8rpx;
  1912. }
  1913. .sign-4 {
  1914. line-height: 40rpx;
  1915. border-radius: 8rpx;
  1916. background-color: rgba(255, 255, 255, 100);
  1917. color: #00B962;
  1918. font-size: 24rpx;
  1919. text-align: center;
  1920. border: 1px solid #00B962;
  1921. padding: 0 8rpx;
  1922. margin-right: 16rpx;
  1923. margin-bottom: 8rpx;
  1924. }
  1925. }
  1926. .price-free {
  1927. display: flex;
  1928. justify-content: space-between;
  1929. margin-top: 8rpx;
  1930. .price {
  1931. display: flex;
  1932. align-items: baseline;
  1933. }
  1934. .price-1 {
  1935. .num {
  1936. color: rgba(255, 98, 0, 100);
  1937. font-size: 44rpx;
  1938. }
  1939. .unit {
  1940. font-size: 12px;
  1941. color: rgba(153, 153, 153, 100);
  1942. }
  1943. }
  1944. .price-2 {
  1945. font-size: 24rpx;
  1946. margin-left: 8rpx;
  1947. color: #999999;
  1948. text-decoration: line-through;
  1949. }
  1950. .price-3 {
  1951. font-size: 24rpx;
  1952. color: #fff;
  1953. margin-left: 8rpx;
  1954. padding-right: 9rpx;
  1955. background:#00B962 ;
  1956. border-radius: 8rpx;
  1957. .num1{
  1958. padding-left: 12rpx;
  1959. border-radius: 8rpx 0 8rpx 8rpx;
  1960. padding-right: 18rpx;
  1961. background: #121212;
  1962. -webkit-clip-path: polygon(0 0, 93% 0, 84% 100%, 0% 100%);
  1963. clip-path: polygon(0 0, 93% 0, 84% 100%, 0% 100%);
  1964. }
  1965. }
  1966. }
  1967. .free {
  1968. display: flex;
  1969. align-items: center;
  1970. .slow,
  1971. .fast {
  1972. display: flex;
  1973. .sp-font {
  1974. width: 40rpx;
  1975. height: 40rpx;
  1976. line-height: 40rpx;
  1977. border-radius: 4px;
  1978. background-color: #7a68f6;
  1979. color: #fff;
  1980. font-size: 28rpx;
  1981. text-align: center;
  1982. margin-right: 2rpx;
  1983. }
  1984. .fast-font {
  1985. width: 40rpx;
  1986. height: 40rpx;
  1987. line-height: 40rpx;
  1988. border-radius: 8rpx;
  1989. // background-color: rgba(186, 240, 215, 100);
  1990. // color: rgba(0, 130, 69, 100);
  1991. background-color: #1677FF;
  1992. color: rgba(255, 255, 255, 1);
  1993. font-size: 28rpx;
  1994. text-align: center;
  1995. margin-right: 8rpx;
  1996. }
  1997. .slow-font {
  1998. width: 40rpx;
  1999. height: 40rpx;
  2000. line-height: 40rpx;
  2001. border-radius: 8rpx;
  2002. // background-color: rgba(226, 226, 226, 100);
  2003. // color: rgba(128, 128, 128, 100);
  2004. background-color: #00B962;
  2005. color: rgba(255, 255, 255, 1);
  2006. font-size: 28rpx;
  2007. text-align: center;
  2008. margin-right: 8rpx;
  2009. }
  2010. .num {
  2011. font-size: 32rpx;
  2012. color: #666;
  2013. line-height: 40rpx;
  2014. }
  2015. .num1 {
  2016. font-size: 32rpx;
  2017. color: #bbb;
  2018. line-height: 40rpx;
  2019. }
  2020. }
  2021. .slow {
  2022. margin-left: 24rpx;
  2023. }
  2024. }
  2025. }
  2026. //定位
  2027. .location {
  2028. width: 91.4%;
  2029. background-color: #ffffff;
  2030. height: 120px;
  2031. display: flex;
  2032. justify-content: space-between;
  2033. margin: 20px auto 0;
  2034. border-radius: 8px;
  2035. border: #F2F4F4 1px;
  2036. .location-text {
  2037. padding: 24px 0 0 28px;
  2038. .text-1 {
  2039. height: 16px;
  2040. line-height: 16px;
  2041. color: rgba(16, 16, 16, 100);
  2042. font-size: 16px;
  2043. text-align: left;
  2044. }
  2045. .text-2 {
  2046. height: 17px;
  2047. line-height: 17px;
  2048. color: rgba(102, 102, 102, 100);
  2049. font-size: 12px;
  2050. text-align: left;
  2051. margin-top: 4px;
  2052. white-space: nowrap; //强制不换行
  2053. text-overflow: ellipsis; //文本超出出现省略号
  2054. overflow: hidden;
  2055. }
  2056. .text-3 {
  2057. width: 80px;
  2058. height: 24px;
  2059. line-height: 22px;
  2060. border-radius: 50px;
  2061. color: rgba(0, 185, 98, 100);
  2062. font-size: 12px;
  2063. text-align: center;
  2064. border: 1px solid rgba(0, 185, 98, 100);
  2065. margin-top: 11px;
  2066. }
  2067. }
  2068. .img-box {
  2069. width: 120px;
  2070. height: 120px;
  2071. margin-right: 20px;
  2072. }
  2073. }
  2074. .img-box4 {
  2075. padding-top: 5px;
  2076. height: 260rpx;
  2077. img {
  2078. max-width: 100px;
  2079. }
  2080. .img-view {
  2081. color: #0293f0;
  2082. float: right;
  2083. font-size: 10px;
  2084. margin-top: 3px;
  2085. position: relative;
  2086. bottom: 30rpx;
  2087. left: -15px;
  2088. .iconfont {
  2089. font-size: 14px;
  2090. }
  2091. }
  2092. }
  2093. .state {
  2094. width: 91.4%;
  2095. background-color: #ffffff;
  2096. height: 260rpx;
  2097. min-height: 120px;
  2098. max-height: 130px;
  2099. display: flex;
  2100. margin: 20rpx auto 0;
  2101. border-radius: 8px;
  2102. border: #F2F4F4 1px;
  2103. .state-text {
  2104. min-width: 70%;
  2105. padding: 48rpx 0 0 24rpx;
  2106. Z-INDEX: 99;
  2107. .text-1 {
  2108. height: 16px;
  2109. line-height: 16px;
  2110. color: rgba(0, 185, 98, 1);
  2111. font-size: 16px;
  2112. text-align: left;
  2113. font-weight: bold;
  2114. span {
  2115. color: rgba(16, 16, 16, 1);
  2116. margin-right: 12rpx;
  2117. }
  2118. }
  2119. .text-2 {
  2120. width: 160%;
  2121. height: 17px;
  2122. line-height: 17px;
  2123. color: #101010;
  2124. text-align: left;
  2125. margin-top: 12px;
  2126. span {
  2127. font-weight: bold;
  2128. margin-right: 6rpx;
  2129. margin-left: 6rpx;
  2130. }
  2131. .text-21 {
  2132. color: rgba(0, 185, 98, 1);
  2133. }
  2134. .text-22 {
  2135. color: #ed7847;
  2136. }
  2137. }
  2138. .text-3 {
  2139. font-size: 14px;
  2140. line-height: 20px;
  2141. margin-top: 6px;
  2142. color: #999999;
  2143. }
  2144. }
  2145. .img-box {
  2146. width: 120px;
  2147. height: 120px;
  2148. margin-right: 20px;
  2149. }
  2150. }
  2151. //充值
  2152. .top-up {
  2153. width: 91.4%;
  2154. margin: 12px auto 0;
  2155. .top-up-title {
  2156. color: rgba(16, 16, 16, 100);
  2157. font-size: 16px;
  2158. }
  2159. .card-box {
  2160. display: flex;
  2161. justify-content: space-between;
  2162. //padding: 0 0 16px 0;
  2163. .card {
  2164. width: 48.3%;
  2165. height: 65px;
  2166. img {
  2167. width: 100%;
  2168. height: 100%;
  2169. }
  2170. }
  2171. }
  2172. .img-box2 {
  2173. margin-top: 12px;
  2174. display: flex;
  2175. justify-content: space-between;
  2176. img {
  2177. width: 100%;
  2178. height: 100%;
  2179. }
  2180. .left-image {
  2181. width: 48.3%;
  2182. height: 166px;
  2183. padding: 8px 0 0 12px;
  2184. // background: url(@/assets/img/topup1.png);
  2185. background-repeat: no-repeat;
  2186. background-position: 30% 10%;
  2187. background-size: cover;
  2188. p {
  2189. color: rgba(56, 47, 33, 100);
  2190. font-size: 24px;
  2191. line-height: 28px;
  2192. font-weight: 600;
  2193. }
  2194. .time-activities {
  2195. color: rgba(56, 39, 14, 100);
  2196. font-size: 16px;
  2197. line-height: 22px;
  2198. margin-top: 4px;
  2199. .time {
  2200. margin-left: 4px;
  2201. color: #fa3534;
  2202. font-weight: bold;
  2203. }
  2204. }
  2205. }
  2206. .right-image {
  2207. width: 48.3%;
  2208. display: flex;
  2209. flex-direction: column;
  2210. justify-content: space-between;
  2211. .margin-top {
  2212. margin-top: 12px;
  2213. }
  2214. img {
  2215. height: 77px;
  2216. }
  2217. }
  2218. ;
  2219. }
  2220. }
  2221. .lineBox {
  2222. background-color: rgba(0, 145, 67, 100);
  2223. padding: 0px 3px;
  2224. background-color: rgba(0, 185, 98, 1);
  2225. color: rgba(255, 255, 255, 1);
  2226. margin-left: 6px;
  2227. border-radius: 3px;
  2228. }
  2229. // 小竖线
  2230. .line {
  2231. display: inline-block;
  2232. width: 3px;
  2233. height: 12px;
  2234. margin-right: 7px;
  2235. background-color: rgba(0, 145, 67, 100);
  2236. }
  2237. // 新闻公告
  2238. .news-title {
  2239. padding: 0 16px;
  2240. margin-top: 12px;
  2241. color: rgba(16, 16, 16, 100);
  2242. font-size: 16px;
  2243. //display: flex;
  2244. justify-content: space-between;
  2245. background-color: #F2F4F4;
  2246. .news-title-left {
  2247. display: flex;
  2248. }
  2249. .more {
  2250. font-size: 14px;
  2251. color: #777777;
  2252. display: flex;
  2253. line-height: 20px;
  2254. .more-icon {
  2255. font-size: 24px
  2256. }
  2257. }
  2258. }
  2259. .news {
  2260. background-color: #fff;
  2261. width: 91.4%;
  2262. margin: 12px auto 0;
  2263. border-radius: 8px;
  2264. .news-content {
  2265. display: flex;
  2266. justify-content: space-between;
  2267. padding: 12px;
  2268. .content-text {
  2269. width: 56.2%;
  2270. height: 100%;
  2271. line-height: 21px;
  2272. color: #101010;
  2273. text-align: left;
  2274. font-size: 14px;
  2275. }
  2276. .content-title {
  2277. width: 100%;
  2278. overflow: hidden;
  2279. text-overflow: ellipsis;
  2280. display: -webkit-box;
  2281. -webkit-box-orient: vertical;
  2282. -webkit-line-clamp: 3;
  2283. }
  2284. .content-img {
  2285. width: 40.57%;
  2286. height: 100%;
  2287. border-radius: 4px;
  2288. overflow: hidden;
  2289. img {
  2290. width: 100%;
  2291. height: 80%;
  2292. }
  2293. }
  2294. .news-time {
  2295. margin-top: 5%;
  2296. color: #999999;
  2297. width: 80px;
  2298. height: 20px;
  2299. font-size: 14px;
  2300. }
  2301. }
  2302. }
  2303. .bottom {
  2304. width: 100%;
  2305. height: 60px;
  2306. .bot {
  2307. width: 100%;
  2308. margin: 0 auto;
  2309. padding: 0 17.3%;
  2310. justify-content: space-between;
  2311. display: flex;
  2312. .bot-line {
  2313. margin-top: 20px;
  2314. width: 21.3%;
  2315. height: 0px;
  2316. border: 1px solid rgba(207, 210, 213, 100);
  2317. }
  2318. .bot-text {
  2319. white-space: nowrap;
  2320. height: 17px;
  2321. margin-top: 13px;
  2322. margin-left: 12px;
  2323. margin-right: 12px;
  2324. font-size: 12px;
  2325. text-align: center;
  2326. color: rgba(182, 189, 195, 100);
  2327. }
  2328. }
  2329. }
  2330. // 导航栏
  2331. .navigation {
  2332. width: 100%;
  2333. // height: 40px;
  2334. padding: 10px 0;
  2335. background-color: #fff;
  2336. position: fixed;
  2337. bottom: 0;
  2338. left: 0;
  2339. display: flex;
  2340. justify-content: space-around;
  2341. text-align: center;
  2342. color: #999999;
  2343. .nav-icon {
  2344. width: 54px;
  2345. font-size: 24px
  2346. }
  2347. .nav-text {
  2348. font-size: 14px;
  2349. }
  2350. }
  2351. .shema {
  2352. width: 70%;
  2353. padding-bottom: 20px;
  2354. border-radius: 16px;
  2355. background-color: #fff;
  2356. position: fixed;
  2357. top: 100px;
  2358. left: 0;
  2359. right: 0;
  2360. margin: 0 auto;
  2361. z-index: 9999;
  2362. .title {
  2363. height: 33px;
  2364. color: rgba(16, 16, 16, 100);
  2365. font-size: 24px;
  2366. text-align: center;
  2367. padding: 16px 0;
  2368. }
  2369. .u-radio-group {
  2370. margin: 16px 5vw;
  2371. }
  2372. /deep/.u-radio {
  2373. width: 60vw !important;
  2374. padding: 24px 24px 40px;
  2375. line-height: 20px;
  2376. border-radius: 16px;
  2377. text-align: center;
  2378. border: #101010 1px solid;
  2379. margin-top: 12px;
  2380. }
  2381. /deep/ .u-radio__label {
  2382. text-align: left;
  2383. height: 24px;
  2384. // color: rgba(0, 185, 98, 100);
  2385. font-size: 24px;
  2386. }
  2387. p {
  2388. height: 22px;
  2389. color: rgba(102, 102, 102, 100);
  2390. font-size: 14px;
  2391. margin-top: 12px;
  2392. white-space: nowrap
  2393. }
  2394. .hint {
  2395. text-align: center;
  2396. }
  2397. .btn-box {
  2398. margin-top: 20px;
  2399. .choice-btn {
  2400. width: 80%;
  2401. }
  2402. }
  2403. }
  2404. .wrap {
  2405. display: flex;
  2406. align-items: center;
  2407. justify-content: center;
  2408. height: 100%;
  2409. }
  2410. // 登录提示
  2411. .login-prompt {
  2412. width: 91.4%;
  2413. height: 40px;
  2414. line-height: 40px;
  2415. border-radius: 50px;
  2416. text-align: left;
  2417. padding-left: 16px;
  2418. padding-right: 4px;
  2419. background-color: rgba(0, 0, 0, 0.6);
  2420. position: fixed;
  2421. bottom: 75px;
  2422. color: #ffffff;
  2423. .button {
  2424. width: 88px;
  2425. height: 32px;
  2426. line-height: 32px;
  2427. border-radius: 50px;
  2428. background-color: rgba(0, 185, 98, 100);
  2429. text-align: center;
  2430. float: right;
  2431. margin-top: 4px;
  2432. }
  2433. }
  2434. .showOss {
  2435. /deep/.u-model,
  2436. /deep/.u-mode-center-box {
  2437. background-color: transparent;
  2438. }
  2439. }
  2440. .carNone {
  2441. display: flex;
  2442. flex-direction: column;
  2443. justify-content: center;
  2444. align-items: center;
  2445. img {
  2446. width: 100%;
  2447. height: 100%;
  2448. }
  2449. p {
  2450. margin-top: -60px;
  2451. }
  2452. }
  2453. .shopItemPrice2{
  2454. border-radius: 25px;
  2455. height: 40rpx;
  2456. width: 40rpx;
  2457. display: flex;
  2458. justify-content: center;
  2459. /* text-decoration: underline; */
  2460. color: #fff;
  2461. text-align: center;
  2462. background: linear-gradient(180deg, rgba(255,98,0,1) 0%,rgba(255,40,0,1) 100%);
  2463. }
  2464. .slogan-4 {
  2465. margin-top: 10px;
  2466. display: flex;
  2467. justify-content: center;
  2468. /* text-decoration: underline; */
  2469. text-align: center;
  2470. position: fixed;
  2471. /* top: 40px; */
  2472. bottom: 180px;
  2473. right: 20px;
  2474. height: 80rpx;
  2475. width: 80rpx;
  2476. line-height: 20px;
  2477. font-size: 16px;
  2478. background: linear-gradient(95deg, #FF9800, #FF5722);
  2479. box-shadow: 0 4rpx 24rpx 0 #FF5722;
  2480. //padding-top: 8px;
  2481. color: #fff;
  2482. border-radius: 25px;
  2483. }
  2484. .imageshake {
  2485. position: relative;
  2486. animation: shake 0.5s ease-in-out infinite;
  2487. }
  2488. @keyframes shake {
  2489. 0% { transform: rotate(0deg); }
  2490. 25% { transform: rotate(8deg); }
  2491. 50% { transform: rotate(0deg); }
  2492. 75% { transform: rotate(-8deg); }
  2493. 100% { transform: rotate(0deg); }
  2494. }
  2495. .shopList{
  2496. width: 91.4%;
  2497. margin: 8px auto 0;
  2498. border-radius: 8px;
  2499. padding: 12px 12px 12px 11px;
  2500. background-color: #fff;
  2501. display: flex;
  2502. justify-content: space-around;
  2503. flex-wrap: wrap;
  2504. .shopItem{
  2505. width: 45%;
  2506. margin: 3px;
  2507. .shopItemPrice{
  2508. display: flex;
  2509. justify-content: space-between;
  2510. .shopItemPrice1{
  2511. color:#FF2800
  2512. }
  2513. }
  2514. }
  2515. }
  2516. .options-item{
  2517. width: 100%;
  2518. // display: flex;
  2519. // justify-content: center;
  2520. background: rgb(255, 255, 255);
  2521. position: relative;
  2522. position: fixed;
  2523. left: 0;
  2524. right: 0;
  2525. top: 0;
  2526. z-index: 991;
  2527. }
  2528. .news-text {
  2529. width: 100%;
  2530. white-space: nowrap;
  2531. overflow: hidden;
  2532. text-overflow: ellipsis;
  2533. }
  2534. .rotate-animation {
  2535. animation: rotate 3s linear infinite;
  2536. }
  2537. @keyframes rotate {
  2538. from {
  2539. transform: rotate(0deg);
  2540. }
  2541. to {
  2542. transform: rotate(360deg);
  2543. }
  2544. }
  2545. </style>