searchPile.vue 48 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845
  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.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. /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. /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>