index.vue 22 KB

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