12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275 |
- <template>
- <view>
- <ujp-navbar title="折扣卡购买" :show="false"></ujp-navbar>
- <view class="u-navbar-placeholder" style="width: 100%; height: 72rpx;"></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">
- <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 iconfont" style="background: linear-gradient(45deg,#00B962,#5FE4A6);">
- 
- </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 iconfont" style="background: linear-gradient(45deg,#23AD9B,#4BD2C0);">
- 
- </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 iconfont" style="background: linear-gradient(45deg,#407DE4,#6FA5FF );">
- 
- </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 iconfont" style="background: linear-gradient(45deg,#6366FF,#9D9FFF);">
- 
- </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="true" :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="gotoUrl('pages/searchPile/stationAndPile/stationDetails?id=' + stationData.id)">
- <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 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" :key="tagIndex">{{tagName}}</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%;"></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="gotoUrl('pages/searchPile/stationAndPile/stationDetails?id=' + stationData.id)">
- <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 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" :key="tagIndex">{{tagName}}</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%;"></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-1 " oldstyle="font-size: 20px;">
- <span v-if="item.carNumber">{{item.carNumber}}</span>
- {{item.statusText}}...
- </view>
- <view v-if="item.status == '0'" class="text-2 " oldstyle="font-size: 16px;">
- 启动中
- </view>
- <view v-if="item.status == '1'" class="text-2 " oldstyle="font-size: 16px;">
- 已充
- <span
- class="text-21">{{item.electricQuantity?(item.electricQuantity/10000).toFixed(1):'0.0'}}度</span>
- 合计<span class="text-22">{{item.dueFee != null ? item.dueFee.toFixed(2) : '0.00'}}元</span>
- <view style="display: initial;" v-if="item.endSoc">电量<span class="text-21">{{item.endSoc}}%</span>
- </view>
- </view>
- <!-- <view v-if="item.status == '2'" class="text-2" style="color: red;">
- 超出时间将收取占位费
- </view> -->
- <view v-if="item.status == '4'" class="text-2 oldTextjp2" oldstyle="font-size: 16px;">
- <span v-if="item.waitNum==1">请耐心等待</span>
- <span v-else>前方等待{{item.waitNum-1}}位</span>
- </view>
- <view class="text-3 " oldstyle="font-size: 16px;">
- <p style=" width: 160%;">
- {{item.deviceName}}枪{{channelNoShow(item.channelNo,item.manufacturer)}}/{{item.stationName}}<br />当前电价{{item.chargingCostPrice.toFixed(2)}}元/度
- </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" @click="bhz" >
- <view class="shopItem" v-for="(item,i) in shopList" :key="i">
- <view class="shopItemImg">
- <img :src="item.img" >
- </view>
- <view class="shopItemName" >
- <img v-if="item.iszy" 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="personInfo&&personInfo.userType==2&&personInfo.memberLevel&&item.prices" >
- <text>¥</text>{{item.prices[personInfo.memberLevel]?item.prices[personInfo.memberLevel]:item.price+"&&"}}</view>
- <view class="shopItemPrice1" v-else ><text>¥</text>{{item.price}}</view>
-
- <view class="shopItemPrice2">
-
- <u-icon name="shopping-cart" size="40"></u-icon>
- </view>
- </view>
- </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">¥{{item.price}}</view>
- <view class="shopItemPrice2">
- <u-icon name="shopping-cart" size="40"></u-icon>
- </view>
- </view>
- </view>
- </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>
- <Tabbar v-if="indexStyle.spring" class="springClass" bgColor="" inColor="#fff" acColor="#f9d79e" :current="0"
- ref="tabbarMain" :elderStatus="elderStatus"></Tabbar>
- <Tabbar v-else :current="0" ref="tabbarMain" :elderStatus="elderStatus"></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 {
- 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: {
-
- 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().spring2024){
- var spring2024=this.carhelp.getConfig().spring2024
- var sz=spring2024.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]
- if (modout) {
- mod = modout;
- }
- 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)
- },
- //微信扫二维码
- getScanCode() {
- if (this.userId) {
- WxJsApi.scanQRCode(1).then(res => {
- //("scanQRCode------" + res)
- 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>
- .springClass {
- /deep/.u-tabbar__content {
- background-image: url("@/assets/img/spring/indexTabbar.png");
- background-size: 100% 100%;
- background-position: center;
- background-repeat: no-repeat;
- }
- }
- .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;
- }
- }
- /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/indexBg.png');
- padding-top: 46rpx;
- 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: 40rpx;
-
-
-
- }
- }
- .banner {
- width: 91.4%;
- margin: 0 auto;
- border-radius: 12px;
- height: 100px;
- overflow: hidden;
- /deep/uni-swiper {
- height: 100px !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 {
- 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: 4px;
- white-space: nowrap; //强制不换行
- text-overflow: ellipsis; //文本超出出现省略号
- overflow: hidden;
- }
- .text-3 {
- width: 80px;
- 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;
- height: 120px;
- margin-right: 20px;
- }
- }
- .img-box4 {
- padding-top: 5px;
- height: 260rpx;
- img {
- max-width: 100px;
- }
- .img-view {
- color: #0293f0;
- float: right;
- font-size: 10px;
- margin-top: 3px;
- position: relative;
- bottom: 30rpx;
- left: -15px;
- .iconfont {
- font-size: 14px;
- }
- }
- }
- .state {
- width: 91.4%;
- background-color: #ffffff;
- height: 260rpx;
- min-height: 120px;
- max-height: 130px;
- display: flex;
- margin: 20rpx auto 0;
- border-radius: 8px;
- border: #F2F4F4 1px;
- .state-text {
- min-width: 70%;
- 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;
- }
- }
- //充值
- .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;
- }
- /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;
- }
- /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 {
- /deep/.u-model,
- /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;
- background: linear-gradient(180deg, rgba(255, 98, 0, 1) 0%, rgba(255, 40, 0, 1) 100%);
- }
- .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);
- }
- }
- </style>
|