1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515 |
- <template>
- <view>
- <u-popup v-model="carTempBl" @open="carTempBlInit" :closeable="true" mode="bottom">
- <view style="margin-top: 18px;">
- <view style="font-size: 48rpx;">临时车牌:{{form.carNum}}</view>
- <ucarkeyboard style="position: inherit !important;" ref="uKeyboard" mode="car"
- @confirm="car.carNum=form.carNum,carTempBl=false" @cancel="carTempBl=false" :showTips="true"
- :mask-close-able="false" @change="valChange" @backspace="backspace"></ucarkeyboard>
- </view>
- </u-popup>
- <view v-show="step==0">
- <ujp-navbar title="我的家桩充电详情" :startGz="false" :custom-back="customback">
- <view class="iconfont service" @click="openModal">
- 
- </view>
- </ujp-navbar>
- <!-- 未插枪提示 -->
- <!-- <u-alert-tips type="warning" v-if="!isInsert" :description="description" :show-icon="true"></u-alert-tips>
- -->
- <view class="main">
- <view class="main-head">
- <view class="text" v-if="haveLock&&lockStatus==1">
- <view class="text-1">
- 请下降地锁
- </view>
- <view class="text-2">
- 请在<span style="color:red">{{lockSafeStopTime}}秒</span>内停车入位,以免地锁抬升对您的爱车造成损伤。
- </view>
- </view>
- <view class="text" v-else>
- <view class="text-1">
- {{isInsert?'可充电':'未插枪'}}
- </view>
- <view class="text-2" v-if="station.stationType==50">
- 可进行充电
- </view>
- <view class="text-2" v-else>
- {{isInsert?'充电枪已连接,可进行充电':'未检测到充电枪,若已插枪,请拔出重插'}}
- </view>
- </view>
- <view class="charge-img">
- <img src="@/assets/img/charge.png" alt="">
- </view>
- </view>
- <view class="charging-info">
- <view class="address">
- {{station.name}}
- <!-- <text class="explain" @click="step=1">费用说明</text> -->
- </view>
-
-
-
- <view class="name">
- <span style="font-weight: bold;color: #000;"
- v-if="station.stationType!=50&&gun.sortNo">{{gun.sortNo}}号/</span><span
- style="font-weight: bold;color: #000;">{{detail.name}}</span><span
- style="font-weight: bold;color: #000;"
- v-if="station.stationType!=50">枪{{channelNoShow(gun.channelNo,detail.manufacturer,gun.customNo)}}</span>
- <text class="free" v-if="gunDetail.chargingAppointment&&gunDetail.isMeAppoint">您已预约</text>
- <text class="free" v-else-if="gunDetail.chargingAppointment&&!gunDetail.isMeAppoint">已被预约</text>
- <text class="free " :class="'workStatusText'+gun.workStatus" v-else >{{gun.workStatusText}}</text>
- </view>
-
- <view v-if="gun.workStatus==6" @click="operating=true"
- style="margin-top: 10rpx;color: rgba(255, 56, 56, 1);font-size: 28rpx; display: flex; align-items: center;" >
-
- <span style="color: #fff;background: linear-gradient(93.02deg, rgba(255,56,56,1) 39.4%,rgba(255,124,112,1) 92.42%);
- border-radius: 4px;
- padding: 0rpx 10rpx;
- margin-right: 8rpx;
- font-size: 24rpx;
- line-height:40rpx;
- " >提醒</span>
- 点击查看恢复供电操作指示图
- <u-icon name="arrow-right"></u-icon>
- </view>
-
-
-
-
- <view class="price" v-if="detail.stationAddress">
- <text class="unit">{{detail.stationAddress}}</text>
- </view>
- <view v-if="price" class="priceListBlMain">
-
- </view>
-
-
- </view>
-
- <view class="charging-info">
- <view class="row" @click="startTypeShow=true">
- <view class="key">充电方式</view>
- <view class="value">{{startTypeList[startType].label}}<u-icon name="arrow-right"></u-icon></view>
- </view>
- <view class="row" v-show="startType==0" @click="startTypeTimeShow=true" >
- <view class="key">定时充电</view>
- <view class="value">{{startTypeTimeList[0][startTypeTimeValue1].label}}:{{startTypeTimeList[1][startTypeTimeValue2].label}}<u-icon name="arrow-right"></u-icon></view>
- </view>
- </view>
-
- </view>
- <u-select v-model="startTypeShow" @confirm="startTypeConfirm"
- :default-value="[startType]"
- :list="startTypeList"></u-select>
-
- <u-select v-model="startTypeTimeShow"
- title="时:分"
- mode="mutil-column"
- @confirm="startTypeTimeConfirm"
- :default-value="[startTypeTimeValue1,startTypeTimeValue2]"
- :list="startTypeTimeList"></u-select>
-
- <view class="carImg" v-if="personInfo&&personInfo.userType!=2">
- <img @click="gotoLogin" src="@/assets/img/gologin/img.png">
- </view>
-
-
-
- <view class="bottom">
- <!-- 解锁中 -->
- <!-- <u-button shape="circle" type="success" style="opacity: 0.4;">
- 解锁中<img style="margin-left: 4px;" src="@/assets/static/img/riLine-refresh-line.svg" alt="">
- </u-button> -->
- <!-- 刷新充电枪状态 如果改动 ,请添加 方法判断startCarCharging -->
- <u-button shape="circle" type="success" v-if="gun&&gun.workStatus==2">充电中</u-button>
- <u-button shape="circle" type="success" v-else-if="!openBool">仅内部员工可用</u-button>
- <!-- 刷新充电枪状态 如果改动 ,请添加 方法判断startCarCharging -->
-
- <u-button shape="circle" type="success" @click="getPile()"
- v-else-if="gunDetail.chargingAppointment&&!gunDetail.isMeAppoint">已被预约</u-button>
- <!-- 刷新充电枪状态 如果改动 ,请添加 方法判断startCarCharging -->
-
- <u-button shape="circle" v-else-if="haveLock&&lockStatus==1" @click="lockDown()"
- style="background-color:#009ED7" type="success">下降地锁</u-button>
- <u-button shape="circle" v-else-if="!isInsert" @click="getPile()" type="success">刷新充电枪状态</u-button>
- <!-- 刷新充电枪状态 如果改动 ,请添加 方法判断startCarCharging -->
-
- <!-- 开始充电 -->
- <u-button shape="circle" type="success" v-else @click="charge()">{{startType==0?'定时充电':''}}{{startType==1?'开始充电':''}}</u-button>
- <u-button shape="circle" type="success" v-if="0"
- @click="readyToTimingChargingApi()">测试</u-button>
- <view v-if="lastTiming&&lastTiming.startTime&&gunDetail.nextTiming" style="
- text-align: center;
- color: #FF9800;
- margin-top: 5px;
- " >
- <u-icon
- style=" margin-top: 2px;"
- size="30"
- name="info-circle"
- ></u-icon>
- 已设置{{lastTiming.startTime}}的定时充电,再次启动将会覆盖设置
- </view>
- </view>
-
-
-
-
-
- <!--提示 -->
- <view class="tips">
-
-
-
- <p class="p" @click="chargeTest" style="margin-top: 20rpx;">注意事项:</p>
- <!-- <view class="content" v-if="!isInsert">
- 点击降锁后,请稍等几十秒,待地锁完全下降后,再驶入车位。
- </view> -->
- <view class="content">
- 1.车停好,请熄火后再充电;<br />
- 2.请确保充电枪插接到位;<br />
- 3.车辆充电时,请关闭车内电源;<br />
- 4.充电完毕,请及时拔枪;<br />
- 5.填写车牌号,离场时可减免部分停车费。
- </view>
- </view>
- <!-- 弹窗 -->
- <view>
- <u-modal v-model="show" @confirm="confirmPhone" :confirm-text="confirmText" confirm-color="#606266"
- :show-cancel-button="true" ref="uModal" :asyncClose="true" :title="title" :content="consumerPhone"
- :content-style="{fontSize: '24px',color: '#101010'}"></u-modal>
- </view>
- </view>
- <u-modal v-model="show3" class="showOss" confirm-text="注册会员" cancel-text="先不注册" :show-title="false" width="650"
- border-radius="30" title="" :show-cancel-button="false" :show-confirm-button="false">
- <view class="slot-content">
- <!-- :show-title="false" -->
- <view>
- <img v-if="branchParameterBl('ud')" src="@/assets/img/gologin/nipic.png" style="width: 100%;"></img>
-
- <img v-else src="@/assets/img/Nipic_24385267_20191128181916139081.png" style="width: 100%;"></img>
-
- </view>
- <view>
- <table class="classtable">
- <tr>
- <td class="td1">
- <img src="@/assets/img/Nipic_vip.png" style="width: 24px;"></img>
- <p style="color: #FF9800;line-height: 10px;">会员</p>
- </td>
- <td class="td2">
- <p v-if="branchParameterBl()" ><span class="dian">·</span>充电最低<span style="color:#4aa461">0.66元</span>/度(含服务费)</p>
- <p><span class="dian">·</span>账户充值赠送代金券</p>
- <p><span class="dian">·</span>更有<span style="color:#4aa461">会员充电折扣、服务费包月会员资格</span>等超多福利
- </p>
- <p v-if="branchParameterBl('ud')"><span class="dian">·</span>与51充电联盟会员共享数据,包括账户余额、优惠卡券等</p>
-
- </td>
- </tr>
- <tr>
- <td style="color: #fff;line-height: 3px;">.</td>
- </tr>
- <tr>
- <td class="td1">
- <img src="@/assets/img/Nipic_youke.png" style="width: 24px;"></img>
- <p style="color: rgb(74, 164, 97);line-height: 10px;">游客</p>
- </td>
- <td class="td2">
- <p><span class="dian">·</span>临时车牌快速充电</p>
- <p><span class="dian">·</span>无需注册 先付后退</p>
- <p><span class="dian">·</span><span style="color:#F44336">不可使用</span>平台各类代金券</p>
- </td>
- </tr>
- </table>
- </view>
- <view class="btnview">
- <!-- <u-button shape="circle" @click="show3=false"
- style=" width: 200rpx; background-color: #fff !important; margin: 20rpx;float: left;margin-bottom: 20px; "
- szie="mini" type="success" plain>继续充电</u-button> -->
- <view class="btnview1">
- <u-button shape="circle" style=" float: left; width: 400rpx; margin: 20rpx; " szie="mini"
- type="success" @click="gotoUrl('pages/login/login')">注册会员</u-button>
- </view>
- <view class="btnview2" @click="show3=false,show4=true">暂不注册,先充电</view>
- </view>
- </view>
- </u-modal>
-
-
- <u-modal v-model="quickChargingBl" class="quickMain" confirm-text="注册会员" cancel-text="先不注册" :show-title="false" width="650"
- border-radius="30" title="" :show-cancel-button="false" :show-confirm-button="false">
- <view class="quickMain-slot-content">
- <!-- :show-title="false" -->
-
- <view class="quickMain-img">
- <img src="@/assets/img/member/10.png" ></img>
- </view>
- <view class="quickMain-bodyMain" >
- <view class="quickMain-body">
- <view class="quickMain-text1">快捷充电功能上线!</view>
- <view class="quickMain-text2">
- 恭喜您达到
- <img src="@/assets/img/9-4/白金会员.svg" ></img>
- <span style="color:#3F51B5;">白金会员</span>等级,您已获得<span style="color: #19be6b;">【快捷充电】</span>功能体验资格。
-
- </view>
- <view class="quickMain-text2">
- 当您插枪扫码后,在个人账户余额充足的情况下,自动帮您选择充满自停模式并开始充电。如需关闭此功能,可在“我的”-“设置”中修改。
- </view>
- </view>
- <view class="btnview">
- <!-- <u-button shape="circle" @click="show3=false"
- style=" width: 200rpx; background-color: #fff !important; margin: 20rpx;float: left;margin-bottom: 20px; "
- szie="mini" type="success" plain>继续充电</u-button> -->
- <view class="btnview1">
- <u-button shape="circle" style=" float: left; width: 400rpx; margin: 20rpx; " szie="mini"
- type="success" @click="checkedChange2(1)">同意并记住我的选择</u-button>
-
- </view>
-
- <view class="btnview2" @click="checkedChange2(0)">暂不启用</view>
- </view>
- </view>
-
- </view>
- </u-modal>
-
- <u-modal v-model="show1" @confirm="gotoGz" cancel-text="暂不关注" confirm-text="前往关注" :show-cancel-button="false"
- confirm-color="#53b56b" ref="uModal2" :asyncClose="true">
- <view style="padding: 15px;">请先关注<span style=" color: #53b56b;">{{projectName}}</span>公众号,然后进行车辆充电</view>
- </u-modal>
-
-
- <quickRegistration v-if="show4" @login="loginMethod" :carNum="car?car.carNum:''" ></quickRegistration>
- <u-popup v-model="operating" mode="center" >
- <view @click="operating=false"
- style="background-color: #53a849;
- text-align: center;
- width: 600rpx; ">
- <img style=" width: 400rpx;"
- src="@/assets/img/gologin/操作指引-tuya.png"></img>
- </view>
- </u-popup>
-
- </view>
- </template>
- <script>
- import * as API_index from '@/apis/index.js'
- import * as API from "@/apis/chargeProcess.js"
- import * as userApi from '@/apis/user.js'
- import * as newsApi from '@/apis/news.js'
- import ucarkeyboard from '@/components/Ucarkeyboard.vue'
-
- import * as API_weixin from '@/apis/weixin.js'
- import quickRegistration from '@/components/QuickRegistration.vue'
-
- import {
- newDate,
- hourDistanceArr,
- currentTimeStamp,
- parseUnixTime,
- daysDistance
- } from '@/utils'
- export default {
- components: {
- ucarkeyboard,quickRegistration
- },
- data() {
- return {
- show1: false,
- show2: false,
- show3: false,
- show4: false,
- operating:false,
- carImg3Bl:false,
- carImg4Bl:false,
- carImg3span1:0,
- carImg3span2:0,
- carImg3span3:0,
- pricesInfoCurrent: {},
- pricesInfoCurrent2: {},
- show3: false,
- temporaryCarNum: "",
- form: {
- carNum: '',
- defaultFlag: true,
- },
- priceListBl: false,
- pricesInfo: [],
- showNt: false,
- showNtStep: 0,
- showNtValue: 30,
- station: {},
- step: 0,
- bannerList: [],
- isInsert: false,
- isReady: false,
- onShowRole: false,
- id: "",
- car: {},
- isback: false,
- gun: {},
- prices: {},
- personInfo: {},
- price: {
- costPrice: 0,
- electricityPrice: 0,
- discountServicePrice: 0,
- servicePrice: 0,
- },
- gunDetail: {},
- haveLock: false,
- lockSafeStopTime: 0,
- lockStatus: '', // 1抬锁 2落锁
- carplateMust: false,
- detail: {
- no: '',
- interface: '',
- type: '',
- power: 0,
- price: [
- ]
- },
- consumerPhone: "",
- description: '充电前请确保您的车辆已与充电桩连接!并关闭车内电源。',
- show: false,
- title: '联系客服',
- showVin: false,
- confirmText: '拨打电话',
- content: '余额不足5,请先充值。',
- carDetText: '',
- userCard: null,
- canUse: false,
- openStatus: 0,
- isVip: false,
- openBoolShow: false,
- carTempBl: false,
- maxlength: 8,
- chatShowId: "",
- chatShow: false,
- startCarChargingBl:false,
- quickChargingBl:false,
- carplateMustModel:false,
- projectName: "",
-
- showrecharge:"",
- bannerListTop:[],
- getBannerInfoTopBl:true,
- showTop:false,
- showTopImg:"",
- showTopIndex: 0,
- startType:1,
- startTypeShow:false,
- startTypeTimeShow:false,
- startTypeTimeValue1:0,
- startTypeTimeValue2:0,
- lastTiming:{},
- startTypeTimeList:[
- [
- {
- label:"00",
- value:"00"
- },
- ],
- [
- {
- label:"00",
- value:"00"
- }
- ]
-
- ],
- startTypeStartTime:"",
- startTypeList:[
- {
- label:"设置定时",
- value:0
- },
- {
- label:"立即开始",
- value:1
- }
- ]
-
- }
- },
- computed: {
- checked(){
- return !this.startType
- },
- prevMonthKwhBL(){
- if(this.carImg3span1>=1000){
- return false
- }
- return true
- },
- openBool() {
- if (this.openStatus == '3') {
- return this.isVip
- }
- return true
- },
- userCardBool() {
- if (this.userCard) {
- var date = new Date().getTime()
- var reg = new RegExp('-', 'gi')
- var str = this.userCard.endTime;
- //console.log(str.replace(reg,'/'))
- var date2 = new Date(str.replace(reg, '/')).getTime();
- if (date < date2) {
- return true;
- }
- }
- return false
- },
-
- },
- onShow() {
- uni.hideToast();
- this.checkSubscribe()
- if (this.onShowRole) {
- this.getPile()
- }
- },
- onReady() {
-
-
-
- },
- onLoad(op) {
- //this.startCarCharging()
- this.init(op)
- },
- methods: {
- startTypeTimeConfirm(e){
- console.log(e)
- this.startTypeTimeValue1=this.startTypeTimeList[0].findIndex(item=>{
- return item.value==e[0].value
- })
- this.startTypeTimeValue2=this.startTypeTimeList[1].findIndex(item=>{
- return item.value==e[1].value
- })
- console.log(this.startTypeTimeValue2,this.startTypeTimeValue1)
- },
- // startTypeConfirm(e){
- // console.log(e);
- // this.startType=e?0:1
- // console.log(this.startType);
- // if(this.lastTiming==null){
- // this.startTypeTimeValue1=new Date().getHours()
- // this.startTypeTimeValue2=new Date().getMinutes()
- // }
- // },
- startTypeConfirm(e){
- console.log(e);
- this.startType=e[0].value
- if(this.lastTiming==null){
- this.startTypeTimeValue1=new Date().getHours()
- this.startTypeTimeValue2=new Date().getMinutes()
- }
- },
- onShowK() {
- uni.hideToast();
- this.checkSubscribe()
- if (this.onShowRole) {
- this.getPile()
- }
-
- },
- init(op){
- this.startTypeTimeList[0]=[]
- for(var i=0;i<24;i++){
- this.startTypeTimeList[0].push({
- label:i<10?"0"+i:i,
- value:i<10?"0"+i:i,
- })
- }
- this.startTypeTimeList[1]=[]
- for(var i=0;i<60;i++){
- this.startTypeTimeList[1].push({
- label:i<10?"0"+i:i,
- value:i<10?"0"+i:i,
- })
- }
-
-
-
- this.projectName = process.car.ProjectName;
-
- var consumerPhone = "400-8899-619"
- // img="https://yktwechat.xiaoxinda.com/config/xxd2021.jpg"
- if (consumerPhone) {
- this.consumerPhone = consumerPhone
- }
- var carDetText = "填写车牌号,充电时可以减免部分停车费用"
- // img="https://yktwechat.xiaoxinda.com/config/xxd2021.jpg"
- if (carDetText) {
- this.carDetText = carDetText
- }
- if( this.branchParameterBl('ud')){
- //this.getf5surprised()
- this.getBannerInfoTop("home-top2");
- }
- //this.startCarCharging()
- if (op.isback) {
- this.isback = true
- }
- if (op.id) {
- this.id = op.id
-
- var personInfo = this.carhelp.getPersonInfo()
- this.personInfo = personInfo
- var userInfo = this.carhelp.getPersonInfo();
- if (this.personInfo && this.personInfo.userType == "1") {
- this.show3 = true
- }else{
-
- }
- if (userInfo && userInfo.id) {
-
-
- } else {
- //this.getBannerInfoTop("home-top");
- }
-
- this.getPile()
-
- } else {
- uni.showToast({
- title: "请扫码充电"
- })
- }
- },
- loginMethod(){
- var personInfo = this.carhelp.getPersonInfo()
- this.personInfo = personInfo
- this.getPile()
- },
- cancelGz() {
- this.carhelp.setGzDate()
- },
- gotoGz() {
- this.carhelp.setGzDate()
- var url = process.car.gzUrl;
- window.location.href = url
-
- },
- checkSubscribe() {
- API_weixin.checkSubscribe({
- openId: this.carhelp.getOpenId()
- }).then((res) => {
-
- if (res.data == "0") {
- this.show1 = true
-
- } else {
- //this.init();
- this.show1 = false;
- this.show2 = true;
-
-
- //this.carhelp.setGzDate()
-
- }
-
- //setGzDate
- }).catch(error => {
- uni.showToast({
- title: error
- })
- })
-
- },
- checkedChange2(checked2) {
-
- uni.showLoading({
- title: "加载中",
- mask: true,
- })
-
- API_index.changeQuickCharging({qucikStatus: checked2}).then((res) => {
- var userInfo = this.carhelp.getPersonInfo();
- userInfo.quickCharging=checked2;
- this.carhelp.setPersonInfo(userInfo);
- this.quickChargingBl=false;
- uni.hideLoading();
- if(checked2){
- this.startCarCharging()
- }
- }).catch(error => {
- uni.showToast({
- title: error,
- icon: "none"
- })
- })
- },
-
- chatShowBtn(item) {
- if(this.chatShow == false){
- this.chatShow = true
- }else if(item.startTime!=this.pricesInfoCurrent2.startTime){
- this.chatShow = true
- }else{
- this.chatShow = false
- }
-
- this.pricesInfoCurrent2=item
- },
- 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 = {}
- if (modout) {
- mod = modout;
- }else{
- mod =this.bannerList[index]
- }
- mod.clickUrl = mod.linkUrl
-
- if (mod.linkPicUrl && !bl) {
-
- this.showOss = true;
- this.showOssImg = mod.linkPicUrl;
- this.showOssIndex = index;
-
- } else if (mod.clickUrl == null) {
-
- } else if (mod.clickUrl.indexOf('http') == 0) {
-
- window.location = mod.clickUrl + uurl;
- } else if (mod.clickUrl.slice(-5) == 'login' && this.userId) {
-
- } else if (mod.clickUrl.indexOf('#/') == 0) {
- if (mod.clickUrl.indexOf("?") == -1) {
- mod.clickUrl += '?';
- }
- var url = mod.clickUrl.split("#")[1]
- //window.location = mod.clickUrl;
- uni.navigateTo({
- url: url + uurl
- })
- } else if (mod.clickUrl == '#' || mod.clickUrl == '') {
-
- } else {
- uni.navigateTo({
- url: mod.clickUrl + uurl
- })
- }
- },
- getBannerInfo(code) {
- uni.showLoading({
- title: "加载中",
- mask: true,
- })
- newsApi.getBannerInfo(code).then((res) => {
- uni.hideLoading();
- this.bannerList = res.data;
- // document.getElementsByClassName("uni-swiper-wrapper")[0].parentNode.style="background-color: rgb(255, 255, 255); height: 300px;"
- }).catch(error => {
- uni.showToast({
- title: error,
- icon: "none"
- })
- })
- },
- thisdaysDistance(endTime) {
- var date = new Date()
- var date2 = newDate(endTime);
- return daysDistance(date, date2)
- },
- thisendTime(endTime) {
- if (endTime) {
- var reg = new RegExp('-', 'gi')
- var str = endTime.substring(0, 10).replace(reg, '.')
- return str
- }
- return ''
- },
- thispercent(userCard) {
- var p = 0
- if (userCard && userCard.chargeDegreeLimit) {
- p = userCard.chargedDegree / userCard.chargeDegreeLimit * 100
- }
- if (p > 100) {
- p = 100
- }
- return p.toFixed(0)
- },
- carTempBlInit() {
- var aaa = this.$refs.uKeyboard.changeCarInputValue();
- console.log(aaa)
- if (this.form.carNum.length && !aaa) {
- var c = this.$refs.uKeyboard.changeCarInputMode();
- }
- },
- // 按键被点击(点击退格键不会触发此事件)
- // 按键被点击(点击退格键不会触发此事件)
- valChange(val) {
- if (this.form.carNum.length >= this.maxlength) {
- return
- }
- if (true) {
- this.form.carNum += val;
- } else {
- }
- // 将每次按键的值拼接到form.carNum变量中,注意+=写法
- //(this.form.carNum);
- var aaa = this.$refs.uKeyboard.changeCarInputValue();
- if ((this.form.carNum.length == 0) && aaa) {
- this.$refs.uKeyboard.changeCarInputMode();
- } else if (!aaa) {
- this.$refs.uKeyboard.changeCarInputMode();
- }
- },
- // 退格键被点击
- backspace() {
- // 删除form.carNum的最后一个字符
- if (this.form.carNum.length) {
- if (true) {
- this.form.carNum = this.form.carNum.substr(0, this.form.carNum.length - 1);
- } else {
- //this.selectIndex=-1;
- }
- }
- //(this.form.carNum);
- var aaa = this.$refs.uKeyboard.changeCarInputValue();
- if (this.form.carNum.length == 0 && aaa) {
- this.$refs.uKeyboard.changeCarInputMode();
- }
- },
- lockDown() {
- uni.showLoading({
- title: "加载中",
- mask: true,
- })
- API.lockDown({
- gunId: this.gun.id
- }).then((res) => {
- uni.hideLoading()
- this.lockStatus = res.data.lockStatus
- setTimeout(() => {
- this.getPile()
- }, 5 * 1000)
- }).catch(error2 => {
- uni.showToast({
- title: error2
- })
- })
- },
- workStatus2() {
- API_index.findChargeData().then((res) => {
- var list = res.data.chargingRecordList;
- var obj = null;
- for (var i = 0; i < list.length; i++) {
- if (list[i].deviceNo == this.detail.deviceNo && list[i].channelNo == this.gun.channelNo) {
- obj = list[i];
- break;
- }
- }
- if (obj) {
- uni.redirectTo({
- url: "/pages/searchPile/chargeProcess/dcCharging?id=" + obj.id
- })
- }
- }).catch(error => {
- uni.showToast({
- title: error,
- icon: "none"
- })
- })
- },
- priceDetail() {
- uni.navigateTo({
- url: 'chargePriceDetails?stationId=' + this.detail.stationId + "&type=" + this.detail.type +
- "&id=" + this.detail.id
- })
- },
- customback2() {
- this.step = 0;
- },
- customback() {
- if (this.isback) {
- if (this.$refs.ujpnavbar) {
- this.$refs.ujpnavbar.navberBack()
- } else {
- uni.navigateBack({
- })
- }
- } else {
- uni.reLaunch({
- url: "/pages/login/welcome"
- })
- }
- },
- gotoLogin() {
- this.onShowRole = true
- if (false) {
- } else {
- uni.navigateTo({
- url: "/pages/login/login?jpcode=jp_team51_charge_id:A_" + this.id
- })
- }
- },
- carTemp() {
- },
- carDet(t) {
- if(this.car){
- return
- }
- this.onShowRole = true
-
- var url="/pages/user/car/carDet?jpcode=jp_team51_charge_id:A_" + this.id
- if( this.car&& this.car.id){
- url+="&id="+this.car.id
- }
- uni.navigateTo({
- url: url
- })
- },
- openModal() {
- this.show = true;
- },
- confirmPhone() {
- this.show = false;
- uni.makePhoneCall({
- phoneNumber: this.consumerPhone //仅为示例
- });
- },
- role(bl) {
- if (bl) {
- return true;
- }
- if (this.carplateMust) {
- if (this.car && this.car.carNum) {
- } else {
- uni.showModal({
- title: "提示",
- content: "填写车牌号,离场时可减免部分停车费",
- confirmText: "填写车牌号",
- cancelText: "继续充电",
- success: res1 => {
- if (res1.confirm) {
- this.carDet()
- } else if (res1.cancel) {
- //('用户点击取消');
- this.charge(true)
- }
- }
- })
- return false;
- }
- }
- return true;
- },
- getChargeList(){
- var obj=this.carhelp.get("carhelp_getChargeList")
- var time=new Date( ).toLocaleString().substr(0,12).replace("T"," ");
- if(obj&&time==obj.time){
-
- var num1=parseInt(obj.electricQuantity);
- var num2=parseInt(obj.totalServiceMoney) ;
- this.carImg3span1=parseInt(num1/10000);
- this.carImg3span2=parseInt(num2*0.4) ;
- this.carImg3span3=parseInt(num2) ;
- if(num2*0.4>20||this.carImg3span1>=1000){
-
- this.carImg3Bl=true;
- }else{
- this.carImg4Bl=true;
- }
-
- console.log("carhelp_getChargeList",this.carImg3span1,this.carImg3span2)
- return
- }
-
-
- var date =new Date().getTime()-30*1000*60*60*24;
- var startDate =parseUnixTime(new Date(date),'{y}-{m}-{d}');
- API_index.chargingRecordData({
- pageIndex: 1,
- pageSize:999,
- startDate: startDate,
- // endDate: this.endDate
- }).then((res) => {
-
-
- var chargeList =res.data.data;
- var num1=0;
- var num2=0;
- for(var i in chargeList){
- var obj=chargeList[i]
- if(obj.status==2){
- num1+=obj.electricQuantity
- num2+=obj.totalServiceMoney
- }
- }
- console.log(num1,num2)
- this.carhelp.set("carhelp_getChargeList",{
- time: time,
- electricQuantity:num1,
- totalServiceMoney:num2
- })
- this.carImg3span1=parseInt(num1/10000);
- this.carImg3span2=parseInt(num2*0.4) ;
- this.carImg3span3=parseInt(num2) ;
- if(num2*0.4>20||this.carImg3span1>=1000){
-
- this.carImg3Bl=true;
- }else{
- this.carImg4Bl=true;
- }
-
- }).catch(error => {
- uni.showToast({
- title: error,
- icon: "none"
- })
- })
- },
- getUserCard() {
-
- },
- getH(item) {
- return item * 100 + 'px'
- },
- getW(item) {
- var t1 = item.endTime.substring(0, 2)
- var t2 = item.startTime.substring(0, 2)
- var k = parseInt(t1) - parseInt(t2);
- return 100 / 24 * k + "%"
- },
- getPile() {
- uni.showLoading({
- title: "加载中",
- mask: true,
- })
-
- API.chargingDeviceGunDetail({
- gunNo: this.id,
- jpcode: "jp_team51_charge_id:A_" + this.id
- }).then((res) => {
-
- uni.hideLoading()
- this.gunDetail = res.data;
- this.detail = res.data.device
- this.station = res.data.station
- this.carplateMust = this.station.carNumRequired;
- this.prices = res.data.prices
- this.pricesInfo = res.data.prices
- this.price = res.data.price
- this.lastTiming=res.data.lastTiming
- if(this.lastTiming){
-
- if(this.lastTiming.lastStartMode==4||this.gunDetail.nextTiming){
- this.startType=0
- }
- if(this.lastTiming.startTime){
- var sz=this.lastTiming.startTime.split(":")
- this.startTypeTimeConfirm([
- {
- value:sz[0],
- label:sz[0]
- },
- {
- value:sz[1],label:sz[1]
-
- }
- ])
- }
-
- }
- this.pricesInfoCurrent = {
- ...this.price
- }
- this.pricesInfoCurrent2 = {
- ...this.price
- }
- this.gun = res.data.gun
- if(this.gun &&this.gun.workStatus==6){
- this.operating=true;
- }
- this.car =res.data.car
- if (this.carplateMust && this.car && this.car.carNum) {
- //this.carplateMustModel=true;
- } else {
-
- }
-
-
- this.lockStatus = res.data.lockStatus;
- this.haveLock = res.data.haveLock;
- this.lockSafeStopTime = res.data.lockSafeStopTime
- this.isVip = res.data.isVip
- this.openStatus = res.data.station.openStatus
- this.isInsert = this.gun.insertStatus
- if (!this.openBool) {
- //this.openBoolShow=true;
- uni.showModal({
- title: "提示",
- content: "当前设备仅供内部使用,如有问题可联系客服",
- showCancel: false,
- success: () => {
- }
- })
- }
-
- if (this.gun.workStatus == 2) {
- this.workStatus2()
- }
- }).catch(error => {
- uni.hideLoading()
- uni.showModal({
- title: "提示",
- content: "设备扫码异常",
- confirmText: "前往首页",
- showCancel: false,
- success: () => {
- uni.reLaunch({
- url: "/pages/index/index"
- })
- }
- })
- // uni.showToast({
- // title: error
- // })
- })
- },
- chargeTest(bl) {
- if (process.env.NODE_ENV === "development" && process.car.SIMPLE_RUN) {
- var url = '/pages/searchPile/chargeProcess/charge?stationId=' + this.detail.stationId +
- '&deviceNo=' + this.detail.deviceNo + "&gun=" + this.gun.channelNo + "&carNumber=" + (
- this.car ? this.car.carNum : '');
- url+="&id="+this.id
- uni.navigateTo({
- url: url
- })
- }
- },
- charge(bl) {
- if (!this.role(bl)) {
- return
- }
-
-
- // var url = '/pages/searchPile/chargeProcess/charge?stationId=' + this.detail.stationId +
- // '&deviceNo=' + this.detail.deviceNo + "&gun=" + this.gun.channelNo + "&carNumber=" + (
- // this.car ? this.car.carNum : '');
- // if(this.isback){
- // url+="&startMode=1"
- // }
- // url+="&id="+this.id
-
- // uni.navigateTo({
- // url: url
- // })
-
- if(this.startType==1){
- this.startCarCharging()
- }
-
- if(this.startType==0){
- this.readyToTimingCharging()
- }
- },
- isInsertBtn() {
- this.isInsert = true;
- },
-
- 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")
- if (c) {
- this.carhelp.set("newyear_activity2023", {
- nt: code2,
- code: c.code == 0 ? 1 : 0,
- status: 0
- })
- }
- this.exchangeDetail(code2)
- } else {
- //this.getBannerInfoTop("home-top");
- }
- //不能兑换
- } 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"
- })
- }
- },
- getf5surprised() {
- uni.showLoading({
- title: "加载中",
- mask: true,
- })
- userApi.exchangeGroupDetail2("周年红包").then((res) => {
- uni.hideLoading();
- var data=res.data;
- this.key=""
- this.couponList=[]
- if(data.length){
- this.couponList = res.data[0].couponList;
-
- if(this.couponList&&this.couponList.length){
- //this.getBannerInfoTop()
- this.getBannerInfoTop("home-top2");
- }
- }
-
-
-
- }).catch(error => {
-
- uni.showToast({
- title: error,
- icon: "none"
- })
- })
- },
- getBannerInfoTop(code) {
- if(!this.carhelp.getOpenId()){
- return
- }
- var nowtime = parseUnixTime(currentTimeStamp(), '{y}-{m}-{d}')
-
- var time = this.carhelp.get("bannerListTop");
- if ((time && nowtime == time)) {
- this.getBannerInfoTopBl = false;
- }
- //特殊活动不考虑
- //this.getBannerInfoTopBl = true;
- // 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"
- })
- })
- },
- readyToTimingCharging(){
-
- if(this.gun&&this.gun.workStatus==2){
- uni.showModal({
- title: '提示',
- showCancel:false,
- content:"快捷充电失败:充电中",
-
- })
- }else if(!this.openBool){
- uni.showModal({
- title: '提示',
- showCancel:false,
- content:"快捷充电失败:仅内部员工可用"
- })
- }else if(this.gunDetail.chargingAppointment&&!this.gunDetail.isMeAppoint){
- uni.showModal({
- title: '提示',
- showCancel:false,
- content:"快捷充电失败:已被预约"
- })
- }else if(this.haveLock&&this.lockStatus==1){
- uni.showModal({
- title: '提示',
- showCancel:false,
- content:"快捷充电失败:下降地锁"
- })
- }else if(!this.isInsert){
- uni.showModal({
- title: '提示',
- showCancel:false,
- content:"快捷充电失败:未插枪"
- })
- }else {
- this.readyToTimingChargingApi();
- }
- },
- readyToTimingChargingApi(){
- uni.showLoading({
- title:"定时充电启动",
- mask: true,
- })
- this.startTypeStartTime=
- this.startTypeTimeList[0][this.startTypeTimeValue1].value+":"+this.startTypeTimeList[1][this.startTypeTimeValue2].value
-
-
- var submitForm={
- deviceNo:this.detail.deviceNo,
- channelNo:this.gun.channelNo,
- startTime:this.startTypeStartTime
- }
-
- API.readyToTimingCharging(submitForm).then((res) => {
- uni.hideLoading()
- uni.showModal({
- title: '提示',
- showCancel:false,
- content:"设置完成"
- })
- this.getPile()
- }).catch(error => {
- uni.hideLoading()
- uni.showModal({
- title: '提示',
- showCancel:false,
- content:"充电失败:"+( error?error:'未知错误')
- })
-
-
- })
- },
- startCarCharging(){
-
- if(this.gun&&this.gun.workStatus==2){
- uni.showModal({
- title: '提示',
- showCancel:false,
- content:"快捷充电失败:充电中",
-
- })
- }else if(!this.openBool){
- uni.showModal({
- title: '提示',
- showCancel:false,
- content:"快捷充电失败:仅内部员工可用"
- })
- }else if(this.gunDetail.chargingAppointment&&!this.gunDetail.isMeAppoint){
- uni.showModal({
- title: '提示',
- showCancel:false,
- content:"快捷充电失败:已被预约"
- })
- }else if(this.haveLock&&this.lockStatus==1){
- uni.showModal({
- title: '提示',
- showCancel:false,
- content:"快捷充电失败:下降地锁"
- })
- }else if(!this.isInsert){
- uni.showModal({
- title: '提示',
- showCancel:false,
- content:"快捷充电失败:未插枪"
- })
- }else {
- this.startCarChargingApi();
- }
- },
- startCarChargingApi(){
- uni.showLoading({
- title:"快捷充电启动",
- mask: true,
- })
- this.startCarChargingBl=true;
- var submitForm={
- deviceNo:this.detail.deviceNo,
- channelNo:this.gun.channelNo,
- carNumber:this.car ? this.car.carNum : '',
- chargeStrategy:0,
- amount:0,
- payType:2,
- }
- if(this.userCardBool){
- submitForm.userCardId=this.userCard.id
- }
- API.startCarCharging(submitForm).then((res) => {
- if (res.data.status == "5") {
- var _this=this;
- var recordId=res.data.recordId;
- uni.showModal({
- title: '启动充电失败',
- confirmText:"充值",
- cancelText:"暂不启用",
- content:"个人账户余额不足10元,无法启动快捷充电",
- success: function (res) {
- if (res.confirm) {
- console.log('用户点击确定');
- _this.gotoUrl("pages/user/finance/recharge?recordId=" + recordId);
-
- } else if (res.cancel) {
- _this.checkedChange2(0);
- console.log('用户点击取消');
- }
- }
- })
- uni.hideLoading()
- }else{
- this.gotoUrl("pages/searchPile/chargeProcess/dcCharging?id=" + res.data.recordId);
-
- }
-
- }).catch(error => {
- uni.hideLoading()
- if (error == '用户账户余额不足!') {
- var _this=this;
- uni.showModal({
- title: '快捷充电失败',
- confirmText:"充值",
- content:"用户余额不足!",
- success: function (res) {
- if (res.confirm) {
- console.log('用户点击确定');
- _this.showrecharge=true
- } else if (res.cancel) {
- console.log('用户点击取消');
- }
- }
- })
-
- } else {
- uni.showModal({
- title: '提示',
- showCancel:false,
- content:"充电失败:"+( error?error:'未知错误')
- })
- }
-
-
- })
- }
- },
-
- }
- </script>
- <style lang="scss">
- .priceListBlMain {
- display: flex;
- justify-content: space-between;
- align-items: last baseline;
- }
- .discount-card {
- box-shadow: 0px 0px 8px 0px rgba(0, 65, 30, 0.1);
- border: 1px solid rgba(225, 236, 231, 1);
- border-radius: 8px;
- //background-color: rgba(55, 59, 80, 1);
- padding: 24rpx;
- margin-top: 24rpx;
- .name {
- //color: rgba(255, 255, 255, 1);
- font-size: 32rpx;
- }
- .progress {
- display: flex;
- justify-content: space-between;
- flex-wrap: wrap;
- // color: rgba(219, 219, 219, 1);
- font-size: 24rpx;
- margin-bottom: 16rpx;
- margin-top: 24rpx;
- }
- ::v-deep .u-active {
- background: linear-gradient(84.49deg, rgba(59, 182, 254, 1) 4.25%, rgba(0, 185, 98, 1) 95.02%);
- }
- }
- .discount-card-4 {
- background: #da241e !important;
- .unit{
- color:#fff !important;
- }
- .u-progress{
- background-color:#cf4c42 !important;
- color: #fff;
- }
- .name{
- color: #ffd695!important;
- font-size: 36rpx;
- font-family: "SimSun", Arial, sans-serif;
- font-weight: 400;
- text-shadow: 2px 1px 0px #800400 ;
-
- }
- .progress{
- color: #fff;
- }
- }
-
- .temporaryCarNum {
- text-align: right;
- margin-bottom: 10px;
- margin: 0 40rpx;
- span {
- margin: 0 8rpx;
- color: #19be6b;
- }
- }
- .oldTextClassF {
- .tips {
- padding: 36rpx;
- .p {
- font-size: 42rpx !important;
- }
- .content {
- font-size: 34rpx !important;
- }
- }
- .bottom {
- .u-btn {
- font-size: 48rpx
- }
- }
- .text-1 {
- font-size: 56rpx !important;
- }
- .text-2 {
- font-size: 38rpx !important;
- }
- .charging-info {
- .name {
- font-size: 36rpx !important;
- .free {
- font-weight: bold;
- font-size: 36rpx !important;
- }
- }
- .address {
- font-size: 44rpx;
- font-weight: bold;
- }
- .price {
- font-weight: bold;
- font-size: 60rpx !important;
- .unit {
- font-weight: normal;
- font-size: 36rpx !important;
- }
- }
- }
- }
- page {
- background-color: #F6F8F8;
- padding-bottom: 100px;
- }
- .service {
- font-size: 24px;
- color: #101010;
- position: absolute;
- right: 16px;
- }
- .main2 {
- background-color: #fff;
- padding-left: 16px;
- .item {
- border-bottom: 1px solid #e5e7ea;
- padding: 16px 0;
- .title {
- line-height: 16px;
- color: rgba(119, 119, 119, 100);
- font-size: 16px;
- .more {
- font-size: 24px;
- color: #b3b3b3;
- float: right;
- margin-right: 8px;
- }
- }
- .content {
- line-height: 24px;
- color: rgba(16, 16, 16, 100);
- font-size: 16px;
- margin-top: 8px;
- padding-right: 30px;
- }
- }
- }
- .main {
- padding: 40rpx 40rpx 24rpx 40rpx;
- background-image: linear-gradient(#D6EEDC, #F6F8F8);
- .text-1 {
- color: rgba(0, 170, 90, 100);
- font-size: 48rpx;
- line-height: 33px;
- }
- .text-2 {
- color: rgba(102, 102, 102, 100);
- font-size: 32rpx;
- line-height: 22px;
- }
- .charging-info {
- background-color: #fff;
- margin: 20rpx auto;
- border-radius: 12px;
- padding: 20rpx 38rpx;
- .row{
- display: flex;
- justify-content: space-between;
- padding: 5px 0;
- .key{
- color:#777777;
- font-size: 32rpx;
- }
- .value{
- display: flex;
- color: rgba(51, 51, 51, 1);
- font-size: 32rpx;
- }
- }
- .name {
- margin-top: 8rpx;
- color: #777777;
- font-size: 32rpx;
- .free {
- display: inline-block;
- //width: 72px;
- padding:4rpx 24rpx ;
- //height: 20px;
- line-height: 20px;
- border-radius: 50px;
- background-color: rgba(208, 246, 228, 100);
- color: rgba(0, 185, 98, 100);
- font-size: 28rpx;
- text-align: center;
- margin-left: 12px;
- }
- .workStatusText6{
- background-color: rgba(255, 214, 210, 1);
- color: rgba(255, 56, 56, 1);
- }
- }
- .price-3-card-view {
- display: flex;
- align-items: last baseline;
- .price-3-card {
- max-width: 240rpx;
- min-width: 220rpx;
- display: flex;
- background: linear-gradient(93.02deg, rgba(59, 182, 254, 1) 39.4%, rgba(0, 185, 98, 1) 92.96%);
- border-radius: 4px;
- height: 32rpx;
- min-height: 32rpx;
- margin-left: 32rpx;
- // align-items: center;
- line-height: 32rpx;
- .num1 {
- img {
- // width: 88rpx;
- //width: 34px;
- height: 32rpx;
- }
- ::v-deep .u-image {
- min-height: 32rpx;
- }
- font-size: 22rpx;
- background: rgb(48, 49, 51);
- }
- .num {
- padding: 0 6rpx 0 6rpx;
- color: rgba(255, 255, 255, 1);
- font-size: 22rpx;
- display: flex;
- align-items: center;
- }
- }
- .price-3-card-yue{
- background: linear-gradient(88.81deg, rgba(219,199,167,1) 1.89%,rgba(194,154,93,1) 98%);
-
- }
- }
- .price-2 {
- display: flex;
- align-items: baseline;
- .price-4 {
- color: rgba(0, 185, 98, 100);
- font-size: 56rpx;
- margin-top: 0rpx;
- display: flex;
- align-items: baseline;
- .unit {
- font-size: 32rpx;
- color: #666666;
- margin-left: 4px;
- }
- }
- .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%);
- }
- }
- }
- .price {
- color: rgba(0, 185, 98, 100);
- //font-size: 56rpx;
- margin: 8rpx 0;
- .span {
- font-size: 56rpx;
- }
- .unit {
- font-size: 32rpx;
- color: #666666;
- margin-left: 4px;
- }
- }
- .address {
- color: #333333;
- font-size: 40rpx;
- .explain {
- line-height: 22px;
- color: rgba(22, 119, 255, 100);
- font-size: 32rpx;
- float: right;
- }
- }
- }
- }
- .main-head {
- display: flex;
- justify-content: space-between;
- }
- .charge-img {
- width: 80px;
- overflow: hidden;
- height: 80px;
- // margin-right: 16rpx;
- img {
- width: 100%;
- }
- }
- .cost-explainMain{
-
-
- margin: 24rpx 40rpx 24rpx 40rpx;
- padding: 30rpx 40rpx;
- background-color: #fff;
-
- // background-color: #fff;
- // margin: 0 40rpx;
- border-radius: 12px;
- // padding: 38rpx 40rpx;
- // display: flex;
-
- font-size: 36rpx;
-
-
-
- // 费用说明
- .cost-explain {
-
- margin-bottom: 12rpx;
- border-radius: 12px;
- display: flex;
- justify-content: space-between;
- align-items: center;
- .car-number {
- display: flex;
- font-size: 32rpx;
- }
-
- img {
-
- vertical-align: middle;
- }
- .text {
- font-size: 36rpx;
- color: #101010;
- //width: 330rpx;
- white-space: pre;
- }
-
- .iconfont {
- color: #b3b3b3;
- font-size: 48rpx
- }
- }
- .cost-explain2{
- .car-number{
- font-size: 28rpx;
- color: #FF3D00;
- }
- }
- }
-
- .tips {
- background-color: #fff;
- padding: 40rpx;
- margin: 8rpx 40rpx 0 40rpx;
- border-radius: 12px;
- .p {
- line-height: 25px;
- color: #333333;
- font-size: 32rpx;
- font-weight: 550;
- }
- .content {
- margin-top: 16rpx;
- line-height: 22px;
- color: #666666;
- font-size: 28rpx;
- }
- }
- .bottom {
- width: 100%;
- padding: 28rpx 0;
- .u-btn {
- margin: 0 40rpx;
- line-height: 88rpx;
- height: 88rpx;
- font-size: 40rpx
- }
- }
- ::v-deep .u-alert-desc {
- color: rgba(255, 115, 0, 100);
- font-size: 16px
- }
- // 入场车辆
- .carp {
- margin: 0 40rpx;
- }
- .carImg {
- margin: 0 40rpx;
- img {
- width: 100%;
- }
- }
- .carImg3 {
- margin: 0 40rpx;
- background: linear-gradient(32.4deg, rgba(59,182,254,1) 20.49%,rgba(0,185,98,1) 118.87%);
- border-radius: 8px;
- }
- .carImg3-yue {
- margin: 0 40rpx;
- background: linear-gradient(88.81deg, rgba(219,199,167,1) 1.89%,rgba(194,154,93,1) 98%);
- border-radius: 8px;
- }
- .carImg2-yue {
- line-height: 20px;
- color: rgba(255, 255, 255, 1);
- font-size: 32rpx;
- padding:40rpx;
- //background: linear-gradient(88.81deg, rgba(219,199,167,1) 1.89%,rgba(194,154,93,1) 98%);
- background: url('@/assets/img/9-4/antFill-crown.svg');
- background-repeat: repeat-y;
- background-position-x: 440rpx;
- .carImg-2{
- span{
- font-size: 48rpx;
- color:red;
- margin: 0 4rpx;
- font-weight: bold;
- padding:0rpx 4rpx;
- }
- }
- .carImg-3{
- margin-top:8rpx ;
- span{
-
- padding:8rpx 16rpx;
- border-radius: 12px;
- background-color: rgba(255, 255, 255, 1);
- text-align: center;
- color: #795626 ;
- font-size: 12px;
- }
- }
-
- }
- .carImg2 {
- line-height: 20px;
- color: rgba(255, 255, 255, 1);
- font-size: 32rpx;
- padding:40rpx;
- background: url('@/assets/img/9-4/6show.png');
- background-repeat: repeat-y;
- background-position-x: 440rpx;
- .carImg-2{
- span{
- font-size: 48rpx;
- color:red;
- margin: 0 4rpx;
-
- font-weight: bold;
- padding:0rpx 4rpx;
- }
- }
- .carImg-3{
- margin-top:8rpx ;
- span{
-
- padding:8rpx 16rpx;
- border-radius: 12px;
- background-color: rgba(255, 255, 255, 1);
- text-align: center;
- color: rgba(0, 130, 69, 1);
- font-size: 12px;
- }
- }
-
- }
- .showOss2 {
- ::v-deep .u-model,
- ::v-deep .u-mode-center-box {
- background-color: transparent;
- }
- }
- .classtable {
- margin: 0rpx 40rpx;
- .td1 {
- width: 50rpx;
- padding: 12rpx 0;
- text-align: center;
- img {
- width: 48rpx;
- height: 48rpx;
- }
- font-size: 10px;
- }
- .td2 {
- padding-left: 16rpx;
- font-size: 12px;
- line-height: 24px;
- .dian {
- padding: 0 10rpx
- }
- }
- }
- .btnview {
- display: flex;
- flex-direction: column;
- align-items: center;
- .btnview1 {}
- .btnview2 {
- color: #999999;
- margin-top: 20rpx;
- padding-bottom: 48rpx;
- }
- }
- .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;
- }
- .chat_hhh_time {
- display: flex;
- justify-content: space-between;
- }
- .chat_hhh {
- .chatShow {
- .showspan{
- float: right;
- color: #00b962;
- }
- margin-bottom: 280rpx;
- //height: 160px;
- visibility: hidden;
- // width: 120px;
- padding: 4rpx 16rpx;
- text-align: initial;
- /* 定位 */
- position: absolute;
- z-index: 1;
- padding: 4rpx 16rpx;
- background-color: #fff;
- color: rgba(102, 102, 102, 1);
- border-radius: 3px;
- font-size: 24rpx;
- box-shadow: 0px 0px 4px 0px rgba(0, 0, 0, 0.2);
- }
- .chatShowA {
- margin-left: -60rpx;
- }
- .chatShowB {
- margin-left: -160rpx;
- }
- .chatShowNo {
- visibility: hidden;
- }
- .chatShowOk {
- visibility: visible;
- }
- background: #f9f9f9;
- text-align: center;
- min-height: 160px;
- display: flex;
- font-size: 20rpx;
- .current1 {
- .chats2 {
- //border: 1px solid red;
- }
- }
- .current2 {
- .chats1 {
- border: 1px solid #333333;
- border-bottom: 0px;
- }
- .chats2 {
- border: 1px solid #333333;
- background: #26FF6B !important;
- border-top: 0px;
- }
- }
- .chatTime {
- min-width: 68rpx;
- display: flex;
- flex-direction: column;
- justify-content: flex-end;
- border: 1px solid #f9f9f9;
-
-
- .chats0 {
- // background-color: #ff8b17;
- // color: #ffecdd;
- display: flex;
- justify-content: center;
- flex-wrap: wrap;
- flex-direction: column;
- }
-
- .chats9 {
- opacity: 0;
- display: flex;
- justify-content: center;
- flex-wrap: wrap;
- flex-direction: column;
- }
- .chats1 {
- background: #dcdcdc;
- min-height: 30rpx
- }
- .chats2 {
- background: #80e0a6;
- display: flex;
- flex-direction: column;
- justify-content: space-between;
- }
- }
- }
-
- .quickMain{
- ::v-deep .u-mode-center-box{
- background-color: transparent;
- }
- ::v-deep .u-model{
- background-color: transparent;
- }
- .quickMain-slot-content{
- .quickMain-img{
- position: relative;
- top: 120rpx;
- text-align: center;
- img{
- width: 160rpx;
- height: 240rpx;
- }
- }
- .quickMain-bodyMain{
- background-color:#fff;
- border-radius: 15px;
- }
- .quickMain-body{
-
- margin:0 56rpx ;
- color: rgba(51, 51, 51, 1);
- .quickMain-text1{
- font-size: 48rpx;
- text-align: center;
- padding: 132rpx 0 32rpx 0;
- }
- .quickMain-text2{
- margin-bottom: 20rpx ;
- //color: rgba(51, 51, 51, 1);
- font-size: 32rpx;
- img{
- width: 40rpx;
- //height: 120px;
- }
- }
-
- }
-
-
- }
- }
-
-
- .slogan-4 {
- z-index: 2;
- 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);
- }
- }
- .showOssK {
-
- ::v-deep .u-model,
- ::v-deep .u-mode-center-box {
- background-color: transparent;
- }
- }
- // .showOss {
-
- // ::v-deep .u-model,
- // ::v-deep .u-mode-center-box {
- // background-color: transparent;
- // }
- // }
- .swiper {
- height: 700rpx;
-
- .swiperitem {
- height: 700rpx;
- }
- }
-
- .useFreeCoupon{
- font-size: 24rpx;
- color:#FF3D00;
- }
-
-
- .sign {
- display: flex;
- flex-wrap: wrap;
- margin-top: 10px;
-
- .sign-tag {
-
- height: 36rpx;
- line-height: 32rpx;
- border-radius: 8rpx;
- //background-color: rgba(255, 255, 255, 100);
- //color: rgba(255, 139, 0, 100);
- font-size: 10px;
- text-align: center;
- //border: 1px solid rgba(255, 139, 0, 100);
- padding: 0 8rpx;
- margin-right: 8rpx;
- 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-1 {
- background-color: rgba(255, 255, 255, 100);
- color: rgba(255, 139, 0, 100);
- border: 1px solid rgba(255, 139, 0, 100);
-
- }
-
- .sign-2 {
- background-color: rgba(255, 255, 255, 100);
- color: rgba(153, 153, 153, 100);
- border: 1px solid rgba(204, 204, 204, 100);
-
- }
-
- .sign-3 {
- background-color: rgba(255, 255, 255, 100);
- color: #8161FF;
- border: 1px solid #8161FF;
-
- }
-
- .sign-4 {
- background-color: rgba(255, 255, 255, 100);
- color: #00B962;
- border: 1px solid #00B962;
- }
- }
- </style>
|