index.vue 24 KB

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