index.vue 23 KB

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