index.vue 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179
  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. if (this.userId) {
  420. var mod = this.activityList[index]
  421. if (mod.clickUrl == null) {
  422. } else if (mod.clickUrl.indexOf('http') == 0) {
  423. window.location = mod.clickUrl;
  424. } else if (mod.clickUrl.indexOf('#/') == 0) {
  425. if (mod.clickUrl.indexOf("?") == -1) {
  426. mod.clickUrl += '?';
  427. }
  428. var url=mod.clickUrl.split("#")[1]
  429. //window.location = mod.clickUrl;
  430. uni.navigateTo({
  431. url: url
  432. })
  433. } else if (mod.clickUrl == '#' || mod.clickUrl == '') {
  434. } else {
  435. uni.navigateTo({
  436. url: mod.clickUrl
  437. })
  438. }
  439. } else {
  440. uni.navigateTo({
  441. url: '/pages/login/login'
  442. })
  443. }
  444. },
  445. getActivityInfoList() {
  446. uni.showLoading({
  447. title: "加载中",
  448. mask: true,
  449. })
  450. API.activityInfoList({
  451. pageIndex: 1,
  452. pageSize: 10
  453. }).then((res) => {
  454. uni.hideLoading()
  455. this.activityList = res.data.data;
  456. }).catch(error => {
  457. uni.showToast({
  458. title: error,
  459. icon: "none"
  460. })
  461. })
  462. },
  463. getPoint() {
  464. WxJsApi.getLocation().then((res) => {
  465. this.latitude = parseFloat(res.latitude);
  466. this.longitude = parseFloat(res.longitude);
  467. this.message = res.errMsg;
  468. if (res.errMsg != 'getLocation:ok') {
  469. uni.showToast({
  470. title: res
  471. })
  472. } else {
  473. siteApi.searchStationData({
  474. longitude: this.longitude,
  475. latitude: this.latitude
  476. }).then((response) => {
  477. this.stationData = response.data.data[0];
  478. var lnglat = new AMap.LngLat(this.longitude,this.latitude);
  479. var myDistance = lnglat.distance([this.stationData.longitude,this.stationData.latitude]);
  480. this.distance = myDistance/1000;
  481. }).catch(error => {
  482. uni.showToast({
  483. title: error,
  484. icon: "none"
  485. })
  486. })
  487. }
  488. }).catch(error => {
  489. uni.showToast({
  490. title: error,
  491. icon: "none"
  492. })
  493. })
  494. },
  495. getNewsList(bl) {
  496. uni.showLoading({
  497. title: "加载中",
  498. mask: true,
  499. })
  500. if (bl) {
  501. this.newsList = [];
  502. this.pageIndex = 1;
  503. }
  504. newsApi.newsInfoList({
  505. pageIndex: 1,
  506. pageSize: 10
  507. }).then((res) => {
  508. uni.hideLoading()
  509. this.newsList = [
  510. ...this.newsList,
  511. ...res.data.data
  512. ];
  513. this.recordsTotal = res.data.recordsTotal
  514. }).catch(error => {
  515. uni.showToast({
  516. title: error,
  517. icon: "none"
  518. })
  519. })
  520. },
  521. myLoadmore() {
  522. this.pageIndex += 1;
  523. this.getNewsList()
  524. },
  525. }
  526. }
  527. </script>
  528. <style lang="scss" scoped>
  529. // 头部图片
  530. img {
  531. width: 100%;
  532. height: 100%;
  533. }
  534. .banner {
  535. width: 100%;
  536. height: 200px;
  537. }
  538. // 选项列表
  539. .option-list {
  540. width: 91.4%;
  541. padding-top: 18px;
  542. height: 100px;
  543. line-height: 20px;
  544. border-radius: 8px;
  545. text-align: center;
  546. background-color: #fff;
  547. position: absolute;
  548. top: 160px;
  549. left: 0;
  550. right: 0;
  551. margin: auto;
  552. display: flex;
  553. justify-content: space-around;
  554. .list-item {
  555. // 图标
  556. .icon {
  557. width: 40px;
  558. height: 40px;
  559. border-radius: 99px;
  560. line-height: 40px;
  561. font-size: 24px;
  562. text-align: center;
  563. margin: auto;
  564. color: #ffffff;
  565. }
  566. }
  567. }
  568. // 站点
  569. .station {
  570. width: 91.4%;
  571. height: 120px;
  572. margin: 20px auto 0;
  573. position: relative;
  574. .img-box {
  575. width: 100%;
  576. height: 100%;
  577. border-radius: 8px;
  578. overflow: hidden;
  579. }
  580. img {
  581. width: 100%;
  582. height: 100%;
  583. }
  584. .text {
  585. width: 91.4%;
  586. position: absolute;
  587. top: 0;
  588. left: 20px;
  589. // 头部
  590. .station-title {
  591. display: flex;
  592. margin-top: 12px;
  593. .title-left {
  594. display: inline-block;
  595. height: 20px;
  596. width: 44px;
  597. // margin-left: 12px;
  598. line-height: 20px;
  599. border-radius: 50px;
  600. background-color: rgba(133, 140, 255, 100);
  601. color: rgba(255, 255, 255, 100);
  602. font-size: 12px;
  603. text-align: center;
  604. font-family: Arial;
  605. }
  606. .title-right {
  607. display: inline-block;
  608. margin-left: 4px;
  609. margin-top: 2px;
  610. width: 271px;
  611. height: 16px;
  612. line-height: 16px;
  613. color: rgba(16, 16, 16, 100);
  614. font-size: 16px;
  615. text-align: left;
  616. font-family: AlibabaPuHui-regular;
  617. }
  618. }
  619. // 价格
  620. .station-price {
  621. margin-top: 4px;
  622. display: flex;
  623. .price-left {
  624. width: 40px;
  625. height: 20px;
  626. line-height: 20px;
  627. color: rgba(255, 98, 0, 100);
  628. font-size: 20px;
  629. text-align: left;
  630. font-family: Roboto-medium;
  631. }
  632. .price-right {
  633. height: 20px;
  634. line-height: 14px;
  635. margin-left: 2px;
  636. margin-top: 3px;
  637. color: rgba(102, 102, 102, 100);
  638. font-size: 14px;
  639. text-align: left;
  640. font-family: AlibabaPuHui-regular;
  641. }
  642. }
  643. // park
  644. .park {
  645. margin-top: 4px;
  646. display: flex;
  647. .park-p {
  648. display: inline-block;
  649. width: 20px;
  650. height: 18px;
  651. line-height: 12px;
  652. text-align: center;
  653. background-color: rgba(125, 177, 255, 100);
  654. color: #fff;
  655. }
  656. .park-text {
  657. display: inline-block;
  658. width: 300px;
  659. height: 17px;
  660. color: rgba(102, 102, 102, 100);
  661. font-size: 12px;
  662. text-align: left;
  663. margin-left: 2px;
  664. margin-top: 2px;
  665. }
  666. }
  667. // 数量
  668. .count {
  669. margin-top: 14px !important;
  670. width: 91.4%;
  671. display: flex;
  672. justify-content: space-between;
  673. white-space: nowrap;
  674. overflow: hidden;
  675. }
  676. }
  677. }
  678. //定位
  679. .location {
  680. width: 91.4%;
  681. background-color: #ffffff;
  682. height: 120px;
  683. display: flex;
  684. justify-content: space-between;
  685. margin: 20px auto 0;
  686. border-radius: 8px;
  687. border: #F2F4F4 1px;
  688. .location-text {
  689. padding: 24px 0 0 28px;
  690. .text-1 {
  691. height: 16px;
  692. line-height: 16px;
  693. color: rgba(16, 16, 16, 100);
  694. font-size: 16px;
  695. text-align: left;
  696. }
  697. .text-2 {
  698. height: 17px;
  699. line-height: 17px;
  700. color: rgba(102, 102, 102, 100);
  701. font-size: 12px;
  702. text-align: left;
  703. margin-top: 4px;
  704. white-space: nowrap; //强制不换行
  705. text-overflow: ellipsis; //文本超出出现省略号
  706. overflow: hidden;
  707. }
  708. .text-3 {
  709. width: 80px;
  710. height: 24px;
  711. line-height: 22px;
  712. border-radius: 50px;
  713. color: rgba(0, 185, 98, 100);
  714. font-size: 12px;
  715. text-align: center;
  716. border: 1px solid rgba(0, 185, 98, 100);
  717. margin-top: 11px;
  718. }
  719. }
  720. .img-box {
  721. width: 120px;
  722. height: 120px;
  723. margin-right: 20px;
  724. }
  725. }
  726. .state {
  727. width: 91.4%;
  728. background-color: #ffffff;
  729. height: 120px;
  730. display: flex;
  731. margin: 20px auto 0;
  732. border-radius: 8px;
  733. border: #F2F4F4 1px;
  734. .state-text {
  735. width: 61.8%;
  736. padding: 24px 0 0 28px;
  737. .text-1 {
  738. height: 16px;
  739. line-height: 16px;
  740. color: blueviolet;
  741. font-size: 16px;
  742. text-align: left;
  743. }
  744. .text-2 {
  745. height: 17px;
  746. line-height: 17px;
  747. color: #101010;
  748. text-align: left;
  749. margin-top: 12px;
  750. }
  751. .text-3 {
  752. font-size: 12px;
  753. line-height: 20px;
  754. margin-top: 6px;
  755. color: #999999;
  756. }
  757. }
  758. .img-box {
  759. width: 120px;
  760. height: 120px;
  761. margin-right: 20px;
  762. }
  763. }
  764. //充值
  765. .top-up {
  766. margin-left: 16px;
  767. margin-top: 17px;
  768. .top-up-title {
  769. color: rgba(16, 16, 16, 100);
  770. font-size: 16px;
  771. }
  772. .img-box {
  773. margin-top: 12px;
  774. width: 95%;
  775. height: 146px;
  776. display: flex;
  777. justify-content: space-between;
  778. .img-1 {
  779. width: 166px;
  780. height: 146px;
  781. position: relative;
  782. .img-text {
  783. position: absolute;
  784. top: 12px;
  785. left: 12px;
  786. height: 33px;
  787. color: #ff4444;
  788. font-size: 24px;
  789. text-align: left;
  790. margin-left: 12px;
  791. .img-text2 {
  792. font-size: 14px
  793. }
  794. }
  795. }
  796. img {
  797. width: 100%;
  798. height: 100%;
  799. }
  800. }
  801. }
  802. // 小竖线
  803. .line {
  804. display: inline-block;
  805. width: 3px;
  806. height: 12px;
  807. margin-right: 7px;
  808. background-color: rgba(0, 145, 67, 100);
  809. }
  810. // 新闻公告
  811. .news-title {
  812. padding: 0 16px;
  813. margin-top: 12px;
  814. color: rgba(16, 16, 16, 100);
  815. font-size: 16px;
  816. display: flex;
  817. justify-content: space-between;
  818. background-color: #F2F4F4;
  819. .news-title-left {
  820. display: flex;
  821. }
  822. .more {
  823. font-size: 14px;
  824. color: #777777;
  825. display: flex;
  826. line-height: 20px;
  827. .more-icon {
  828. font-size: 24px
  829. }
  830. }
  831. }
  832. .news {
  833. background-color: #fff;
  834. width: 91.4%;
  835. margin: 12px auto 0;
  836. border-radius: 8px;
  837. .news-content {
  838. display: flex;
  839. justify-content: space-between;
  840. padding: 12px;
  841. .content-text {
  842. width: 56.2%;
  843. height: 100%;
  844. line-height: 21px;
  845. color: #101010;
  846. text-align: left;
  847. font-size: 14px;
  848. }
  849. .content-title {
  850. width: 100%;
  851. overflow: hidden;
  852. text-overflow: ellipsis;
  853. display: -webkit-box;
  854. -webkit-box-orient: vertical;
  855. -webkit-line-clamp: 3;
  856. }
  857. .content-img {
  858. width: 40.57%;
  859. height: 100%;
  860. border-radius: 4px;
  861. overflow: hidden;
  862. img {
  863. width: 100%;
  864. height: 80%;
  865. }
  866. }
  867. .news-time {
  868. margin-top: 5%;
  869. color: #999999;
  870. width: 80px;
  871. height: 20px;
  872. font-size: 14px;
  873. }
  874. }
  875. }
  876. .bottom {
  877. width: 100%;
  878. height: 100px;
  879. .bot {
  880. width: 100%;
  881. margin: 0 auto;
  882. padding: 0 17.3%;
  883. justify-content: space-between;
  884. display: flex;
  885. .bot-line {
  886. margin-top: 20px;
  887. width: 21.3%;
  888. height: 0px;
  889. border: 1px solid rgba(207, 210, 213, 100);
  890. }
  891. .bot-text {
  892. white-space: nowrap;
  893. height: 17px;
  894. margin-top: 13px;
  895. margin-left: 12px;
  896. margin-right: 12px;
  897. font-size: 12px;
  898. text-align: center;
  899. color: rgba(182, 189, 195, 100);
  900. }
  901. }
  902. }
  903. // 导航栏
  904. .navigation {
  905. width: 100%;
  906. // height: 40px;
  907. padding: 10px 0;
  908. background-color: #fff;
  909. position: fixed;
  910. bottom: 0;
  911. left: 0;
  912. display: flex;
  913. justify-content: space-around;
  914. text-align: center;
  915. color: #999999;
  916. .nav-icon {
  917. width: 54px;
  918. font-size: 24px
  919. }
  920. .nav-text {
  921. font-size: 14px;
  922. }
  923. }
  924. .shema {
  925. width: 70%;
  926. padding-bottom: 20px;
  927. border-radius: 16px;
  928. background-color: #fff;
  929. position: fixed;
  930. top: 100px;
  931. left: 0;
  932. right: 0;
  933. margin: 0 auto;
  934. z-index: 9999;
  935. .title {
  936. height: 33px;
  937. color: rgba(16, 16, 16, 100);
  938. font-size: 24px;
  939. text-align: center;
  940. padding: 16px 0;
  941. }
  942. .u-radio-group {
  943. margin: 16px 5vw;
  944. }
  945. /deep/.u-radio {
  946. width: 60vw !important;
  947. padding: 24px 24px 40px;
  948. line-height: 20px;
  949. border-radius: 16px;
  950. text-align: center;
  951. border: #101010 1px solid;
  952. margin-top: 12px;
  953. }
  954. /deep/ .u-radio__label {
  955. text-align: left;
  956. height: 24px;
  957. // color: rgba(0, 185, 98, 100);
  958. font-size: 24px;
  959. }
  960. p {
  961. height: 22px;
  962. color: rgba(102, 102, 102, 100);
  963. font-size: 14px;
  964. margin-top: 12px;
  965. white-space: nowrap
  966. }
  967. .hint {
  968. text-align: center;
  969. }
  970. .btn-box {
  971. margin-top: 20px;
  972. .choice-btn {
  973. width: 80%;
  974. }
  975. }
  976. }
  977. .wrap {
  978. display: flex;
  979. align-items: center;
  980. justify-content: center;
  981. height: 100%;
  982. }
  983. // 登录提示
  984. .login-prompt {
  985. width: 91.4%;
  986. height: 40px;
  987. line-height: 40px;
  988. border-radius: 50px;
  989. text-align: left;
  990. padding-left: 16px;
  991. padding-right: 4px;
  992. background-color: rgba(0, 0, 0, 0.6);
  993. position: fixed;
  994. bottom: 75px;
  995. color: #ffffff;
  996. .button {
  997. width: 88px;
  998. height: 32px;
  999. line-height: 32px;
  1000. border-radius: 50px;
  1001. background-color: rgba(0, 185, 98, 100);
  1002. text-align: center;
  1003. float: right;
  1004. margin-top: 4px;
  1005. }
  1006. }
  1007. </style>