searchPile.vue 47 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811
  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" :key="tagIndex">{{tagName}}</view>
  241. <template v-if="item.stationType==50">
  242. {{item.address}}
  243. </template>
  244. </view>
  245. <view class="price-free price-freeList" style="margin-top: 16rpx;">
  246. <view class="free">
  247. <view class="fast" v-if="item.fastNum">
  248. <view class="fast-font">
  249. </view>
  250. <view class="num">
  251. {{item.fastAvailableNum}}
  252. </view>
  253. <view class="num1">
  254. /{{item.fastNum}}
  255. </view>
  256. </view>
  257. <view class="slow" v-if="item.slowNum">
  258. <view class="slow-font">
  259. </view>
  260. <view class="num">
  261. {{item.slowAvailableNum}}
  262. </view>
  263. <view class="num1">
  264. /{{item.slowNum}}
  265. </view>
  266. </view>
  267. </view>
  268. <template v-if="stationslist.length!=0">
  269. <view class="distance " v-if="item.distance != '99999999'">
  270. <text class="iconfont" style="color:#666666">&#xe615;</text>
  271. {{item.distance!=null && item.distance>0.1 ? item.distance.toFixed(1)+'km' : '小于100m'}}
  272. </view>
  273. <view class="distance oldTextjp2" oldstyle="font-size: 16px;" v-else>
  274. <text class="iconfont" style="color:#666666">&#xe615;</text>
  275. 暂无定位
  276. </view>
  277. </template>
  278. </view>
  279. <u-line margin="16rpx 0 "></u-line>
  280. <view class="price-free price-freeList">
  281. <view class="price" v-if="personInfo&&personInfo.userType==2">
  282. <view class="price-1">
  283. <text class="num">{{!item.giveDiscount ? (item.electricityPrice+item.servicePrice).toFixed(2)
  284. : (item.electricityPrice+item.discountServicePrice).toFixed(2)}}</text>
  285. <text class="unit " oldstyle="font-size: 14px;">
  286. 元/度
  287. </text>
  288. </view>
  289. <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)">
  290. <view class="num1">
  291. <img src="@/assets/img/9-4/6折卡价.svg" />
  292. </view>
  293. <text
  294. class="num">{{ (item.electricityPrice+(item.servicePrice*0.6)).toFixed(2)}}元/度</text>
  295. </view>
  296. <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)">
  297. <view class="num1">
  298. <img src="@/assets/img/9-4/月卡价格.png" />
  299. </view>
  300. <text
  301. class="num">{{ (item.electricityPrice).toFixed(2)}}元/度</text>
  302. </view>
  303. </view>
  304. <!-- 游客价格-->
  305. <view class="price" v-else>
  306. <view class="price-1">
  307. <text class="num">
  308. {{showNumJP(item.electricityPrice+item.servicePrice)}}</text>
  309. <text class="unit " oldstyle="font-size: 48rpx;">元/度</text>
  310. </view>
  311. <view class="price-3 " oldstyle="font-size: 48rpx;" v-if="item.giveDiscount">
  312. <text class="num1">
  313. <img src="@/assets/img/9-4/会员价.svg" />
  314. </text>
  315. <text
  316. class="num">{{ showNumJP(item.electricityPrice+item.discountServicePrice)}}元/度</text>
  317. <text class="unit "></text>
  318. </view>
  319. </view>
  320. </view>
  321. </view>
  322. </view>
  323. <u-divider margin-top="20" v-if="stationslist.length!=0" style="margin-bottom: 20px;" bg-color="#F2F4F4"
  324. >已经到底了</u-divider>
  325. </view>
  326. </view>
  327. </view>
  328. <view v-show="viewMode">
  329. <view>
  330. <Chargermap @onMoveStart="moveStart" @onMoveEnd="moveEnd" ref="amap" @onClicked="onClicked"
  331. @onload="mapdown" @clickMap="clickMap"></Chargermap>
  332. <!--@location="location"-->
  333. <view class="locationBtn" style=' ' @click="setCenter">
  334. <u-image src="@/assets/static/img/location.png" border-radius="8" bg-color="#ffffff" width="20px"
  335. height="20px"></u-image>
  336. </view>
  337. </view>
  338. <!-- 新版卡片 -->
  339. <view class="chargerCard" v-if="stationsmap.length>0">
  340. <swiper v-if="stationsmap.length>0" :current="currentIndex" @change="swiperChange"
  341. slide-change-transition-end='swiperTransitionEnd' @transition="swiperTransition">
  342. <swiper-item v-for="(item,index) in stationsmap" :key="item.id" style="height: 100%;">
  343. <view class="swiper-item" style="height: 100%; background-color: #ffffff;"
  344. @click="stationDetail(item)">
  345. <view class="charing-slow charing-slow-2">
  346. <view class="address">
  347. <view class="name oldTextjp" oldstyle="font-size: 20px;">
  348. {{item.name}}
  349. </view>
  350. <view class="distance " v-if="item.distance != '99999999'">
  351. <text class="iconfont" style="color:#666666">&#xe615;</text>
  352. {{item.distance!=null && item.distance>0.1 ? item.distance.toFixed(1)+'公里' : '小于100米'}}
  353. </view>
  354. <view class="distance oldTextjp2" oldstyle="font-size: 16px;" v-else>
  355. <text class="iconfont" style="color:#666666">&#xe615;</text>
  356. 暂无定位
  357. </view>
  358. </view>
  359. <view class="sign min-h">
  360. <view class="sign-tag sign-1"
  361. v-if="item.giveDiscount&&item.discountRatio&&item.discountRatio!=100">
  362. 会员{{discountRatio10(item.discountRatio)}}折</view>
  363. <view class="sign-tag sign-3" v-if="item.category=='超充'">160kW超充站</view>
  364. <view class="sign-tag sign-4" v-if="item.nightLowPriceEnabled">
  365. 夜间超低价</view>
  366. <view class="sign-tag sign-2" v-if="item.platformType==1">自营站</view>
  367. <view class="sign-tag sign-2" v-if="item.tagList.length != 0"
  368. v-for="(tagName,tagIndex) in item.tagList" :key="tagIndex">{{tagName}}
  369. </view>
  370. </view>
  371. <view class="price-free price-freeOne">
  372. <view class="price" v-if="personInfo&&personInfo.userType==2">
  373. <view class="price-1">
  374. <text class="num">{{!item.giveDiscount ? (item.electricityPrice+item.servicePrice).toFixed(2)
  375. : (item.electricityPrice+item.discountServicePrice).toFixed(2)}}</text>
  376. <text class="unit " oldstyle="font-size: 14px;">
  377. 元/度
  378. </text>
  379. </view>
  380. <view class="price-2 " oldstyle="font-size: 14px;" v-if="item.giveDiscount">
  381. <text
  382. class="num">{{(item.electricityPrice+item.servicePrice).toFixed(2)}}</text>
  383. <text class="unit">元/度</text>
  384. </view>
  385. </view>
  386. <!-- 游客价格-->
  387. <view class="price" v-else>
  388. <view class="price-1">
  389. <text class="num">
  390. {{(item.electricityPrice+item.servicePrice).toFixed(2)}}</text>
  391. <text class="unit " oldstyle="font-size: 48rpx;">元/度</text>
  392. </view>
  393. <view class="price-3 " oldstyle="font-size: 48rpx;" v-if="item.giveDiscount">
  394. <text class="num1">会员</text>
  395. <text
  396. class="num">{{ (item.electricityPrice+item.discountServicePrice).toFixed(2)}}</text>
  397. <text class="unit ">元/度</text>
  398. </view>
  399. </view>
  400. <view class="free">
  401. <view class="fast" v-if="item.fastNum">
  402. <view class="fast-font">
  403. </view>
  404. <view class="num">
  405. {{item.fastAvailableNum}}
  406. </view>
  407. <view class="num1">
  408. /{{item.fastNum}}
  409. </view>
  410. </view>
  411. <view class="slow" v-if="item.slowNum">
  412. <view class="slow-font">
  413. </view>
  414. <view class="num">
  415. {{item.slowAvailableNum}}
  416. </view>
  417. <view class="num1">
  418. /{{item.slowNum}}
  419. </view>
  420. </view>
  421. </view>
  422. </view>
  423. </view>
  424. </view>
  425. </swiper-item>
  426. </swiper>
  427. </view>
  428. </view>
  429. <Tabbar v-if="indexStyle.spring" class="springClass" bgColor="" inColor="#fff"
  430. acColor="#f9d79e" :current="2"
  431. ref="tabbarMain" ></Tabbar>
  432. <Tabbar v-else :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. }
  588. },
  589. onUnload() {
  590. //this.timeOut = false;
  591. this.pointTimeOut = false;
  592. },
  593. onHide() {
  594. //this.timeOut = false;
  595. this.pointTimeOut = false;
  596. },
  597. onShow() {
  598. if (this.$refs.tabbarMain) {
  599. this.$refs.tabbarMain.setcount(2);
  600. }
  601. if (!this.pointTimeOut) {
  602. this.pointTimeOut = true
  603. this.getPointTimeOut();
  604. }
  605. this.$nextTick(() => {
  606. this.type = this.info.obc_type[this.preference.obc_type_index].text;
  607. this.radius = this.info.miles_type[this.preference.miles_index].text;
  608. this.stationType = this.info.obc_stationType[this.preference.obc_stationType_index].text;
  609. if (this.viewMode) {
  610. this.$refs.amap.init();
  611. this.searchStationData()
  612. }
  613. })
  614. },
  615. onLoad() {
  616. this.spring()
  617. },
  618. onReady() {
  619. WxJsApi.getWxConfig(['getLocation', 'addEventListener', 'scanQRCode']).then((res) => {
  620. // //(res)
  621. }).catch(error => {
  622. //(res)
  623. })
  624. if (this.carhelp.getPersonInfo()) {
  625. // this.userId = this.carhelp.getPersonInfo().id;
  626. this.personInfo = this.carhelp.getPersonInfo();
  627. }
  628. this.getPointTimeOut();
  629. this.getChargeList()
  630. },
  631. computed: {
  632. prevMonthKwhBL(){
  633. if(this.carImg3span1>=1000){
  634. return false
  635. }
  636. return true
  637. },
  638. },
  639. methods: {
  640. spring() {
  641. this.springShow=false;
  642. try{
  643. if(this.carhelp.getConfig().spring2024){
  644. var spring2024=this.carhelp.getConfig().spring2024
  645. var sz=spring2024.split(',')
  646. if(sz&&sz.length==2){
  647. var time1=new Date(sz[0])
  648. var time2=new Date(sz[1])
  649. var time0=new Date()
  650. if(time0>time1&&time0<time2){
  651. this.springShow=true;
  652. }
  653. }
  654. }
  655. this.$forceUpdate()
  656. }catch(e){
  657. }
  658. if(!this.springShow){
  659. return
  660. }
  661. this.indexStyle.noticeBarBgColor = "#C00000"
  662. this.indexStyle.noticeBarColor = "#FFD695"
  663. this.indexStyle.backgroundClass = "background-spring"
  664. this.indexStyle.spring = true;
  665. },
  666. tagspan1Btn(){
  667. this.tagspan1=!this.tagspan1
  668. if(this.tagspan1){
  669. this.preference.miles_index=4
  670. }else{
  671. this.preference.miles_index=0
  672. }
  673. this.close(1);
  674. },
  675. tagspan2Btn(){
  676. this.tagspan2=!this.tagspan2
  677. if(this.tagspan2){
  678. this.preference.obc_type_index=1
  679. }else{
  680. this.preference.obc_type_index=0
  681. }
  682. this.close(1);
  683. },
  684. tagspan3Btn(){
  685. this.tagspan3=!this.tagspan3
  686. if(this.tagspan3){
  687. }else{
  688. }
  689. this.close(1);
  690. },
  691. getChargeList(){
  692. var obj=this.carhelp.get("carhelp_getChargeList")
  693. var time=new Date( ).toLocaleString().substr(0,12).replace("T"," ");
  694. if(obj&&time==obj.time){
  695. this.carImg3span1=parseInt(obj.electricQuantity);
  696. this.carImg3span2=parseInt(obj.totalServiceMoney) ;
  697. console.log("carhelp_getChargeList",this.carImg3span1,this.carImg3span2)
  698. return
  699. }
  700. var date =new Date().getTime()-30*1000*60*60*24;
  701. var startDate =parseUnixTime(new Date(date),'{y}-{m}-{d}');
  702. if (this.carhelp.getPersonInfo()) {
  703. indexAPI.chargingRecordData({
  704. pageIndex: 1,
  705. pageSize:999,
  706. startDate: startDate,
  707. // endDate: this.endDate
  708. }).then((res) => {
  709. var chargeList =res.data.data;
  710. var num1=0;
  711. var num2=0;
  712. for(var i in chargeList){
  713. var obj=chargeList[i]
  714. if(obj.status==2){
  715. num1+=obj.electricQuantity
  716. num2+=obj.totalServiceMoney
  717. }
  718. }
  719. console.log(num1,num2)
  720. this.carImg3span1=parseInt(num1);
  721. this.carImg3span2=parseInt(num2) ;
  722. this.carhelp.set("carhelp_getChargeList",{
  723. time: time,
  724. electricQuantity:num1,
  725. totalServiceMoney:num2
  726. })
  727. // if(num2*0.4>20){
  728. // this.carImg3Bl=true;
  729. // }else{
  730. // this.carImg4Bl=true;
  731. // }
  732. }).catch(error => {
  733. uni.showToast({
  734. title: error,
  735. icon: "none"
  736. })
  737. })
  738. }
  739. },
  740. navigate() {
  741. //('naviage to ')
  742. uni.navigateTo({
  743. url: '/pages/search/search'
  744. })
  745. },
  746. isEnabled() {
  747. if (this.viewMode) {
  748. if (this.show)
  749. return false;
  750. }
  751. return true;
  752. },
  753. stationDetail(item) {
  754. if (!this.isEnabled()) {
  755. return;
  756. }
  757. uni.navigateTo({
  758. url: '/pages/searchPile/stationAndPile/stationDetails?id=' + item.id
  759. })
  760. },
  761. setCenter() {
  762. //('getPoint')
  763. WxJsApi.getLocation().then((res) => {
  764. this.latitude = parseFloat(res.latitude);
  765. this.longitude = parseFloat(res.longitude);
  766. //let data = {position:{latitude:latitude,longitude:longitude}};
  767. let posCenter = {
  768. longitude: this.longitude,
  769. latitude: this.latitude
  770. };
  771. this.$refs.amap.setCenter(posCenter);
  772. this.searchStationData();
  773. }).catch(error => {
  774. uni.showToast({
  775. title: JSON.stringify(error)
  776. })
  777. })
  778. // //('setCenter')
  779. },
  780. updateType2(e) {
  781. this.preference.obc_stationType_index = e.value;
  782. this.close();
  783. },
  784. swiperTransitionEnd(e) {
  785. },
  786. swiperTransition(e) {
  787. //
  788. },
  789. updateType(e) {
  790. this.preference.obc_type_index = e.value;
  791. this.close();
  792. },
  793. updateRadius(e) {
  794. this.preference.miles_index = e.value;
  795. this.close();
  796. },
  797. selectOBSType(index) {
  798. this.preference.obc_type_index = index;
  799. },
  800. selectOBSType2(index) {
  801. this.preference.obc_stationType_index = index;
  802. },
  803. selectOBSStatus(index) {
  804. this.preference.obc_status_index = index;
  805. },
  806. selectOBCVoltage(index) {
  807. this.preference.obc_voltage_index = index;
  808. },
  809. selectMiles(index) {
  810. this.preference.miles_index = index;
  811. },
  812. swiperChange(e) {
  813. if (!this.viewMode) {
  814. return
  815. }
  816. this.currentIndex = e.detail.current
  817. let station = this.stationsmap[this.currentIndex];
  818. let posCenter = {
  819. longitude: station.longitude,
  820. latitude: station.latitude
  821. };
  822. // //('currentIndex'+JSON.stringify(this.currentIndex))
  823. // //('currentIndex'+JSON.stringify(posCenter))
  824. // //('station'+JSON.stringify(station))
  825. let bounds = this.$refs.amap.logMapInfo();
  826. /*if( (posCenter.latitude<bounds.bounds.northeast.lat && posCenter.latitude>bounds.bounds.sourthwest.lat)
  827. && (posCenter.longitude<bounds.bounds.northeast.lng && posCenter.longitude>bounds.bounds.sourthwest.lng)
  828. ){
  829. //('bounds'+JSON.stringify(bounds));
  830. }else{
  831. this.$refs.amap.setCenter(posCenter);
  832. }*/
  833. this.$refs.amap.updateCharger(station);
  834. this.$refs.amap.setCenter(posCenter);
  835. },
  836. listMode() {
  837. //this.close_all();
  838. this.viewMode = false
  839. },
  840. mapMode() {
  841. //this.$refs.amap.setChargerList(this.stationslist);
  842. this.$refs.amap.init();
  843. //this.currentIndex = 0;
  844. //this.close_all();
  845. this.searchStationData()
  846. this.viewMode = true
  847. },
  848. reset() {
  849. this.tagspan1=true;
  850. this.tagspan2=false;
  851. this.tagspan3=false;
  852. this.preference.obc_status_index = 0;
  853. this.preference.obc_voltage_index = 0;
  854. this.preference.obc_stationType_index = 0;
  855. this.preference.obc_type_index = 0;
  856. this.preference.miles_index = 4;
  857. this.preference.save_preference = false;
  858. // this.$refs.obc_voltage.currentValue = [0,100];
  859. this.preference.obc_power.minValue = 0;
  860. this.preference.obc_power.maxValue = 500;
  861. this.preference.obc_power.minP = Math.floor((this.preference.obc_power.minValue / (this.info.obc_power
  862. .maxValue - this.info.obc_power.minValue)) * 100);
  863. this.preference.obc_power.maxP = Math.floor((this.preference.obc_power.maxValue / (this.info.obc_power
  864. .maxValue - this.info.obc_power.minValue)) * 100);
  865. // //('minP'+this.preference.obc_power.minP)
  866. // //('maxP'+this.preference.obc_power.maxP)
  867. //this.$refs.obc_voltage.reset(this.preference.obc_power);
  868. // this.$refs.obc_voltage.currentMaxValue = this.preference.obc_power[1];
  869. // //('reset')
  870. },
  871. close(bl) {
  872. if(bl){
  873. this.tagspan1=(this.preference.miles_index==4)
  874. this.tagspan2=(this.preference.obc_type_index==1)
  875. }else{
  876. this.updateTypeSelector('')
  877. }
  878. this.type = this.info.obc_type[this.preference.obc_type_index].text;
  879. this.radius = this.info.miles_type[this.preference.miles_index].text;
  880. this.stationType = this.info.obc_stationType[this.preference.obc_stationType_index].text;
  881. if (this.preference.save_preference) {
  882. this.carhelp.set('preference', this.preference)
  883. }
  884. this.$refs.uDropdown.close();
  885. this.searchStationData();
  886. },
  887. clickMap(obj) {
  888. //this.show = false;
  889. if (obj == null || obj.type == null) return;
  890. if (obj.type == 'charger') {
  891. if (obj.obj != null) {
  892. let index = this.stationsmap.findIndex(item => item.id == obj.obj.id);
  893. this.currentIndex = index;
  894. //('find Index'+index);
  895. }
  896. }
  897. },
  898. getPoint() {
  899. if (this.stationslist.length != 0) {
  900. return
  901. }
  902. WxJsApi.getLocation().then((res) => {
  903. this.latitude = parseFloat(res.latitude);
  904. this.longitude = parseFloat(res.longitude);
  905. this.message = res.errMsg;
  906. if (res.errMsg != 'getLocation:ok') {
  907. uni.showToast({
  908. title: res
  909. })
  910. } else {
  911. uni.showToast({
  912. title: "定位中..."
  913. })
  914. this.searchStationData()
  915. }
  916. }).catch(error => {
  917. uni.showToast({
  918. title: error,
  919. icon: "none"
  920. })
  921. })
  922. },
  923. searchStationData(obj) {
  924. this.tagBtnAcList=[]
  925. let data1 = {
  926. latitude: this.latitude,
  927. longitude: this.longitude,
  928. findType: "1",
  929. pageIndex: 1,
  930. pageSize: 999
  931. };
  932. if (obj) {
  933. data1 = {
  934. ...data1,
  935. ...obj
  936. }
  937. }
  938. data1.type = this.info.obc_type[this.preference.obc_type_index].value;
  939. if (this.info.miles_type[this.preference.miles_index].distance != null){
  940. data1.radius = this.info.miles_type[this.preference.miles_index].distance.toString();
  941. this.tagBtnAcList.push(data1.radius+"公里")
  942. }
  943. if(data1.type){
  944. this.tagBtnAcList.push(this.info.obc_type[this.preference.obc_type_index].text)
  945. }
  946. if(this.tagspan3||this.preference.obc_status_index){
  947. data1.special=1
  948. this.tagBtnAcList.push("特价站")
  949. }
  950. if (this.preference.obc_stationType_index != null) {
  951. var stationType = this.info.obc_stationType[this.preference.obc_stationType_index].value
  952. if (stationType == -1) {
  953. data1.platformType = "1"
  954. } else {
  955. data1.stationType = stationType
  956. }
  957. if(stationType){
  958. this.tagBtnAcList.push(this.info.obc_stationType[this.preference.obc_stationType_index].text)
  959. }
  960. }
  961. //this.currentIndex = -1;
  962. //data1.findType = this.viewMode?"0":"1";
  963. uni.showLoading({})
  964. if (this.carhelp.getPersonInfo()) {
  965. data1.openId = this.carhelp.getOpenId()
  966. }
  967. this.loading = false
  968. api.getChargingStationData(data1).then(res => {
  969. uni.hideLoading()
  970. this.loading = true
  971. this.recordsTotal = res.data.recordsTotal;
  972. var stationslist = res.data.data
  973. if (this.viewMode) {
  974. this.stationsmap = stationslist;
  975. this.$refs.amap.setChargerList(stationslist);
  976. // this.$refs.amap.init();
  977. if (this.currentIndex == -1 || this.currentIndex > stationslist.length) {
  978. this.currentIndex = 0
  979. }
  980. if (stationslist.length) {
  981. this.$refs.amap.updateCharger(stationslist[this.currentIndex]);
  982. }
  983. let posCenter = {
  984. longitude: this.longitude,
  985. latitude: this.latitude
  986. };
  987. this.$refs.amap.setCenter(posCenter);
  988. this.$refs.amap.calcDistances([this.longitude, this.latitude], this.stationslist)
  989. // this.$refs.amap.calcDistances([this.longitude, this.latitude], this.stationslist)
  990. } else {
  991. this.stationslist = stationslist;
  992. }
  993. if (this.stationslist.length == 0) {
  994. this.getChargingStationDetail()
  995. }
  996. }).catch(error => {
  997. uni.showToast({
  998. title: error,
  999. icon: "none"
  1000. })
  1001. })
  1002. },
  1003. getChargingStationDetail() {
  1004. var defaultStation = process.car.defaultStation
  1005. for (var item in defaultStation) {
  1006. api.getChargingStationDetail({
  1007. stationId: defaultStation[item]
  1008. }).then((res) => {
  1009. var station = res.data.station
  1010. //this.MapLoaderthen(station)
  1011. this.defaultStation=[]
  1012. this.defaultStation.push(station)
  1013. }).catch(error => {
  1014. uni.showToast({
  1015. title: error,
  1016. icon: "none"
  1017. })
  1018. })
  1019. }
  1020. },
  1021. getPointTimeOut() {
  1022. setTimeout(() => {
  1023. if (this.pointTimeOut) {
  1024. this.getPoint();
  1025. }
  1026. }, 1000)
  1027. },
  1028. closeDropdown() {
  1029. this.$refs.uDropdown.close();
  1030. },
  1031. close_all() {
  1032. //this.updateTypeSelector('')
  1033. },
  1034. updateTypeSelector(val) {
  1035. var sz = ["radius", "type", 'city']
  1036. for (var i in sz) {
  1037. if (i == val && val != '') {
  1038. } else {
  1039. this.$refs[sz[i]].closeSelector();
  1040. }
  1041. }
  1042. //this.show = false;
  1043. },
  1044. mapdown() {
  1045. //this.isReady = true;
  1046. //this.$refs.amap.getLocation ();
  1047. //let state = {};
  1048. uni.getSystemInfo({
  1049. success: (res) => {
  1050. let scrollH = res.windowHeight; // - uni.upx2px(88) - navbarH
  1051. let scrollW = res.windowWidth;
  1052. this.$refs.amap.setMyStyle("height:" + (scrollH - 88 - 50) + "px;width:" + scrollW +
  1053. "px;");
  1054. }
  1055. })
  1056. },
  1057. moveEnd(e) {
  1058. //('moveEnd')
  1059. this.close_all();
  1060. let posCenter = this.$refs.amap.logMapInfo();
  1061. ////('posCenter'+JSON.stringify(posCenter))
  1062. if (this.latitude == e.center.lat && this.longitude == e.center.lng) {
  1063. return
  1064. }
  1065. this.latitude = e.center.lat
  1066. this.longitude = e.center.lng
  1067. this.searchStationData();
  1068. },
  1069. moveStart(e) {
  1070. //this.close_all();
  1071. },
  1072. onClicked(e) {
  1073. this.close_all();
  1074. ////('onClicked e'+JSON.stringify(e))
  1075. },
  1076. }
  1077. }
  1078. </script>
  1079. <style lang="scss" scoped>
  1080. @import "@/_theme.scss";
  1081. .tagListSelect{
  1082. display: flex;
  1083. padding: 0 24rpx;
  1084. .tagBtn{
  1085. border-radius: 4px;
  1086. background-color: #f2f2f2;
  1087. color: rgba(51, 51, 51, 1);
  1088. font-size: 28rpx;
  1089. text-align: center;
  1090. margin: 0 8rpx;
  1091. padding: 2px 16rpx;
  1092. }
  1093. .tagBtnAc{
  1094. background-color: rgba(225, 249, 237, 1);
  1095. color: rgba(0, 185, 98, 1);
  1096. }
  1097. }
  1098. .locationBtn {
  1099. width: 30px;
  1100. height: 30px;
  1101. position: absolute;
  1102. z-index: 1023;
  1103. right: 40rpx;
  1104. bottom: 520rpx;
  1105. background: white;
  1106. display: flex;
  1107. align-items: center;
  1108. justify-content: center;
  1109. border: 1px solid;
  1110. border-radius: 8px;
  1111. }
  1112. .ujp-navbar-main {
  1113. display: flex;
  1114. flex-direction: column;
  1115. width: 100%;
  1116. height: 100%;
  1117. .ujp-navbar-main1 {
  1118. display: flex;
  1119. flex-direction: row;
  1120. height: 100%;
  1121. align-items: center;
  1122. margin-top: 0rpx;
  1123. padding-top: 0rpx;
  1124. padding-bottom: 10rpx;
  1125. }
  1126. .ujp-navbar-main2 {
  1127. display: flex;
  1128. flex-direction: row;
  1129. width: 100%;
  1130. justify-content: space-between;
  1131. align-items: center;
  1132. }
  1133. }
  1134. .preference_group_item {
  1135. padding: 15rpx;
  1136. }
  1137. .preference_group {
  1138. padding-bottom: 20rpx;
  1139. }
  1140. .preference {
  1141. background-color: #ffffff;
  1142. left: 0rpx;
  1143. // position: absolute
  1144. }
  1145. .preference_item {
  1146. margin-bottom: 10rpx;
  1147. margin-left: 20rpx;
  1148. text-align: center;
  1149. border-style: none;
  1150. width: 20%;
  1151. //height: 56rpx;
  1152. /* line-height: 14px;*/
  1153. }
  1154. .content-s {
  1155. height: 640rpx;
  1156. overflow-y: scroll;
  1157. text-align: left;
  1158. }
  1159. .preference_item_medium {
  1160. margin-bottom: 10rpx;
  1161. margin-left: 20rpx;
  1162. text-align: center;
  1163. border-style: none;
  1164. min-width: 22%;
  1165. //height: 56rpx;
  1166. @include themeify {
  1167. font-size: themed('font-size2');
  1168. line-height: themed('font-size2');
  1169. }
  1170. /* line-height: 14px;*/
  1171. }
  1172. .preference_item_plus {
  1173. margin-bottom: 10rpx;
  1174. margin-left: 20rpx;
  1175. align-items: center;
  1176. justify-content: center;
  1177. text-align: center;
  1178. width: 28%;
  1179. border-style: none;
  1180. //height: 56rpx;
  1181. @include themeify {
  1182. font-size: themed('font-size2');
  1183. line-height: themed('font-size2');
  1184. }
  1185. /* line-height: 14px;*/
  1186. }
  1187. .preference_label {
  1188. @include themeify {
  1189. color: themed('font_colorLabel');
  1190. font-size: themed('font-size1');
  1191. font-weight: themed('fontWeight');
  1192. }
  1193. margin-left: 20rpx;
  1194. margin-bottom: 100rpx;
  1195. }
  1196. .pre-btn {
  1197. width: 100%;
  1198. height: 96rpx;
  1199. z-index: 999;
  1200. }
  1201. .btn-1,
  1202. .btn-2 {
  1203. height: 96rpx;
  1204. line-height: 96rpx;
  1205. text-align: center;
  1206. border-top: 1px solid rgba(225, 228, 232, 100);
  1207. }
  1208. .station,
  1209. .location,
  1210. .state1 {
  1211. box-shadow: 0px 4rpx 12rpx 0px #008c4a33;
  1212. }
  1213. //定位
  1214. .location {
  1215. width: 91.4%;
  1216. background-color: #ffffff;
  1217. height: 120px;
  1218. display: flex;
  1219. justify-content: space-between;
  1220. margin: 20px auto 0;
  1221. border-radius: 8px;
  1222. border: #F2F4F4 1px;
  1223. .location-text {
  1224. padding: 24px 0 0 28px;
  1225. .text-1 {
  1226. height: 16px;
  1227. line-height: 16px;
  1228. color: rgba(16, 16, 16, 100);
  1229. font-size: 16px;
  1230. text-align: left;
  1231. }
  1232. .text-2 {
  1233. height: 17px;
  1234. line-height: 17px;
  1235. color: rgba(102, 102, 102, 100);
  1236. font-size: 12px;
  1237. text-align: left;
  1238. margin-top: 4px;
  1239. white-space: nowrap; //强制不换行
  1240. text-overflow: ellipsis; //文本超出出现省略号
  1241. overflow: hidden;
  1242. }
  1243. .text-view {
  1244. display: flex;
  1245. }
  1246. .text-3 {
  1247. width: 80px;
  1248. height: 24px;
  1249. line-height: 22px;
  1250. border-radius: 50px;
  1251. color: rgba(0, 185, 98, 100);
  1252. font-size: 12px;
  1253. text-align: center;
  1254. border: 1px solid rgba(0, 185, 98, 100);
  1255. margin-top: 11px;
  1256. }
  1257. .text-4 {
  1258. margin-left: 10px;
  1259. color: #ff9900;
  1260. border: 1px solid #ff9900;
  1261. }
  1262. }
  1263. .img-box {
  1264. width: 120px;
  1265. height: 120px;
  1266. margin-right: 20px;
  1267. img {
  1268. width: 100%;
  1269. height: 100%;
  1270. }
  1271. }
  1272. }
  1273. .carNone {
  1274. display: flex;
  1275. flex-direction: column;
  1276. justify-content: center;
  1277. align-items: center;
  1278. img {
  1279. width: 100%;
  1280. height: 100%;
  1281. }
  1282. p {
  1283. margin-top: -60px;
  1284. }
  1285. }
  1286. .charing-slow-2 {
  1287. margin: 0 0 20rpx 0 !important;
  1288. // border-bottom: 1px solid rgba(238, 242, 240, 100);
  1289. }
  1290. .charing-slow {
  1291. //box-shadow: 0px 4rpx 12rpx 0px #008c4a33;
  1292. background-color: #fff;
  1293. margin: 26rpx;
  1294. border-radius: 16rpx;
  1295. padding: 24rpx;
  1296. position: relative;
  1297. left: 0;
  1298. right: 0;
  1299. }
  1300. .min-h {
  1301. min-height: 65px;
  1302. }
  1303. .sign {
  1304. display: flex;
  1305. flex-wrap: wrap;
  1306. margin-top: 10px;
  1307. .sign-tag {
  1308. height: 36rpx;
  1309. line-height: 32rpx;
  1310. border-radius: 8rpx;
  1311. //background-color: rgba(255, 255, 255, 100);
  1312. //color: rgba(255, 139, 0, 100);
  1313. font-size: 10px;
  1314. text-align: center;
  1315. //border: 1px solid rgba(255, 139, 0, 100);
  1316. padding: 0 8rpx;
  1317. margin-right: 8rpx;
  1318. margin-bottom: 8rpx;
  1319. }
  1320. .sign-0 {
  1321. background: linear-gradient(89.4deg, rgba(129, 97, 255, 1) 2.8%, rgba(169, 147, 255, 1) 98.02%);
  1322. color: rgba(255, 255, 255, 1);
  1323. //padding: 0 10rpx;
  1324. //border: 1px solid rgba(255, 139, 0, 100);
  1325. }
  1326. .sign-5 {
  1327. background: linear-gradient(89.4deg, rgba(255, 61, 0, 1) 2.8%, rgba(255, 134, 0, 1) 98.02%);
  1328. color: rgba(255, 255, 255, 1);
  1329. //padding: 0 10rpx;
  1330. }
  1331. .sign-1 {
  1332. background-color: rgba(255, 255, 255, 100);
  1333. color: rgba(255, 139, 0, 100);
  1334. border: 1px solid rgba(255, 139, 0, 100);
  1335. }
  1336. .sign-2 {
  1337. background-color: rgba(255, 255, 255, 100);
  1338. color: rgba(153, 153, 153, 100);
  1339. border: 1px solid rgba(204, 204, 204, 100);
  1340. }
  1341. .sign-3 {
  1342. background-color: rgba(255, 255, 255, 100);
  1343. color: #8161FF;
  1344. border: 1px solid #8161FF;
  1345. }
  1346. .sign-4 {
  1347. background-color: rgba(255, 255, 255, 100);
  1348. color: #00B962;
  1349. border: 1px solid #00B962;
  1350. }
  1351. }
  1352. .address {
  1353. width: 100%;
  1354. line-height: 20px;
  1355. display: flex;
  1356. justify-content: space-between;
  1357. .name {
  1358. font-size: 36rpx;
  1359. white-space: nowrap;
  1360. overflow: hidden;
  1361. text-overflow: ellipsis;
  1362. }
  1363. @include themeify {
  1364. font-size: themed('font-size5');
  1365. line-height: themed('font-size7');
  1366. }
  1367. /* font-size: 11px;*/
  1368. font-weight: 600;
  1369. color: #101010;
  1370. }
  1371. .price-free {
  1372. width: 100%;
  1373. display: flex;
  1374. align-items: center;
  1375. justify-content: space-between;
  1376. }
  1377. .distance {
  1378. color: rgba(102, 102, 102, 100);
  1379. text-align: end;
  1380. font-size: 30rpx;
  1381. width: 180rpx;
  1382. min-width: 180rpx;
  1383. .iconfont {
  1384. font-size: 12px;
  1385. margin-right: 2px;
  1386. }
  1387. }
  1388. .price {
  1389. display: flex;
  1390. align-items: center;
  1391. .price-1 {
  1392. line-height: 40rpx;
  1393. .num {
  1394. //color: rgba(255, 98, 0, 100);
  1395. color: rgba(16, 16, 16, 1);
  1396. font-size: 40rpx;
  1397. //height: 44rpx;
  1398. font-weight: bold;
  1399. text-align: left;
  1400. font-family: Roboto-medium;
  1401. }
  1402. .unit {
  1403. // font-size: 12px;
  1404. color: rgba(119, 119, 119, 1);
  1405. font-size: 28rpx;
  1406. text-align: left;
  1407. font-family: AlibabaPuHui-regular;
  1408. margin-left: 8rpx;
  1409. }
  1410. }
  1411. .price-2 {
  1412. color: rgba(153, 153, 153, 100);
  1413. margin-left: 6rpx;
  1414. text-decoration: line-through;
  1415. font-size: 24rpx
  1416. }
  1417. .price-3{
  1418. display: flex;
  1419. background: linear-gradient(93.02deg, rgba(59,182,254,1) 39.4%,rgba(0,185,98,1) 92.96%);
  1420. border-radius: 4px;
  1421. height: 16px;
  1422. min-height: 16px;
  1423. margin-left: 32rpx;
  1424. // align-items: center;
  1425. line-height: 16px;
  1426. .num1{
  1427. img{
  1428. // width: 88rpx;
  1429. //width: 34px;
  1430. height: 16px;
  1431. }
  1432. /deep/.u-image{
  1433. min-height: 16px;
  1434. }
  1435. }
  1436. .num{
  1437. padding: 0 12rpx 0 8rpx;
  1438. color: rgba(255, 255, 255, 1);
  1439. font-size: 11px;
  1440. display: flex;
  1441. align-items: center;
  1442. }
  1443. }
  1444. .price-3-yue{
  1445. background: linear-gradient(88.81deg, rgba(219,199,167,1) 1.89%,rgba(194,154,93,1) 98%);
  1446. }
  1447. }
  1448. .free {
  1449. display: flex;
  1450. align-items: center;
  1451. .slow,
  1452. .fast {
  1453. display: flex;
  1454. .sp-font {
  1455. width: 40rpx;
  1456. height: 40rpx;
  1457. line-height: 40rpx;
  1458. border-radius: 4px;
  1459. background-color: #7a68f6;
  1460. color: #fff;
  1461. font-size: 28rpx;
  1462. text-align: center;
  1463. margin-right: 2rpx;
  1464. }
  1465. .fast-font {
  1466. width: 40rpx;
  1467. height: 40rpx;
  1468. line-height: 40rpx;
  1469. border-radius: 4px;
  1470. //background-color: rgba(186, 240, 215, 100);
  1471. background-color: #1677FF;
  1472. color: rgba(255, 255, 255, 1);
  1473. //color: rgba(0, 130, 69, 100);
  1474. font-size: 28rpx;
  1475. text-align: center;
  1476. margin-right: 2rpx;
  1477. }
  1478. .slow-font {
  1479. width: 40rpx;
  1480. height: 40rpx;
  1481. line-height: 40rpx;
  1482. border-radius: 4px;
  1483. // background-color: rgba(226, 226, 226, 100);
  1484. // color: rgba(128, 128, 128, 100);
  1485. background-color: #00B962;
  1486. color: rgba(255, 255, 255, 1);
  1487. font-size: 28rpx;
  1488. text-align: center;
  1489. margin-right: 2rpx;
  1490. }
  1491. .num {
  1492. font-size: 32rpx;
  1493. color: #666;
  1494. line-height: 40rpx;
  1495. }
  1496. .num1 {
  1497. font-size: 32rpx;
  1498. color: #bbb;
  1499. line-height: 40rpx;
  1500. }
  1501. }
  1502. .slow {
  1503. margin-left: 16rpx;
  1504. }
  1505. }
  1506. .chargerCard {
  1507. z-index: 999;
  1508. background-color: #fff;
  1509. margin: 0 24rpx;
  1510. border-radius: 16rpx;
  1511. // overflow: hidden;
  1512. bottom: 68px;
  1513. left: 0;
  1514. right: 0;
  1515. position: fixed;
  1516. // height: 380rpx;
  1517. // @include themeify{
  1518. // height:themed('cardHeight');
  1519. // }
  1520. }
  1521. .charing-new {
  1522. display: flex;
  1523. .new-img {
  1524. .img1 {
  1525. width: 120rpx;
  1526. height: 120rpx;
  1527. border-radius: 4px;
  1528. }
  1529. .img2Class{
  1530. top: -134rpx;
  1531. left: -16rpx;
  1532. position: relative;
  1533. border-radius: 4px 4px 4px 0px;
  1534. color: #fff;
  1535. padding: 2px 6px;
  1536. font-size: 10px;
  1537. line-height: 10px;
  1538. height: 1px;
  1539. background-blend-mode: soft-light;
  1540. .img2 {
  1541. width: 56rpx;
  1542. height: 32rpx;
  1543. min-width: 28px;
  1544. min-height: 16px;
  1545. //border-radius: 4px;
  1546. }
  1547. }
  1548. }
  1549. .new-body {
  1550. width: 75%;
  1551. margin-left: 24rpx;
  1552. //max-min-width: 65%;
  1553. .sign {
  1554. margin-top: 12rpx;
  1555. }
  1556. }
  1557. }
  1558. </style>