index.vue 23 KB

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