searchPile.vue 47 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846
  1. <template>
  2. <view>
  3. <ujp-navbar :is-back="false" height='88' style="background-color: bisque;">
  4. <view class="ujp-navbar-main">
  5. <view class="ujp-navbar-main1">
  6. <view style="margin-left:20rpx;width: 160rpx;" v-if="false">
  7. <uni-combox class='font2' ref="city" :border="false" v-model="area" :candidates="cities"
  8. @updateModel='updateCity' @updateSelector="updateTypeSelector(3)"></uni-combox>
  9. </view>
  10. <view style="margin-right: 20rpx; margin-left:20rpx;flex:1">
  11. <u-search height="60" :input-style='inputStyle' placeholder="查询站点地址或站名" :showAction="false"
  12. @focus="navigate"></u-search>
  13. </view>
  14. <view style="margin-right: 20rpx;" v-show="viewMode" @click="listMode">
  15. <text class="iconfont">&#xe613;</text> <text class="list font2">列表</text>
  16. </view>
  17. <view style="margin-right: 20rpx;" v-show="!viewMode" @click="mapMode">
  18. <text class="iconfont">&#xe622;</text> <text class="list font2">地图</text>
  19. </view>
  20. </view>
  21. <view class="ujp-navbar-main2" @click="dropdownShow?$refs.uDropdown.close():$refs.uDropdown.open(0)" >
  22. <view style="display: flex;" v-if="false">
  23. <view
  24. style=" min-width: 180rpx; max-width: 200rpx;margin-left:20rpx;margin-right:10rpx;flex:1; ">
  25. <uni-combox class='font2' ref="radius" :border="false" v-model="radius"
  26. :candidates="radiuses" @updateModel='updateRadius'
  27. @updateSelector="updateTypeSelector('0')"></uni-combox>
  28. </view>
  29. <view style=" min-width: 180rpx; max-width: 200rpx;flex:1; ">
  30. <uni-combox ref="type" class='font2' :border="false" v-model="type" :candidates="types"
  31. @updateModel='updateType' @updateSelector="updateTypeSelector(1)"></uni-combox>
  32. </view>
  33. </view>
  34. <view class="tagListSelect" >
  35. <view class="tagBtn tagBtnAc" v-for="(item,i) in tagBtnAcList" :key="i" >
  36. {{item}}
  37. </view>
  38. </view>
  39. <view class="tagListSelect" v-show="!dropdownShow" v-if="false" >
  40. <view class="tagBtn" @click="tagspan1Btn" :class="{
  41. 'tagBtnAc':tagspan1
  42. }">
  43. 10公里
  44. </view>
  45. <view class="tagBtn" @click="tagspan2Btn" :class="{
  46. 'tagBtnAc':tagspan2
  47. }">
  48. 直流快充
  49. </view>
  50. <view class="tagBtn" @click="tagspan3Btn" :class="{
  51. 'tagBtnAc':tagspan3
  52. }">
  53. 特价站
  54. </view>
  55. </view>
  56. <view v-show="dropdownShow" >
  57. </view>
  58. <!-- <view style="flex:1;">
  59. <uni-combox ref="stationType" class='font2' :border="false" v-model="stationType"
  60. :candidates="stationTypes" @updateModel='updateType2'
  61. @updateSelector="updateTypeSelector(2)"></uni-combox>
  62. </view> -->
  63. <view style="margin-right: 20rpx;">
  64. <!-- -->
  65. <!-- <view v-show="dropdownShow" >
  66. <u-mask :show="dropdownShow" ></u-mask>
  67. </view> -->
  68. <jp-dropdown active-color="rgb(0, 185, 98)" @open="dropdownShow=true"
  69. @close="dropdownShow=false" ref="uDropdown" style=" display: contents;" :top="180">
  70. <u-dropdown-item title="筛选">
  71. <view class="slot-content">
  72. <view v-if="dropdownShow" class="u-text-center u-content-color ">
  73. <view class="preference" style="z-index:1024;width: 100%;">
  74. <view class="content-s">
  75. <view class="preference_group">
  76. <view class="preference_group_item"><label
  77. class="preference_label">距离我</label></view>
  78. <view>
  79. <u-tag class="preference_item"
  80. v-for="(item, index) in info.miles_type" :key="index"
  81. :style="index == preference.miles_index ? 'background-color:#00B962;color:#FFFFFF' : 'background-color:#EFF4F2;color:#926666'"
  82. shape="circle" :text="item.text"
  83. @click="selectMiles(index)"></u-tag>
  84. </view>
  85. </view>
  86. <view class="preference_group">
  87. <view class="preference_group_item"><label
  88. class="preference_label">充电站类型</label></view>
  89. <view>
  90. <u-tag class="preference_item_medium"
  91. v-for="(item, index) in info.obc_type" :key="index"
  92. :style="index == preference.obc_type_index ? 'background-color:#00B962;color:#FFFFFF' : 'background-color:#EFF4F2;color:#926666'"
  93. shape="circle" :text="item.text"
  94. @click="selectOBSType(index)"></u-tag>
  95. </view>
  96. </view>
  97. <view class="preference_group" >
  98. <view class="preference_group_item"><label
  99. class="preference_label">查询站点</label></view>
  100. <view>
  101. <u-tag class="preference_item_plus"
  102. v-for="(item, index) in info.obc_status" :key="index"
  103. :style="index == preference.obc_status_index ? 'background-color:#00B962;color:#FFFFFF' : 'background-color:#EFF4F2;color:#926666'"
  104. shape="circle" :text="item.text"
  105. @click="selectOBSStatus(index)"></u-tag>
  106. </view>
  107. </view>
  108. <view class="preference_group">
  109. <view class="preference_group_item"><label
  110. class="preference_label">运营模式</label></view>
  111. <view>
  112. <u-tag class="preference_item_medium"
  113. v-for="(item, index) in info.obc_stationType" :key="index"
  114. :style="index == preference.obc_stationType_index ? 'background-color:#00B962;color:#FFFFFF' : 'background-color:#EFF4F2;color:#926666'"
  115. shape="circle" :text="item.text"
  116. @click="selectOBSType2(index)"></u-tag>
  117. </view>
  118. </view>
  119. <view class="preference_group" v-if="false">
  120. <view class="preference_group_item"><label
  121. class="preference_label">是否对外开放</label></view>
  122. <view>
  123. <u-tag class="preference_item_plus"
  124. v-for="(item, index) in info.obc_status" :key="index"
  125. :style="index == preference.obc_status_index ? 'background-color:#00B962;color:#FFFFFF' : 'background-color:#EFF4F2;color:#926666'"
  126. shape="circle" :text="item.text"
  127. @click="selectOBSStatus(index)"></u-tag>
  128. </view>
  129. </view>
  130. <view class="preference_group" v-if="false">
  131. <view style="margin-left: 30rpx;"><u-checkbox active-color="#00b962"
  132. shape="circle" v-model="preference.save_preference"
  133. @change="radioChange">保存偏好设置</u-checkbox></view>
  134. </view>
  135. </view>
  136. <view class="pre-btn" style="display: flex;flex-direction: row;">
  137. <view class="btn-1 font3" @click="reset" style="width: 30%;">重置</view>
  138. <view class="btn-2 font3" @click="close"
  139. style="width: 70%;background-color: #00B962;color: #fff;">确定</view>
  140. </view>
  141. </view>
  142. </view>
  143. <!-- <u-button type="primary" @click="closeDropdown">确定</u-button> -->
  144. </view>
  145. </u-dropdown-item>
  146. </jp-dropdown>
  147. </view>
  148. </view>
  149. </view>
  150. </ujp-navbar>
  151. <!-- 定位 -->
  152. <view v-show="!viewMode">
  153. <view class="location-box" v-if="message != 'getLocation:ok' && stationslist.length == 0 ">
  154. <view class="location">
  155. <view class="location-text">
  156. <view class="text-1 oldTextjp" oldstyle="font-size: 20px;">
  157. 定位中...
  158. </view>
  159. <view class="text-2 oldTextjp2" oldstyle="font-size: 16px;">
  160. 授权定位后可查询附近充电站
  161. </view>
  162. <view class="text-view">
  163. <view class="text-3 oldTextjp2" oldstyle="font-size: 16px;" @click="getPoint()">
  164. 重新定位
  165. </view>
  166. <view class="text-3 text-4 oldTextjp2" oldstyle="font-size: 16px;"
  167. @click="searchStationData()">
  168. 直接搜索
  169. </view>
  170. </view>
  171. </view>
  172. <view class="img-box">
  173. <img src="@/assets/static/img/暂无网络信号-缺省页 1.png">
  174. </view>
  175. </view>
  176. </view>
  177. <view v-else-if="message == 'getLocation:ok'&&stationslist.length==0">
  178. <view class="carNone" v-if="stationslist.length == 0">
  179. <img src="@/assets/static/img/暂无数据-缺省页.png" alt="">
  180. <p class="oldTextjp2" oldstyle="font-size: 18px;">{{loading?'暂无可用充电站':'正在为你加载可用的充电站...'}}</p>
  181. </view>
  182. </view>
  183. <view>
  184. <view>
  185. <view v-for="(item,index) in (stationslist.length?stationslist:defaultStation)" :key="item.id"
  186. class="charing-slow charing-new" @click="stationDetail(item)">
  187. <view class="new-img">
  188. <img :src="item.image" v-if="item.image" class="img1">
  189. <img v-else src="@/assets/img/chargesite_default.png" class="img1" mode=""></img>
  190. <view class="img2Class" v-if="item.isRecommend||stationslist.length==0">
  191. <img src="@/assets/img/9-4/推荐.svg" class="img2">
  192. </view>
  193. <view class="img2Class" v-else-if="item.isAlways" >
  194. <img src="@/assets/img/9-4/常用.svg" class="img2">
  195. </view>
  196. <view class="img2Class" v-else-if="item.isSpecial" >
  197. <img src="@/assets/img/9-4/特价tag.svg" class="img2">
  198. </view>
  199. </view>
  200. <view class="new-body">
  201. <view class="address">
  202. <view class="name oldTextjp" oldstyle="font-size: 20px;">
  203. {{item.name}}
  204. </view>
  205. </view>
  206. <view v-if="quickChargeReduceMethod1(item)&&personInfo&&personInfo.userType==2"
  207. style="margin-top: 10rpx;color: rgba(255, 121, 0, 1);font-size: 28rpx; display: flex; align-items: center;" >
  208. <span style="color: #fff;background: linear-gradient(93.02deg, rgba(255,121,0,1) 39.4%,rgba(255,174,0,1) 93.51%);
  209. border-radius: 4px;
  210. padding: 0rpx 10rpx;
  211. margin-right: 8rpx;
  212. font-size: 24rpx;
  213. line-height:40rpx;
  214. " >活动</span>
  215. 快充订单满{{item.quickChargeDegree}}度服务费{{discountRatio10(item.quickChargeDiscountRatio)}}折
  216. </view>
  217. <view v-if="quickChargeReduceMethod2(item)&&personInfo&&personInfo.userType==2"
  218. style="margin-top: 10rpx;color: rgba(255, 121, 0, 1);font-size: 28rpx; display: flex; align-items: center;" >
  219. <span style="color: #fff;background: linear-gradient(93.02deg, rgba(255,121,0,1) 39.4%,rgba(255,174,0,1) 93.51%);
  220. border-radius: 4px;
  221. padding: 0rpx 10rpx;
  222. margin-right: 8rpx;
  223. font-size: 24rpx;
  224. line-height:40rpx;
  225. " >活动</span>
  226. 喜迎国庆,充电有奖
  227. </view>
  228. <view class="sign">
  229. <!-- <view class="sign-tag sign-0" v-if="item.isRecommend||stationslist.length==0">推荐</view>
  230. <view class="sign-tag sign-5" v-if="item.isAlways" >常用</view>
  231. -->
  232. <view class="sign-tag sign-1"
  233. v-if="item.giveDiscount&&item.discountRatio&&item.discountRatio!=100">
  234. 会员{{discountRatio10(item.discountRatio)}}折</view>
  235. <view class="sign-tag sign-4" v-if="item.nightLowPriceEnabled">
  236. 夜间超低价</view>
  237. <view class="sign-tag sign-3" v-if="item.category=='超充'">160kW超充站</view>
  238. <view class="sign-tag sign-2" v-if="item.platformType==1">自营站</view>
  239. <view class="sign-tag sign-2" v-if="item.tagList.length != 0"
  240. v-for="(tagName,tagIndex) in item.tagList" :style="'border: 1px solid '+tagNameBy(tagName,1)+';color:'+tagNameBy(tagName,1)"
  241. :key="tagIndex">{{tagNameBy(tagName,0)}}</view>
  242. <template v-if="item.stationType==50">
  243. {{item.address}}
  244. </template>
  245. </view>
  246. <view class="price-free price-freeList" style="margin-top: 16rpx;">
  247. <view class="free">
  248. <view class="fast" v-if="item.fastNum">
  249. <view class="fast-font">
  250. </view>
  251. <view class="num">
  252. {{item.fastAvailableNum}}
  253. </view>
  254. <view class="num1">
  255. /{{item.fastNum}}
  256. </view>
  257. </view>
  258. <view class="slow" v-if="item.slowNum">
  259. <view class="slow-font">
  260. </view>
  261. <view class="num">
  262. {{item.slowAvailableNum}}
  263. </view>
  264. <view class="num1">
  265. /{{item.slowNum}}
  266. </view>
  267. </view>
  268. </view>
  269. <template v-if="stationslist.length!=0">
  270. <view class="distance " v-if="item.distance != '99999999'">
  271. <text class="iconfont" style="color:#666666">&#xe615;</text>
  272. {{item.distance!=null && item.distance>0.1 ? item.distance.toFixed(1)+'km' : '小于100m'}}
  273. </view>
  274. <view class="distance oldTextjp2" oldstyle="font-size: 16px;" v-else>
  275. <text class="iconfont" style="color:#666666">&#xe615;</text>
  276. 暂无定位
  277. </view>
  278. </template>
  279. </view>
  280. <u-line margin="16rpx 0 "></u-line>
  281. <view class="price-free price-freeList">
  282. <view class="price" v-if="personInfo&&personInfo.userType==2">
  283. <view class="price-1">
  284. <text class="num">{{!item.giveDiscount ? (item.electricityPrice+item.servicePrice).toFixed(2)
  285. : (item.electricityPrice+item.discountServicePrice).toFixed(2)}}</text>
  286. <text class="unit " oldstyle="font-size: 14px;">
  287. 元/度
  288. </text>
  289. </view>
  290. <view class="price-3 " v-if="prevMonthKwhBL&&item.tagList&&item.tagList.length&&(item.tagList.indexOf('6折卡')>-1||item.tagList.indexOf('月卡')>-1||item.tagList.indexOf('自营站')>-1)">
  291. <view class="num1">
  292. <img src="@/assets/img/9-4/6折卡价.svg" />
  293. </view>
  294. <text
  295. class="num">{{ (item.electricityPrice+(item.servicePrice*0.6)).toFixed(2)}}元/度</text>
  296. </view>
  297. <view class="price-3 price-3-yue " v-if="!prevMonthKwhBL&&item.tagList&&item.tagList.length&&(item.tagList.indexOf('6折卡')>-1||item.tagList.indexOf('月卡')>-1||item.tagList.indexOf('自营站')>-1)">
  298. <view class="num1">
  299. <img src="@/assets/img/9-4/月卡价格.png" />
  300. </view>
  301. <text
  302. class="num">{{ (item.electricityPrice).toFixed(2)}}元/度</text>
  303. </view>
  304. </view>
  305. <!-- 游客价格-->
  306. <view class="price" v-else>
  307. <view class="price-1">
  308. <text class="num">
  309. {{showNumJP(item.electricityPrice+item.servicePrice)}}</text>
  310. <text class="unit " oldstyle="font-size: 48rpx;">元/度</text>
  311. </view>
  312. <view class="price-3 " oldstyle="font-size: 48rpx;" v-if="item.giveDiscount">
  313. <text class="num1">
  314. <img src="@/assets/img/9-4/会员价.svg" />
  315. </text>
  316. <text
  317. class="num">{{ showNumJP(item.electricityPrice+item.discountServicePrice)}}元/度</text>
  318. <text class="unit "></text>
  319. </view>
  320. </view>
  321. </view>
  322. </view>
  323. </view>
  324. <u-divider margin-top="20" v-if="stationslist.length!=0" style="margin-bottom: 20px;" bg-color="#F2F4F4"
  325. >已经到底了</u-divider>
  326. </view>
  327. </view>
  328. </view>
  329. <view v-show="viewMode">
  330. <view>
  331. <Chargermap @onMoveStart="moveStart" @onMoveEnd="moveEnd" ref="amap" @onClicked="onClicked"
  332. @onload="mapdown" @clickMap="clickMap"></Chargermap>
  333. <!--@location="location"-->
  334. <view class="locationBtn" style=' ' @click="setCenter">
  335. <u-image src="@/assets/static/img/location.png" border-radius="8" bg-color="#ffffff" width="20px"
  336. height="20px"></u-image>
  337. </view>
  338. </view>
  339. <!-- 新版卡片 -->
  340. <view class="chargerCard" v-if="stationsmap.length>0">
  341. <swiper v-if="stationsmap.length>0" :current="currentIndex" @change="swiperChange"
  342. slide-change-transition-end='swiperTransitionEnd' @transition="swiperTransition">
  343. <swiper-item v-for="(item,index) in stationsmap" :key="item.id" style="height: 100%;">
  344. <view class="swiper-item" style="height: 100%; background-color: #ffffff;"
  345. @click="stationDetail(item)">
  346. <view class="charing-slow charing-slow-2">
  347. <view class="address">
  348. <view class="name oldTextjp" oldstyle="font-size: 20px;">
  349. {{item.name}}
  350. </view>
  351. <view class="distance " v-if="item.distance != '99999999'">
  352. <text class="iconfont" style="color:#666666">&#xe615;</text>
  353. {{item.distance!=null && item.distance>0.1 ? item.distance.toFixed(1)+'公里' : '小于100米'}}
  354. </view>
  355. <view class="distance oldTextjp2" oldstyle="font-size: 16px;" v-else>
  356. <text class="iconfont" style="color:#666666">&#xe615;</text>
  357. 暂无定位
  358. </view>
  359. </view>
  360. <view class="sign min-h">
  361. <view class="sign-tag sign-1"
  362. v-if="item.giveDiscount&&item.discountRatio&&item.discountRatio!=100">
  363. 会员{{discountRatio10(item.discountRatio)}}折</view>
  364. <view class="sign-tag sign-3" v-if="item.category=='超充'">160kW超充站</view>
  365. <view class="sign-tag sign-4" v-if="item.nightLowPriceEnabled">
  366. 夜间超低价</view>
  367. <view class="sign-tag sign-2" v-if="item.platformType==1">自营站</view>
  368. <view class="sign-tag sign-2" v-if="item.tagList.length != 0"
  369. v-for="(tagName,tagIndex) in item.tagList"
  370. :style="'border: 1px solid '+tagNameBy(tagName,1)+';color:'+tagNameBy(tagName,1)"
  371. :key="tagIndex">{{tagNameBy(tagName,0)}}
  372. </view>
  373. </view>
  374. <view class="price-free price-freeOne">
  375. <view class="price" v-if="personInfo&&personInfo.userType==2">
  376. <view class="price-1">
  377. <text class="num">{{!item.giveDiscount ? (item.electricityPrice+item.servicePrice).toFixed(2)
  378. : (item.electricityPrice+item.discountServicePrice).toFixed(2)}}</text>
  379. <text class="unit " oldstyle="font-size: 14px;">
  380. 元/度
  381. </text>
  382. </view>
  383. <view class="price-2 " oldstyle="font-size: 14px;" v-if="item.giveDiscount">
  384. <text
  385. class="num">{{(item.electricityPrice+item.servicePrice).toFixed(2)}}</text>
  386. <text class="unit">元/度</text>
  387. </view>
  388. </view>
  389. <!-- 游客价格-->
  390. <view class="price" v-else>
  391. <view class="price-1">
  392. <text class="num">
  393. {{(item.electricityPrice+item.servicePrice).toFixed(2)}}</text>
  394. <text class="unit " oldstyle="font-size: 48rpx;">元/度</text>
  395. </view>
  396. <view class="price-3 " oldstyle="font-size: 48rpx;" v-if="item.giveDiscount">
  397. <text class="num1">会员</text>
  398. <text
  399. class="num">{{ (item.electricityPrice+item.discountServicePrice).toFixed(2)}}</text>
  400. <text class="unit ">元/度</text>
  401. </view>
  402. </view>
  403. <view class="free">
  404. <view class="fast" v-if="item.fastNum">
  405. <view class="fast-font">
  406. </view>
  407. <view class="num">
  408. {{item.fastAvailableNum}}
  409. </view>
  410. <view class="num1">
  411. /{{item.fastNum}}
  412. </view>
  413. </view>
  414. <view class="slow" v-if="item.slowNum">
  415. <view class="slow-font">
  416. </view>
  417. <view class="num">
  418. {{item.slowAvailableNum}}
  419. </view>
  420. <view class="num1">
  421. /{{item.slowNum}}
  422. </view>
  423. </view>
  424. </view>
  425. </view>
  426. </view>
  427. </view>
  428. </swiper-item>
  429. </swiper>
  430. </view>
  431. </view>
  432. <Tabbar :spring="indexStyle.spring" :current="2" ref="tabbarMain" ></Tabbar>
  433. </view>
  434. </template>
  435. <script>
  436. import * as indexAPI from '@/apis/index.js'
  437. import * as api from '@/apis/site.js';
  438. import Tabbar from '@/components/Tabbar.vue';
  439. import Chargermap from '@/components/Chargermap.vue';
  440. import jpDropdown from '@/components/Udropdown.vue';
  441. import uniCombox from '@/components/uni-combox/components/uni-combox/uni-combox.vue'
  442. import * as WxJsApi from '@/utils/wxJsApi.js'
  443. import {
  444. newDate,parseUnixTime
  445. } from '@/utils'
  446. export default {
  447. components: {
  448. Chargermap,
  449. Tabbar,
  450. uniCombox,
  451. jpDropdown
  452. },
  453. data() {
  454. return {
  455. tagBtnAcList:[],
  456. personInfo: {},
  457. loading: false,
  458. viewMode: false, //列表
  459. inputStyle: {
  460. backgroundColor: 'transparent',
  461. "font-size": '32rpx',
  462. },
  463. defaultStation: [],
  464. cities: ['荆州市'],
  465. radiuses: ['1公里', '2公里', '5公里', '10公里', '20公里', '50公里', '100公里', '200公里', '500公里'],
  466. types: ['全部', '直流快充', '交流慢充'],
  467. stationTypes: ['全部', '公共充电桩', '个人充电桩'],
  468. info: {
  469. miles_type: [
  470. {
  471. value: '',
  472. text: '全部'
  473. },{
  474. distance: 1,
  475. text: '1公里'
  476. },
  477. {
  478. distance: 2,
  479. text: '2公里'
  480. },
  481. {
  482. distance: 5,
  483. text: '5公里'
  484. },
  485. {
  486. distance: 10,
  487. text: '10公里'
  488. },
  489. {
  490. distance: 20,
  491. text: '20公里'
  492. },
  493. {
  494. distance: 50,
  495. text: '50公里'
  496. },
  497. {
  498. distance: 100,
  499. text: '100公里'
  500. },
  501. {
  502. distance: 200,
  503. text: '200公里'
  504. },
  505. {
  506. distance: 500,
  507. text: '500公里'
  508. }
  509. ],
  510. obc_type: [{
  511. value: '',
  512. text: '全部'
  513. }, {
  514. value: 1,
  515. text: '直流快充'
  516. }, {
  517. value: 2,
  518. text: '交流慢充'
  519. }],
  520. obc_status: [{
  521. value: 0,
  522. text: '全部'
  523. }, {
  524. value: 1,
  525. text: '特价站'
  526. }],
  527. obc_voltage: [{
  528. value: 0,
  529. text: '低于700V'
  530. }, {
  531. value: 1,
  532. text: '700V及以上'
  533. }],
  534. obc_power: {
  535. minValue: 0,
  536. maxValue: 1000
  537. },
  538. obc_stationType: [{
  539. value: '',
  540. text: '全部'
  541. }, {
  542. value: -1,
  543. text: '自营站'
  544. }, {
  545. value: 1,
  546. text: '合作站'
  547. }, {
  548. value: 50,
  549. text: '个人桩'
  550. }]
  551. },
  552. preference: {
  553. miles_index: 4,
  554. obc_stationType_index: 0,
  555. obc_type_index: 0,
  556. obc_status_index: 0,
  557. obc_voltage_index: 0,
  558. save_preference: false,
  559. obc_power: {
  560. minValue: 0,
  561. maxValue: 500
  562. }
  563. },
  564. area: '荆州市',
  565. radius: '10公里',
  566. type: '全部',
  567. stationType: '全部',
  568. longitude: '',
  569. latitude: '',
  570. message: '',
  571. stationslist: [],
  572. stationsmap: [],
  573. pointTimeOut: true,
  574. dropdownShow: false,
  575. currentIndex: 0,
  576. carImg3span1:0,
  577. carImg3span2:0,
  578. tagspan1:true,
  579. tagspan2:false,
  580. tagspan3:false,
  581. indexStyle: {
  582. noticeBarBgColor: "#fff",
  583. noticeBarColor: "#FF3D00",
  584. backgroundClass: "background",
  585. spring: false,
  586. },
  587. opmap:0,
  588. }
  589. },
  590. onUnload() {
  591. //this.timeOut = false;
  592. this.pointTimeOut = false;
  593. },
  594. onHide() {
  595. //this.timeOut = false;
  596. this.pointTimeOut = false;
  597. },
  598. onShow() {
  599. if (this.$refs.tabbarMain) {
  600. this.$refs.tabbarMain.setcount(2);
  601. }
  602. if (!this.pointTimeOut) {
  603. this.pointTimeOut = true
  604. this.getPointTimeOut();
  605. }
  606. this.$nextTick(() => {
  607. this.type = this.info.obc_type[this.preference.obc_type_index].text;
  608. this.radius = this.info.miles_type[this.preference.miles_index].text;
  609. this.stationType = this.info.obc_stationType[this.preference.obc_stationType_index].text;
  610. if (this.viewMode) {
  611. this.$refs.amap.init();
  612. this.searchStationData()
  613. }
  614. })
  615. },
  616. onLoad(op) {
  617. this.spring()
  618. if(op.map){
  619. this.opmap=op.map
  620. }
  621. },
  622. onReady() {
  623. WxJsApi.getWxConfig(['getLocation', 'addEventListener', 'scanQRCode']).then((res) => {
  624. // //(res)
  625. }).catch(error => {
  626. //(res)
  627. })
  628. if (this.carhelp.getPersonInfo()) {
  629. // this.userId = this.carhelp.getPersonInfo().id;
  630. this.personInfo = this.carhelp.getPersonInfo();
  631. }
  632. this.getPointTimeOut();
  633. this.getChargeList()
  634. },
  635. computed: {
  636. prevMonthKwhBL(){
  637. if(this.carImg3span1>=1000){
  638. return false
  639. }
  640. return true
  641. },
  642. },
  643. methods: {
  644. gotoStationDetails(stationData){
  645. if(stationData.stationType==50&&stationData.fastNum==0&&stationData.slowNum==1){
  646. this.gotoUrl('pages/searchPile/stationAndPile/chargingPileDetails?isback=1&sid=' + stationData.id)
  647. }else{
  648. this.gotoUrl('pages/searchPile/stationAndPile/stationDetails?id=' + stationData.id)
  649. }
  650. },
  651. spring() {
  652. this.springShow=false;
  653. try{
  654. if(this.carhelp.getConfig().spring2025){
  655. var spring2025=this.carhelp.getConfig().spring2025
  656. var sz=spring2025.split(',')
  657. if(sz&&sz.length==2){
  658. var time1=new Date(sz[0])
  659. var time2=new Date(sz[1])
  660. var time0=new Date()
  661. if(time0>time1&&time0<time2){
  662. this.springShow=true;
  663. }
  664. }
  665. }
  666. this.$forceUpdate()
  667. }catch(e){
  668. }
  669. if(!this.springShow){
  670. return
  671. }
  672. this.indexStyle.noticeBarBgColor = "#C00000"
  673. this.indexStyle.noticeBarColor = "#FFD695"
  674. this.indexStyle.backgroundClass = "background-spring"
  675. this.indexStyle.spring = true;
  676. },
  677. tagspan1Btn(){
  678. this.tagspan1=!this.tagspan1
  679. if(this.tagspan1){
  680. this.preference.miles_index=4
  681. }else{
  682. this.preference.miles_index=0
  683. }
  684. this.close(1);
  685. },
  686. tagspan2Btn(){
  687. this.tagspan2=!this.tagspan2
  688. if(this.tagspan2){
  689. this.preference.obc_type_index=1
  690. }else{
  691. this.preference.obc_type_index=0
  692. }
  693. this.close(1);
  694. },
  695. tagspan3Btn(){
  696. this.tagspan3=!this.tagspan3
  697. if(this.tagspan3){
  698. }else{
  699. }
  700. this.close(1);
  701. },
  702. getChargeList(){
  703. var obj=this.carhelp.get("carhelp_getChargeList")
  704. var time=new Date( ).toLocaleString().substr(0,12).replace("T"," ");
  705. if(obj&&time==obj.time){
  706. this.carImg3span1=parseInt(obj.electricQuantity);
  707. this.carImg3span2=parseInt(obj.totalServiceMoney) ;
  708. console.log("carhelp_getChargeList",this.carImg3span1,this.carImg3span2)
  709. if(this.opmap){
  710. this.mapMode()
  711. }
  712. return
  713. }
  714. var date =new Date().getTime()-30*1000*60*60*24;
  715. var startDate =parseUnixTime(new Date(date),'{y}-{m}-{d}');
  716. if (this.carhelp.getPersonInfo()) {
  717. indexAPI.chargingRecordData({
  718. pageIndex: 1,
  719. pageSize:999,
  720. startDate: startDate,
  721. // endDate: this.endDate
  722. }).then((res) => {
  723. var chargeList =res.data.data;
  724. var num1=0;
  725. var num2=0;
  726. for(var i in chargeList){
  727. var obj=chargeList[i]
  728. if(obj.status==2){
  729. num1+=obj.electricQuantity
  730. num2+=obj.totalServiceMoney
  731. }
  732. }
  733. console.log(num1,num2)
  734. this.carImg3span1=parseInt(num1);
  735. this.carImg3span2=parseInt(num2) ;
  736. this.carhelp.set("carhelp_getChargeList",{
  737. time: time,
  738. electricQuantity:num1,
  739. totalServiceMoney:num2
  740. })
  741. if(this.opmap){
  742. this.mapMode()
  743. }
  744. // if(num2*0.4>20){
  745. // this.carImg3Bl=true;
  746. // }else{
  747. // this.carImg4Bl=true;
  748. // }
  749. }).catch(error => {
  750. uni.showToast({
  751. title: error,
  752. icon: "none"
  753. })
  754. })
  755. }
  756. },
  757. navigate() {
  758. //('naviage to ')
  759. uni.navigateTo({
  760. url: '/pages/search/search'
  761. })
  762. },
  763. isEnabled() {
  764. if (this.viewMode) {
  765. if (this.show)
  766. return false;
  767. }
  768. return true;
  769. },
  770. stationDetail(item) {
  771. if (!this.isEnabled()) {
  772. return;
  773. }
  774. this.gotoStationDetails(item)
  775. // uni.navigateTo({
  776. // url: '/pages/searchPile/stationAndPile/stationDetails?id=' + item.id
  777. // })
  778. },
  779. setCenter() {
  780. //('getPoint')
  781. WxJsApi.getLocation().then((res) => {
  782. this.latitude = parseFloat(res.latitude);
  783. this.longitude = parseFloat(res.longitude);
  784. //let data = {position:{latitude:latitude,longitude:longitude}};
  785. let posCenter = {
  786. longitude: this.longitude,
  787. latitude: this.latitude
  788. };
  789. this.$refs.amap.setCenter(posCenter);
  790. this.searchStationData();
  791. }).catch(error => {
  792. uni.showToast({
  793. title: JSON.stringify(error)
  794. })
  795. })
  796. // //('setCenter')
  797. },
  798. updateType2(e) {
  799. this.preference.obc_stationType_index = e.value;
  800. this.close();
  801. },
  802. swiperTransitionEnd(e) {
  803. },
  804. swiperTransition(e) {
  805. //
  806. },
  807. updateType(e) {
  808. this.preference.obc_type_index = e.value;
  809. this.close();
  810. },
  811. updateRadius(e) {
  812. this.preference.miles_index = e.value;
  813. this.close();
  814. },
  815. selectOBSType(index) {
  816. this.preference.obc_type_index = index;
  817. },
  818. selectOBSType2(index) {
  819. this.preference.obc_stationType_index = index;
  820. },
  821. selectOBSStatus(index) {
  822. this.preference.obc_status_index = index;
  823. },
  824. selectOBCVoltage(index) {
  825. this.preference.obc_voltage_index = index;
  826. },
  827. selectMiles(index) {
  828. this.preference.miles_index = index;
  829. },
  830. swiperChange(e) {
  831. if (!this.viewMode) {
  832. return
  833. }
  834. this.currentIndex = e.detail.current
  835. let station = this.stationsmap[this.currentIndex];
  836. let posCenter = {
  837. longitude: station.longitude,
  838. latitude: station.latitude
  839. };
  840. // //('currentIndex'+JSON.stringify(this.currentIndex))
  841. // //('currentIndex'+JSON.stringify(posCenter))
  842. // //('station'+JSON.stringify(station))
  843. let bounds = this.$refs.amap.logMapInfo();
  844. /*if( (posCenter.latitude<bounds.bounds.northeast.lat && posCenter.latitude>bounds.bounds.sourthwest.lat)
  845. && (posCenter.longitude<bounds.bounds.northeast.lng && posCenter.longitude>bounds.bounds.sourthwest.lng)
  846. ){
  847. //('bounds'+JSON.stringify(bounds));
  848. }else{
  849. this.$refs.amap.setCenter(posCenter);
  850. }*/
  851. this.$refs.amap.updateCharger(station);
  852. this.$refs.amap.setCenter(posCenter);
  853. },
  854. listMode() {
  855. //this.close_all();
  856. this.viewMode = false
  857. },
  858. mapMode() {
  859. //this.$refs.amap.setChargerList(this.stationslist);
  860. this.$refs.amap.init();
  861. console.log(1)
  862. //this.currentIndex = 0;
  863. //this.close_all();
  864. this.searchStationData()
  865. this.viewMode = true
  866. },
  867. reset() {
  868. this.tagspan1=true;
  869. this.tagspan2=false;
  870. this.tagspan3=false;
  871. this.preference.obc_status_index = 0;
  872. this.preference.obc_voltage_index = 0;
  873. this.preference.obc_stationType_index = 0;
  874. this.preference.obc_type_index = 0;
  875. this.preference.miles_index = 4;
  876. this.preference.save_preference = false;
  877. // this.$refs.obc_voltage.currentValue = [0,100];
  878. this.preference.obc_power.minValue = 0;
  879. this.preference.obc_power.maxValue = 500;
  880. this.preference.obc_power.minP = Math.floor((this.preference.obc_power.minValue / (this.info.obc_power
  881. .maxValue - this.info.obc_power.minValue)) * 100);
  882. this.preference.obc_power.maxP = Math.floor((this.preference.obc_power.maxValue / (this.info.obc_power
  883. .maxValue - this.info.obc_power.minValue)) * 100);
  884. // //('minP'+this.preference.obc_power.minP)
  885. // //('maxP'+this.preference.obc_power.maxP)
  886. //this.$refs.obc_voltage.reset(this.preference.obc_power);
  887. // this.$refs.obc_voltage.currentMaxValue = this.preference.obc_power[1];
  888. // //('reset')
  889. },
  890. close(bl) {
  891. if(bl){
  892. this.tagspan1=(this.preference.miles_index==4)
  893. this.tagspan2=(this.preference.obc_type_index==1)
  894. }else{
  895. this.updateTypeSelector('')
  896. }
  897. this.type = this.info.obc_type[this.preference.obc_type_index].text;
  898. this.radius = this.info.miles_type[this.preference.miles_index].text;
  899. this.stationType = this.info.obc_stationType[this.preference.obc_stationType_index].text;
  900. if (this.preference.save_preference) {
  901. this.carhelp.set('preference', this.preference)
  902. }
  903. this.$refs.uDropdown.close();
  904. this.searchStationData();
  905. },
  906. clickMap(obj) {
  907. //this.show = false;
  908. if (obj == null || obj.type == null) return;
  909. if (obj.type == 'charger') {
  910. if (obj.obj != null) {
  911. let index = this.stationsmap.findIndex(item => item.id == obj.obj.id);
  912. this.currentIndex = index;
  913. //('find Index'+index);
  914. }
  915. }
  916. },
  917. getPoint() {
  918. if (this.stationslist.length != 0) {
  919. return
  920. }
  921. WxJsApi.getLocation().then((res) => {
  922. this.latitude = parseFloat(res.latitude);
  923. this.longitude = parseFloat(res.longitude);
  924. this.message = res.errMsg;
  925. if (res.errMsg != 'getLocation:ok') {
  926. uni.showToast({
  927. title: res
  928. })
  929. } else {
  930. uni.showToast({
  931. title: "定位中..."
  932. })
  933. this.searchStationData()
  934. }
  935. }).catch(error => {
  936. uni.showToast({
  937. title: error,
  938. icon: "none"
  939. })
  940. })
  941. },
  942. searchStationData(obj) {
  943. this.tagBtnAcList=[]
  944. let data1 = {
  945. latitude: this.latitude,
  946. longitude: this.longitude,
  947. findType: "1",
  948. pageIndex: 1,
  949. pageSize: 999
  950. };
  951. if (obj) {
  952. data1 = {
  953. ...data1,
  954. ...obj
  955. }
  956. }
  957. data1.type = this.info.obc_type[this.preference.obc_type_index].value;
  958. if (this.info.miles_type[this.preference.miles_index].distance != null){
  959. data1.radius = this.info.miles_type[this.preference.miles_index].distance.toString();
  960. this.tagBtnAcList.push(data1.radius+"公里")
  961. }
  962. if(data1.type){
  963. this.tagBtnAcList.push(this.info.obc_type[this.preference.obc_type_index].text)
  964. }
  965. if(this.tagspan3||this.preference.obc_status_index){
  966. data1.special=1
  967. this.tagBtnAcList.push("特价站")
  968. }
  969. if (this.preference.obc_stationType_index != null) {
  970. var stationType = this.info.obc_stationType[this.preference.obc_stationType_index].value
  971. if (stationType == -1) {
  972. data1.platformType = "1"
  973. } else {
  974. data1.stationType = stationType
  975. }
  976. if(stationType){
  977. this.tagBtnAcList.push(this.info.obc_stationType[this.preference.obc_stationType_index].text)
  978. }
  979. }
  980. //this.currentIndex = -1;
  981. //data1.findType = this.viewMode?"0":"1";
  982. uni.showLoading({})
  983. if (this.carhelp.getPersonInfo()) {
  984. data1.openId = this.carhelp.getOpenId()
  985. }
  986. this.loading = false
  987. api.getChargingStationData(data1).then(res => {
  988. uni.hideLoading()
  989. this.loading = true
  990. this.recordsTotal = res.data.recordsTotal;
  991. var stationslist = res.data.data
  992. if (this.viewMode) {
  993. this.stationsmap = stationslist;
  994. this.$refs.amap.setChargerList(stationslist);
  995. // this.$refs.amap.init();
  996. if (this.currentIndex == -1 || this.currentIndex > stationslist.length) {
  997. this.currentIndex = 0
  998. }
  999. if (stationslist.length) {
  1000. this.$refs.amap.updateCharger(stationslist[this.currentIndex]);
  1001. }
  1002. let posCenter = {
  1003. longitude: this.longitude,
  1004. latitude: this.latitude
  1005. };
  1006. this.$refs.amap.setCenter(posCenter);
  1007. this.$refs.amap.calcDistances([this.longitude, this.latitude], this.stationslist)
  1008. // this.$refs.amap.calcDistances([this.longitude, this.latitude], this.stationslist)
  1009. } else {
  1010. this.stationslist = stationslist;
  1011. }
  1012. if (this.stationslist.length == 0) {
  1013. this.getChargingStationDetail()
  1014. }
  1015. }).catch(error => {
  1016. uni.showToast({
  1017. title: error,
  1018. icon: "none"
  1019. })
  1020. })
  1021. },
  1022. getChargingStationDetail() {
  1023. var defaultStation = process.car.defaultStation
  1024. for (var item in defaultStation) {
  1025. api.getChargingStationDetail({
  1026. stationId: defaultStation[item]
  1027. }).then((res) => {
  1028. var station = res.data.station
  1029. //this.MapLoaderthen(station)
  1030. this.defaultStation=[]
  1031. this.defaultStation.push(station)
  1032. }).catch(error => {
  1033. uni.showToast({
  1034. title: error,
  1035. icon: "none"
  1036. })
  1037. })
  1038. }
  1039. },
  1040. getPointTimeOut() {
  1041. setTimeout(() => {
  1042. if (this.pointTimeOut) {
  1043. this.getPoint();
  1044. }
  1045. }, 1000)
  1046. },
  1047. closeDropdown() {
  1048. this.$refs.uDropdown.close();
  1049. },
  1050. close_all() {
  1051. //this.updateTypeSelector('')
  1052. },
  1053. updateTypeSelector(val) {
  1054. var sz = ["radius", "type", 'city']
  1055. for (var i in sz) {
  1056. if (i == val && val != '') {
  1057. } else {
  1058. this.$refs[sz[i]].closeSelector();
  1059. }
  1060. }
  1061. //this.show = false;
  1062. },
  1063. mapdown() {
  1064. //this.isReady = true;
  1065. //this.$refs.amap.getLocation ();
  1066. //let state = {};
  1067. uni.getSystemInfo({
  1068. success: (res) => {
  1069. let scrollH = res.windowHeight; // - uni.upx2px(88) - navbarH
  1070. let scrollW = res.windowWidth;
  1071. this.$refs.amap.setMyStyle("height:" + (scrollH - 88 - 50) + "px;width:" + scrollW +
  1072. "px;");
  1073. }
  1074. })
  1075. },
  1076. moveEnd(e) {
  1077. //('moveEnd')
  1078. this.close_all();
  1079. let posCenter = this.$refs.amap.logMapInfo();
  1080. ////('posCenter'+JSON.stringify(posCenter))
  1081. if (this.latitude == e.center.lat && this.longitude == e.center.lng) {
  1082. return
  1083. }
  1084. this.latitude = e.center.lat
  1085. this.longitude = e.center.lng
  1086. this.searchStationData();
  1087. },
  1088. moveStart(e) {
  1089. //this.close_all();
  1090. },
  1091. onClicked(e) {
  1092. this.close_all();
  1093. ////('onClicked e'+JSON.stringify(e))
  1094. },
  1095. }
  1096. }
  1097. </script>
  1098. <style lang="scss" scoped>
  1099. @import "@/_theme.scss";
  1100. .tagListSelect{
  1101. display: flex;
  1102. padding: 0 24rpx;
  1103. .tagBtn{
  1104. border-radius: 4px;
  1105. background-color: #f2f2f2;
  1106. color: rgba(51, 51, 51, 1);
  1107. font-size: 28rpx;
  1108. text-align: center;
  1109. margin: 0 8rpx;
  1110. padding: 2px 16rpx;
  1111. }
  1112. .tagBtnAc{
  1113. background-color: rgba(225, 249, 237, 1);
  1114. color: rgba(0, 185, 98, 1);
  1115. }
  1116. }
  1117. .locationBtn {
  1118. width: 30px;
  1119. height: 30px;
  1120. position: absolute;
  1121. z-index: 1023;
  1122. right: 40rpx;
  1123. bottom: 520rpx;
  1124. background: white;
  1125. display: flex;
  1126. align-items: center;
  1127. justify-content: center;
  1128. border: 1px solid;
  1129. border-radius: 8px;
  1130. }
  1131. .ujp-navbar-main {
  1132. display: flex;
  1133. flex-direction: column;
  1134. width: 100%;
  1135. height: 100%;
  1136. .ujp-navbar-main1 {
  1137. display: flex;
  1138. flex-direction: row;
  1139. height: 100%;
  1140. align-items: center;
  1141. margin-top: 0rpx;
  1142. padding-top: 0rpx;
  1143. padding-bottom: 10rpx;
  1144. }
  1145. .ujp-navbar-main2 {
  1146. display: flex;
  1147. flex-direction: row;
  1148. width: 100%;
  1149. justify-content: space-between;
  1150. align-items: center;
  1151. }
  1152. }
  1153. .preference_group_item {
  1154. padding: 15rpx;
  1155. }
  1156. .preference_group {
  1157. padding-bottom: 20rpx;
  1158. }
  1159. .preference {
  1160. background-color: #ffffff;
  1161. left: 0rpx;
  1162. // position: absolute
  1163. }
  1164. .preference_item {
  1165. margin-bottom: 10rpx;
  1166. margin-left: 20rpx;
  1167. text-align: center;
  1168. border-style: none;
  1169. width: 20%;
  1170. //height: 56rpx;
  1171. /* line-height: 14px;*/
  1172. }
  1173. .content-s {
  1174. height: 640rpx;
  1175. overflow-y: scroll;
  1176. text-align: left;
  1177. }
  1178. .preference_item_medium {
  1179. margin-bottom: 10rpx;
  1180. margin-left: 20rpx;
  1181. text-align: center;
  1182. border-style: none;
  1183. min-width: 22%;
  1184. //height: 56rpx;
  1185. @include themeify {
  1186. font-size: themed('font-size2');
  1187. line-height: themed('font-size2');
  1188. }
  1189. /* line-height: 14px;*/
  1190. }
  1191. .preference_item_plus {
  1192. margin-bottom: 10rpx;
  1193. margin-left: 20rpx;
  1194. align-items: center;
  1195. justify-content: center;
  1196. text-align: center;
  1197. width: 28%;
  1198. border-style: none;
  1199. //height: 56rpx;
  1200. @include themeify {
  1201. font-size: themed('font-size2');
  1202. line-height: themed('font-size2');
  1203. }
  1204. /* line-height: 14px;*/
  1205. }
  1206. .preference_label {
  1207. @include themeify {
  1208. color: themed('font_colorLabel');
  1209. font-size: themed('font-size1');
  1210. font-weight: themed('fontWeight');
  1211. }
  1212. margin-left: 20rpx;
  1213. margin-bottom: 100rpx;
  1214. }
  1215. .pre-btn {
  1216. width: 100%;
  1217. height: 96rpx;
  1218. z-index: 999;
  1219. }
  1220. .btn-1,
  1221. .btn-2 {
  1222. height: 96rpx;
  1223. line-height: 96rpx;
  1224. text-align: center;
  1225. border-top: 1px solid rgba(225, 228, 232, 100);
  1226. }
  1227. .station,
  1228. .location,
  1229. .state1 {
  1230. box-shadow: 0px 4rpx 12rpx 0px #008c4a33;
  1231. }
  1232. //定位
  1233. .location {
  1234. width: 91.4%;
  1235. background-color: #ffffff;
  1236. height: 120px;
  1237. display: flex;
  1238. justify-content: space-between;
  1239. margin: 20px auto 0;
  1240. border-radius: 8px;
  1241. border: #F2F4F4 1px;
  1242. .location-text {
  1243. padding: 24px 0 0 28px;
  1244. .text-1 {
  1245. height: 16px;
  1246. line-height: 16px;
  1247. color: rgba(16, 16, 16, 100);
  1248. font-size: 16px;
  1249. text-align: left;
  1250. }
  1251. .text-2 {
  1252. height: 17px;
  1253. line-height: 17px;
  1254. color: rgba(102, 102, 102, 100);
  1255. font-size: 12px;
  1256. text-align: left;
  1257. margin-top: 4px;
  1258. white-space: nowrap; //强制不换行
  1259. text-overflow: ellipsis; //文本超出出现省略号
  1260. overflow: hidden;
  1261. }
  1262. .text-view {
  1263. display: flex;
  1264. }
  1265. .text-3 {
  1266. width: 80px;
  1267. height: 24px;
  1268. line-height: 22px;
  1269. border-radius: 50px;
  1270. color: rgba(0, 185, 98, 100);
  1271. font-size: 12px;
  1272. text-align: center;
  1273. border: 1px solid rgba(0, 185, 98, 100);
  1274. margin-top: 11px;
  1275. }
  1276. .text-4 {
  1277. margin-left: 10px;
  1278. color: #ff9900;
  1279. border: 1px solid #ff9900;
  1280. }
  1281. }
  1282. .img-box {
  1283. width: 120px;
  1284. height: 120px;
  1285. margin-right: 20px;
  1286. img {
  1287. width: 100%;
  1288. height: 100%;
  1289. }
  1290. }
  1291. }
  1292. .carNone {
  1293. display: flex;
  1294. flex-direction: column;
  1295. justify-content: center;
  1296. align-items: center;
  1297. img {
  1298. width: 100%;
  1299. height: 100%;
  1300. }
  1301. p {
  1302. margin-top: -60px;
  1303. }
  1304. }
  1305. .charing-slow-2 {
  1306. margin: 0 0 20rpx 0 !important;
  1307. // border-bottom: 1px solid rgba(238, 242, 240, 100);
  1308. }
  1309. .charing-slow {
  1310. //box-shadow: 0px 4rpx 12rpx 0px #008c4a33;
  1311. background-color: #fff;
  1312. margin: 26rpx;
  1313. border-radius: 16rpx;
  1314. padding: 24rpx;
  1315. position: relative;
  1316. left: 0;
  1317. right: 0;
  1318. }
  1319. .min-h {
  1320. min-height: 65px;
  1321. }
  1322. .sign {
  1323. display: flex;
  1324. flex-wrap: wrap;
  1325. margin-top: 10px;
  1326. .sign-tag {
  1327. height: 36rpx;
  1328. line-height: 32rpx;
  1329. border-radius: 8rpx;
  1330. //background-color: rgba(255, 255, 255, 100);
  1331. //color: rgba(255, 139, 0, 100);
  1332. font-size: 10px;
  1333. text-align: center;
  1334. //border: 1px solid rgba(255, 139, 0, 100);
  1335. padding: 0 8rpx;
  1336. margin-right: 8rpx;
  1337. margin-bottom: 8rpx;
  1338. }
  1339. .sign-0 {
  1340. background: linear-gradient(89.4deg, rgba(129, 97, 255, 1) 2.8%, rgba(169, 147, 255, 1) 98.02%);
  1341. color: rgba(255, 255, 255, 1);
  1342. //padding: 0 10rpx;
  1343. //border: 1px solid rgba(255, 139, 0, 100);
  1344. }
  1345. .sign-5 {
  1346. background: linear-gradient(89.4deg, rgba(255, 61, 0, 1) 2.8%, rgba(255, 134, 0, 1) 98.02%);
  1347. color: rgba(255, 255, 255, 1);
  1348. //padding: 0 10rpx;
  1349. }
  1350. .sign-1 {
  1351. background-color: rgba(255, 255, 255, 100);
  1352. color: rgba(255, 139, 0, 100);
  1353. border: 1px solid rgba(255, 139, 0, 100);
  1354. }
  1355. .sign-2 {
  1356. background-color: rgba(255, 255, 255, 100);
  1357. color: rgba(153, 153, 153, 100);
  1358. border: 1px solid rgba(204, 204, 204, 100);
  1359. }
  1360. .sign-3 {
  1361. background-color: rgba(255, 255, 255, 100);
  1362. color: #8161FF;
  1363. border: 1px solid #8161FF;
  1364. }
  1365. .sign-4 {
  1366. background-color: rgba(255, 255, 255, 100);
  1367. color: #00B962;
  1368. border: 1px solid #00B962;
  1369. }
  1370. }
  1371. .address {
  1372. width: 100%;
  1373. line-height: 20px;
  1374. display: flex;
  1375. justify-content: space-between;
  1376. .name {
  1377. font-size: 36rpx;
  1378. white-space: nowrap;
  1379. overflow: hidden;
  1380. text-overflow: ellipsis;
  1381. }
  1382. @include themeify {
  1383. font-size: themed('font-size5');
  1384. line-height: themed('font-size7');
  1385. }
  1386. /* font-size: 11px;*/
  1387. font-weight: 600;
  1388. color: #101010;
  1389. }
  1390. .price-free {
  1391. width: 100%;
  1392. display: flex;
  1393. align-items: center;
  1394. justify-content: space-between;
  1395. }
  1396. .distance {
  1397. color: rgba(102, 102, 102, 100);
  1398. text-align: end;
  1399. font-size: 30rpx;
  1400. width: 180rpx;
  1401. min-width: 180rpx;
  1402. .iconfont {
  1403. font-size: 12px;
  1404. margin-right: 2px;
  1405. }
  1406. }
  1407. .price {
  1408. display: flex;
  1409. align-items: center;
  1410. .price-1 {
  1411. line-height: 40rpx;
  1412. .num {
  1413. //color: rgba(255, 98, 0, 100);
  1414. color: rgba(16, 16, 16, 1);
  1415. font-size: 40rpx;
  1416. //height: 44rpx;
  1417. font-weight: bold;
  1418. text-align: left;
  1419. font-family: Roboto-medium;
  1420. }
  1421. .unit {
  1422. // font-size: 12px;
  1423. color: rgba(119, 119, 119, 1);
  1424. font-size: 28rpx;
  1425. text-align: left;
  1426. font-family: AlibabaPuHui-regular;
  1427. margin-left: 8rpx;
  1428. }
  1429. }
  1430. .price-2 {
  1431. color: rgba(153, 153, 153, 100);
  1432. margin-left: 6rpx;
  1433. text-decoration: line-through;
  1434. font-size: 24rpx
  1435. }
  1436. .price-3{
  1437. display: flex;
  1438. background: linear-gradient(93.02deg, rgba(59,182,254,1) 39.4%,rgba(0,185,98,1) 92.96%);
  1439. border-radius: 4px;
  1440. height: 16px;
  1441. min-height: 16px;
  1442. margin-left: 32rpx;
  1443. // align-items: center;
  1444. line-height: 16px;
  1445. .num1{
  1446. img{
  1447. // width: 88rpx;
  1448. //width: 34px;
  1449. height: 16px;
  1450. }
  1451. ::v-deep .u-image{
  1452. min-height: 16px;
  1453. }
  1454. }
  1455. .num{
  1456. padding: 0 12rpx 0 8rpx;
  1457. color: rgba(255, 255, 255, 1);
  1458. font-size: 11px;
  1459. display: flex;
  1460. align-items: center;
  1461. }
  1462. }
  1463. .price-3-yue{
  1464. background: linear-gradient(88.81deg, rgba(219,199,167,1) 1.89%,rgba(194,154,93,1) 98%);
  1465. }
  1466. }
  1467. .free {
  1468. display: flex;
  1469. align-items: center;
  1470. .slow,
  1471. .fast {
  1472. display: flex;
  1473. .sp-font {
  1474. width: 40rpx;
  1475. height: 40rpx;
  1476. line-height: 40rpx;
  1477. border-radius: 4px;
  1478. background-color: #7a68f6;
  1479. color: #fff;
  1480. font-size: 28rpx;
  1481. text-align: center;
  1482. margin-right: 2rpx;
  1483. }
  1484. .fast-font {
  1485. width: 40rpx;
  1486. height: 40rpx;
  1487. line-height: 40rpx;
  1488. border-radius: 4px;
  1489. //background-color: rgba(186, 240, 215, 100);
  1490. background-color: #1677FF;
  1491. color: rgba(255, 255, 255, 1);
  1492. //color: rgba(0, 130, 69, 100);
  1493. font-size: 28rpx;
  1494. text-align: center;
  1495. margin-right: 2rpx;
  1496. }
  1497. .slow-font {
  1498. width: 40rpx;
  1499. height: 40rpx;
  1500. line-height: 40rpx;
  1501. border-radius: 4px;
  1502. // background-color: rgba(226, 226, 226, 100);
  1503. // color: rgba(128, 128, 128, 100);
  1504. background-color: #00B962;
  1505. color: rgba(255, 255, 255, 1);
  1506. font-size: 28rpx;
  1507. text-align: center;
  1508. margin-right: 2rpx;
  1509. }
  1510. .num {
  1511. font-size: 32rpx;
  1512. color: #666;
  1513. line-height: 40rpx;
  1514. }
  1515. .num1 {
  1516. font-size: 32rpx;
  1517. color: #bbb;
  1518. line-height: 40rpx;
  1519. }
  1520. }
  1521. .slow {
  1522. margin-left: 16rpx;
  1523. }
  1524. }
  1525. .chargerCard {
  1526. z-index: 999;
  1527. background-color: #fff;
  1528. margin: 0 24rpx;
  1529. border-radius: 16rpx;
  1530. // overflow: hidden;
  1531. bottom: 68px;
  1532. left: 0;
  1533. right: 0;
  1534. position: fixed;
  1535. // height: 380rpx;
  1536. // @include themeify{
  1537. // height:themed('cardHeight');
  1538. // }
  1539. }
  1540. .charing-new {
  1541. display: flex;
  1542. .new-img {
  1543. .img1 {
  1544. width: 120rpx;
  1545. height: 120rpx;
  1546. border-radius: 4px;
  1547. }
  1548. .img2Class{
  1549. top: -134rpx;
  1550. left: -16rpx;
  1551. position: relative;
  1552. border-radius: 4px 4px 4px 0px;
  1553. color: #fff;
  1554. padding: 2px 6px;
  1555. font-size: 10px;
  1556. line-height: 10px;
  1557. height: 1px;
  1558. background-blend-mode: soft-light;
  1559. .img2 {
  1560. width: 56rpx;
  1561. height: 32rpx;
  1562. min-width: 28px;
  1563. min-height: 16px;
  1564. //border-radius: 4px;
  1565. }
  1566. }
  1567. }
  1568. .new-body {
  1569. width: 75%;
  1570. margin-left: 24rpx;
  1571. //max-min-width: 65%;
  1572. .sign {
  1573. margin-top: 12rpx;
  1574. }
  1575. }
  1576. }
  1577. ::v-deep .springclass{
  1578. .u-tabbar__content__item{
  1579. .u-icon__img {
  1580. width:56rpx !important;
  1581. height:56rpx !important
  1582. }
  1583. }
  1584. .u-tabbar__content__item:nth-child(3){
  1585. .u-icon__img {
  1586. width:72rpx !important;
  1587. height:72rpx !important
  1588. }
  1589. }
  1590. }
  1591. </style>