index.vue 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173
  1. <template>
  2. <view>
  3. <!-- 头部图片 -->
  4. <view class="banner">
  5. <u-swiper bg-color="#fff"
  6. :img-mode="'scaleToFill'" height="400"
  7. :list="bannerList" @click="clickBanner" :name="'picUrl'" >
  8. </u-swiper>
  9. <!-- <img :src="indexLogo?indexLogo:'static/img/banner1.jpg'" alt="">
  10. -->
  11. </view>
  12. <!-- 选项列表 -->
  13. <view class="option-list">
  14. <view class="list-item" @click="getScanCode">
  15. <view class="icon iconfont" style="background-color:#59d96e;">
  16. &#xe61a;
  17. </view>
  18. <view class="text oldTextjp2" oldstyle="font-size: 18px;">
  19. 扫码充电
  20. </view>
  21. </view>
  22. <view class="list-item" @click="fastRecharge">
  23. <view class="icon iconfont" style="background-color:#4BD2C0;">
  24. &#xe629;
  25. </view>
  26. <view class="text oldTextjp2" oldstyle="font-size: 18px;">
  27. 快速充值
  28. </view>
  29. </view>
  30. <view class="list-item" @click="chargingRecord">
  31. <view class="icon iconfont" style="background-color: #6FA5FF;">
  32. &#xe625;
  33. </view>
  34. <view class="text oldTextjp2" oldstyle="font-size: 18px;">
  35. 充电记录
  36. </view>
  37. </view>
  38. <view class="list-item" @click="toSearchPile">
  39. <view class="icon iconfont" style="background-color: #9D9FFF;">
  40. &#xe622;
  41. </view>
  42. <view class="text oldTextjp2" oldstyle="font-size: 18px;">
  43. 附近站点
  44. </view>
  45. </view>
  46. </view>
  47. <!-- 模式选择 -->
  48. <u-mask :show="show=false">
  49. <view class="wrap">
  50. <view class="shema" @tap.stop>
  51. <view class="title">
  52. 设置浏览模式
  53. </view>
  54. <view class="">
  55. <u-radio-group v-model="value">
  56. <u-radio v-for="(item, index) in list" :key="index" :name="item.name" :disabled="item.disabled" active-color="red">
  57. {{item.name}}
  58. <p v-if="item.name == '长辈模式'">字体更大 看的清楚</p>
  59. <p v-if="item.name == '标准模式'">信息丰富 功能全面</p>
  60. </u-radio>
  61. </u-radio-group>
  62. </view>
  63. <view class="hint">可在 {{""}}我的-设置 {{""}}页面中切换</view>
  64. <view class="btn-box">
  65. <u-button class="choice-btn" type="success" shape="circle" @click="elderClick">我选好了</u-button>
  66. </view>
  67. </view>
  68. </view>
  69. </u-mask>
  70. <view style="height:50px"></view>
  71. <!-- 站点 -->
  72. <view class="station" v-if="message == 'getLocation:ok' && chargeList.length == 0"
  73. @click="gotoUrl('pages/searchPile/stationAndPile/stationDetails?id=' + stationData.id)">
  74. <view class="img-box">
  75. <img src="static/img/Frame 198 (1).png" alt="">
  76. </view>
  77. <view class="text">
  78. <view class="station-title">
  79. <text class="title-left oldTextjp2" oldstyle="font-size: 14px;background-color: #9D9FFF;" v-if="stationData.type == '1'" style="background-color: #9D9FFF;">快充</text>
  80. <text class="title-left oldTextjp2" oldstyle="font-size: 14px;background-color: #00B962;" v-if="stationData.type == '2'" style="background-color: #00B962;">慢充</text>
  81. <text class="title-left oldTextjp2" oldstyle="font-size: 14px;background-color: #00BAC8;" v-if="stationData.type == '1,2'" style="background-color: #00BAC8;">快/慢</text>
  82. <text class="title-right oldTextjp" oldstyle="font-size: 20px;">{{stationData.name}}</text>
  83. </view>
  84. <view class="station-price">
  85. <view class="price-left">{{stationData.costPrice}}</view>
  86. <view class="price-right">
  87. 元/度 起
  88. </view>
  89. </view>
  90. <view class="park">
  91. <text class="park-p">p</text>
  92. <text class="park-text oldTextjp2" oldstyle="font-size: 14px;">2小时停车免费</text>
  93. </view>
  94. <view class="count">
  95. <view class="count-left">
  96. <span class="oldTextjp2" oldstyle="font-size: 16px;">空闲{{stationData.availableNum}}/</span>
  97. <span class="oldTextjp" oldstyle="font-size: 16px;">总数{{stationData.totalNum}}</span>
  98. </view>
  99. <view class="count-right oldTextjp" oldstyle="font-size: 16px;" v-if="distance > 0.1">
  100. <text class="iconfont">&#xe615;</text>{{distance.toFixed(1)}}公里</view>
  101. <view class="count-right oldTextjp" oldstyle="font-size: 16px;" v-else>
  102. <text class="iconfont">&#xe615;</text>小于100米</view>
  103. </view>
  104. </view>
  105. </view>
  106. <!-- 定位 -->
  107. <view class="location-box" v-if="message != 'getLocation:ok' && chargeList.length == 0">
  108. <view class="location">
  109. <view class="location-text">
  110. <view class="text-1 oldTextjp" oldstyle="font-size: 20px;">
  111. 定位中...
  112. </view>
  113. <view class="text-2 oldTextjp2" oldstyle="font-size: 16px;">
  114. 授权定位后可查询附近充电站
  115. </view>
  116. <view class="text-3 oldTextjp2" oldstyle="font-size: 16px;" @click="getPoint()">
  117. 重新定位
  118. </view>
  119. </view>
  120. <view class="img-box">
  121. <img src="static/img/暂无网络信号-缺省页 1.png">
  122. </view>
  123. </view>
  124. </view>
  125. <!-- 充电状态 -->
  126. <view class="state1 state" v-if="chargeList.length > 0" v-for="(item,index) in chargeList" :key="item.id"
  127. @click="gotoUrl('pages/searchPile/chargeProcess/dcCharging?id=' + item.id)">
  128. <view class="state-text">
  129. <view class="text-1 oldTextjp" oldstyle="font-size: 20px;">
  130. {{item.statusText}}
  131. </view>
  132. <view v-if="item.status == '0'" class="text-2 oldTextjp2" oldstyle="font-size: 16px;">
  133. 启动中
  134. </view>
  135. <view v-if="item.status == '1'" class="text-2 oldTextjp2" oldstyle="font-size: 16px;">
  136. 已充{{item.dueFee != null ? item.dueFee : '0.00'}}元
  137. </view>
  138. <!-- <view v-if="item.status == '2'" class="text-2" style="color: red;">
  139. 超出时间将收取占位费
  140. </view> -->
  141. <view v-if="item.status == '4'" class="text-2 oldTextjp2" oldstyle="font-size: 16px;">
  142. 前方等待{{item.waitNum}}位
  143. </view>
  144. <view class="text-3 oldTextjp2" oldstyle="font-size: 16px;">
  145. {{item.deviceName}}/<br />{{item.deviceNo}}
  146. </view>
  147. </view>
  148. <view class="img-box">
  149. <img v-if="item.status == '0'" src="static/img/等待中-缺省页.png">
  150. <img v-if="item.status == '1'" src="static/img/充电中-缺省页.png">
  151. <img v-if="item.status == '2'" src="static/img/已充满-缺省页.png">
  152. <img v-if="item.status == '4'" src="static/img/等待中-缺省页.png">
  153. </view>
  154. </view>
  155. <!-- 充值活动 -->
  156. <view class=" top-up" v-if="activityList.length > 0">
  157. <view class="top-up-title oldTextjp" oldstyle="font-size:20px;"><text class="line"></text>充值活动</view>
  158. <view class="img-box">
  159. <view class="img-1" v-for="(item,index) in activityList" :key="item.id"
  160. @click="rechargeActivity(index)">
  161. <img :src="item.picUrl" alt="">
  162. </view>
  163. </view>
  164. </view>
  165. <!-- 新闻 -->
  166. <view class="news-title" v-if="newsList.length > 0">
  167. <view class="news-title-left oldTextjp" oldstyle="font-size:20px;">
  168. <view class="line" style="margin-top:4px;"></view>新闻公告
  169. </view>
  170. <view class="more oldTextjp2" oldstyle="font-size:16px;" @click="toNewsNotice">更多<view class="more-icon iconfont"> &#xe600;</view>
  171. </view>
  172. </view>
  173. <view class="news">
  174. <view class="news-content" v-for="(item,index) in newsList" :key="item.id"
  175. @click="gotoUrl('pages/article/articleDetails?id=' + item.id)">
  176. <view class="content-text">
  177. <view class="content-title oldTextjp2" oldstyle="font-size: 18px;">{{item.title}}</view>
  178. <view class="news-time">{{item.createTime?item.createTime.slice(5,10):''}}</view>
  179. </view>
  180. <view class="content-img">
  181. <img :src="item.pic ? item.pic : 'static/img/image_default.png'" alt="">
  182. </view>
  183. </view>
  184. </view>
  185. <view class="bottom" v-if="newsList.length == recordsTotal && newsList.length != 0">
  186. <view class="bot">
  187. <view class="bot-line"></view>
  188. <view class="bot-text oldTextjp2" oldstyle="font-size: 14px;">已经到底了</view>
  189. <view class="bot-line"></view>
  190. </view>
  191. </view>
  192. <!-- 导航栏 -->
  193. <view class="navigation">
  194. <view class="login-prompt" v-if="!userId">
  195. 登录显示更多会员服务
  196. <text class="button" @click="toLogin">登录/注册</text>
  197. </view>
  198. </view>
  199. <Tabbar :current="0" ref="tabbarMain" ></Tabbar>
  200. </view>
  201. </template>
  202. <script>
  203. import * as API from '@/apis/index.js'
  204. import * as newsApi from '@/apis/news.js'
  205. import * as WxJsApi from '@/utils/wxJsApi.js'
  206. import * as siteApi from '@/apis/site.js';
  207. import MapLoader from '@/utils/AMap'
  208. import Tabbar from '@/components/Tabbar.vue'
  209. export default {
  210. components: {
  211. Tabbar
  212. },
  213. data() {
  214. return {
  215. bannerList:[],
  216. distance: 0,
  217. timeOut: false,
  218. pointTimeOut: true,
  219. stationData: {},
  220. chargeList: [],
  221. activityList: [],
  222. userId: '',
  223. newsList: [],
  224. pageIndex: 1,
  225. recordsTotal: 0,
  226. longitude: '',
  227. latitude: '',
  228. message: '',
  229. indexLogo: '',
  230. show: false,
  231. list: [{
  232. name: '长辈模式',
  233. disabled: false
  234. },
  235. {
  236. name: '标准模式',
  237. disabled: false
  238. },
  239. ],
  240. // u-radio-group的v-model绑定的值如果设置为某个radio的name,就会被默认选中
  241. value: '长辈模式',
  242. elderStatus: false,
  243. }
  244. },
  245. onLoad(op) {
  246. var indexLogo = this.carhelp.getConfig().indexLogo
  247. // img="https://yktwechat.xiaoxinda.com/config/xxd2021.jpg"
  248. if (indexLogo) {
  249. this.indexLogo = indexLogo;
  250. }
  251. if (op.jpcode) {
  252. var k = API.codeOperation(op.jpcode)
  253. if (k) {
  254. uni.navigateTo({
  255. url: k
  256. })
  257. }
  258. }
  259. this.getBannerInfo("homepage")
  260. },
  261. onUnload() {
  262. this.timeOut = false;
  263. this.pointTimeOut = false;
  264. },
  265. onHide() {
  266. this.timeOut = false;
  267. this.pointTimeOut = false;
  268. },
  269. onReachBottom() {
  270. if (this.newsList.length < this.recordsTotal) {
  271. this.myLoadmore();
  272. }
  273. },
  274. onShow() {
  275. if(this.$refs.tabbarMain){
  276. this.$refs.tabbarMain.setcount(0);
  277. }
  278. },
  279. onReady() {
  280. if (this.carhelp.getPersonInfo()) {
  281. this.userId = this.carhelp.getPersonInfo().id;
  282. this.getFindChargeData();
  283. if (this.carhelp.get("getElderModeClass")) {
  284. this.show = false;
  285. if(this.carhelp.get("getElderModeClass") == "长辈模式") {
  286. this.elderStatus = true;
  287. } else {
  288. this.elderStatus = false;
  289. }
  290. } else {
  291. this.show = true;
  292. }
  293. }
  294. WxJsApi.getWxConfig(['getLocation', 'addEventListener', 'scanQRCode']).then((res) => {
  295. // console.log(res)
  296. }).catch(error => {
  297. console.log(res)
  298. })
  299. this.getPointTimeOut();
  300. this.getNewsList();
  301. this.getActivityInfoList();
  302. },
  303. methods: {
  304. clickBanner(index){
  305. },
  306. getBannerInfo(code){
  307. uni.showLoading({
  308. title: "加载中",
  309. mask: true,
  310. })
  311. newsApi.getBannerInfo(code).then((res) => {
  312. this.bannerList =res.data;
  313. uni.hideLoading()
  314. document.getElementsByClassName("uni-swiper-wrapper")[0].parentNode.style="background-color: rgb(255, 255, 255); height: 200px;"
  315. }).catch(error => {
  316. uni.showToast({
  317. title: error,icon: "none"
  318. })
  319. })
  320. },
  321. elderClick() {
  322. if(this.value == "长辈模式") {
  323. this.elderStatus = true;
  324. this.carhelp.set("getElderModeClass", "长辈模式");
  325. } else {
  326. this.elderStatus = false;
  327. this.carhelp.set("getElderModeClass", "标准模式");
  328. }
  329. this.show = false;
  330. },
  331. getPointTimeOut() {
  332. setTimeout(() => {
  333. if (this.pointTimeOut) {
  334. this.getPoint();
  335. }
  336. }, 1000)
  337. },
  338. getFindChargeData() {
  339. API.findChargeData().then((res) => {
  340. this.chargeList = res.data.chargingRecordList;
  341. var list = res.data.chargingRecordList;
  342. for (var i = 0; i < list.length; i++) {
  343. if (list[i].status == '1' || list[i].status == '4') {
  344. this.timeOut = true;
  345. }
  346. }
  347. if (this.timeOut) {
  348. setTimeout(() => {
  349. this.getFindChargeData();
  350. }, 5000)
  351. }
  352. }).catch(error => {
  353. uni.showToast({
  354. title: error,
  355. icon: "none"
  356. })
  357. })
  358. },
  359. toSearchPile() {
  360. uni.navigateTo({
  361. url: '/pages/searchPile/searchPile'
  362. })
  363. },
  364. toLogin() {
  365. uni.navigateTo({
  366. url: '/pages/login/login'
  367. })
  368. },
  369. toNewsNotice() {
  370. uni.navigateTo({
  371. url: '/pages/article/newsNotice'
  372. })
  373. },
  374. //微信扫二维码
  375. getScanCode() {
  376. if (this.userId) {
  377. WxJsApi.scanQRCode(1).then(res => {
  378. console.log("scanQRCode------" + res)
  379. if (res) {
  380. API.scanCode(res).then((response) => {
  381. }).catch(error => {
  382. uni.showToast({
  383. title: error,
  384. icon: "none"
  385. })
  386. })
  387. }
  388. }).catch(error => {
  389. })
  390. } else {
  391. uni.navigateTo({
  392. url: '/pages/login/login'
  393. })
  394. }
  395. },
  396. fastRecharge() {
  397. if (this.userId) {
  398. uni.navigateTo({
  399. url: '/pages/user/finance/recharge'
  400. })
  401. } else {
  402. uni.navigateTo({
  403. url: '/pages/login/login'
  404. })
  405. }
  406. },
  407. chargingRecord() {
  408. if (this.userId) {
  409. uni.navigateTo({
  410. url: '/pages/record/index'
  411. })
  412. } else {
  413. uni.navigateTo({
  414. url: '/pages/login/login'
  415. })
  416. }
  417. },
  418. rechargeActivity(index) {
  419. var mod = this.activityList[index]
  420. if (mod.clickUrl == null) {
  421. } else if (mod.clickUrl.indexOf('http') == 0) {
  422. window.location = mod.clickUrl;
  423. } else if (mod.clickUrl.indexOf('#/') == 0) {
  424. if (mod.clickUrl.indexOf("?") == -1) {
  425. mod.clickUrl += '?';
  426. }
  427. var url=mod.clickUrl.split("#")[1]
  428. //window.location = mod.clickUrl;
  429. uni.navigateTo({
  430. url: url
  431. })
  432. } else if (mod.clickUrl == '#' || mod.clickUrl == '') {
  433. } else {
  434. uni.navigateTo({
  435. url: mod.clickUrl
  436. })
  437. }
  438. },
  439. getActivityInfoList() {
  440. uni.showLoading({
  441. title: "加载中",
  442. mask: true,
  443. })
  444. API.activityInfoList({
  445. pageIndex: 1,
  446. pageSize: 10
  447. }).then((res) => {
  448. uni.hideLoading()
  449. this.activityList = res.data.data;
  450. }).catch(error => {
  451. uni.showToast({
  452. title: error,
  453. icon: "none"
  454. })
  455. })
  456. },
  457. getPoint() {
  458. WxJsApi.getLocation().then((res) => {
  459. this.latitude = parseFloat(res.latitude);
  460. this.longitude = parseFloat(res.longitude);
  461. this.message = res.errMsg;
  462. if (res.errMsg != 'getLocation:ok') {
  463. uni.showToast({
  464. title: res
  465. })
  466. } else {
  467. siteApi.searchStationData({
  468. longitude: this.longitude,
  469. latitude: this.latitude
  470. }).then((response) => {
  471. this.stationData = response.data.data[0];
  472. var lnglat = new AMap.LngLat(this.longitude,this.latitude);
  473. var myDistance = lnglat.distance([this.stationData.longitude,this.stationData.latitude]);
  474. this.distance = myDistance/1000;
  475. }).catch(error => {
  476. uni.showToast({
  477. title: error,
  478. icon: "none"
  479. })
  480. })
  481. }
  482. }).catch(error => {
  483. uni.showToast({
  484. title: error,
  485. icon: "none"
  486. })
  487. })
  488. },
  489. getNewsList(bl) {
  490. uni.showLoading({
  491. title: "加载中",
  492. mask: true,
  493. })
  494. if (bl) {
  495. this.newsList = [];
  496. this.pageIndex = 1;
  497. }
  498. newsApi.newsInfoList({
  499. pageIndex: 1,
  500. pageSize: 10
  501. }).then((res) => {
  502. uni.hideLoading()
  503. this.newsList = [
  504. ...this.newsList,
  505. ...res.data.data
  506. ];
  507. this.recordsTotal = res.data.recordsTotal
  508. }).catch(error => {
  509. uni.showToast({
  510. title: error,
  511. icon: "none"
  512. })
  513. })
  514. },
  515. myLoadmore() {
  516. this.pageIndex += 1;
  517. this.getNewsList()
  518. },
  519. }
  520. }
  521. </script>
  522. <style lang="scss" scoped>
  523. // 头部图片
  524. img {
  525. width: 100%;
  526. height: 100%;
  527. }
  528. .banner {
  529. width: 100%;
  530. height: 200px;
  531. }
  532. // 选项列表
  533. .option-list {
  534. width: 91.4%;
  535. padding-top: 18px;
  536. height: 100px;
  537. line-height: 20px;
  538. border-radius: 8px;
  539. text-align: center;
  540. background-color: #fff;
  541. position: absolute;
  542. top: 160px;
  543. left: 0;
  544. right: 0;
  545. margin: auto;
  546. display: flex;
  547. justify-content: space-around;
  548. .list-item {
  549. // 图标
  550. .icon {
  551. width: 40px;
  552. height: 40px;
  553. border-radius: 99px;
  554. line-height: 40px;
  555. font-size: 24px;
  556. text-align: center;
  557. margin: auto;
  558. color: #ffffff;
  559. }
  560. }
  561. }
  562. // 站点
  563. .station {
  564. width: 91.4%;
  565. height: 120px;
  566. margin: 20px auto 0;
  567. position: relative;
  568. .img-box {
  569. width: 100%;
  570. height: 100%;
  571. border-radius: 8px;
  572. overflow: hidden;
  573. }
  574. img {
  575. width: 100%;
  576. height: 100%;
  577. }
  578. .text {
  579. width: 91.4%;
  580. position: absolute;
  581. top: 0;
  582. left: 20px;
  583. // 头部
  584. .station-title {
  585. display: flex;
  586. margin-top: 12px;
  587. .title-left {
  588. display: inline-block;
  589. height: 20px;
  590. width: 44px;
  591. // margin-left: 12px;
  592. line-height: 20px;
  593. border-radius: 50px;
  594. background-color: rgba(133, 140, 255, 100);
  595. color: rgba(255, 255, 255, 100);
  596. font-size: 12px;
  597. text-align: center;
  598. font-family: Arial;
  599. }
  600. .title-right {
  601. display: inline-block;
  602. margin-left: 4px;
  603. margin-top: 2px;
  604. width: 271px;
  605. height: 16px;
  606. line-height: 16px;
  607. color: rgba(16, 16, 16, 100);
  608. font-size: 16px;
  609. text-align: left;
  610. font-family: AlibabaPuHui-regular;
  611. }
  612. }
  613. // 价格
  614. .station-price {
  615. margin-top: 4px;
  616. display: flex;
  617. .price-left {
  618. width: 40px;
  619. height: 20px;
  620. line-height: 20px;
  621. color: rgba(255, 98, 0, 100);
  622. font-size: 20px;
  623. text-align: left;
  624. font-family: Roboto-medium;
  625. }
  626. .price-right {
  627. height: 20px;
  628. line-height: 14px;
  629. margin-left: 2px;
  630. margin-top: 3px;
  631. color: rgba(102, 102, 102, 100);
  632. font-size: 14px;
  633. text-align: left;
  634. font-family: AlibabaPuHui-regular;
  635. }
  636. }
  637. // park
  638. .park {
  639. margin-top: 4px;
  640. display: flex;
  641. .park-p {
  642. display: inline-block;
  643. width: 20px;
  644. height: 18px;
  645. line-height: 12px;
  646. text-align: center;
  647. background-color: rgba(125, 177, 255, 100);
  648. color: #fff;
  649. }
  650. .park-text {
  651. display: inline-block;
  652. width: 300px;
  653. height: 17px;
  654. color: rgba(102, 102, 102, 100);
  655. font-size: 12px;
  656. text-align: left;
  657. margin-left: 2px;
  658. margin-top: 2px;
  659. }
  660. }
  661. // 数量
  662. .count {
  663. margin-top: 14px !important;
  664. width: 91.4%;
  665. display: flex;
  666. justify-content: space-between;
  667. white-space: nowrap;
  668. overflow: hidden;
  669. }
  670. }
  671. }
  672. //定位
  673. .location {
  674. width: 91.4%;
  675. background-color: #ffffff;
  676. height: 120px;
  677. display: flex;
  678. justify-content: space-between;
  679. margin: 20px auto 0;
  680. border-radius: 8px;
  681. border: #F2F4F4 1px;
  682. .location-text {
  683. padding: 24px 0 0 28px;
  684. .text-1 {
  685. height: 16px;
  686. line-height: 16px;
  687. color: rgba(16, 16, 16, 100);
  688. font-size: 16px;
  689. text-align: left;
  690. }
  691. .text-2 {
  692. height: 17px;
  693. line-height: 17px;
  694. color: rgba(102, 102, 102, 100);
  695. font-size: 12px;
  696. text-align: left;
  697. margin-top: 4px;
  698. white-space: nowrap; //强制不换行
  699. text-overflow: ellipsis; //文本超出出现省略号
  700. overflow: hidden;
  701. }
  702. .text-3 {
  703. width: 80px;
  704. height: 24px;
  705. line-height: 22px;
  706. border-radius: 50px;
  707. color: rgba(0, 185, 98, 100);
  708. font-size: 12px;
  709. text-align: center;
  710. border: 1px solid rgba(0, 185, 98, 100);
  711. margin-top: 11px;
  712. }
  713. }
  714. .img-box {
  715. width: 120px;
  716. height: 120px;
  717. margin-right: 20px;
  718. }
  719. }
  720. .state {
  721. width: 91.4%;
  722. background-color: #ffffff;
  723. height: 120px;
  724. display: flex;
  725. margin: 20px auto 0;
  726. border-radius: 8px;
  727. border: #F2F4F4 1px;
  728. .state-text {
  729. width: 61.8%;
  730. padding: 24px 0 0 28px;
  731. .text-1 {
  732. height: 16px;
  733. line-height: 16px;
  734. color: blueviolet;
  735. font-size: 16px;
  736. text-align: left;
  737. }
  738. .text-2 {
  739. height: 17px;
  740. line-height: 17px;
  741. color: #101010;
  742. text-align: left;
  743. margin-top: 12px;
  744. }
  745. .text-3 {
  746. font-size: 12px;
  747. line-height: 20px;
  748. margin-top: 6px;
  749. color: #999999;
  750. }
  751. }
  752. .img-box {
  753. width: 120px;
  754. height: 120px;
  755. margin-right: 20px;
  756. }
  757. }
  758. //充值
  759. .top-up {
  760. margin-left: 16px;
  761. margin-top: 17px;
  762. .top-up-title {
  763. color: rgba(16, 16, 16, 100);
  764. font-size: 16px;
  765. }
  766. .img-box {
  767. margin-top: 12px;
  768. width: 95%;
  769. height: 146px;
  770. display: flex;
  771. justify-content: space-between;
  772. .img-1 {
  773. width: 166px;
  774. height: 146px;
  775. position: relative;
  776. .img-text {
  777. position: absolute;
  778. top: 12px;
  779. left: 12px;
  780. height: 33px;
  781. color: #ff4444;
  782. font-size: 24px;
  783. text-align: left;
  784. margin-left: 12px;
  785. .img-text2 {
  786. font-size: 14px
  787. }
  788. }
  789. }
  790. img {
  791. width: 100%;
  792. height: 100%;
  793. }
  794. }
  795. }
  796. // 小竖线
  797. .line {
  798. display: inline-block;
  799. width: 3px;
  800. height: 12px;
  801. margin-right: 7px;
  802. background-color: rgba(0, 145, 67, 100);
  803. }
  804. // 新闻公告
  805. .news-title {
  806. padding: 0 16px;
  807. margin-top: 12px;
  808. color: rgba(16, 16, 16, 100);
  809. font-size: 16px;
  810. display: flex;
  811. justify-content: space-between;
  812. background-color: #F2F4F4;
  813. .news-title-left {
  814. display: flex;
  815. }
  816. .more {
  817. font-size: 14px;
  818. color: #777777;
  819. display: flex;
  820. line-height: 20px;
  821. .more-icon {
  822. font-size: 24px
  823. }
  824. }
  825. }
  826. .news {
  827. background-color: #fff;
  828. width: 91.4%;
  829. margin: 12px auto 0;
  830. border-radius: 8px;
  831. .news-content {
  832. display: flex;
  833. justify-content: space-between;
  834. padding: 12px;
  835. .content-text {
  836. width: 56.2%;
  837. height: 100%;
  838. line-height: 21px;
  839. color: #101010;
  840. text-align: left;
  841. font-size: 14px;
  842. }
  843. .content-title {
  844. width: 100%;
  845. overflow: hidden;
  846. text-overflow: ellipsis;
  847. display: -webkit-box;
  848. -webkit-box-orient: vertical;
  849. -webkit-line-clamp: 3;
  850. }
  851. .content-img {
  852. width: 40.57%;
  853. height: 100%;
  854. border-radius: 4px;
  855. overflow: hidden;
  856. img {
  857. width: 100%;
  858. height: 80%;
  859. }
  860. }
  861. .news-time {
  862. margin-top: 5%;
  863. color: #999999;
  864. width: 80px;
  865. height: 20px;
  866. font-size: 14px;
  867. }
  868. }
  869. }
  870. .bottom {
  871. width: 100%;
  872. height: 100px;
  873. .bot {
  874. width: 100%;
  875. margin: 0 auto;
  876. padding: 0 17.3%;
  877. justify-content: space-between;
  878. display: flex;
  879. .bot-line {
  880. margin-top: 20px;
  881. width: 21.3%;
  882. height: 0px;
  883. border: 1px solid rgba(207, 210, 213, 100);
  884. }
  885. .bot-text {
  886. white-space: nowrap;
  887. height: 17px;
  888. margin-top: 13px;
  889. margin-left: 12px;
  890. margin-right: 12px;
  891. font-size: 12px;
  892. text-align: center;
  893. color: rgba(182, 189, 195, 100);
  894. }
  895. }
  896. }
  897. // 导航栏
  898. .navigation {
  899. width: 100%;
  900. // height: 40px;
  901. padding: 10px 0;
  902. background-color: #fff;
  903. position: fixed;
  904. bottom: 0;
  905. left: 0;
  906. display: flex;
  907. justify-content: space-around;
  908. text-align: center;
  909. color: #999999;
  910. .nav-icon {
  911. width: 54px;
  912. font-size: 24px
  913. }
  914. .nav-text {
  915. font-size: 14px;
  916. }
  917. }
  918. .shema {
  919. width: 70%;
  920. padding-bottom: 20px;
  921. border-radius: 16px;
  922. background-color: #fff;
  923. position: fixed;
  924. top: 100px;
  925. left: 0;
  926. right: 0;
  927. margin: 0 auto;
  928. z-index: 9999;
  929. .title {
  930. height: 33px;
  931. color: rgba(16, 16, 16, 100);
  932. font-size: 24px;
  933. text-align: center;
  934. padding: 16px 0;
  935. }
  936. .u-radio-group {
  937. margin: 16px 5vw;
  938. }
  939. /deep/.u-radio {
  940. width: 60vw !important;
  941. padding: 24px 24px 40px;
  942. line-height: 20px;
  943. border-radius: 16px;
  944. text-align: center;
  945. border: #101010 1px solid;
  946. margin-top: 12px;
  947. }
  948. /deep/ .u-radio__label {
  949. text-align: left;
  950. height: 24px;
  951. // color: rgba(0, 185, 98, 100);
  952. font-size: 24px;
  953. }
  954. p {
  955. height: 22px;
  956. color: rgba(102, 102, 102, 100);
  957. font-size: 14px;
  958. margin-top: 12px;
  959. white-space: nowrap
  960. }
  961. .hint {
  962. text-align: center;
  963. }
  964. .btn-box {
  965. margin-top: 20px;
  966. .choice-btn {
  967. width: 80%;
  968. }
  969. }
  970. }
  971. .wrap {
  972. display: flex;
  973. align-items: center;
  974. justify-content: center;
  975. height: 100%;
  976. }
  977. // 登录提示
  978. .login-prompt {
  979. width: 91.4%;
  980. height: 40px;
  981. line-height: 40px;
  982. border-radius: 50px;
  983. text-align: left;
  984. padding-left: 16px;
  985. padding-right: 4px;
  986. background-color: rgba(0, 0, 0, 0.6);
  987. position: fixed;
  988. bottom: 75px;
  989. color: #ffffff;
  990. .button {
  991. width: 88px;
  992. height: 32px;
  993. line-height: 32px;
  994. border-radius: 50px;
  995. background-color: rgba(0, 185, 98, 100);
  996. text-align: center;
  997. float: right;
  998. margin-top: 4px;
  999. }
  1000. }
  1001. </style>