searchPile2.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929
  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="margin-left:20rpx;margin-right:10rpx;flex:1; ">
  23. <uni-combox class='font2' ref="raidus" :border="false" v-model="raidus" :candidates="radiuses"
  24. @updateModel='updateRadius' ></uni-combox>
  25. </view>
  26. <view style="flex:1; ">
  27. <uni-combox ref="type" class='font2' :border="false" v-model="type" :candidates="types"
  28. @updateModel='updateType' @updateSelector="updateTypeSelector(1)"></uni-combox>
  29. </view>
  30. <view style="flex:1;">
  31. <uni-combox ref="stationType" class='font2' :border="false" v-model="stationType"
  32. :candidates="stationTypes" @updateModel='updateType2'
  33. @updateSelector="updateTypeSelector(2)"></uni-combox>
  34. </view>
  35. <view style="margin-right: 20rpx;">
  36. <!-- -->
  37. <!-- <view v-show="dropdownShow" >
  38. <u-mask :show="dropdownShow" ></u-mask>
  39. </view> -->
  40. <jp-dropdown
  41. @open="dropdownShow=true" @close="dropdownShow=false"
  42. ref="uDropdown" style=" display: contents;" :top="180">
  43. <u-dropdown-item title="筛选" >
  44. <view class="slot-content" >
  45. <view v-if="dropdownShow" class="u-text-center u-content-color u-m-t-20 u-m-b-20">
  46. <view class="preference" style="z-index:1024;width: 100%;">
  47. <view class="content-s">
  48. <view class="preference_group">
  49. <view class="preference_group_item"><label
  50. class="preference_label">距离我</label></view>
  51. <view>
  52. <u-tag class="preference_item"
  53. v-for="(item, index) in info.miles_type" :key="index"
  54. :style="index == preference.miles_index ? 'background-color:#00B962;color:#FFFFFF' : 'background-color:#EFF4F2;color:#926666'"
  55. shape="circle" :text="item.text"
  56. @click="selectMiles(index)"></u-tag>
  57. </view>
  58. </view>
  59. <view class="preference_group">
  60. <view class="preference_group_item"><label
  61. class="preference_label">充电站类型</label></view>
  62. <view>
  63. <u-tag class="preference_item_medium"
  64. v-for="(item, index) in info.obc_type" :key="index"
  65. :style="index == preference.obc_type_index ? 'background-color:#00B962;color:#FFFFFF' : 'background-color:#EFF4F2;color:#926666'"
  66. shape="circle" :text="item.text"
  67. @click="selectOBSType(index)"></u-tag>
  68. </view>
  69. </view>
  70. <view class="preference_group">
  71. <view class="preference_group_item"><label
  72. class="preference_label">充电站所属</label></view>
  73. <view>
  74. <u-tag class="preference_item_medium"
  75. v-for="(item, index) in info.obc_stationType" :key="index"
  76. :style="index == preference.obc_stationType_index ? 'background-color:#00B962;color:#FFFFFF' : 'background-color:#EFF4F2;color:#926666'"
  77. shape="circle" :text="item.text"
  78. @click="selectOBSType2(index)"></u-tag>
  79. </view>
  80. </view>
  81. <view class="preference_group" v-if="false">
  82. <view class="preference_group_item"><label
  83. class="preference_label">是否对外开放</label></view>
  84. <view>
  85. <u-tag class="preference_item_plus"
  86. v-for="(item, index) in info.obc_status" :key="index"
  87. :style="index == preference.obc_status_index ? 'background-color:#00B962;color:#FFFFFF' : 'background-color:#EFF4F2;color:#926666'"
  88. shape="circle" :text="item.text"
  89. @click="selectOBSStatus(index)"></u-tag>
  90. </view>
  91. </view>
  92. <view class="preference_group" v-if="false">
  93. <view style="margin-left: 30rpx;"><u-checkbox active-color="#00b962"
  94. shape="circle" v-model="preference.save_preference"
  95. @change="radioChange">保存偏好设置</u-checkbox></view>
  96. </view>
  97. </view>
  98. <view class="pre-btn" style="display: flex;flex-direction: row;">
  99. <view class="btn-1 font3" @click="reset" style="width: 30%;">重置</view>
  100. <view class="btn-2 font3" @click="close"
  101. style="width: 70%;background-color: #00B962;color: #fff;">确定</view>
  102. </view>
  103. </view>
  104. </view>
  105. <u-button type="primary" @click="closeDropdown">确定</u-button>
  106. </view>
  107. </u-dropdown-item>
  108. </jp-dropdown>
  109. </view>
  110. </view>
  111. </view>
  112. </ujp-navbar>
  113. <!-- 定位 -->
  114. <view class="location-box" v-if="message != 'getLocation:ok' && stationslist.length == 0 ">
  115. <view class="location">
  116. <view class="location-text">
  117. <view class="text-1 oldTextjp" oldstyle="font-size: 20px;">
  118. 定位中...
  119. </view>
  120. <view class="text-2 oldTextjp2" oldstyle="font-size: 16px;">
  121. 授权定位后可查询附近充电站
  122. </view>
  123. <view class="text-3 oldTextjp2" oldstyle="font-size: 16px;" @click="getPoint()">
  124. 重新定位
  125. </view>
  126. </view>
  127. <view class="img-box">
  128. <img src="static/img/暂无网络信号-缺省页 1.png">
  129. </view>
  130. </view>
  131. </view>
  132. <view v-else-if="message == 'getLocation:ok'&&stationslist.length==0">
  133. <view class="carNone" v-if="stationslist.length == 0">
  134. <img src="static/img/暂无数据-缺省页.png" alt="">
  135. <p class="oldTextjp2" oldstyle="font-size: 18px;">{{loading?'暂无可用充电站':'正在为你加载可用的充电站...'}}</p>
  136. </view>
  137. </view>
  138. <view v-else>
  139. <view v-show="!viewMode">
  140. <view v-for="(item,index) in stationslist" :key="item.id" class="charing-slow"
  141. @click="stationDetail(item)">
  142. <view class="address">
  143. <view class="name oldTextjp" oldstyle="font-size: 20px;">
  144. {{item.name}}
  145. </view>
  146. <view class="distance " v-if="item.distance != '99999999'">
  147. <text class="iconfont" style="color:#666666">&#xe615;</text>
  148. {{item.distance!=null && item.distance>0.1 ? item.distance.toFixed(1)+'公里' : '小于100米'}}
  149. </view>
  150. <view class="distance oldTextjp2" oldstyle="font-size: 16px;" v-else>
  151. <text class="iconfont" style="color:#666666">&#xe615;</text>
  152. 暂无定位
  153. </view>
  154. </view>
  155. <view class="sign" v-if="item.stationType==50">
  156. {{item.address}}
  157. </view>
  158. <view class="sign" v-else>
  159. <template v-if="personInfo&&personInfo.userType!=1">
  160. <view class="sign-1" v-if="item.giveDiscount&&item.discountRatio&&item.discountRatio!=100">
  161. 会员服务费{{discountRatio10(item.discountRatio)}}折</view>
  162. <view class="sign-3" v-if="item.category=='超充'">160kW超充站</view>
  163. <view class="sign-4"
  164. v-if="item.id=='3c554cea-f522-4281-b582-d761510ed91e'||item.id=='3865b3a3-13fd-461a-8145-ee9711df35a2'||item.nightLowPriceEnabled">
  165. 夜间超低价</view>
  166. <view class="sign-2" v-if="item.tagList.length != 0"
  167. v-for="(tagName,tagIndex) in item.tagList" :key="tagIndex">{{tagName}}</view>
  168. </template>
  169. </view>
  170. <view class="price-free price-freeList">
  171. <view class="price">
  172. <view class="price-1">
  173. <text class="num">{{!item.giveDiscount ? (item.electricityPrice+item.servicePrice).toFixed(2)
  174. : (item.electricityPrice+item.discountServicePrice).toFixed(2)}}</text>
  175. <text class="unit " oldstyle="font-size: 14px;">
  176. 元/度
  177. </text>
  178. </view>
  179. <view class="price-2 " oldstyle="font-size: 14px;" v-if="item.giveDiscount">
  180. <text class="num">{{(item.electricityPrice+item.servicePrice).toFixed(2)}}</text>
  181. <text class="unit">元/度</text>
  182. </view>
  183. </view>
  184. <view class="free">
  185. <view class="fast" v-if="item.fastNum">
  186. <view class="fast-font">
  187. </view>
  188. <view class="num">
  189. {{item.fastAvailableNum}}/{{item.fastNum}}
  190. </view>
  191. </view>
  192. <view class="slow" v-if="item.slowNum">
  193. <view class="slow-font">
  194. </view>
  195. <view class="num">
  196. {{item.slowAvailableNum}}/{{item.slowNum}}
  197. </view>
  198. </view>
  199. </view>
  200. </view>
  201. </view>
  202. <u-divider margin-top="20" bg-color="#F2F4F4"
  203. v-if="stationslist.length == recordsTotal">已经到底了</u-divider>
  204. </view>
  205. <view v-show="viewMode">
  206. </view>
  207. </view>
  208. <Tabbar :current="2" ref="tabbarMain" ></Tabbar>
  209. </view>
  210. </template>
  211. <script>
  212. import * as indexAPI from '@/apis/index.js'
  213. import * as api from '@/apis/site.js';
  214. import Tabbar from '@/components/Tabbar.vue';
  215. import Chargermap from '@/components/Chargermap.vue';
  216. import jpDropdown from '@/components/Udropdown.vue';
  217. import uniCombox from '@/components/uni-combox/components/uni-combox/uni-combox.vue'
  218. import * as WxJsApi from '@/utils/wxJsApi.js'
  219. export default {
  220. components: {
  221. Chargermap,
  222. Tabbar,
  223. uniCombox,
  224. jpDropdown
  225. },
  226. data() {
  227. return {
  228. personInfo:{},
  229. loading:false,
  230. viewMode: false, //列表
  231. inputStyle: {
  232. backgroundColor: 'transparent',
  233. "font-size": '32rpx',
  234. },
  235. cities: ['荆州市'],
  236. radiuses: ['1公里', '2公里', '5公里', '10公里', '20公里', '50公里', '100公里', '200公里'],
  237. types: ['全部', '交流快充', '直流慢充'],
  238. stationTypes: ['全部', '公共充电桩', '个人充电桩'],
  239. info: {
  240. miles_type: [{
  241. distance: 1,
  242. text: '1公里'
  243. },
  244. {
  245. distance: 2,
  246. text: '2公里'
  247. },
  248. {
  249. distance: 5,
  250. text: '5公里'
  251. },
  252. {
  253. distance: 10,
  254. text: '10公里'
  255. },
  256. {
  257. distance: 20,
  258. text: '20公里'
  259. },
  260. {
  261. distance: 50,
  262. text: '50公里'
  263. },
  264. {
  265. distance: 100,
  266. text: '100公里'
  267. },
  268. {
  269. distance: 200,
  270. text: '200公里'
  271. }
  272. ],
  273. obc_type: [{
  274. value: '',
  275. text: '全部'
  276. }, {
  277. value: 1,
  278. text: '直流快充'
  279. }, {
  280. value: 2,
  281. text: '交流慢充'
  282. }],
  283. obc_status: [{
  284. value: 0,
  285. text: '对外开放'
  286. }, {
  287. value: 1,
  288. text: '不对外开放'
  289. }],
  290. obc_voltage: [{
  291. value: 0,
  292. text: '低于700V'
  293. }, {
  294. value: 1,
  295. text: '700V及以上'
  296. }],
  297. obc_power: {
  298. minValue: 0,
  299. maxValue: 1000
  300. },
  301. obc_stationType: [{
  302. value: '',
  303. text: '全部'
  304. }, {
  305. value: 1,
  306. text: '公共充电桩'
  307. }, {
  308. value: 50,
  309. text: '个人充电桩'
  310. }]
  311. },
  312. preference: {
  313. miles_index: 3,
  314. obc_stationType_index: 0,
  315. obc_type_index: 0,
  316. obc_status_index: 0,
  317. obc_voltage_index: 0,
  318. save_preference: false,
  319. obc_power: {
  320. minValue: 0,
  321. maxValue: 500
  322. }
  323. },
  324. area: '荆州市',
  325. raidus: '10公里',
  326. type: '全部',
  327. stationType: '全部',
  328. longitude: '',
  329. latitude: '',
  330. message: '',
  331. stationslist: [],
  332. pointTimeOut: true,
  333. dropdownShow:false,
  334. currentIndex:0,
  335. }
  336. },
  337. onUnload() {
  338. //this.timeOut = false;
  339. this.pointTimeOut = false;
  340. },
  341. onHide() {
  342. //this.timeOut = false;
  343. this.pointTimeOut = false;
  344. },
  345. onShow() {
  346. if (this.$refs.tabbarMain) {
  347. this.$refs.tabbarMain.setcount(2);
  348. }
  349. if (!this.pointTimeOut) {
  350. this.pointTimeOut = true
  351. this.getPointTimeOut();
  352. }
  353. },
  354. onReady() {
  355. WxJsApi.getWxConfig(['getLocation', 'addEventListener', 'scanQRCode']).then((res) => {
  356. // //(res)
  357. }).catch(error => {
  358. //(res)
  359. })
  360. if (this.carhelp.getPersonInfo()) {
  361. // this.userId = this.carhelp.getPersonInfo().id;
  362. this.personInfo=this.carhelp.getPersonInfo();
  363. }
  364. this.getPointTimeOut();
  365. },
  366. methods: {
  367. updateType2(e) {
  368. this.preference.obc_stationType_index = e.value;
  369. this.close();
  370. },
  371. updateType(e) {
  372. this.preference.obc_type_index = e.value;
  373. this.close();
  374. },
  375. updateRadius(e) {
  376. this.preference.miles_index = e.value;
  377. this.close();
  378. },
  379. close() {
  380. this.updateTypeSelector('')
  381. this.type = this.info.obc_type[this.preference.obc_type_index].text;
  382. this.raidus = this.info.miles_type[this.preference.miles_index].text;
  383. this.stationType = this.info.obc_stationType[this.preference.obc_stationType_index].text;
  384. if (this.preference.save_preference) {
  385. this.carhelp.set('preference', this.preference)
  386. }
  387. this.searchStationData();
  388. },
  389. getPoint() {
  390. if (this.stationslist.length != 0) {
  391. return
  392. }
  393. WxJsApi.getLocation().then((res) => {
  394. this.latitude = parseFloat(res.latitude);
  395. this.longitude = parseFloat(res.longitude);
  396. this.message = res.errMsg;
  397. if (res.errMsg != 'getLocation:ok') {
  398. uni.showToast({
  399. title: res
  400. })
  401. } else {
  402. this.searchStationData()
  403. }
  404. }).catch(error => {
  405. uni.showToast({
  406. title: error,
  407. icon: "none"
  408. })
  409. })
  410. },
  411. searchStationData() {
  412. let data1 = {
  413. latitude: this.latitude,
  414. longitude: this.longitude,
  415. findType: "1",
  416. pageIndex: 1,
  417. pageSize: 999
  418. };
  419. data1.type = this.info.obc_type[this.preference.obc_type_index].value;
  420. if(this.info.miles_type[this.preference.miles_index].distance!=null)
  421. data1.raidus = this.info.miles_type[this.preference.miles_index].distance.toString();
  422. if(this.preference.obc_stationType_index!=null){
  423. data1.stationType= this.info.obc_stationType[this.preference.obc_stationType_index].value
  424. }
  425. this.currentIndex = -1;
  426. //data1.findType = this.viewMode?"0":"1";
  427. uni.showLoading({})
  428. if (this.carhelp.getPersonInfo()) {
  429. data1.openId=this.carhelp.getOpenId()
  430. }
  431. this.loading=false
  432. api.getChargingStationData(data1).then(res=>{
  433. uni.hideLoading()
  434. this.loading=true
  435. this.recordsTotal = res.data.recordsTotal;
  436. this.stationslist = res.data.data;
  437. if(data1.findType == "0"){
  438. this.$refs.amap.calcDistances([this.longitude, this.latitude],this.stationslist)
  439. this.$refs.amap.setChargerList(this.stationslist);
  440. this.currentIndex = 0;
  441. if(this.stationslist.length){
  442. this.$refs.amap.updateCharger(this.stationslist[0]);
  443. }
  444. }else{
  445. }
  446. }).catch(error => {
  447. uni.showToast({
  448. title: error,
  449. icon: "none"
  450. })
  451. })
  452. },
  453. getPointTimeOut() {
  454. setTimeout(() => {
  455. if (this.pointTimeOut) {
  456. this.getPoint();
  457. }
  458. }, 1000)
  459. },
  460. closeDropdown() {
  461. this.$refs.uDropdown.close();
  462. },
  463. close_all(){
  464. this.updateTypeSelector('')
  465. },
  466. updateTypeSelector(val) {
  467. var sz = ["raidus", "type", "stationType", 'city']
  468. for (var i in sz) {
  469. if (i == val && val != '') {
  470. } else {
  471. this.$refs[sz[i]].closeSelector();
  472. }
  473. }
  474. //this.show = false;
  475. },
  476. }
  477. }
  478. </script>
  479. <style lang="scss" scoped>
  480. @import "@/_theme.scss";
  481. .ujp-navbar-main {
  482. display: flex;
  483. flex-direction: column;
  484. width: 100%;
  485. height: 100%;
  486. .ujp-navbar-main1 {
  487. display: flex;
  488. flex-direction: row;
  489. height: 100%;
  490. align-items: center;
  491. margin-top: 0rpx;
  492. padding-top: 0rpx;
  493. padding-bottom: 20rpx;
  494. }
  495. .ujp-navbar-main2 {
  496. display: flex;
  497. flex-direction: row;
  498. width: 100%;
  499. justify-content: space-between;
  500. align-items: center;
  501. }
  502. }
  503. .preference_group_item {
  504. padding: 15rpx;
  505. }
  506. .preference_group {
  507. padding-bottom: 20rpx;
  508. }
  509. .preference {
  510. background-color: #ffffff;
  511. left: 0rpx;
  512. // position: absolute
  513. }
  514. .preference_item {
  515. margin-bottom: 10rpx;
  516. margin-left: 20rpx;
  517. text-align: center;
  518. border-style: none;
  519. width: 20%;
  520. height: 56rpx;
  521. /* line-height: 14px;*/
  522. }
  523. .content-s {
  524. height: 640rpx;
  525. overflow-y: scroll;
  526. text-align: left;
  527. }
  528. .preference_item_medium {
  529. margin-bottom: 10rpx;
  530. margin-left: 20rpx;
  531. text-align: center;
  532. border-style: none;
  533. min-width: 22%;
  534. height: 56rpx;
  535. @include themeify {
  536. font-size: themed('font-size2');
  537. line-height: themed('font-size2');
  538. }
  539. /* line-height: 14px;*/
  540. }
  541. .preference_item_plus {
  542. margin-bottom: 10rpx;
  543. margin-left: 20rpx;
  544. align-items: center;
  545. justify-content: center;
  546. text-align: center;
  547. width: 28%;
  548. border-style: none;
  549. height: 56rpx;
  550. @include themeify {
  551. font-size: themed('font-size2');
  552. line-height: themed('font-size2');
  553. }
  554. /* line-height: 14px;*/
  555. }
  556. .preference_label {
  557. @include themeify {
  558. color: themed('font_colorLabel');
  559. font-size: themed('font-size1');
  560. font-weight: themed('fontWeight');
  561. }
  562. margin-left: 20rpx;
  563. margin-bottom: 100rpx;
  564. }
  565. .pre-btn {
  566. width: 100%;
  567. height: 96rpx;
  568. z-index: 999;
  569. }
  570. .btn-1,
  571. .btn-2 {
  572. height: 96rpx;
  573. line-height: 96rpx;
  574. text-align: center;
  575. border-top: 1px solid rgba(225, 228, 232, 100);
  576. }
  577. .station,
  578. .location,
  579. .state1 {
  580. box-shadow: 0px 4rpx 12rpx 0px #008c4a33;
  581. }
  582. //定位
  583. .location {
  584. width: 91.4%;
  585. background-color: #ffffff;
  586. height: 120px;
  587. display: flex;
  588. justify-content: space-between;
  589. margin: 20px auto 0;
  590. border-radius: 8px;
  591. border: #F2F4F4 1px;
  592. .location-text {
  593. padding: 24px 0 0 28px;
  594. .text-1 {
  595. height: 16px;
  596. line-height: 16px;
  597. color: rgba(16, 16, 16, 100);
  598. font-size: 16px;
  599. text-align: left;
  600. }
  601. .text-2 {
  602. height: 17px;
  603. line-height: 17px;
  604. color: rgba(102, 102, 102, 100);
  605. font-size: 12px;
  606. text-align: left;
  607. margin-top: 4px;
  608. white-space: nowrap; //强制不换行
  609. text-overflow: ellipsis; //文本超出出现省略号
  610. overflow: hidden;
  611. }
  612. .text-3 {
  613. width: 80px;
  614. height: 24px;
  615. line-height: 22px;
  616. border-radius: 50px;
  617. color: rgba(0, 185, 98, 100);
  618. font-size: 12px;
  619. text-align: center;
  620. border: 1px solid rgba(0, 185, 98, 100);
  621. margin-top: 11px;
  622. }
  623. }
  624. .img-box {
  625. width: 120px;
  626. height: 120px;
  627. margin-right: 20px;
  628. }
  629. }
  630. .carNone{
  631. display: flex;
  632. flex-direction: column;
  633. justify-content: center;
  634. align-items: center;
  635. img{
  636. width: 100%;
  637. height: 100%;
  638. }
  639. p{
  640. margin-top: -60px;
  641. }
  642. }
  643. .charing-slow{
  644. box-shadow: 0px 4rpx 12rpx 0px #008c4a33;
  645. background-color: #fff;
  646. margin: 36rpx;
  647. border-radius: 16rpx;
  648. padding: 40rpx 24rpx 24rpx;
  649. position: relative;
  650. left: 0;
  651. right: 0;
  652. }
  653. .sign{
  654. display: flex;
  655. flex-wrap: wrap;
  656. margin-top: 10px;
  657. .sign-1{
  658. height: 20px;
  659. line-height: 20px;
  660. border-radius: 4px;
  661. background-color: rgba(255, 255, 255, 100);
  662. color: rgba(255, 139, 0, 100);
  663. font-size: 12px;
  664. text-align: center;
  665. border: 1px solid rgba(255, 139, 0, 100);
  666. padding: 0 4px;
  667. margin-right: 8px;
  668. margin-bottom: 4px;
  669. }
  670. .sign-2{
  671. height: 20px;
  672. line-height: 20px;
  673. border-radius: 4px;
  674. background-color: rgba(255, 255, 255, 100);
  675. color: rgba(153, 153, 153, 100);
  676. font-size: 12px;
  677. text-align: center;
  678. border: 1px solid rgba(204, 204, 204, 100);
  679. padding: 0 4px;
  680. margin-right: 8px;
  681. margin-bottom: 4px;
  682. }
  683. .sign-3{
  684. line-height: 40rpx;
  685. border-radius: 8rpx;
  686. background-color: rgba(255, 255, 255, 100);
  687. color: #8161FF ;
  688. font-size: 24rpx;
  689. text-align: center;
  690. border: 1px solid #8161FF;
  691. padding: 0 8rpx;
  692. margin-right: 16rpx;
  693. margin-bottom: 8rpx;
  694. }
  695. .sign-4 {
  696. line-height: 40rpx;
  697. border-radius: 8rpx;
  698. background-color: rgba(255, 255, 255, 100);
  699. color: #00B962;
  700. font-size: 24rpx;
  701. text-align: center;
  702. border: 1px solid #00B962;
  703. padding: 0 8rpx;
  704. margin-right: 16rpx;
  705. margin-bottom: 8rpx;
  706. }
  707. }
  708. .address {
  709. width: 100%;
  710. line-height: 20px;
  711. display: flex;
  712. justify-content: space-between;
  713. .name{
  714. font-size: 16px;
  715. white-space: nowrap;
  716. overflow: hidden;
  717. text-overflow: ellipsis;
  718. }
  719. .distance{
  720. color: rgba(102, 102, 102, 100);
  721. text-align: end;
  722. font-size: 30rpx;
  723. width: 180rpx;
  724. min-width: 180rpx;
  725. .iconfont{
  726. font-size: 12px;
  727. margin-right: 2px;
  728. }
  729. }
  730. @include themeify{
  731. font-size: themed('font-size5');
  732. line-height: themed('font-size7');
  733. }
  734. /* font-size: 11px;*/
  735. font-weight: 600;
  736. color: #101010;
  737. }
  738. .price-free{
  739. width: 100%;
  740. display: flex;
  741. align-items: center;
  742. justify-content: space-between;
  743. }
  744. .price {
  745. display: flex;
  746. align-items: baseline;
  747. line-height: 40rpx;
  748. .price-1{
  749. .num {
  750. color: rgba(255, 98, 0, 100);
  751. font-size: 44rpx;
  752. height: 44rpx;
  753. text-align: left;
  754. font-family: Roboto-medium;
  755. }
  756. .unit {
  757. // font-size: 12px;
  758. color: rgba(102, 102, 102, 100);
  759. @include themeify{
  760. // font-size: themed('font-size2');
  761. font-size: 24rpx;
  762. height: themed('font-size2');
  763. }
  764. text-align: left;
  765. font-family: AlibabaPuHui-regular;
  766. margin-left: 8rpx;
  767. }
  768. }
  769. .price-2{
  770. color: rgba(153, 153, 153, 100);
  771. margin-left: 6rpx;
  772. text-decoration: line-through;
  773. font-size: 24rpx
  774. }
  775. }
  776. .free{
  777. display: flex;
  778. align-items: center;
  779. .slow,.fast{
  780. display: flex;
  781. .sp-font{
  782. width: 40rpx;
  783. height: 40rpx;
  784. line-height: 40rpx;
  785. border-radius: 4px;
  786. background-color: #7a68f6;
  787. color: #fff;
  788. font-size: 28rpx;
  789. text-align: center;
  790. margin-right: 2rpx;
  791. }
  792. .fast-font{
  793. width: 40rpx;
  794. height: 40rpx;
  795. line-height: 40rpx;
  796. border-radius: 4px;
  797. background-color: rgba(186, 240, 215, 100);
  798. color: rgba(0, 130, 69, 100);
  799. font-size: 28rpx;
  800. text-align: center;
  801. margin-right: 2rpx;
  802. }
  803. .slow-font{
  804. width: 40rpx;
  805. height: 40rpx;
  806. line-height: 40rpx;
  807. border-radius: 4px;
  808. background-color: rgba(226, 226, 226, 100);
  809. color: rgba(128, 128, 128, 100);
  810. font-size: 28rpx;
  811. text-align: center;
  812. margin-right: 2rpx;
  813. }
  814. .num{
  815. font-size: 32rpx;color: rgba(0, 145, 67, 100);
  816. line-height: 40rpx;
  817. }
  818. }
  819. .slow{
  820. margin-left: 16rpx;
  821. }
  822. }
  823. </style>