123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133 |
- <template>
- <view>
- <ujp-navbar title="月卡购买" :show="false" ></ujp-navbar>
-
- <!-- 头部图片 -->
- <view class="background">
- <view class="banner">
- <ujp-swiper bg-color="#fff"
- :img-mode="'scaleToFill'" height="120"
- :list="bannerList" @click="clickBanner" :name="'picUrl'" >
- </ujp-swiper>
-
- </view>
-
-
- <!-- 选项列表 -->
- <view class="option-list">
- <view class="list-item" @click="getScanCode">
- <view class="icon iconfont" style="background: linear-gradient(45deg,#00B962,#5FE4A6);">
- 
- </view>
- <view class="text oldTextjp2" oldstyle="font-size: 18px;">
- 扫码充电
- </view>
- </view>
- <view class="list-item" @click="fastRecharge">
- <view class="icon iconfont" style="background: linear-gradient(45deg,#23AD9B,#4BD2C0);">
- 
- </view>
- <view class="text oldTextjp2" oldstyle="font-size: 18px;">
- 快速充值
- </view>
- </view>
- <view class="list-item" @click="chargingRecord">
- <view class="icon iconfont" style="background: linear-gradient(45deg,#407DE4,#6FA5FF );">
- 
- </view>
- <view class="text oldTextjp2" oldstyle="font-size: 18px;">
- 充电记录
- </view>
- </view>
- <view class="list-item" @click="toSearchPile">
- <view class="icon iconfont" style="background: linear-gradient(45deg,#6366FF,#9D9FFF);">
- 
- </view>
- <view class="text oldTextjp2" 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>
- <u-modal v-model="showNt" class="showOss"
- :show-title="false" :show-confirm-button="false" >
- <view class="slot-content">
-
- <u-image width="600" style="margin: auto;min-height: 250px;"
- mode="widthFix"
- v-show="showNtStep==0"
- src="@/assets/img/nt/news-activity-2.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" style="margin: auto;min-height: 250px;"
- mode="widthFix" @click="showNtStepClick"
- v-show="showNtStep==1"
- src="@/assets/img/nt/news-activity-1.png">
-
- </u-image>
- <view
- style="color: #FFFFFF;
- font-size: 64rpx;
- position: relative;
- top: -600rpx;
- 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>
- </u-modal>
- <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>
-
- <u-modal v-model="showTop" class="showOss"
- :show-title="false" :show-confirm-button="false" >
- <view class="slot-content" v-if="bannerListTop.length" >
- <view class="couponmain" v-if="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-image width="250px;" v-else
- bgColor="#ff000000"
- style="margin: auto;min-height: 250px;"
- mode="widthFix" @click="clickBannerTop()"
- :src="showTopImg"
- >
- <view slot="loading" style="height: 200px;" >
- <u-loading mode="flower" size="186" >
-
- </u-loading>
-
- </view>
-
- </u-image>
- <view
- @click="showTopIndex++"
- v-show="showTopIndex!=bannerListTop.length-1"
- >
- <u-button class="choice-btn"
- @click="nextTop(showTopIndex)"
- style="width: 80%;margin-top: 10px;" shape="circle">下一条({{showTopIndex+1}}/{{bannerListTop.length}})</u-button>
-
- </view>
- <u-image width="36px"
- v-show="showTopIndex==bannerListTop.length-1"
- 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>
- <!-- 附近站点 -->
- <view class="station" v-for="(stationData,i) in stationList" :key="i"
- 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">
- {{stationData.address}}
- </view>
- <view class="sign" v-else>
- <template v-if="personInfo&&personInfo.userType!=1">
- <view class="sign-1" v-if="stationData.giveDiscount&&stationData.discountRatio">会员服务费{{stationData.discountRatio/10}}折</view>
- <view class="sign-2" v-if="stationData.tagList.length != 0" v-for="(tagName,tagIndex) in stationData.tagList" :key="tagIndex">{{tagName}}</view>
- </template>
- </view>
- <view class="price-free oldTextClass">
- <view class="price">
- <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="free" v-if="stationData.category=='超充'" >
- <view class="fast" >
- <view class="sp-font">
- 超
- </view>
- <view class="num">
- {{stationData.fastAvailableNum}}/{{stationData.fastNum}}
- </view>
- </view>
-
- </view>
- <view class="free" v-else>
- <view class="fast" v-if="stationData.type == '1' || stationData.type == '1,2'">
- <view class="fast-font">
- 快
- </view>
- <view class="num">
- {{stationData.fastAvailableNum}}/{{stationData.fastNum}}
- </view>
- </view>
- <view class="slow oldTextjp2"
- oldstyle="margin-left: 1px;"
- v-if="stationData.type == '2' || stationData.type == '1,2'">
- <view class="slow-font">
- 慢
- </view>
- <view class="num">
- {{stationData.slowAvailableNum}}/{{stationData.slowNum}}
- </view>
- </view>
- </view>
- </view>
- </view>
- <view class="bottom" @click="goSearch()" >
- <view class="bot">
- <view class="bot-line"></view>
- <view class="bot-text " style="color: #00B962;" >点击查看更多站点</view>
- <view class="bot-line"></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="static/img/暂无网络信号-缺省页 1.png">
- </view>
- </view>
- </view>
-
- <!-- 充电状态 -->
- <view class="state1 state" v-if="chargeList.length > 0" v-for="(item,index) in chargeList" :key="item.id"
- @click="gotoUrl('pages/searchPile/chargeProcess/dcCharging?id=' + item.id)">
- <view class="state-text">
- <view class="text-1 oldTextjp" oldstyle="font-size: 20px;">
- {{item.statusText}}
- </view>
- <view v-if="item.status == '0'" class="text-2 oldTextjp2" oldstyle="font-size: 16px;">
- 启动中
- </view>
- <view v-if="item.status == '1'" class="text-2 oldTextjp2" oldstyle="font-size: 16px;">
- 已充{{item.dueFee != null ? item.dueFee.toFixed(2) : '0.00'}}元
- </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 oldTextjp2" oldstyle="font-size: 16px;">
- <p style=" width: 160%;"> {{item.stationName}}/{{item.deviceName}} 当前电价{{item.chargingCostPrice.toFixed(2)}}元/度</p>
- </view>
- </view>
- <view class="img-box" style="height: 110px;">
- <img v-if="item.status == '0'" src="static/img/等待中-缺省页.png">
- <img v-if="item.status == '1'" src="static/img/充电中-缺省页.png">
- <img v-if="item.status == '2'" src="static/img/已充满-缺省页.png">
- <img v-if="item.status == '4'" src="static/img/等待中-缺省页.png">
- </view>
- </view>
-
-
- <!-- 新闻 -->
- <view class="news-title" v-if="newsList.length > 0">
- <view class="news-title-left oldTextjp" oldstyle="font-size:20px;">
- <view class="line" style="margin-top:4px;"></view>新闻公告
- </view>
- <view class="more oldTextjp2" oldstyle="font-size:16px;" @click="toNewsNotice">更多<view class="more-icon iconfont"> </view>
- </view>
- </view>
- <view class="news">
- <view class="news-content" v-for="(item,index) in newsList" :key="index"
- @click="gotoUrl('pages/article/articleDetails?id=' + item.id)">
- <view class="content-text">
- <view class="content-title oldTextjp2" oldstyle="font-size: 18px;">{{item.title}}</view>
- <view class="news-time">{{item.createTime?item.createTime.slice(5,10):''}}</view>
- </view>
- <view class="content-img">
- <img :src="item.pic ? item.pic : 'static/img/image_default.png'" alt="">
- </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>
- <Tabbar :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 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:[],
- timeOut: false,
- pointTimeOut: true,
-
- chargeList: [],
- activityList: [],
- userId: '',
- newsList: [],
- pageIndex: 1,
- recordsTotal: 0,
- longitude: '',
- latitude: '',
- message: '',
- indexLogo: '',
- showOss:false,
- showOssImg:'',
- showOssIndex:'',
-
- showTop:false,
- showTopImg:'',
- showTopIndex:0,
-
- 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,
- }
- },
- onLoad(op) {
-
- 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() {
- // if (this.carhelp.get("getElderModeClass")) {
- // if(this.carhelp.get("getElderModeClass") == "长辈模式") {
- // this.fontMode = '1';
- // } else {
- // this.fontMode = '0';
- // }
- // API.changeFont({fontMode: this.fontMode}).then((res) => {
-
- // }).catch(error => {
- // uni.showToast({
- // title: error,
- // icon: "none"
- // })
- // })
- // }
-
- //this.getUserInfo();
-
- WxJsApi.getWxConfig(['getLocation', 'addEventListener', 'scanQRCode']).then((res) => {
- // //(res)
- }).catch(error => {
- //(res)
- })
- this.getBannerInfo("homepage");
-
- var obj=this.carhelp.get("newyear_activity2023")
-
- if(obj==null||obj==""||(obj&&obj.status==0)){
- var userInfo= this.carhelp.getPersonInfo();
-
- if(userInfo&&userInfo.id){
-
- this.getNewYear()
- }else{
- this.getBannerInfoTop("home-top");
- }
-
- //this.showNtStep=2
- }else{
- this.getBannerInfoTop("home-top");
- }
-
- this.getPointTimeOut();
- this.getNewsList();
- this.getActivityInfoList();
-
- },
- methods: {
- getNewYear(){
- var obj=this.carhelp.get("newyear_activity2023")
- if(obj&&obj.status==0){
- this.exchangeDetail(obj.nt);
- }else{
- var sz=["1615623336912621569","1615623336912621568"];
- var code=parseInt(Math.random()*2)
- this.carhelp.set("newyear_activity2023",{
- 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{
- //已经结束
- }
-
-
- }else if(res.data.status==1){
-
- //已经兑换,或者不能兑换
- } 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]);
- }
-
-
- }).catch(error => {
- this.showNt=false;
- uni.showToast({
- title: error,
- icon: "none"
- })
- })
- }
-
-
- },
- exchangeDetail(exchangeCode) {
- uni.showLoading({
- title: "加载中",
- mask: true,
- })
- userApi.exchangeDetail({
- key: exchangeCode
- }).then((res) => {
- uni.hideLoading();
- //
-
- if(!res.data.enabled){
-
- if(res.data.code==2){
- //未开始
- }else{
- //已经结束
- }
-
- }else if(res.data.status==1||res.data.status==2){
- //已经兑换,或者不能兑换
- }else{
-
- this.showNt=true
- this.showNtStep=0;
- this.showNtValue=res.data.totalDiscount
- }
-
- }).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",{
- nt:exchangeCode,
- status:1
- })
- }).catch(error => {
- this.showNt=false;
- uni.showToast({
- title: error,
- icon: "none"
- })
- })
- },
- showNtStepClick(){
- if(this.showNtStep==0){
- var obj=this.carhelp.get("newyear_activity2023")
-
-
- if(this.personInfo.userType!=1){
- this.redeemNow(obj.nt)
- }else{
- 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.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);
-
- }
-
- console.log("--------------")
- 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 (this.carhelp.get("getElderModeClass")) {
- if(this.carhelp.get("getElderModeClass") == "长辈模式") {
- this.elderStatus = true;
- } else {
- this.elderStatus = false;
- }
- }
- }else{
-
- 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"
- })
- })
- },
- 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){
- uni.showLoading({
- title: "加载中",
- mask: true,
- })
- var nowtime = parseUnixTime(currentTimeStamp(), '{y}-{m}-{d}')
-
- newsApi.getBannerInfo(code).then((res) => {
-
-
- this.bannerListTop =res.data;
-
- var time=this.carhelp.get("bannerListTop");
-
- if(this.bannerListTop.length&&!(time&&nowtime==time)){
- this.showTop=true;
- this.showTopImg=this.bannerListTop[0].picUrl;
- this.showTopIndex=0;
- this.carhelp.set("bannerListTop",nowtime);
- }
- //this.test()
- if (this.userId) {
- API.readCoupon().then((res2) => {
- var mod=res2.data.userCoupon;
- console.log(mod)
- if(mod){
- var obj={
- topmodel:"coupon",
- value:mod.value,
- text:mod.describe,
- linkUrl:"#/pages/user/coupon/myCoupon",
- }
- this.bannerListTop =[
- obj,...res.data
- ]
- if(!(time&&nowtime==time)){
- this.showTop=true;
- this.showTopImg=this.bannerListTop[0].picUrl;
- this.showTopIndex=0;
- this.carhelp.set("bannerListTop",nowtime);
- }
- }
- }).catch(error2 => {
- uni.showToast({
-
- title: error2,icon: "none"
- })
- })
- }
-
-
-
- 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){
- uni.showLoading({
- title: "加载中",
- mask: true,
- })
- newsApi.getBannerInfo(code).then((res) => {
- 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"
- })
- })
- },
- getPointTimeOut() {
- setTimeout(() => {
- if (this.pointTimeOut) {
- this.getPoint();
- }
- }, 1000)
- },
- getFindChargeData() {
-
- API.findChargeData().then((res) => {
- 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"
- })
- })
- },
- toSearchPile() {
- uni.navigateTo({
- url: '/pages/searchPile/searchPile'
- })
- },
- toLogin() {
- uni.navigateTo({
- url: '/pages/login/login'
- })
- },
- toNewsNotice() {
- uni.navigateTo({
- url: '/pages/article/newsNotice'
- })
- },
- //微信扫二维码
- 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) {
- 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;
- }).catch(error => {
- uni.showToast({
- title: error,
- icon: "none"
- })
- })
- },
- searchStationData(){
- var data={
- longitude: this.longitude,
- latitude: this.latitude,
- pageSize:6
- }
- if (this.carhelp.getPersonInfo()) {
- data.openId=this.carhelp.getOpenId()
- }
-
- siteApi.searchStationData(data).then((response) => {
- this.stationList = response.data.data;
-
- if(response.data.data.length){
- 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 => {
- uni.showToast({
- title: error,
- icon: "none"
- })
- })
- },
- getPoint() {
- 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,
- })
- if (bl) {
- this.newsList = [];
- this.pageIndex = 1;
- }
- newsApi.newsInfoList({
- pageIndex: this.pageIndex,
- pageSize:3,
- }).then((res) => {
- uni.hideLoading()
- this.newsList = [
- ...this.newsList,
- ...res.data.data
- ];
- this.recordsTotal = res.data.recordsTotal
- }).catch(error => {
- uni.showToast({
- title: error,
- icon: "none"
- })
- })
- },
- myLoadmore() {
- //this.pageIndex += 1;
- //this.getNewsList()
- },
- }
- }
- </script>
- <style lang="scss" scoped>
-
- .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{
-
- .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{
- background: linear-gradient(#D6EEDC,#FFFFFF );
- padding-top: 16px;
- }
- .banner {
- width: 91.4%;
- margin: 0 auto ;
- border-radius: 12px;
- height: 120px;
- overflow: hidden;
-
- }
- // 选项列表
- .option-list {
-
- padding-top: 15px;
-
- line-height: 20px;
- border-radius: 8px;
- text-align: center;
-
- margin: auto;
- display: flex;
- justify-content: space-around;
- .list-item {
- // 图标
- .icon {
- width: 40px;
- height: 40px;
- border-radius: 99px;
- line-height: 40px;
- font-size: 24px;
- text-align: center;
- margin: auto;
- color: #ffffff;
- }
- .text{
- margin-top: 4px;
- }
- }
- }
- .flex{
- display: flex;
- }
- // 站点
- .pack-up{
- float: right;
- font-size: 16px;
- color: rgba(119, 119, 119, 100);
- }
-
- // 附近站点改版
- .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;
- .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;
- }
- }
- .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;
- color: rgba(153, 153, 153, 100);
- margin-left: 8rpx;
- text-decoration: line-through;
- }
- }
- .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);
- 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);
- font-size: 28rpx;
- text-align: center;
- margin-right: 8rpx;
- }
- .num{
- font-size: 32rpx;color: rgba(0, 145, 67, 100);
- 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;
- }
- }
- .state {
- width: 91.4%;
- background-color: #ffffff;
- height: 120px;
- display: flex;
- margin: 20px auto 0;
- border-radius: 8px;
- border: #F2F4F4 1px;
- .state-text {
- width: 61.8%;
- padding: 24px 0 0 28px;
- .text-1 {
- height: 16px;
- line-height: 16px;
- color: blueviolet;
- font-size: 16px;
- text-align: left;
- }
- .text-2 {
- height: 17px;
- line-height: 17px;
- color: #101010;
- text-align: left;
- margin-top: 12px;
- }
- .text-3 {
- font-size: 12px;
- line-height: 20px;
- margin-top: 6px;
- color: #999999;
- }
- }
- .img-box {
- width: 120px;
- height: 120px;
- margin-right: 20px;
- }
- }
- //充值
- .top-up {
-
- width: 91.4%;
- margin: 12px 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;
-
- }
- };
- }
-
- }
- // 小竖线
- .line {
- display: inline-block;
- width: 3px;
- height: 12px;
- margin-right: 7px;
- background-color: rgba(0, 145, 67, 100);
- }
- // 新闻公告
- .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;
- .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;
- }
- }
-
- </style>
|