1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511 |
- <template>
- <view>
- <ujp-navbar title="首页" :show="false"></ujp-navbar>
- <view class="u-navbar-placeholder" v-show="flag&&newsList.length > 0" style="width: 100%; height: 68rpx;"></view>
- <!-- 头部图片 -->
- <view :class="indexStyle.backgroundClass">
- <view class="backgroundClass">
- <!-- 新闻 -->
- <view class=" options-item" v-show="flag&&newsList.length > 0">
- <!-- ////@click="toNewsArticleDetails" -->
- <ujp-notice-bar @click="toNewsArticleDetails" :color="indexStyle.noticeBarColor"
- :bgColor="indexStyle.noticeBarBgColor" :list="newsList"></ujp-notice-bar>
- </view>
- <view class="banner" v-if="bannerList.length">
- <u-swiper bg-color="#fff" :img-mode="'scaleToFill'" :list="bannerList" @click="clickBanner"
- :name="'picUrl'">
- </u-swiper>
- </view>
- <!-- 选项列表 -->
- <view :class="{
- 'option-list-spring':indexStyle.spring,
- 'option-list':!indexStyle.spring
- }"
-
- >
- <view class="list-item" @click="getScanCode">
- <view class="icon " v-if="indexStyle.spring">
- <img src="@/assets/img/spring/riFill-qr-scan-2-fill.svg">
- </view>
-
- <view v-else class="icon ">
- <img src="@/assets/img/spring/index1.png">
- </view>
- <view class="text ">
- 扫码充电
- </view>
- </view>
- <view class="list-item" @click="fastRecharge">
- <view class="icon " v-if="indexStyle.spring">
- <img src="@/assets/img/spring/riFill-wallet-3-fill.svg">
- </view>
- <view v-else class="icon ">
- <img src="@/assets/img/spring/index2.png">
- </view>
- <view class="text ">
- 快速充值
- </view>
- </view>
- <view class="list-item" @click="chargingRecord">
- <view class="icon " v-if="indexStyle.spring">
- <img src="@/assets/img/spring/riFill-todo-fill.svg">
- </view>
- <view v-else class="icon ">
- <img src="@/assets/img/spring/index3.png">
- </view>
- <view class="text " oldstyle="font-size: 18px;">
- 充电记录
- </view>
- </view>
- <view class="list-item" @click="toSearchPile">
- <view class="icon " v-if="indexStyle.spring">
- <img src="@/assets/img/spring/riFill-road-map-fill.svg">
- </view>
- <view v-else class="icon ">
- <img src="@/assets/img/spring/index4.png">
- </view>
- <view class="text " oldstyle="font-size: 18px;">
- 附近站点
- </view>
- </view>
- </view>
- <!-- 充值活动 -->
- <view class=" top-up" v-if="activityList.length > 0 && !activityListShow">
- <view class="card-box">
- <view class="card" v-for="(item,index) in activityList" :key="item.id"
- @click="rechargeActivity(item)">
- <img :src="item.picUrl" alt="">
- </view>
- </view>
- </view>
- </view>
- <u-modal v-model="showOss" class="showOss" :show-title="false" :show-confirm-button="false">
- <view class="slot-content">
- <u-image width="250px" style="margin: auto;min-height: 250px;" mode="widthFix"
- @click="clickBanner(showOssIndex,true)" :src="showOssImg">
- <view slot="loading" style="height: 200px;">
- <u-loading mode="flower" size="186">
- </u-loading>
- </view>
- </u-image>
- <u-image width="36px" style="margin: auto;" mode="widthFix" @click="showOss=false"
- src="../../assets/img/if-close-line-circled.png"></u-image>
- </view>
- </u-modal>
- <!-- 专享优惠券 -->
- <!--
- <view class="couponmain" v-if="false&&bannerListTop[showTopIndex].topmodel=='coupon'">
- <view class="main">
-
- <view class="exclusive">
- <p class="exclusive1">恭喜你</p>
- <p class="exclusive2">获得{{bannerListTop[showTopIndex].value}}元月卡卷</p>
- <view class="img">
- <img src="../../assets/img/Frame915.png" alt="">
- <view class="num">
- {{bannerListTop[showTopIndex].value}}<span class="unit">元</span>
- </view>
- <view class="unit2">月卡优惠券</view>
- <view class="ticket-info">
- <view class="ticket-name">
- {{bannerListTop[showTopIndex].text}}
- </view>
- </view>
- </view>
- <view class="exclusive-text"> 持月卡在指定站点充电,充电服务费全免</view>
- <button class="exclusive-btn" @click="clickBannerTop()" shape="circle">立即开通</button>
- </view>
- </view>
- </view> -->
- <u-modal v-model="showTop" v-if="getBannerInfoTopBl" class="showOss" :show-title="false"
- :show-confirm-button="false">
- <view class="slot-content">
- <swiper class="swiper" circular :indicator-dots="bannerListTop.length+(showNt?1:0)!=1" :autoplay="true" :interval="2500"
- :duration="500">
- <swiper-item class="swiperitem" v-if="showNt">
- <u-image width="600" style="margin: auto;min-height: 250px;" mode="widthFix"
- v-show="showNtStep==0" src="@/assets/img/nt/f5surprised-1.png">
- <view slot="loading" style="height: 200px;">
- <u-loading mode="flower" size="186">
- </u-loading>
- </view>
- </u-image>
- <view style="color: #ecc07d;
- font-size: 64rpx;
- position: relative;
- top: -220rpx;
- right: -100rpx; width: 400rpx;" @click="showNtStepClick" v-show="showNtStep==0">
- <span>.</span>
- </view>
- <u-image width="600" height="700" style="margin: auto;;min-height: 250px;"
- mode="scaleToFill" v-show="showNtStep==1" src="@/assets/img/nt/f5surprised-2.png">
- </u-image>
- <u-image width="600" style="margin: auto;min-height: 250px;" mode="widthFix"
- v-show="showNtStep==2" src="@/assets/img/nt/nt-activity-3.png">
- </u-image>
- <u-image width="500" style="color: #FFFFFF;
- font-size: 64rpx;
- position: relative;
- top: -540rpx;
- right: -60rpx;height: 0;
- " mode="widthFix" v-show="showNtStep==2" src="@/assets/img/nt/f5surprised-3.png">
- </u-image>
- <view style="color: #ecc07d;
- font-size: 72rpx;
- position: relative;
- top: -180rpx;
- right: -144rpx; width: 310rpx;" @click="showNtStepClick" v-show="showNtStep==2">
- <span>.</span>
- </view>
- <view style="color: #FFFFFF;
- font-size: 64rpx;
- position: relative;
- top: -528rpx;
- right: -80rpx;" :style="{
- right:showNtValue>99?'-80rpx':(showNtValue>9?'-95rpx':'-110rpx')
- }" v-show="showNtStep==1"><b>{{showNtValue}}</b>
- <span style="font-size: 28rpx;">元</span>
- </view>
- <view style="color: #ecc07d;
- font-size: 72rpx;
- position: relative;
- top: -270rpx;
- right: -144rpx; width: 310rpx;" @click="showNtStepClick" v-show="showNtStep==1">
- <span>.</span>
- </view>
- </swiper-item>
- <swiper-item class="swiperitem" v-for="(item,i) in bannerListTop" :key="i">
- <u-image width="500" height="500" bgColor="#ff000000"
- style="margin: auto;min-height: 250px;" mode="widthFix" @click="clickBannerTopI(i)"
- :src="item.picUrl">
- <view slot="loading" style="height: 200px;">
- <u-loading mode="flower" size="186">
- </u-loading>
- </view>
- </u-image>
- </swiper-item>
- </swiper>
- <u-image width="36px" style="margin: auto; margin-top: 10px;" mode="widthFix" @click="showTop=false"
- src="../../assets/img/if-close-line-circled.png"></u-image>
- </view>
- </u-modal>
- <!-- 模式选择 -->
- <u-mask :show="show">
- <view class="wrap">
- <view class="shema" @tap.stop>
- <view class="title">
- 设置浏览模式
- </view>
- <view class="">
- <u-radio-group v-model="value">
- <u-radio v-for="(item, index) in list" :key="index" :name="item.name"
- :disabled="item.disabled" active-color="#00B962">
- {{item.name}}
- <p v-if="item.name == '长辈模式'">字体更大 看的清楚</p>
- <p v-if="item.name == '标准模式'">信息丰富 功能全面</p>
- </u-radio>
- </u-radio-group>
- </view>
- <view class="hint">可在 {{""}}我的-设置 {{""}}页面中切换</view>
- <view class="btn-box">
- <u-button class="choice-btn" type="success" shape="circle"
- @click="elderClick">我选好了</u-button>
- </view>
- </view>
- </view>
- </u-mask>
- <!-- <view class="top-up-title oldTextjp" oldstyle="font-size:20px;"><text class="line"></text>最新活动</view>
- <view class="img-box">
- <view class="img-1" v-for="(item,index) in activityList" :key="item.id"
- @click="rechargeActivity(item)">
- <img :src="item.picUrl" alt="">
- </view>
- </view> -->
- </view>
- <!-- 最新活动 -->
- <view class=" top-up" v-if="activityList.length > 0 && activityListShow">
- <view class="top-up-title oldTextjp" oldstyle="font-size:20px;"><text class="line"></text>最新活动</view>
- <view class="img-box2">
- <view class="left-image" :style="{backgroundImage: 'url(' + activityDateList.picUrl + ')'}"
- @click="rechargeActivity(activityDateList)">
- <p>{{activityDateList.name}}</p>
- <view class="time-activities">
- 距活动结束仅剩 <text class="time">{{description}}</text>
- </view>
- </view>
- <view class="right-image">
- <img class="margin-bottom" v-for="(item,index) in activityList" :key="item.id"
- @click="rechargeActivity(item)" :src="item.narrowUrl" alt="">
- <!-- <img class="margin-bottom" src="../../assets/img/topup2.png" alt="" @click="rechargeActivity(0)">
- <img class="margin-bottom" src="../../assets/img/topup3.png" alt="" @click="rechargeActivity(1)"> -->
- </view>
- </view>
- </view>
- <template v-if="message == 'getLocation:ok' && stationList.length != 0 && chargeList.length == 0">
- <view class=" top-up">
- <view class="top-up-title oldTextjp" oldstyle="font-size:20px;"><text class="line"></text>附近站点
- <view class="pack-up" v-show="!listShow" @click="listShow=true">
- 收起<text class="iconfont"></text>
- </view>
- <view class="pack-up" v-if="listShow" @click="listShow=false">
- 展开<text class="iconfont"></text>
- </view>
- </view>
- </view>
- <!-- 附近站点 -->
- <template v-for="(stationData,i) in stationList">
- <view class="station" :key="i+'abc'" v-show="!listShow||i==0"
- @click="gotoStationDetails(stationData)">
- <view class="head">
- <view class="title oldTextjp" oldstyle="font-size: 20px;">
- {{stationData.name}}
- </view>
- <view class="distance ">
- <text class="iconfont"
- style="color:#666666"></text>{{stationData.distance!=null&&stationData.distance>0.1 ? stationData.distance.toFixed(1)+'公里':'小于100米'}}
- </view>
- </view>
- <view v-if="quickChargeReduceMethod1(stationData)&&personInfo&&personInfo.userType==2"
- style="margin-top: 10rpx;color: rgba(255, 121, 0, 1);font-size: 28rpx; display: flex; align-items: center;" >
-
- <span style="color: #fff;background: linear-gradient(93.02deg, rgba(255,121,0,1) 39.4%,rgba(255,174,0,1) 93.51%);
- border-radius: 4px;
- padding: 0rpx 10rpx;
- margin-right: 8rpx;
- font-size: 24rpx;
- line-height:40rpx;
-
- " >活动</span>
- 快充订单满{{stationData.quickChargeDegree}}度服务费{{discountRatio10(stationData.quickChargeDiscountRatio)}}折
- </view>
- <view v-if="quickChargeReduceMethod2(stationData)&&personInfo&&personInfo.userType==2"
- style="margin-top: 10rpx;color: rgba(255, 121, 0, 1);font-size: 28rpx; display: flex; align-items: center;" >
-
- <span style="color: #fff;background: linear-gradient(93.02deg, rgba(255,121,0,1) 39.4%,rgba(255,174,0,1) 93.51%);
- border-radius: 4px;
- padding: 0rpx 10rpx;
- margin-right: 8rpx;
- font-size: 24rpx;
- line-height:40rpx;
-
- " >活动</span>
- 喜迎国庆,充电有奖
- </view>
- <view class="sign" v-if="stationData.stationType==50">
- <view class="sign-tag sign-0" v-if="stationData.isRecommend">推荐</view>
- <view class="sign-tag sign-5" v-if="stationData.isAlways">常用</view>
- <view class="sign-tag sign-6" v-if="stationData.isSpecial">特价</view>
- {{stationData.address}}
- </view>
- <view class="sign" v-else>
- <view class="sign-tag sign-0" v-if="stationData.isRecommend">推荐</view>
- <view class="sign-tag sign-5" v-if="stationData.isAlways">常用</view>
- <view class="sign-tag sign-6" v-if="stationData.isSpecial">特价</view>
- <!-- -->
- <view class="sign-1"
- v-if="stationData.giveDiscount&&stationData.discountRatio&&stationData.discountRatio!=100">
- 会员{{discountRatio10(stationData.discountRatio)}}折</view>
- <view class="sign-3" v-if="stationData.category=='超充'">160kW超充站</view>
- <view class="sign-4" v-if="stationData.nightLowPriceEnabled">
- 夜间超低价</view>
- <view class="sign-2" v-if="stationData.platformType==1">自营站</view>
- <view class="sign-2" v-if="stationData.tagList.length != 0"
- v-for="(tagName,tagIndex) in stationData.tagList" :style="'border: 1px solid '+tagNameBy(tagName,1)+';color:'+tagNameBy(tagName,1)"
- :key="tagIndex">{{tagNameBy(tagName,0)}}</view>
- </view>
- <view class="price-free oldTextClass">
- <view class="price" v-if="personInfo&&personInfo.userType==2">
- <view class="price-1">
- <text class="num">
- {{!stationData.giveDiscount ? (stationData.electricityPrice+stationData.servicePrice).toFixed(2)
- : (stationData.electricityPrice+stationData.discountServicePrice).toFixed(2)}}</text>
- <text class="unit " oldstyle="font-size: 48rpx;">元/度</text>
- </view>
- <view class="price-2 " oldstyle="font-size: 48rpx;" v-if="stationData.giveDiscount">
- <text
- class="num">{{(stationData.electricityPrice+stationData.servicePrice).toFixed(2)}}</text>
- <text class="unit ">元/度</text>
- </view>
- </view>
- <!-- 游客价格-->
- <view class="price" v-else>
- <view class="price-1">
- <text class="num">
- {{(stationData.electricityPrice+stationData.servicePrice).toFixed(2)}}</text>
- <text class="unit " oldstyle="font-size: 48rpx;">元/度</text>
- </view>
- <view class="price-3 " oldstyle="font-size: 48rpx;" v-if="stationData.giveDiscount">
- <text class="num1">会员</text>
- <text
- class="num">{{ (stationData.electricityPrice+stationData.discountServicePrice).toFixed(2)}}</text>
- <text class="unit ">元/度</text>
- </view>
- </view>
- <view class="free">
- <view class="fast" v-if="stationData.fastNum">
- <view class="fast-font">
- 快
- </view>
- <view class="num">
- {{stationData.fastAvailableNum}}
- </view>
- <view class="num1">
- /{{stationData.fastNum}}
- </view>
- </view>
- <view class="slow oldTextjp2" oldstyle="margin-left: 1px;" v-if="stationData.slowNum">
- <view class="slow-font">
- 慢
- </view>
- <view class="num">
- {{stationData.slowAvailableNum}}
- </view>
- <view class="num1">
- /{{stationData.slowNum}}
- </view>
- </view>
- </view>
- </view>
- </view>
- <view class="piccBanner" v-for="(itemJNT,index ) in bannerListJNT" @click="gotoUrl2(itemJNT.linkUrl)"
- :key="i+'_'+index" style="
- text-align: center;
- padding: 4px 16px;
- margin-top: 8px; " v-show="index==0"
- v-if="(stationList.length<=2&&stationList.length-1==i)||(stationList.length>2&&i==1)">
- <image :src="itemJNT.picUrl" style="height: 204rpx;width: 100%;border-radius: 10px;"></image>
- </view>
- </template>
- <view class="bottom" @click="searchStationData(true)" v-if="recordsTotal2!=stationList.length">
- <view class="bot">
- <view class="bot-line"></view>
- <view class="bot-text " style="color: #00B962;">点击查看更多站点</view>
- <view class="bot-line"></view>
- </view>
- </view>
- <view class="bottom" v-else>
- <view class="bot">
- <view class="bot-line"></view>
- <view class="bot-text " style="color: #00B962;">已经到底了</view>
- <view class="bot-line"></view>
- </view>
- </view>
- </template>
- <template v-if="loading&&message == 'getLocation:ok' && stationList.length == 0 && chargeList.length == 0">
- <view class="location-box">
- <view class="location">
- <view class="location-text">
- <view class="text-1 oldTextjp" oldstyle="font-size: 20px;">
- {{loading?'查询失败':'加载中'}}
- </view>
- <view class="text-2 oldTextjp2" oldstyle="font-size: 16px;">
- {{loading?'未查询到可用的站点':'正在为你查找附近的站点'}}
- </view>
- <view class="text-3 oldTextjp2" v-if="loading" oldstyle="font-size: 16px;"
- @click="toSearchPile">
- 去找桩
- </view>
- </view>
- <view class="img-box">
- <img src="@/assets/static/img/暂无网络信号-缺省页 1.png">
- </view>
- </view>
- </view>
- </template>
- <!-- 定位 -->
- <view class="location-box"
- v-if="message != 'getLocation:ok' && stationList.length == 0 && chargeList.length == 0">
- <view class="location">
- <view class="location-text">
- <view class="text-1 oldTextjp" oldstyle="font-size: 20px;">
- 定位中...
- </view>
- <view class="text-2 oldTextjp2" oldstyle="font-size: 16px;">
- 授权定位后可查询附近充电站
- </view>
- <view class="text-3 oldTextjp2" oldstyle="font-size: 16px;" @click="getPoint()">
- 重新定位
- </view>
- </view>
- <view class="img-box">
- <img src="@/assets/static/img/暂无网络信号-缺省页 1.png">
- </view>
- </view>
- </view>
- <!-- 附近站点 -->
- <view class="station" v-for="(stationData,i) in defaultStation" :key="i"
- v-if="stationList.length == 0 && chargeList.length == 0"
- @click="gotoStationDetails(stationData)">
- <view class="head">
- <view class="title oldTextjp" oldstyle="font-size: 20px;">
- {{stationData.name}}
- </view>
- <view class="distance " v-if="false">
- <text class="iconfont"
- style="color:#666666"></text>{{stationData.distance!=null&&stationData.distance>0.1 ? stationData.distance.toFixed(1)+'公里':'小于100米'}}
- </view>
- </view>
-
- <view v-if="quickChargeReduceMethod1(stationData)&&personInfo&&personInfo.userType==2"
- style="margin-top: 10rpx;color: rgba(255, 121, 0, 1);font-size: 28rpx; display: flex; align-items: center;" >
-
- <span style="color: #fff;background: linear-gradient(93.02deg, rgba(255,121,0,1) 39.4%,rgba(255,174,0,1) 93.51%);
- border-radius: 4px;
- padding: 0rpx 10rpx;
- margin-right: 8rpx;
- font-size: 24rpx;
- line-height:40rpx;
- " >活动</span>
- 快充订单满{{stationData.quickChargeDegree}}度服务费{{discountRatio10(stationData.quickChargeDiscountRatio)}}折
- </view>
- <view v-if="quickChargeReduceMethod2(stationData)&&personInfo&&personInfo.userType==2"
- style="margin-top: 10rpx;color: rgba(255, 121, 0, 1);font-size: 28rpx; display: flex; align-items: center;" >
-
- <span style="color: #fff;background: linear-gradient(93.02deg, rgba(255,121,0,1) 39.4%,rgba(255,174,0,1) 93.51%);
- border-radius: 4px;
- padding: 0rpx 10rpx;
- margin-right: 8rpx;
- font-size: 24rpx;
- line-height:40rpx;
- " >活动</span>
- 喜迎国庆,充电有奖
- </view>
- <view class="sign">
- <view class="sign-tag sign-0">推荐</view>
- <!-- -->
- <view class="sign-1"
- v-if="stationData.giveDiscount&&stationData.discountRatio&&stationData.discountRatio!=100">
- 会员{{discountRatio10(stationData.discountRatio)}}折</view>
- <view class="sign-3" v-if="stationData.category=='超充'">160kW超充站</view>
- <view class="sign-4" v-if="stationData.nightLowPriceEnabled">
- 夜间超低价</view>
- <view class="sign-2" v-if="stationData.platformType==1">自营站</view>
- <view class="sign-2" v-if="stationData.tagList.length != 0"
- v-for="(tagName,tagIndex) in stationData.tagList" :style="'border: 1px solid '+tagNameBy(tagName,1)+';color:'+tagNameBy(tagName,1)"
- :key="tagIndex">{{tagNameBy(tagName,0)}}</view>
- </view>
- <view class="price-free oldTextClass">
- <view class="price" v-if="personInfo&&personInfo.userType==2">
- <view class="price-1 ">
- <text class="num">
- {{!stationData.giveDiscount ? (stationData.electricityPrice+stationData.servicePrice).toFixed(2)
- : (stationData.electricityPrice+stationData.discountServicePrice).toFixed(2)}}</text>
- <text class="unit " oldstyle="font-size: 48rpx;">元/度</text>
- </view>
- <view class="price-2 " oldstyle="font-size: 48rpx;" v-if="stationData.giveDiscount">
- <text class="num">{{(stationData.electricityPrice+stationData.servicePrice).toFixed(2)}}</text>
- <text class="unit ">元/度</text>
- </view>
- </view>
- <!-- 游客价格-->
- <view class="price" v-else>
- <view class="price-1">
- <text class="num">
- {{(stationData.electricityPrice+stationData.servicePrice).toFixed(2)}}</text>
- <text class="unit " oldstyle="font-size: 48rpx;">元/度</text>
- </view>
- <view class="price-3 " oldstyle="font-size: 48rpx;" v-if="stationData.giveDiscount">
- <text class="num1">会员</text>
- <text
- class="num">{{ (stationData.electricityPrice+stationData.discountServicePrice).toFixed(2)}}</text>
- <text class="unit ">元/度</text>
- </view>
- </view>
- <view class="free">
- <view class="fast" v-if="stationData.fastNum">
- <view class="fast-font">
- 快
- </view>
- <view class="num">
- {{stationData.fastAvailableNum}}
- </view>
- <view class="num">
- /{{stationData.fastNum}}
- </view>
- </view>
- <view class="slow oldTextjp2" oldstyle="margin-left: 1px;" v-if="stationData.slowNum">
- <view class="slow-font">
- 慢
- </view>
- <view class="num">
- {{stationData.slowAvailableNum}}
- </view>
- <view class="num1">
- /{{stationData.slowNum}}
- </view>
- </view>
- </view>
- </view>
- </view>
- <view class="piccBanner" v-for="(itemJNT,index ) in bannerListJNT" :key="'a_'+index" v-show="index==0"
- v-if="stationList.length == 0 && chargeList.length == 0" @click="gotoUrl2(itemJNT.linkUrl)" style="
- text-align: center;
- padding: 4px 16px;
- margin-top: 8px; ">
- <image :src="itemJNT.picUrl" style="height: 204rpx;width: 100%;border-radius: 10px;"></image>
- </view>
- <!-- 新闻 -->
- <view class="news-title news-title2" v-if="chargeList.length > 0">
- <view class="news-title-left oldTextjp" oldstyle="font-size:20px;">
- <view class="line" style="margin-top:4px;"></view>充电车辆
- <view class="lineBox" v-if="chargeList.length > 1">{{chargeList.length }}</view>
- </view>
- <view class="more oldTextjp2" oldstyle="font-size:16px;" v-if="chargeList.length > 3" @click="toAll">查看全部
- <view class="more-icon iconfont"> </view>
- </view>
- </view>
- <!-- 充电状态 -->
- <view class="state1 state" v-if="chargeList.length > 0" v-for="(item,index) in chargeList" v-show="index<3"
- :key="item.id" @click="gotoUrl('pages/searchPile/chargeProcess/dcCharging?id=' + item.id)">
- <view class="state-text">
- <view class="text-5 " oldstyle="font-size: 20px;">
- <span v-if="item.carNumber">{{item.carNumber}}</span>
- <template v-if="item.status == '0'">
- 启动充电中...
- </template>
- <template v-else-if="item.status == '1'&&item.endSoc">
- 充电中 {{item.endSoc}}%
- </template>
- <template v-else>
- {{item.statusText}}...
- </template>
- </view>
- <view v-if="item.status == '0'" class="text-21 " oldstyle="font-size: 16px;">
- 启动中
- </view>
- <view v-if="item.status == '1'" class="show20240403Main " >
- <view class="show20240403" style="margin-right: 16rpx;" >已充电
- <span
- class="text-21"> {{getPercent(item)}}</span>
- </view>
-
- <view class="show20240403" >预计费用
- <span class="text-22">{{item.dueFee != null ? item.dueFee.toFixed(2) : '0.00'}}元</span>
- </view>
-
- </view>
- <!-- <view v-if="item.status == '2'" class="text-2" style="color: red;">
- 超出时间将收取占位费
- </view> -->
- <view v-if="item.status == '4'" class="text-21 " >
- <span v-if="item.waitNum==1">请耐心等待</span>
- <span v-else>前方等待{{item.waitNum-1}}位</span>
- </view>
- <view class="text-4 " oldstyle="font-size: 16px;">
-
- <!-- {{item.deviceName}}枪{{channelNoShow(item.channelNo,item.manufacturer,item.customNo)}}/{{item.stationName}}<br /> -->
- 当前电价<span class="text-4-span " > {{item.chargingCostPrice.toFixed(2)}}</span>元/度 起
- <!-- <p ></p> -->
- </view>
- </view>
- <view class="img-box4">
- <img v-if="item.status == '0'" src="@/assets/static/img/等待中-缺省页.png">
- <img v-if="item.status == '1'" src="@/assets/static/img/充电中-缺省页.png">
- <img v-if="item.status == '2'" src="@/assets/static/img/已充满-缺省页.png">
- <img v-if="item.status == '4'" src="@/assets/static/img/等待中-缺省页.png">
- <view class="img-view">
- <view class="more-icon iconfont">查看 </view>
- </view>
- </view>
- </view>
- <view class="bottom" v-if="chargeList.length > 3" @click="toAll()">
- <view class="bot">
- <view class="bot-line"></view>
- <view class="bot-text " style="color: #00B962;">点击查看全部充电车辆</view>
- <view class="bot-line"></view>
- </view>
- </view>
- <!-- 新闻 -->
- <view id="options-item" class="news-title" v-if="newsList.length > 0">
- <ujp-notice-bar @click="toNewsArticleDetails" color="#FF3D00" bg-color="#fff"
- :list="newsList"></ujp-notice-bar>
- </view>
- <view class="news-title news-title2" v-if="mallList.length">
- <view class="news-title-left oldTextjp" oldstyle="font-size:20px;">
- <view class="line" style="margin-top:4px;"></view>{{mallTitle}}
- </view>
- <!-- <view class="more oldTextjp2" oldstyle="font-size:16px;" @click="bhz">
- 进入商城<u-icon name="arrow-right"></u-icon>
- </view> -->
- </view>
-
- <view class="shopList">
- <view class="shopItem" v-for="(item,i) in mallList"
- @click="gotoUrl('pages/store/commodityDetails?id='+item.id)" :key="i">
- <view class="shopItemImg">
- <u-image v-if="item.pic" width="308" height="308" :src="item.pic" mode="scaleToFill"></u-image>
- <u-image v-else width="308" height="308" src="@/assets/img/chargesite_default.png"></u-image>
- </view>
- <view class="shopItemNameView">
- <view class="shopItemName">
- <img v-if="item.own" style="width:52px; height:16px; vertical-align: middle;"
- src="@/assets/img/buy/ptzy.png">
- {{item.name}}
- </view>
- <view class="shopItemPrice">
- <view class="shopItemPrice1" v-if="item.price">¥{{item.price}}</view>
- <view class="shopItemPrice1" style="font-size: 32rpx;" v-else>来电咨询</view>
-
- <view class="shopItemPrice2" v-if="item.price">
- <img src="@/assets/img/antOutline-shopping-cart@3x.png" alt="">
- </view>
- <view class="shopItemPrice2" v-else >
-
-
- <img src="@/assets/img/arcoDesign-phone@3x.png"
- alt="">
- </view>
- </view>
- </view>
- </view>
- <view @click="bhz" style="width: 100%; text-align: center;
- color: #00B962;">
- 点击查看全部商品
- <u-icon name="arrow-right-double" color="#00B962" size="22"></u-icon>
-
-
-
- </view>
- </view>
- <view class="bottom">
- <view class="bot">
- <view class="bot-line"></view>
- <view class="bot-text oldTextjp2" oldstyle="font-size: 14px;">已经到底了</view>
- <view class="bot-line"></view>
- </view>
- </view>
- <!-- 导航栏 -->
- <view class="navigation">
- <view class="login-prompt" v-if="!userId">
- 登录显示更多会员服务
- <text class="button" @click="toLogin">登录/注册</text>
- </view>
- </view>
- <view class="slogan-4 " v-show="couponList.length||bannerListTop.length"
- @click="showTop=true,getBannerInfoTopBl=true">
- <u-icon :class="{
- imageshake :couponList.length&&showNtStep==0
- }" size="45" name="gift"></u-icon>
- </view>
-
- <u-modal v-model="youdianshow"
- :show-cancel-button="true"
- confirm-text="前往优电联盟"
- @confirm="gotoUd"
- >
- <view class="slot-content" style="padding: 20px;">
- 该站点已升级为<span style="color: #63c380;">“优电联盟”</span>充电站,请使用优电联盟平台充电
- <br/>
- <span style="color: red;font-size: 24rpx;">
- <!-- *原51充电联盟会员使用原手机号登录后可共享您的余额、优惠券等账户信息 -->
- *与51充电联盟会员共享数据,包括账户余额、优惠卡券等。
- </span>
- </view>
- </u-modal>
-
- <Tabbar :spring="indexStyle.spring" :current="0" ref="tabbarMain" ></Tabbar>
- </view>
- </template>
- <script>
- import * as API from '@/apis/index.js'
- import * as newsApi from '@/apis/news.js'
- import * as WxJsApi from '@/utils/wxJsApi.js'
- import * as siteApi from '@/apis/site.js'
- import * as loginApi from '@/apis/login.js'
- import * as userApi from '@/apis/user.js'
- import * as mallApi from '@/apis/mall.js'
- import MapLoader from '@/utils/AMap'
- import Tabbar from '@/components/Tabbar.vue'
- import {
- newDate,
- currentTimeStamp,
- parseUnixTime,
- secondsDistance,
- hourDistanceArr
- } from '@/utils'
- export default {
- components: {
- Tabbar
- },
- data() {
- return {
- youdianshow:false,
- youdianurl:"",
- listShow: false,
- stationList: [],
- bannerList: [],
- bannerListTop: [],
- bannerListJNT: [],
- timeOut: false,
- pointTimeOut: true,
- mallList: [],
- chargeList: [],
- activityList: [],
- userId: '',
- newsList: [],
- pageIndex: 1,
- recordsTotal: 0,
- longitude: '',
- latitude: '',
- message: '',
- indexLogo: '',
- showOss: false,
- showOssImg: '',
- showOssIndex: '',
- loading: false,
- showTop: false,
- showTopImg: '',
- showTopIndex: 0,
- mallTitle: "",
- getBannerInfoTopBl: true,
- newsListData: [],
- show: false,
- list: [{
- name: '长辈模式',
- disabled: false
- },
- {
- name: '标准模式',
- disabled: false
- },
- ],
- // u-radio-group的v-model绑定的值如果设置为某个radio的name,就会被默认选中
- value: '长辈模式',
- elderStatus: false,
- fontMode: '',
- description: '00:00:00',
- activityDate: '',
- activityDateList: {},
- activityListShow: false,
- personInfo: {},
- showNt: false,
- showNtStep: 0,
- showNtValue: 30,
- couponList: [],
- couponSelect: {},
- pageIndex2: 1,
- recordsTotal2: 0,
- defaultStation: [],
- flag: true,
- windowHeight: 300,
- springShow:false,
- indexStyle: {
- noticeBarBgColor: "#fff",
- noticeBarColor: "#FF3D00",
- backgroundClass: "background",
- spring: false,
- }
- }
- },
- onLoad(op) {
- this.findNoLTextConfigure()
- this.mallTitle = process.car.branchParameter == "youdian" ? '优电商城' : '51商城'
- if (op.jpcode) {
- var k = API.codeOperation(op.jpcode)
- if (k) {
- uni.navigateTo({
- url: k
- })
- }
- }
- },
- onUnload() {
- this.timeOut = false;
- this.pointTimeOut = false;
- },
- onHide() {
- this.timeOut = false;
- this.pointTimeOut = false;
- },
- onReachBottom() {
- // if (this.newsList.length < this.recordsTotal) {
- // this.myLoadmore();
- // }
- },
- onShow() {
- if (this.$refs.tabbarMain) {
- this.$refs.tabbarMain.setcount(0);
- }
- if (!this.pointTimeOut) {
- this.pointTimeOut = true
- this.getPointTimeOut();
- }
- this.getUserInfo();
- },
- onReady() {
- WxJsApi.getWxConfig(['getLocation', 'addEventListener', 'scanQRCode']).then((res) => {
- // //(res)
- }).catch(error => {
- //(res)
- })
- this.getBannerInfo("homepage");
- this.getBannerInfoTop("home-top");
- this.getBannerInfo("JNT", "bannerListJNT");
- //this.getBannerInfoTop("home-top");
- this.getPointTimeOut();
- this.getNewsList();
- this.spring()
- this.getActivityInfoList();
- this.getChargingStationDetail()
- this.getMallList()
- var _this = this
- uni.getSystemInfo({
- success: function(res) {
- _this.windowHeight = res.windowHeight
- }
- });
- },
- onPageScroll(e) {
- this.onPageScrollMethod()
- },
- updated() {
- this.onPageScrollMethod()
- },
- methods: {
- gotoStationDetails(stationData){
- if(stationData.stationType==50&&stationData.fastNum==0&&stationData.slowNum==1){
- this.gotoUrl('pages/searchPile/stationAndPile/chargingPileDetails?isback=1&sid=' + stationData.id)
-
- }else{
- this.gotoUrl('pages/searchPile/stationAndPile/stationDetails?id=' + stationData.id)
- }
- },
- getPercent(chargingRecord) {
- if (!chargingRecord.startTime) {
- return '00:00:00'
- }
- var Hour = 0;
- var Fen = 0;
- var S = 0;
- if (chargingRecord.status == 1) {
- var second = secondsDistance(newDate(chargingRecord.startTime));
-
- var ms = second;
-
- Hour = parseInt(Math.floor(ms / (60 * 60)));
- Fen = parseInt(Math.floor(ms % (60 * 60) / 60));
- S = parseInt(Math.floor(ms % (60)));
-
- }
- var obj = (Hour > 9 ? "" : "0") + Hour + ":" + (Fen > 9 ? "" : "0") + Fen + ":" + (S > 9 ? "" : "0") + S
-
-
- return obj;
- },
- showChargingMinute(estimateMinute) {
- var value="";
-
- var ms =estimateMinute
- if (ms > 0) {
- var Hour = parseInt(Math.floor(ms / 60 ));
- var Fen = parseInt(Math.floor(ms % 60 ));
- // value = Hour + "小时" + Fen+"分钟"
- if(Hour){
- value += Hour + "时"
- }
-
- if(Fen){
- value += Fen+"分"
- }
- }
-
- return value;
- },
- findNoLTextConfigure() {
- this.spring()
- loginApi.findNoLTextConfigure().then((response) => {
- this.carhelp.setConfig(response.data.configure)
- this.spring()
- }).catch(error => {
- uni.showToast({
- title: error,
- icon: "none"
- })
- })
- },
- spring() {
- this.springShow=false;
- try{
- if(this.carhelp.getConfig().spring2025){
- var spring2025=this.carhelp.getConfig().spring2025
- var sz=spring2025.split(',')
- if(sz&&sz.length==2){
- var time1=new Date(sz[0])
- var time2=new Date(sz[1])
- var time0=new Date()
-
- if(time0>time1&&time0<time2){
- this.springShow=true;
-
- }
- }
- }
- this.$forceUpdate()
- }catch(e){
-
- }
-
- if(!this.springShow){
- return
- }
-
- this.indexStyle.noticeBarBgColor = "#C00000"
- this.indexStyle.noticeBarColor = "#FFD695"
- this.indexStyle.backgroundClass = "background-spring"
- this.indexStyle.spring = true;
-
- if (this.activityList.length) {
- this.activityList.forEach(item => {
- if (item.clickUrl == '#/pages/discountCard/productDetails') {
- var img = require("@/assets/img/spring/activityInfo1.png")
- item.picUrl = img
- }
- if (item.clickUrl == '#/pages/monthlyCardActivity/monthlyCardBuy') {
- var img = require("@/assets/img/spring/activityInfo2.png")
- item.picUrl = img
- }
- })
- }
- },
- gotoArticleDetails(item) {
- if (item.linkType == "2") {
- this.gotoUrl2(item.externalUrl)
- } else {
- this.gotoUrl('pages/article/articleDetails?id=' + item.id)
- }
- },
- getMallList() {
- mallApi.mallList({
- pageIndex: 1,
- pageSize: 4,
- }).then((res) => {
- this.mallList = res.data.data;
- //uni.hideLoading();
- }).catch(error => {
- uni.showToast({
- title: error,
- icon: "none"
- })
- })
- },
- onPageScrollMethod() {
- const query = uni.createSelectorQuery().in(this);
- query.select('#options-item').boundingClientRect(data => {
- // console.log("节点离页面顶部的距离为" + data.top);
- //console.log(this.windowHeight,e.scrollTop ,data.top)
- if (data) {
- if (this.windowHeight >= data.top + 80) {
- this.flag = false;
- } else {
- this.flag = true;
- }
- }
- }).exec();
- },
- getChargingStationDetail() {
- var defaultStation = process.car.defaultStation
- for (var item in defaultStation) {
- siteApi.getChargingStationDetail({
- stationId: defaultStation[item]
- }).then((res) => {
- var station = res.data.station
- //this.MapLoaderthen(station)
- this.defaultStation.push(station)
- }).catch(error => {
- uni.showToast({
- title: error,
- icon: "none"
- })
- })
- }
- },
- getf5surprised() {
- userApi.exchangeGroupDetail("逢5红包").then((res) => {
- var message = res.message;
- this.couponList = res.data;
- if (this.couponList.length) {
- var list = res.data;
- var x = 0;
- for (var i in list) {
- var obj = list[i]
- if (!obj.probability) {
- continue;
- }
- var end = x + obj.probability;
- obj.start = x;
- obj.end = end;
- x = end;
- }
- var code = parseInt(Math.random() * x)
- // console.log(code)
- // console.log(list)
- var selectObj = null;
- for (var i in list) {
- var obj = list[i]
- if (!obj.probability) {
- continue;
- }
- if (code >= obj.start && code < obj.end) {
- selectObj = obj;
- this.couponSelect = selectObj;
- break
- }
- }
- if (selectObj) {
- this.showNt = true
- this.showTop = true;
- this.showNtStep = 0;
- this.showNtValue = this.couponSelect.totalDiscount
- } else {
- //this.getBannerInfoTop("home-top");
- }
- //console.log(selectObj)
- // this.exchangeDetailF5(selectObj.key);
- } else if (message == '1001') { //
- //周五,但是因为手里有卷, 所以不能抽
- var nowtime = parseUnixTime(currentTimeStamp(), '{y}-{m}-{d}')
- var time = this.carhelp.get("getf5surprised-time");
- if ((time && nowtime == time)) {
- //this.getBannerInfoTop("home-top");
- } else {
- this.carhelp.set("getf5surprised-time", nowtime);
- }
- this.showNt = true
- this.showTop = true;
- this.showNtStep = 2;
- } else {
- //this.getBannerInfoTop("home-top");
- }
- }).catch(error => {
- uni.showToast({
- title: error,
- icon: "none"
- })
- })
- },
- getNewYear() {
- //var obj=this.carhelp.get("newyear_activity2023-2-15")
- //
- var sz = ["1615623336912621591", "1615623336912621590"];
- var code = parseInt(Math.random() * 2)
- this.carhelp.set("newyear_activity2023-2-15", {
- nt: sz[code],
- code: code,
- status: 0
- })
- //先查询另一个领取过没
- userApi.exchangeDetail({
- key: sz[code == 0 ? 1 : 0]
- }).then((res) => {
- if (!res.data.enabled) {
- if (res.data.code == 2) {
- //未开始
- } else {
- //已经结束
- }
- //this.getBannerInfoTop("home-top");
- } else if (res.data.status == 1) {
- //this.getBannerInfoTop("home-top");
- //已经兑换,或者不能兑换
- } else if (res.data.status == 2) {
- // this.showNtValue=res.data.totalDiscount
- this.exchangeDetail(sz[code]);
- } else {
- //res.data.status==0
- //this.showNtValue=res.data.totalDiscount
- this.exchangeDetail(sz[code], sz[code == 0 ? 1 : 0]);
- }
- }).catch(error => {
- //this.showNt = false;
- uni.showToast({
- title: error,
- icon: "none"
- })
- })
- },
- exchangeDetail(exchangeCode, code2) {
- uni.showLoading({
- title: "加载中",
- mask: true,
- })
- userApi.exchangeDetail({
- key: exchangeCode
- }).then((res) => {
- uni.hideLoading();
- //
- if (!res.data.enabled) {
- if (res.data.code == 2) {
- //未开始
- } else {
- //已经结束
- }
- //this.getBannerInfoTop("home-top");
- } else if (res.data.status == 1) {
- //this.getBannerInfoTop("home-top");
- //已经兑换,
- } else if (res.data.status == 2) {
- if (code2) {
- //试试另一张卷
- var c = this.carhelp.get("newyear_activity2023-2-15")
- if (c) {
- this.carhelp.set("newyear_activity2023-2-15", {
- nt: code2,
- code: c.code == 0 ? 1 : 0,
- status: 0
- })
- }
- this.exchangeDetail(code2)
- } else {
- //this.getBannerInfoTop("home-top");
- }
- //不能兑换
- } else {
- this.showNt = true
- this.showTop = true;
- this.showNtStep = 0;
- this.showNtValue = res.data.totalDiscount
- }
- }).catch(error => {
- //this.showNt = false;
- uni.showToast({
- title: error,
- icon: "none"
- })
- })
- },
- redeemF5(exchangeCode) {
- uni.showLoading({
- title: "加载中",
- mask: true,
- })
- userApi.exchangeByGroupFive({
- key: exchangeCode
- }).then((res) => {
- uni.hideLoading();
- this.showNtStep = 1
- var nowtime = parseUnixTime(currentTimeStamp(), '{y}-{m}-{d}')
- this.carhelp.set("getf5surprised-time", nowtime);
- }).catch(error => {
- //this.showNt = false;
- uni.showToast({
- title: error,
- icon: "none"
- })
- })
- },
- redeemNow(exchangeCode) {
- uni.showLoading({
- title: "加载中",
- mask: true,
- })
- userApi.exchange({
- key: exchangeCode
- }).then((res) => {
- uni.hideLoading();
- this.showNtStep = 1
- this.carhelp.set("newyear_activity2023-2-15", {
- nt: exchangeCode,
- status: 1
- })
- }).catch(error => {
- //this.showNt = false;
- uni.showToast({
- title: error,
- icon: "none"
- })
- })
- },
- showNtStepClick() {
- if (this.showNtStep == 0) {
- if (this.personInfo.userType == 1) {
- this.showTop = false;
- //this.showNt = false;
- uni.showModal({
- title: "提示",
- content: "游客无法兑换,请先注册为会员后再兑换",
- confirmText: "前往注册",
- success: res1 => {
- if (res1.confirm) {
- uni.navigateTo({
- url: '/pages/login/login'
- })
- } else if (res1.cancel) {
- //('用户点击取消');
- }
- }
- })
- } else if (!this.personInfo.carLicense) {
- this.showTop = false;
- uni.showModal({
- title: "提示",
- content: "请先车辆认证后再兑换",
- confirmText: "车辆信息",
- success: res1 => {
- if (res1.confirm) {
- uni.navigateTo({
- url: '/pages/user/car/carDet'
- })
- } else if (res1.cancel) {
- //('用户点击取消');
- }
- }
- })
- } else {
- this.redeemF5(this.couponSelect.key);
- }
- } else if (this.showNtStep == 1 || this.showNtStep == 2 || this.showNtStep == 3 || this.showNtStep == 4) {
- //this.showNt = false;
- uni.navigateTo({
- url: "/pages/user/coupon/myCoupon"
- })
- }
- },
- test() {
- if (process.env.NODE_ENV === "development") {
- }
- },
- goSearch() {
- this.$refs.tabbarMain.beforeSwitch(1)
- },
- nextTop(index) {
- this.showTopImg = this.bannerListTop[index + 1].picUrl;
- this.showTopIndex = index + 1;
- },
- getDescriptionTime() {
- var date = this.activityDate;
- var dateMonth1 = new Date().getMonth() + 1;
- var dateDay1 = new Date().getDate();
- var dateMonth2 = parseInt(date.slice(5, 7));
- var dateDay2 = parseInt(date.slice(8, 10));
- if (dateMonth1 < dateMonth2) {
- var days = new Date(new Date().getFullYear(), dateMonth1, 0).getDate();
- dateDay2 = dateDay2 + days;
- console.log(dateDay2)
- }
- if (dateDay1 < dateDay2 - 2) {
- this.description = dateDay2 - dateDay1 + '天'
- } else {
- var dateTime2 = new Date(date).getTime()
- var c = hourDistanceArr(new Date(), new Date(dateTime2))
- if (c[0] < 10) {
- c[0] = '0' + c[0];
- }
- if (c[1] < 10) {
- c[1] = '0' + c[1];
- }
- if (c[2] < 10) {
- c[2] = '0' + c[2];
- }
- this.description = c[0] + ':' + c[1] + ':' + c[2];
- if (this.description == '00:00:00') {
- this.activityListShow = false;
- }
- setTimeout(() => {
- this.getDescriptionTime();
- }, 1000)
- }
- },
- getUserInfo() {
- uni.showLoading({
- title: "加载中",
- mask: true,
- })
- loginApi.findByOpenId({
- openId: this.carhelp.getOpenId(),
- noerror: true,
- }).then((res) => {
- uni.hideLoading();
- if (res.code == 200 && res.result) {
- this.personInfo = res.data.regUser;
- var token = res ? res.data.token : '';
- this.carhelp.setPersonInfo(res.data.regUser);
- this.carhelp.setToken(token);
- this.carhelp.setPersonInfoPlus(res.data);
- }
- if (res.data && res.data.regUser) {
- // if (res.data.regUser.fontMode == null) {
- // this.show = true;
- // } else {
- // this.show = false;
- // this.fontMode = res.data.regUser.fontMode;
- // if (this.fontMode == '1') {
- // this.carhelp.set("getElderModeClass", "长辈模式");
- // } else {
- // this.carhelp.set("getElderModeClass", "标准模式");
- // }
- // }
- this.userId = res.data.regUser.id;
- this.getFindChargeData();
- if (res.data.regUser.fontMode == "1") {
- this.checked = true;
- this.carhelp.set("getElderModeClass", "长辈模式")
- }
- if (this.carhelp.get("getElderModeClass")) {
- if (this.carhelp.get("getElderModeClass") == "长辈模式") {
- this.elderStatus = true;
- } else {
- this.elderStatus = false;
- }
- } else {
- this.carhelp.set("getElderModeClass", "标准模式");
- this.elderStatus = false;
- }
- } else {
- if (!this.carhelp.get("getElderModeClass")) {
- this.carhelp.set("getElderModeClass", "标准模式");
- }
- this.elderStatus = true;
- var obj = this.carhelp.get("friends_invitation")
- // this.carhelp.set("friends_invitation",{
- // op:op,
- // date:new Date().getTime()
- // })
- if (obj && false) {
- if (obj.date + 1000 * 60 * 60 * 24 > new Date().getTime()) {
- this.friendsInvitation(obj)
- }
- }
- }
- }).catch(error => {
- uni.showToast({
- title: error,
- icon: "none"
- })
- })
- },
- friendsInvitation(obj) {
- uni.showLoading({
- title: "加载中",
- mask: true,
- })
- API.findActivity({
- id: obj.op.id,
- code: obj.op.icode
- }).then((res) => {
- uni.hideLoading()
- obj.activityInfo = res.data.activityInfo;
- var name = res.data.activityInfo.name;
- var title = "参与活动"
- var okbtn = "前往注册"
- var endTime = res.data.activityInfo.endTime;
- if (endTime && secondsDistance(newDate(endTime)) > 0) {
- name = "活动已结束"
- okbtn = "继续注册"
- title = "提示"
- obj = null
- }
- this.carhelp.set("friends_invitation", obj)
- uni.showModal({
- title: title,
- content: name,
- confirmText: okbtn,
- success: res1 => {
- if (res1.confirm) {
- uni.navigateTo({
- url: '/pages/login/login'
- })
- } else if (res1.cancel) {
- //('用户点击取消');
- }
- }
- })
- }).catch(error => {
- uni.showToast({
- title: error,
- icon: "none"
- })
- })
- },
- clickBannerTopI(i) {
- var mod = this.bannerListTop[i];
- //this.showTop = false;
- this.clickBanner(0, true, mod)
- },
- clickBannerTop() {
- var mod = this.bannerListTop[this.showTopIndex];
- this.showTop = false;
- this.clickBanner(0, true, mod)
- },
- clickBanner(index, bl, modout) {
- var uurl = "";
- var mod = this.bannerList[index]
- var mod = {}
- if (modout) {
- mod = modout;
- }else{
- mod =this.bannerList[index]
- }
- mod.clickUrl = mod.linkUrl
- if (mod.linkPicUrl && !bl) {
- this.showOss = true;
- this.showOssImg = mod.linkPicUrl;
- this.showOssIndex = index;
- } else if (mod.clickUrl == null) {
- } else if (mod.clickUrl.indexOf('http') == 0) {
- window.location = mod.clickUrl + uurl;
- } else if (mod.clickUrl.slice(-5) == 'login' && this.userId) {
- } else if (mod.clickUrl.indexOf('#/') == 0) {
- if (mod.clickUrl.indexOf("?") == -1) {
- mod.clickUrl += '?';
- }
- var url = mod.clickUrl.split("#")[1]
- //window.location = mod.clickUrl;
- uni.navigateTo({
- url: url + uurl
- })
- } else if (mod.clickUrl == '#' || mod.clickUrl == '') {
- } else {
- uni.navigateTo({
- url: mod.clickUrl + uurl
- })
- }
- },
- getBannerInfoTop(code) {
- var nowtime = parseUnixTime(currentTimeStamp(), '{y}-{m}-{d}')
- var time = this.carhelp.get("bannerListTop");
- if ((time && nowtime == time)) {
- this.getBannerInfoTopBl = false;
- }
- // uni.showLoading({
- // title: "加载中",
- // mask: true,
- // })
- newsApi.getBannerInfo(code).then((res) => {
- this.bannerListTop = res.data;
- if (this.bannerListTop.length) {
- this.showTop = true;
- this.showTopImg = this.bannerListTop[0].picUrl;
- this.showTopIndex = 0;
- }
- this.carhelp.set("bannerListTop", nowtime);
- //this.test()
- var userInfo = this.carhelp.getPersonInfo();
- if (userInfo && userInfo.id) {
- this.getf5surprised()
- } else {}
- //uni.hideLoading()
- //document.getElementsByClassName("uni-swiper-wrapper")[0].parentNode.style="background-color: rgb(255, 255, 255); height: 120px;"
- }).catch(error => {
- uni.showToast({
- title: error,
- icon: "none"
- })
- })
- },
- getBannerInfo(code, list) {
- newsApi.getBannerInfo(code).then((res) => {
- if (list) {
- this[list] = res.data;
- } else {
- this.bannerList = res.data;
- }
- //uni.hideLoading()
- //document.getElementsByClassName("uni-swiper-wrapper")[0].parentNode.style="background-color: rgb(255, 255, 255); height: 120px;"
- }).catch(error => {
- uni.showToast({
- title: error,
- icon: "none"
- })
- })
- },
- elderClick() {
- if (this.value == "长辈模式") {
- this.elderStatus = true;
- this.carhelp.set("getElderModeClass", "长辈模式");
- this.fontMode = '1';
- } else {
- this.elderStatus = false;
- this.carhelp.set("getElderModeClass", "标准模式");
- this.fontMode = '0';
- }
- API.changeFont({
- fontMode: this.fontMode
- }).then((res) => {
- this.show = false;
- }).catch(error => {
- uni.showToast({
- title: error,
- icon: "none"
- })
- })
- },
- bhz() {
- // uni.showToast({
- // title: "备货中,敬请期待",
- // icon: "none"
- // })
- uni.navigateTo({
- url: "/pages/store/51store"
- })
- },
- getPointTimeOut() {
- setTimeout(() => {
- if (this.pointTimeOut) {
- this.getPoint();
- }
- }, 1000)
- },
- getFindChargeData() {
- API.findChargeData().then((res) => {
- //this.onPageScrollMethod()
- this.chargeList = res.data.chargingRecordList;
- var list = res.data.chargingRecordList;
- for (var i = 0; i < list.length; i++) {
- if (list[i].status == '1' || list[i].status == '4') {
- this.timeOut = true;
- }
- }
- if (this.timeOut && this.pointTimeOut) {
- setTimeout(() => {
- this.getFindChargeData();
- }, 5000)
- }
- }).catch(error => {
- uni.showToast({
- title: error,
- icon: "none"
- })
- })
- },
- toAll() {
- uni.navigateTo({
- url: '/pages/index/all'
- })
- },
- toSearchPile() {
- uni.navigateTo({
- url: '/pages/searchPile/searchPile'
- })
- },
- toLogin() {
- uni.navigateTo({
- url: '/pages/login/login'
- })
- },
- toNewsNotice() {
- // uni.navigateTo({
- // url: '/pages/article/newsNotice'
- // })
- uni.navigateTo({
- url: '/pages/index/activity'
- })
- },
- toNewsArticleDetails(e) {
- // uni.navigateTo({
- // url: '/pages/article/newsNotice'
- // })
- if (e == undefined) {
- console.log("toNewsArticleDetails1", e)
- } else {
- console.log("toNewsArticleDetails1", e)
- var item = this.newsListData[e]
- this.gotoArticleDetails(item)
- }
- // console.log("toNewsArticleDetails2",e)
- //var item=this.newsListData[e]
- //this.gotoArticleDetails(item)
- },
- gotoUd(){
- window.location.href=this.youdianurl;
- },
- //微信扫二维码
- getScanCode() {
- if (this.userId) {
- WxJsApi.scanQRCode(1).then(res => {
- var url=res;
- //("scanQRCode------" + res)
- if(res&&this.branchParameterBl()&&url.indexOf('youdian.hbjp.com.cn')!=-1){
-
- if(url.indexOf('?code=')!=-1){
- url=url.replace('?code=','?code1233=')
- }
-
-
- if(process.car.NODE_ENV=='test'){
- url='https://youdian.hbjp.com.cn/charging-prod/mobile-charging-car-test/#/'
- +url.split("#/")[1]
- }else{
- url='https://youdian.hbjp.com.cn/charging-prod/mobile-charging-car/#/'
- +url.split("#/")[1]
- }
- console.log(url)
- //window.location.href=url;
- this.youdianurl=url
- this.youdianshow=true
-
- }else if (res) {
-
- API.scanCode(res).then((response) => {
- }).catch(error => {
- uni.showToast({
- title: error,
- icon: "none"
- })
- })
- }
- }).catch(error => {
- })
- } else {
- uni.navigateTo({
- url: '/pages/login/login'
- })
- }
- },
- fastRecharge() {
- if (this.userId) {
- if (this.personInfo.userType == 1) {
- uni.showToast({
- title: "游客模式只支持“先付后退”"
- })
- } else {
- uni.navigateTo({
- url: '/pages/user/finance/recharge'
- })
- }
- } else {
- uni.navigateTo({
- url: '/pages/login/login'
- })
- }
- },
- chargingRecord() {
- if (this.userId) {
- uni.navigateTo({
- url: '/pages/record/index'
- })
- } else {
- uni.navigateTo({
- url: '/pages/login/login'
- })
- }
- },
- rechargeActivity(item) {
- if (this.userId) {
- var uurl = "&uid=" + this.userId;
- var mod = item
- if (mod.clickUrl == null) {
- } else if (mod.clickUrl.indexOf('http') == 0) {
- window.location = mod.clickUrl + uurl;
- } else if (mod.clickUrl.indexOf('#/') == 0) {
- if (mod.clickUrl.indexOf("?") == -1) {
- mod.clickUrl += '?';
- }
- var url = mod.clickUrl.split("#")[1]
- //window.location = mod.clickUrl;
- uni.navigateTo({
- url: url + uurl
- })
- } else if (mod.clickUrl == '#' || mod.clickUrl == '') {
- } else {
- uni.navigateTo({
- url: mod.clickUrl + uurl
- })
- }
- } else {
- uni.navigateTo({
- url: '/pages/login/login'
- })
- }
- },
- getActivityInfoList() {
- uni.showLoading({
- title: "加载中",
- mask: true,
- })
- API.activityInfoList({
- pageIndex: 1,
- pageSize: 10
- }).then((res) => {
- uni.hideLoading()
- var list = res.data.data;
- for (let i = 0; i < list.length; i++) {
- if (list[i].type == 2 && list[i].endTime != null) {
- this.activityListShow = true;
- var reg = new RegExp('-', 'gi');
- this.activityDate = list[i].endTime.replace(reg, '/');
- console.log(this.activityDate)
- this.activityDateList = list[i];
- list.splice(i, 1);
- this.getDescriptionTime();
- }
- }
- this.activityList = list;
- this.spring()
- }).catch(error => {
- uni.showToast({
- title: error,
- icon: "none"
- })
- })
- },
- searchStationData(bl) {
- if (bl) {
- this.pageIndex2++;
- }
- var data = {
- longitude: this.longitude,
- latitude: this.latitude,
- pageIndex: this.pageIndex2,
- pageSize: 3
- }
- if (this.carhelp.getPersonInfo()) {
- data.openId = this.carhelp.getOpenId()
- }
- this.loading = false
- siteApi.searchStationData(data).then((response) => {
- //this.onPageScrollMethod()
- if (this.pageIndex2 == 1) {
- this.stationList = response.data.data;
- // this.listForm.totalPage = response.data.totalPage;
- } else {
- this.stationList = [
- ...this.stationList,
- ...response.data.data
- ];
- }
- this.recordsTotal2 = response.data.recordsTotal;
- this.loading = true
- if (false && response.data.data.length && false) {
- var stationDataList = response.data.data;
- MapLoader().then(AMap1 => {
- for (var i in stationDataList) {
- var item = stationDataList[i]
- var lnglat = new AMap.LngLat(this.longitude, this.latitude);
- var myDistance = lnglat.distance([item.longitude, item.latitude]);
- item.distance = myDistance / 1000;
- console.log(item.distance)
- }
- })
- //this.stationData = stationDataList;
- }
- }).catch(error => {
- console.log(error, "123")
- uni.showToast({
- title: error,
- icon: "none"
- })
- })
- },
- getPoint() {
- if (this.stationList.length != 0) {
- return
- }
- WxJsApi.getLocation().then((res) => {
- this.latitude = parseFloat(res.latitude);
- this.longitude = parseFloat(res.longitude);
- this.message = res.errMsg;
- if (res.errMsg != 'getLocation:ok') {
- uni.showToast({
- title: res
- })
- } else {
- this.searchStationData()
- }
- }).catch(error => {
- uni.showToast({
- title: error,
- icon: "none"
- })
- })
- },
- getNewsList(bl) {
- uni.showLoading({
- title: "加载中",
- mask: true,
- })
- newsApi.newsInfoList({
- pageIndex: 1,
- pageSize: 5,
- shortName: 'GDXW',
- //shortName:'TZGG'
- }).then((res) => {
- uni.hideLoading()
- var data1 = res.data.data;
- var data2 = [];
- if (data1.length == 1) {
- data2 = [
- ...data1,
- ...data1
- ]
- } else {
- data2 = [
- ...data1
- ]
- }
- this.newsListData = data2
- this.newsList = data2.map(item => {
- return item.title
- })
- }).catch(error => {
- uni.showToast({
- title: error,
- icon: "none"
- })
- })
- },
- myLoadmore() {
- //this.pageIndex += 1;
- //this.getNewsList()
- },
- }
- }
- </script>
- <style lang="scss" scoped>
-
- .swiper {
- height: 700rpx;
- .swiperitem {
- height: 700rpx;
- }
- }
- .couponmain {
- .main {
- margin: 100px auto 0;
- position: relative;
- .content {
- padding: 24px;
- padding-top: 50px;
- background-color: #fff;
- box-shadow: 0px 0px 0px 1px rgba(254, 229, 147, 100);
- border: 2px solid rgba(253, 217, 141, 100);
- border-radius: 8px;
- .img {
- width: 44vw;
- height: 134px;
- position: absolute;
- top: -88px;
- right: 0px;
- img {
- width: 100%;
- height: 100%;
- }
- }
- .title {
- font-size: 16px;
- color: rgba(84, 45, 45, 100);
- margin-bottom: 13px;
- }
- .text {
- line-height: 24px;
- color: rgba(84, 45, 45, 100);
- font-size: 16px;
- text-align: justify;
- text-decoration: underline;
- text-decoration-color: #ECE3BA;
- text-indent: 32px;
- }
- .sign {
- text-align: right;
- margin-top: 8px;
- font-size: 16px;
- }
- }
- // 专享优惠券
- .exclusive {
- background-color: #F5E4C8;
- margin-top: 20px;
- padding: 32rpx 32rpx 32rpx 32rpx;
- box-shadow: 0px 0px 0px 1px rgba(254, 229, 147, 100);
- border: 2px solid rgba(253, 217, 141, 100);
- border-radius: 8px;
- .exclusive1 {
- font-size: 48rpx;
- color: rgba(51, 51, 51, 1);
- font-family: SourceHanSerif-bold;
- }
- .exclusive2 {
- font-family: PingFangSC-regular;
- color: rgba(51, 51, 51, 1);
- font-size: 36rpx;
- }
- p {
- width: 100%;
- text-align: center;
- //color: rgba(255, 73, 75, 100);
- //font-size: 20px;
- }
- .img {
- // width: 74.4vw;
- // height: 84px;
- margin-top: 16px;
- position: relative;
- img {
- width: 100%;
- height: 100%;
- }
- }
- .num {
- font-size: 54rpx;
- color: rgba(252, 237, 179, 100);
- position: absolute;
- top: 10px;
- left: 8vw;
- font-weight: 600;
- .unit {
- font-size: 24rpx;
- color: rgba(252, 237, 179, 100);
- }
- }
- .unit2 {
- font-size: 12px;
- color: #FFF;
- position: absolute;
- top: 90rpx;
- left: 24rpx;
- }
- .exclusive-text {
- color: #333333;
- font-size: 16rpx;
- }
- .exclusive-btn {
- width: 80%;
- margin-top: 48rpx;
- border-radius: 50px;
- background: linear-gradient(90.58deg, rgba(225, 208, 165, 1) 0.05%, rgba(228, 190, 132, 1) 98.67%);
- color: rgba(51, 51, 51, 1);
- font-size: 36rpx;
- text-align: center;
- box-shadow: 0px 8rpx 20rpx 0px rgba(184, 155, 103, 40);
- font-family: -apple-system;
- // width: 87.4%;
- // margin-top: 20px;
- // background-image: linear-gradient(#ffff00, #ff9600);
- // color: #521e00;
- // font-size: 20px;
- // border-radius: 50px;
- }
- .ticket-info {
- width: 40vw;
- text-align: center;
- position: absolute;
- top: 18px;
- right: 16rpx;
- .ticket-name {
- line-height: 40rpx;
- color: rgba(16, 16, 16, 100);
- font-size: 16rpx;
- }
- .condition {
- line-height: 22px;
- color: #8a6f6f;
- font-size: 12px;
- }
- }
- }
- }
- }
- .oldTextClassF {
- .text-2 {
- font-size: 36rpx !important;
- }
- .text-3 {
- font-size: 34rpx !important;
- }
- .station .price-free .price-1 .num {
- font-size: 48rpx !important;
- line-height: 40rpx;
- font-weight: bold;
- }
- }
- ::v-deep .u-image__loading {
- background: #ff000000;
- }
- // 头部图片
- img {
- width: 100%;
- // height: 100%;
- }
- .background-spring {
- background: linear-gradient(#ec866d 10%, #F3F4F4 30%);
- //padding-top: 28rpx;
- .backgroundClass {
- background-image: url('@/assets/img/spring/2025/index1.jpg');
- padding-top: 50rpx;
- background-size: 100% 100%;
- /* 横向100%,纵向50% */
- background-position: center;
- /* 保证图像居中显示 */
- background-repeat: no-repeat;
- /* 不重复显示图像 */
- }
- .options-item {
- box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.4);
- border: 2px solid rgba(255, 214, 149, 1);
- }
- }
- .background {
- background: linear-gradient(#D6EEDC, #F3F4F4);
-
- .backgroundClass {
-
- padding-top: 44rpx;
-
-
-
- }
- }
- .banner {
- width: 91.4%;
- margin: 0 auto;
- border-radius: 12px;
- height: 200rpx;
- overflow: hidden;
- ::v-deep uni-swiper {
- height: 200rpx !important;
- }
- }
- // 选项列表
- .option-list-spring {
- padding-top: 30rpx;
-
- line-height: 40rpx;
- border-radius: 8px;
- text-align: center;
-
- margin: auto;
- display: flex;
- justify-content: space-around;
-
- .list-item {
-
-
- // 图标
- .icon {
- background-image: url('@/assets/img/spring/optionBg.svg');
- background-position: center;
- background-repeat: no-repeat;
- background-size: 100% 100%;
- width: 100rpx;
- height: 100rpx;
- // border-radius: 99px;
- line-height: 80rpx;
- font-size: 48rpx;
- text-align: center;
- margin: auto;
- color: #ffffff;
- display: flex;
- align-items: center;
- justify-content: center;
- img{
- width: 48rpx;
- height: 48rpx;
- }
- }
-
- .text {
- margin-top: 8rpx;
- }
- }
- }
- // 选项列表
- .option-list {
- padding-top: 30rpx;
- line-height: 40rpx;
- border-radius: 8px;
- text-align: center;
- margin: auto;
- display: flex;
- justify-content: space-around;
-
- .list-item {
- // 图标
- .icon {
- width: 80rpx;
- height: 80rpx;
- border-radius: 99px;
- line-height: 80rpx;
- font-size: 48rpx;
- text-align: center;
- margin: auto;
- color: #ffffff;
- }
- .text {
- margin-top: 8rpx;
- }
- }
- }
- .flex {
- display: flex;
- }
- // 站点
- .pack-up {
- float: right;
- font-size: 16px;
- color: rgba(119, 119, 119, 100);
- }
- .station,
- .location,
- .state1 {
- overflow: hidden;
- box-shadow: 0px 4rpx 12rpx 0px #008c4a33;
- }
-
-
- // 附近站点改版
- .station {
- width: 91.4%;
- border-radius: 8px;
- padding: 12px 12px 12px 11px;
- background-color: #fff;
- margin: 8px auto 0;
- .head {
- display: flex;
- justify-content: space-between;
- align-items: center;
- .title {
- color: rgba(16, 16, 16, 100);
- font-size: 32rpx;
- font-weight: 550;
- width: 440rpx;
- text-overflow: ellipsis;
- overflow: hidden;
- white-space: nowrap;
- }
- .distance {
- width: 180rpx;
- color: rgba(102, 102, 102, 100);
- font-size: 32rpx;
- text-align: end;
- .iconfont {
- font-size: 24rpx;
- margin-right: 4rpx;
- }
- }
- }
- .sign {
- display: flex;
- flex-wrap: wrap;
- margin-top: 16rpx;
- height: 46rpx;
- overflow: hidden;
- .sign-tag {
- line-height: 40rpx;
- border-radius: 8rpx;
- //background-color: rgba(255, 255, 255, 100);
- //color: rgba(255, 139, 0, 100);
- font-size: 24rpx;
- text-align: center;
- //border: 1px solid rgba(255, 139, 0, 100);
- padding: 0 8rpx 14rpx 8rpx;
- margin-right: 16rpx;
- margin-bottom: 8rpx;
- }
- .sign-0 {
- background: linear-gradient(89.4deg, rgba(129, 97, 255, 1) 2.8%, rgba(169, 147, 255, 1) 98.02%);
- color: rgba(255, 255, 255, 1);
- padding: 0 10rpx;
- //border: 1px solid rgba(255, 139, 0, 100);
- }
- .sign-5 {
- background: linear-gradient(89.4deg, rgba(255, 61, 0, 1) 2.8%, rgba(255, 134, 0, 1) 98.02%);
- color: rgba(255, 255, 255, 1);
- padding: 0 10rpx;
- }
- .sign-6 {
- //background: linear-gradient(89.4deg, rgba(255,61,0,1) 2.8%,rgba(255,134,0,1) 98.02%);
- background: linear-gradient(89.4deg, rgba(0, 164, 87, 1) 2.8%, rgba(0, 206, 141, 1) 98.02%);
- color: rgba(255, 255, 255, 1);
- padding: 0 10rpx;
- }
- .sign-1 {
- line-height: 40rpx;
- border-radius: 8rpx;
- background-color: rgba(255, 255, 255, 100);
- color: rgba(255, 139, 0, 100);
- font-size: 24rpx;
- text-align: center;
- border: 1px solid rgba(255, 139, 0, 100);
- padding: 0 8rpx;
- margin-right: 16rpx;
- margin-bottom: 8rpx;
- }
- .sign-2 {
- line-height: 40rpx;
- border-radius: 8rpx;
- background-color: rgba(255, 255, 255, 100);
- color: rgba(153, 153, 153, 100);
- font-size: 24rpx;
- text-align: center;
- border: 1px solid rgba(204, 204, 204, 100);
- padding: 0 8rpx;
- margin-right: 16rpx;
- margin-bottom: 8rpx;
- }
- .sign-3 {
- line-height: 40rpx;
- border-radius: 8rpx;
- background-color: rgba(255, 255, 255, 100);
- color: #8161FF;
- font-size: 24rpx;
- text-align: center;
- border: 1px solid #8161FF;
- padding: 0 8rpx;
- margin-right: 16rpx;
- margin-bottom: 8rpx;
- }
- .sign-4 {
- line-height: 40rpx;
- border-radius: 8rpx;
- background-color: rgba(255, 255, 255, 100);
- color: #00B962;
- font-size: 24rpx;
- text-align: center;
- border: 1px solid #00B962;
- padding: 0 8rpx;
- margin-right: 16rpx;
- margin-bottom: 8rpx;
- }
- }
- .price-free {
- display: flex;
- justify-content: space-between;
- margin-top: 8rpx;
- .price {
- display: flex;
- align-items: baseline;
- }
- .price-1 {
- .num {
- color: rgba(255, 98, 0, 100);
- font-size: 44rpx;
- }
- .unit {
- font-size: 12px;
- color: rgba(153, 153, 153, 100);
- }
- }
- .price-2 {
- font-size: 24rpx;
- margin-left: 8rpx;
- color: #999999;
- text-decoration: line-through;
- }
- .price-3 {
- font-size: 24rpx;
- color: #fff;
- margin-left: 8rpx;
- padding-right: 9rpx;
- background: #00B962;
- border-radius: 8rpx;
- .num1 {
- padding-left: 12rpx;
- border-radius: 8rpx 0 8rpx 8rpx;
- padding-right: 18rpx;
- background: #121212;
- -webkit-clip-path: polygon(0 0, 93% 0, 84% 100%, 0% 100%);
- clip-path: polygon(0 0, 93% 0, 84% 100%, 0% 100%);
- }
- }
- }
- .free {
- display: flex;
- align-items: center;
- .slow,
- .fast {
- display: flex;
- .sp-font {
- width: 40rpx;
- height: 40rpx;
- line-height: 40rpx;
- border-radius: 4px;
- background-color: #7a68f6;
- color: #fff;
- font-size: 28rpx;
- text-align: center;
- margin-right: 2rpx;
- }
- .fast-font {
- width: 40rpx;
- height: 40rpx;
- line-height: 40rpx;
- border-radius: 8rpx;
- // background-color: rgba(186, 240, 215, 100);
- // color: rgba(0, 130, 69, 100);
- background-color: #1677FF;
- color: rgba(255, 255, 255, 1);
- font-size: 28rpx;
- text-align: center;
- margin-right: 8rpx;
- }
- .slow-font {
- width: 40rpx;
- height: 40rpx;
- line-height: 40rpx;
- border-radius: 8rpx;
- // background-color: rgba(226, 226, 226, 100);
- // color: rgba(128, 128, 128, 100);
- background-color: #00B962;
- color: rgba(255, 255, 255, 1);
- font-size: 28rpx;
- text-align: center;
- margin-right: 8rpx;
- }
- .num {
- font-size: 32rpx;
- color: #666;
- line-height: 40rpx;
- }
- .num1 {
- font-size: 32rpx;
- color: #bbb;
- line-height: 40rpx;
- }
- }
- .slow {
- margin-left: 24rpx;
- }
- }
- }
- //定位
- .location {
- width: 91.4%;
- background-color: #ffffff;
- height: 120px;
- display: flex;
- justify-content: space-between;
- margin: 20px auto 0;
- border-radius: 8px;
- border: #F2F4F4 1px;
- .location-text {
- padding: 24px 0 0 28px;
- .text-1 {
- height: 16px;
- line-height: 16px;
- color: rgba(16, 16, 16, 100);
- font-size: 16px;
- text-align: left;
- }
- .text-2 {
- height: 17px;
- line-height: 17px;
- color: rgba(102, 102, 102, 100);
- font-size: 12px;
- text-align: left;
- margin-top: 6px;
- white-space: nowrap; //强制不换行
- text-overflow: ellipsis; //文本超出出现省略号
- overflow: hidden;
- }
- .text-3 {
- width: 200rpx;
- height: 24px;
- line-height: 22px;
- border-radius: 50px;
- color: rgba(0, 185, 98, 100);
- font-size: 12px;
- text-align: center;
- border: 1px solid rgba(0, 185, 98, 100);
- margin-top: 11px;
- }
- }
- .img-box {
- //width: 120px;
-
- margin: auto;
- img {
- width: 200rpx;
- }
- }
- }
- .img-box4 {
-
- // height: 260rpx;
- padding-top: 30rpx;
- display: flex;
- flex-direction: column;
- justify-content: space-between;
- align-items: flex-end;
- img {
- max-width: 200rpx;
- }
- .img-view {
- color: #777777 ;
- float: right;
- font-size: 10px;
- margin-top: 3px;
- position: relative;
- bottom: 30rpx;
- left: -15px;
- .iconfont {
- font-size: 14px;
- }
- }
- }
- .show20240403Main{
- display: flex;
- // flex-wrap: wrap;
- font-size: 32rpx;
- //margin: 8rpx 0;
- .show20240403{
- white-space: pre;
-
- }
- .text-21,.text-22 {
- margin-left: 8rpx;
- font-size: 32rpx;
- font-weight: bold;
- color: rgba(0, 185, 98, 1);
- }
-
- }
- .text-4{
- font-size: 28rpx;
-
- //margin-top: 12rpx;
-
- color: rgba(119, 119, 119, 1);
- .text-4-span{
- margin: 0 12rpx;
- font-size: 32rpx;
- font-weight: bold;
- color: rgba(0, 0, 0, 1.0);
- }
- }
- .state {
- width: 91.4%;
- background-color: #ffffff;
- padding-bottom: 40rpx;
- display: flex;
- margin: 20rpx auto 0;
- border-radius: 8px;
- border: #F2F4F4 1px;
- .state-text {
- .text-1 {
- white-space: pre;
- }
- padding: 48rpx 0 0 24rpx;
- Z-INDEX: 99;
- .text-1 {
- height: 16px;
- line-height: 16px;
- color: rgba(0, 185, 98, 1);
- font-size: 16px;
- text-align: left;
- font-weight: bold;
- span {
- color: rgba(16, 16, 16, 1);
- margin-right: 12rpx;
- }
- }
- .text-2 {
- width: 160%;
- height: 17px;
- line-height: 17px;
- color: #101010;
- text-align: left;
- margin-top: 12px;
- span {
- font-weight: bold;
- margin-right: 6rpx;
- margin-left: 6rpx;
- }
- .text-21 {
- color: rgba(0, 185, 98, 1);
- }
- .text-22 {
- color: #ed7847;
- }
- }
- .text-3 {
- font-size: 14px;
- line-height: 20px;
- margin-top: 6px;
- color: #999999;
- }
- }
- .img-box {
- width: 120px;
- height: 120px;
- margin-right: 20px;
- }
- }
- .state1{
- padding-bottom: 0px;
- display: flex;
- justify-content: space-between;
- .state-text {
- width: 70%;
- .text-5 {
- font-size: 36rpx;
-
- color: rgba(0, 185, 98, 1);
-
- text-align: left;
- font-weight: bold;
-
- span {
- color: rgba(16, 16, 16, 1);
- margin-right: 12rpx;
-
- }
- }
-
- padding: 40rpx 0 40rpx 24rpx;
- display: flex;
- z-index: 99;
- flex-direction: column;
- justify-content: space-around;
- }
- }
- //充值
- .top-up {
- width: 91.4%;
- margin: 24rpx auto 0;
- .top-up-title {
- color: rgba(16, 16, 16, 100);
- font-size: 16px;
- }
- .card-box {
- display: flex;
- justify-content: space-between;
- //padding: 0 0 16px 0;
- .card {
- width: 48.3%;
- height: 65px;
- img {
- width: 100%;
- height: 100%;
- }
- }
- }
- .img-box2 {
- margin-top: 12px;
- display: flex;
- justify-content: space-between;
- img {
- width: 100%;
- height: 100%;
- }
- .left-image {
- width: 48.3%;
- height: 166px;
- padding: 8px 0 0 12px;
- // background: url(@/assets/img/topup1.png);
- background-repeat: no-repeat;
- background-position: 30% 10%;
- background-size: cover;
- p {
- color: rgba(56, 47, 33, 100);
- font-size: 24px;
- line-height: 28px;
- font-weight: 600;
- }
- .time-activities {
- color: rgba(56, 39, 14, 100);
- font-size: 16px;
- line-height: 22px;
- margin-top: 4px;
- .time {
- margin-left: 4px;
- color: #fa3534;
- font-weight: bold;
- }
- }
- }
- .right-image {
- width: 48.3%;
- display: flex;
- flex-direction: column;
- justify-content: space-between;
- .margin-top {
- margin-top: 12px;
- }
- img {
- height: 77px;
- }
- }
- ;
- }
- }
- .lineBox {
- background-color: rgba(0, 145, 67, 100);
- padding: 0px 3px;
- background-color: rgba(0, 185, 98, 1);
- color: rgba(255, 255, 255, 1);
- margin-left: 6px;
- border-radius: 3px;
- }
- // 小竖线
- .line {
- display: inline-block;
- width: 3px;
- height: 12px;
- margin-right: 7px;
- background-color: rgba(0, 145, 67, 100);
- }
- // 新闻公告
- .news-title2 {
- display: flex;
- }
- // 新闻公告
- .news-title {
- padding: 0 16px;
- margin-top: 12px;
- color: rgba(16, 16, 16, 100);
- font-size: 16px;
- //display: flex;
- justify-content: space-between;
- background-color: #F2F4F4;
- .news-title-left {
- display: flex;
- }
- .more {
- font-size: 14px;
- color: #777777;
- display: flex;
- line-height: 20px;
- align-items: center;
- .more-icon {
- font-size: 24px
- }
- }
- }
- .news {
- background-color: #fff;
- width: 91.4%;
- margin: 12px auto 0;
- border-radius: 8px;
- .news-content {
- display: flex;
- justify-content: space-between;
- padding: 12px;
- .content-text {
- width: 56.2%;
- height: 100%;
- line-height: 21px;
- color: #101010;
- text-align: left;
- font-size: 14px;
- }
- .content-title {
- width: 100%;
- overflow: hidden;
- text-overflow: ellipsis;
- display: -webkit-box;
- -webkit-box-orient: vertical;
- -webkit-line-clamp: 3;
- }
- .content-img {
- width: 40.57%;
- height: 100%;
- border-radius: 4px;
- overflow: hidden;
- img {
- width: 100%;
- height: 80%;
- }
- }
- .news-time {
- margin-top: 5%;
- color: #999999;
- width: 80px;
- height: 20px;
- font-size: 14px;
- }
- }
- }
- .bottom {
- width: 100%;
- height: 60px;
- .bot {
- width: 100%;
- margin: 0 auto;
- padding: 0 17.3%;
- justify-content: space-between;
- display: flex;
- .bot-line {
- margin-top: 20px;
- width: 21.3%;
- height: 0px;
- border: 1px solid rgba(207, 210, 213, 100);
- }
- .bot-text {
- white-space: nowrap;
- height: 17px;
- margin-top: 13px;
- margin-left: 12px;
- margin-right: 12px;
- font-size: 12px;
- text-align: center;
- color: rgba(182, 189, 195, 100);
- }
- }
- }
- // 导航栏
- .navigation {
- width: 100%;
- // height: 40px;
- padding: 10px 0;
- background-color: #fff;
- position: fixed;
- bottom: 0;
- left: 0;
- display: flex;
- justify-content: space-around;
- text-align: center;
- color: #999999;
- .nav-icon {
- width: 54px;
- font-size: 24px
- }
- .nav-text {
- font-size: 14px;
- }
- }
- .shema {
- width: 70%;
- padding-bottom: 20px;
- border-radius: 16px;
- background-color: #fff;
- position: fixed;
- top: 100px;
- left: 0;
- right: 0;
- margin: 0 auto;
- z-index: 9999;
- .title {
- height: 33px;
- color: rgba(16, 16, 16, 100);
- font-size: 24px;
- text-align: center;
- padding: 16px 0;
- }
- .u-radio-group {
- margin: 16px 5vw;
- }
- ::v-deep .u-radio {
- width: 60vw !important;
- padding: 24px 24px 40px;
- line-height: 20px;
- border-radius: 16px;
- text-align: center;
- border: #101010 1px solid;
- margin-top: 12px;
- }
- ::v-deep .u-radio__label {
- text-align: left;
- height: 24px;
- // color: rgba(0, 185, 98, 100);
- font-size: 24px;
- }
- p {
- height: 22px;
- color: rgba(102, 102, 102, 100);
- font-size: 14px;
- margin-top: 12px;
- white-space: nowrap
- }
- .hint {
- text-align: center;
- }
- .btn-box {
- margin-top: 20px;
- .choice-btn {
- width: 80%;
- }
- }
- }
- .wrap {
- display: flex;
- align-items: center;
- justify-content: center;
- height: 100%;
- }
- // 登录提示
- .login-prompt {
- width: 91.4%;
- height: 40px;
- line-height: 40px;
- border-radius: 50px;
- text-align: left;
- padding-left: 16px;
- padding-right: 4px;
- background-color: rgba(0, 0, 0, 0.6);
- position: fixed;
- bottom: 75px;
- color: #ffffff;
- .button {
- width: 88px;
- height: 32px;
- line-height: 32px;
- border-radius: 50px;
- background-color: rgba(0, 185, 98, 100);
- text-align: center;
- float: right;
- margin-top: 4px;
- }
- }
- .showOss {
- ::v-deep .u-model,
- ::v-deep .u-mode-center-box {
- background-color: transparent;
- }
- }
- .carNone {
- display: flex;
- flex-direction: column;
- justify-content: center;
- align-items: center;
- img {
- width: 100%;
- height: 100%;
- }
- p {
- margin-top: -60px;
- }
- }
- .shopItemName {
- min-height: 30px;
- }
- .shopItemPrice2 {
- border-radius: 25px;
- width: 64rpx;
- height: 64rpx;
- display: flex;
- justify-content: center;
- /* text-decoration: underline; */
- color: #fff;
- text-align: center;
- align-items: center;
- background: linear-gradient(180deg, rgba(255, 98, 0, 1) 0%, rgba(255, 40, 0, 1) 100%);
- img{
- width: 40rpx;
- height: 40rpx;
- }
- }
- .slogan-4 {
- margin-top: 10px;
- display: flex;
- justify-content: center;
- /* text-decoration: underline; */
- text-align: center;
- position: fixed;
- /* top: 40px; */
- bottom: 180px;
- right: 20px;
- height: 80rpx;
- width: 80rpx;
- line-height: 20px;
- font-size: 16px;
- background: linear-gradient(95deg, #FF9800, #FF5722);
- box-shadow: 0 4rpx 24rpx 0 #FF5722;
- //padding-top: 8px;
- color: #fff;
- border-radius: 25px;
- }
- .imageshake {
- position: relative;
- animation: shake 0.5s ease-in-out infinite;
- }
- @keyframes shake {
- 0% {
- transform: rotate(0deg);
- }
- 25% {
- transform: rotate(8deg);
- }
- 50% {
- transform: rotate(0deg);
- }
- 75% {
- transform: rotate(-8deg);
- }
- 100% {
- transform: rotate(0deg);
- }
- }
- .shopList {
- width: 91.4%;
- margin: 8px auto 0;
- border-radius: 8px;
- padding: 12px 12px 12px 11px;
- background-color: #fff;
- display: flex;
- justify-content: space-between;
- flex-wrap: wrap;
- .shopItem {
- width: 45%;
- margin: 3px;
- margin-bottom: 32rpx;
- .shopItemImg {
- // width: 288rpx;
- // height:288rpx ;
- }
- .shopItemPrice {
- display: flex;
- justify-content: space-between;
- align-items: flex-end;
- .shopItemPrice1 {
- color: rgba(255, 40, 0, 1);
- font-size: 40rpx;
- text {
- font-size: 24rpx
- }
- }
- }
- }
- }
- .options-item {
- width: 100%;
- // display: flex;
- // justify-content: center;
- background: rgb(255, 255, 255);
- position: relative;
- position: fixed;
- left: 0;
- right: 0;
- top: 0;
- z-index: 991;
- }
- .news-text {
- width: 100%;
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- }
- .rotate-animation {
- animation: rotate 3s linear infinite;
- }
- @keyframes rotate {
- from {
- transform: rotate(0deg);
- }
- to {
- transform: rotate(360deg);
- }
- }
-
- ::v-deep .springclass{
- .u-tabbar__content__item{
- .u-icon__img {
- width:56rpx !important;
- height:56rpx !important
- }
- }
- .u-tabbar__content__item:nth-child(1){
- .u-icon__img {
- width:72rpx !important;
- height:72rpx !important
- }
- }
- }
-
-
- </style>
|