searchPile.vue 40 KB

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