searchPile.vue 42 KB

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