searchPile.vue 38 KB

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