index.vue 22 KB

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