rankOverview.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764
  1. <!--
  2. [报名] 样式3 - 排名总览
  3. http://localhost:5173/card/#/pages/bm/style4/rankOverview
  4. https://oss-mbh5.colormaprun.com/card/#/pages/bm/style4/rankOverview
  5. -->
  6. <template>
  7. <view class="body">
  8. <view class="content uni-column">
  9. <view class="uni-column" :class="cssTop">
  10. <view class="topbar uni-row" :class="cssTopbarColor">
  11. <uni-icons type="left" class="topbar-back" @click="btnBack"></uni-icons>
  12. <text class="mcName" @click="playMusic">{{mcName}}</text>
  13. <text class="topbar-rule" @click="btnInfo">规则</text>
  14. <!-- <image mode="aspectFit" class="topbar-info" @click="btnInfo" src="/static/default/info.png"></image> -->
  15. </view>
  16. </view>
  17. <view class="mid uni-column">
  18. <view class="mid-1 uni-row uni-jcsb">
  19. <text>{{nickName}}</text>
  20. <text>总场次:{{totalNum}}</text>
  21. </view>
  22. <view class="mid-2 uni-row uni-jcsa">
  23. <view class="uni-column">
  24. <text class="mid-2-value" style="color: #ff0045;">{{totalSysPoint}}</text>
  25. <text class="mid-2-text">百味豆(个)</text>
  26. </view>
  27. <view class="mid-line"></view>
  28. <view class="uni-column">
  29. <text class="mid-2-value">{{fmtDistanct(totalDistanct)}}</text>
  30. <text class="mid-2-text">总里程km</text>
  31. </view>
  32. <view class="mid-line"></view>
  33. <view class="uni-column">
  34. <text class="mid-2-value">{{totalCp}}</text>
  35. <text class="mid-2-text">打点数(个)</text>
  36. </view>
  37. <view class="mid-line"></view>
  38. <view class="uni-column">
  39. <text class="mid-2-value">{{fmtPace(fastPace)}}</text>
  40. <text class="mid-2-text">最快配速</text>
  41. </view>
  42. </view>
  43. </view>
  44. <view class="main uni-column">
  45. <text class="main-title">选择比赛路线</text>
  46. <my-pathList :style="pathListStyle.style" :pathList="pathList" :mcState="mcState" :showLine="pathListStyle.showLine"></my-pathList>
  47. </view>
  48. <my-popup ref="mypopup" :dataList="popupDataList" :acttime="acttime"></my-popup>
  49. <!-- <my-popup-map ref="mypopupmap" :point="navPoint"></my-popup-map> -->
  50. </view>
  51. </view>
  52. </template>
  53. <script>
  54. import tools from '/common/tools';
  55. import {
  56. defaultPopUpDataList
  57. } from '/common/define';
  58. import {
  59. token,
  60. apiMatchRsDetailQuery,
  61. apiCardConfigQuery,
  62. checkResCode
  63. } from '/common/api';
  64. export default {
  65. data() {
  66. return {
  67. // audioSrc: "/static/audio/2.mp3",
  68. // audioSrc: "https://oss-mbh5.colormaprun.com/card/static/audio/2.mp3",
  69. // audioSrc: "http://t-oss-mbh5.colormaprun.com/card/static/audio/2.mp3",
  70. pageName: "rankOverview",
  71. firstEnterKey: 'firstEnter-bm-style4',
  72. rankKey: "rank-bm-style4",
  73. queryObj: {},
  74. queryString: "",
  75. token: "",
  76. ecId: 0, // 卡片id
  77. mcId: 0, // 赛事id
  78. mcType: 0, // 赛事类型 1 普通活动 2 线下赛 3 线上赛
  79. mcName: "", // 赛事名称
  80. acttime: "", // 活动时间
  81. beginSecond: null, // 活动或赛事开始时间戳,单位秒
  82. endSecond: null, // 活动或赛事结束时间戳,单位秒
  83. nickName: "", // 昵称
  84. totalNum: null, // 总场次
  85. totalDistanct: null, // 总距离,单位米
  86. totalDistanctRankNum: null, // 总距离排名
  87. totalCp: null, // 总打点数
  88. totalCpRankNum: null, // 总打点数排名
  89. totalSysPoint: null, // 总百味豆
  90. totalSysPointRankNum: null, // 总百味豆排名
  91. fastPace: null, // 个人最快配速
  92. fastPaceRankNum: null, // 个人最快配速排名
  93. ocaRs: [], // 卡片对应活动集合
  94. interval: null,
  95. mcState: 0, // 赛事/活动状态 0: 未开始 1: 进行中 2: 已结束
  96. cssTop: "",
  97. cssTopbarColor: "",
  98. pathList: {},
  99. pathListStyle: {},
  100. popupDataList: [],
  101. navPoint: {},
  102. }
  103. },
  104. computed: {
  105. pathListLen() {
  106. return Object.keys(this.pathList).length;
  107. }
  108. },
  109. onLoad(query) { // 类型非必填,可自动推导
  110. // console.log("query:", query);
  111. this.queryObj = query;
  112. this.queryString = tools.objectToQueryString(this.queryObj);
  113. // console.log(queryString);
  114. this.token = query["token"] ?? token;
  115. this.ecId = query["id"] ?? 0;
  116. this.firstEnterKey += "-" + this.ecId;
  117. console.log("firstEnterKey:", this.firstEnterKey);
  118. this.rankKey += "-" + this.ecId;
  119. console.log("rankKey:", this.rankKey);
  120. tools.removeCssCode();
  121. this.getCardConfigQuery();
  122. },
  123. // 页面初次渲染完成,此时组件已挂载完成,DOM 树($el)已可用
  124. onReady() {
  125. // this.dealFirstEnter();
  126. // this.playMusic();
  127. },
  128. onShow() {
  129. // uni.showToast({
  130. // icon: "none",
  131. // title: "[rankOverview] onShow"
  132. // })
  133. // if (this.$audio.audioStatus == 2 && this.$audio.audioSrc == this.audioSrc) {
  134. // this.$audio.play();
  135. // }
  136. },
  137. onUnload() {
  138. this.clear();
  139. },
  140. methods: {
  141. playMusic() {
  142. return;
  143. // uni.showToast({
  144. // title: 'playMusic',
  145. // icon: 'none',
  146. // duration: 2000
  147. // });
  148. // if (this.$audio.audioStatus == 0 || this.$audio.audioSrc != this.audioSrc) {
  149. // this.$audio.playAudio(this.audioSrc);
  150. // }
  151. },
  152. dealNotice(rank) {
  153. // console.log('[dealFirstEnter]');
  154. let that = this;
  155. uni.getStorage({
  156. key: that.rankKey,
  157. success: (res) => {
  158. console.log('[getStorage]', that.rankKey, res.data);
  159. const oldRank = res.data;
  160. if (oldRank != rank) {
  161. // that.notice = true;
  162. that.setRankValue(rank);
  163. }
  164. },
  165. fail: (e) => {
  166. console.log('[getStorage] fail', that.rankKey, e);
  167. // that.notice = false;
  168. that.setRankValue(rank);
  169. },
  170. })
  171. },
  172. setRankValue(data) {
  173. let that = this;
  174. uni.setStorage({
  175. key: that.rankKey,
  176. data: data,
  177. success: () => {
  178. console.log('[setStorage] success', that.rankKey, data);
  179. },
  180. fail: (e) => {
  181. console.log('[setStorage] fail', that.rankKey, e);
  182. },
  183. })
  184. },
  185. dealFirstEnter() {
  186. // console.log('[dealFirstEnter]');
  187. let that = this;
  188. uni.getStorage({
  189. key: that.firstEnterKey,
  190. success: (res) => {
  191. console.log('[getStorage]', that.firstEnterKey, res.data);
  192. },
  193. fail: (e) => {
  194. console.log('[getStorage] fail', that.firstEnterKey, e);
  195. that.btnInfo();
  196. that.setFirstEnterValue(true);
  197. },
  198. })
  199. },
  200. setFirstEnterValue(data) {
  201. let that = this;
  202. uni.setStorage({
  203. key: that.firstEnterKey,
  204. data: data,
  205. success: () => {
  206. console.log('[setStorage] success', that.firstEnterKey, data);
  207. },
  208. fail: (e) => {
  209. console.log('[setStorage] fail', that.firstEnterKey, e);
  210. },
  211. })
  212. },
  213. clear() {
  214. if (this.interval != null) {
  215. clearInterval(this.interval);
  216. this.interval = null;
  217. }
  218. },
  219. loadConfig(config) {
  220. // console.log("config", config);
  221. // 加载CSS样式
  222. const css = config.css;
  223. if (css != undefined && css.length > 0) {
  224. tools.loadCssCode(css);
  225. if (css.indexOf(".top{") >= 0) {
  226. this.cssTop = "top";
  227. }
  228. if (css.indexOf(".topbar-color{") >= 0) {
  229. this.cssTopbarColor = "topbar-color";
  230. }
  231. }
  232. if (this.cssTop == "") {
  233. this.cssTop = "top-default";
  234. }
  235. if (this.cssTopbarColor == "") {
  236. this.cssTopbarColor = "topbar-color-default";
  237. }
  238. console.log("[loadConfig] cssTop:", this.cssTop);
  239. console.log("[loadConfig] cssTopbarColor:", this.cssTopbarColor);
  240. // 加载比赛路线数据
  241. const pathList = config.pathList;
  242. // console.log("[loadConfig] pathList:", pathList);
  243. if (pathList != undefined) {
  244. this.pathList = pathList;
  245. }
  246. // 加载比赛路线样式
  247. const pathListStyle = config.pathListStyle;
  248. // console.log("[loadConfig] pathList:", pathList);
  249. if (pathListStyle != undefined) {
  250. this.pathListStyle = pathListStyle;
  251. }
  252. // 加载弹窗数据
  253. const popupDataList = config.popupDataList;
  254. // console.log("[loadConfig] popupDataList:", popupDataList);
  255. if (popupDataList != undefined && popupDataList.length > 0) {
  256. for (var i = 0; i < popupDataList.length; i++) {
  257. // console.log("[loadConfig] popupDataList", i, popupDataList[i]);
  258. if (popupDataList[i] == 'default') {
  259. for (var j = 0; j < defaultPopUpDataList.length; j++) {
  260. this.popupDataList.push(defaultPopUpDataList[j]);
  261. }
  262. } else {
  263. this.popupDataList.push(popupDataList[i]);
  264. }
  265. }
  266. } else {
  267. this.popupDataList = defaultPopUpDataList;
  268. console.log("[loadConfig] popupDataList 加载默认列表");
  269. }
  270. // console.log("[loadConfig] popupDataList:", this.popupDataList);
  271. },
  272. // 获取倒计时
  273. getCountdown() {
  274. // console.log(this.endSecond)
  275. if (this.endSecond > 0) {
  276. const now = Date.now() / 1000;
  277. const dif = this.endSecond - now;
  278. // const dif = 3600*24 - 60;
  279. if (dif > 0) {
  280. this.countdown = '距结束 ' + tools.convertSecondsToDHM(dif);
  281. } else {
  282. this.countdown = "活动已结束";
  283. }
  284. // this.countdown = tools.convertSecondsToHMS(dif);
  285. } else {
  286. this.countdown = "距结束 --天--小时";
  287. }
  288. },
  289. // 格式化 距离
  290. fmtDistanct(val) {
  291. return Math.round(val * 100 / 1000) / 100;
  292. /* if (val < 1000)
  293. return Math.round(val * 10 / 1000) / 10;
  294. else
  295. return Math.round(val / 1000); */
  296. },
  297. // 格式化 配速
  298. fmtPace(val) {
  299. return tools.convertSecondsToHMS(val, 2);
  300. },
  301. fmtMcTime(timestamp) {
  302. var date = new Date(timestamp * 1000); //时间戳为10位需*1000,时间戳为13位的话不需乘1000
  303. // var Y = date.getFullYear() + '-';
  304. var M = (date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1) : date.getMonth() + 1) + '-';
  305. var D = (date.getDate() < 10 ? '0' + date.getDate() : date.getDate()) + ' ';
  306. var h = (date.getHours() < 10 ? '0' + date.getHours() : date.getHours()) + ':';
  307. var m = (date.getMinutes() < 10 ? '0' + date.getMinutes() : date.getMinutes());
  308. // var s = (date.getSeconds() < 10 ? '0' + date.getSeconds() : date.getSeconds());
  309. const timeStr = M + D + h + m;
  310. // console.log("timeStr", timeStr);
  311. return timeStr;
  312. },
  313. // 获取活动时间
  314. getActtime() {
  315. this.acttime = this.fmtMcTime(this.beginSecond) + " 至 " + this.fmtMcTime(this.endSecond);
  316. },
  317. getCardConfigQuery() {
  318. uni.request({
  319. url: apiCardConfigQuery,
  320. header: {
  321. "Content-Type": "application/x-www-form-urlencoded",
  322. "token": this.token,
  323. },
  324. method: "POST",
  325. data: {
  326. ecId: this.ecId,
  327. pageName: this.pageName
  328. },
  329. success: (res) => {
  330. // console.log("getCardConfigQuery", res)
  331. const data = res.data.data;
  332. // console.log("configJson", data.configJson);
  333. const config = data.configJson != "" ? JSON.parse(data.configJson) : "";
  334. // console.log("configJson", data.configJson);
  335. /* const config = {
  336. "css": `
  337. .top{
  338. position: relative;
  339. z-index: 10;
  340. width: 100%;
  341. height: 270px;
  342. padding-top: 36px;
  343. justify-content: space-between;
  344. background-image: url('static/backgroud/top_bg_egg2.png');
  345. background-repeat: no-repeat;
  346. background-position-x: center;
  347. background-position-y: -8px;
  348. background-size: 100% 100%;
  349. }
  350. `,
  351. "pathList": {
  352. "row1": [{
  353. "type": 3, // 1: 比赛路线 2: 导航到指定地点 3: 比赛路线 + 导航
  354. "pathImg": "/static/common/lingxiucheng.png",
  355. "path": {
  356. "ocaId": 1,
  357. "mcType": 3 // 赛事类型 1 普通活动 2 线下赛 3 线上赛
  358. },
  359. "navImg": "/static/common/nav.png",
  360. "point": {
  361. "longitude": 117.022194,
  362. "latitude": 36.661612,
  363. "name": "领秀城起始点"
  364. }
  365. },
  366. {
  367. "type": 3, // 1: 比赛路线 2: 导航到指定地点 3: 比赛路线 + 导航
  368. "pathImg": "/static/common/quanchenggongyuan.png",
  369. "path": {
  370. "ocaId": 1,
  371. "mcType": 3 // 赛事类型 1 普通活动 2 线下赛 3 线上赛
  372. },
  373. "navImg": "/static/common/nav.png",
  374. "point": {
  375. "longitude": 117.022194,
  376. "latitude": 36.661612,
  377. "name": "泉城公园起始点"
  378. }
  379. }
  380. ],
  381. "row2": [{
  382. "type": 3, // 1: 比赛路线 2: 导航到指定地点 3: 比赛路线 + 导航
  383. "pathImg": "/static/common/baihuagongyuan.png",
  384. "path": {
  385. "ocaId": 1,
  386. "mcType": 3 // 赛事类型 1 普通活动 2 线下赛 3 线上赛
  387. },
  388. "navImg": "/static/common/nav.png",
  389. "point": {
  390. "longitude": 117.022194,
  391. "latitude": 36.661612,
  392. "name": "百花公园起始点"
  393. }
  394. },
  395. {
  396. "type": 3, // 1: 比赛路线 2: 导航到指定地点 3: 比赛路线 + 导航
  397. "pathImg": "/static/common/aotizhongxin.png",
  398. "path": {
  399. "ocaId": 1,
  400. "mcType": 3 // 赛事类型 1 普通活动 2 线下赛 3 线上赛
  401. },
  402. "navImg": "/static/common/nav.png",
  403. "point": {
  404. "longitude": 117.022194,
  405. "latitude": 36.661612,
  406. "name": "奥体中心起始点"
  407. }
  408. }
  409. ],
  410. "row3": [{
  411. "type": 3, // 1: 比赛路线 2: 导航到指定地点 3: 比赛路线 + 导航
  412. "pathImg": "/static/common/muniushan.png",
  413. "path": {
  414. "ocaId": 1,
  415. "mcType": 3 // 赛事类型 1 普通活动 2 线下赛 3 线上赛
  416. },
  417. "navImg": "/static/common/nav.png",
  418. "point": {
  419. "longitude": 117.022194,
  420. "latitude": 36.661612,
  421. "name": "牧牛山起始点"
  422. }
  423. }]
  424. },
  425. "pathListStyle" : {
  426. "showLine" : true,
  427. "style": "justify-content: flex-start;"
  428. },
  429. "popupDataList": [{
  430. "type": 1,
  431. "data": {
  432. "title": "小飞龙定向赛",
  433. "img": "/static/logo/xfl.png",
  434. "content": "济南奥体中心“一场三馆”包括体育场、体育馆、网球馆和游泳馆,呈现出“东荷西柳”的总体布局。 体育场以济南的“市树”柳树为母题,将垂柳柔美飘逸的形态固化为建筑语言。"
  435. }
  436. },
  437. {
  438. type: 2,
  439. data: {
  440. title: "规则",
  441. img: "/static/common/guize.png",
  442. }
  443. }, {
  444. type: 2,
  445. data: {
  446. title: "奖励",
  447. img: "/static/common/jiangli.png",
  448. }
  449. },
  450. "default"
  451. ]
  452. }; */
  453. this.loadConfig(config);
  454. this.matchRsDetailQuery();
  455. setTimeout(this.dealFirstEnter, 500);
  456. },
  457. fail: (err) => {
  458. console.log("getCardConfigQuery err", err)
  459. },
  460. });
  461. },
  462. // 卡片对应线上赛多个活动查询
  463. matchRsDetailQuery() {
  464. uni.request({
  465. url: apiMatchRsDetailQuery,
  466. header: {
  467. "Content-Type": "application/x-www-form-urlencoded",
  468. "token": this.token,
  469. },
  470. method: "POST",
  471. data: {
  472. ecId: this.ecId
  473. },
  474. success: (res) => {
  475. console.log("matchRsDetailQuery", res);
  476. if (checkResCode(res)) {
  477. const data = res.data.data;
  478. this.mcType = data.mcType;
  479. this.mcId = data.mcId;
  480. this.mcName = data.mcName;
  481. this.beginSecond = data.beginSecond;
  482. this.endSecond = data.endSecond;
  483. this.nickName = data.nickName;
  484. this.totalNum = data.totalNum;
  485. this.totalDistanct = data.totalDistanct;
  486. this.totalDistanctRankNum = data.totalDistanctRankNum;
  487. this.totalCp = data.totalCp;
  488. this.totalCpRankNum = data.totalCpRankNum;
  489. this.totalSysPoint = data.totalSysPoint;
  490. this.totalSysPointRankNum = data.totalSysPointRankNum;
  491. this.fastPace = data.fastPace;
  492. this.fastPaceRankNum = data.fastPaceRankNum;
  493. this.ocaRs = data.ocaRs;
  494. this.mcState = tools.checkMcState(this.beginSecond, this.endSecond);
  495. const rank = JSON.stringify(data);
  496. this.dealNotice(rank);
  497. this.getCountdown();
  498. this.getActtime();
  499. this.clear();
  500. this.interval = setInterval(this.getCountdown, 60000);
  501. }
  502. },
  503. fail: (err) => {
  504. console.log("matchRsDetailQuery err", err)
  505. },
  506. });
  507. },
  508. btnBack() {
  509. // const url = `action://to_home/`;
  510. // window.location.href = url;
  511. // tools.appAction(url);
  512. uni.navigateTo({
  513. url: "/pages/bm/style4/rankList?" + this.queryString
  514. });
  515. },
  516. btnInfo() {
  517. // console.log(this.$refs.mypopup);
  518. this.$refs.mypopup.popupOpen();
  519. },
  520. onOverviewClick(ovtype) {
  521. this.queryObj.ovtype = ovtype;
  522. this.queryString = tools.objectToQueryString(this.queryObj);
  523. uni.navigateTo({
  524. url: "/pages/bm/style4/rankList?" + this.queryString
  525. });
  526. },
  527. }
  528. }
  529. </script>
  530. <style scoped>
  531. .content {
  532. width: 100vw;
  533. /* height: 100vh; */
  534. overflow-x: scroll;
  535. }
  536. .top-default {
  537. position: relative;
  538. z-index: 10;
  539. width: 100%;
  540. height: 270px;
  541. padding-top: 36px;
  542. justify-content: space-between;
  543. background-image: url("/static/backgroud/top_bg_egg2.png");
  544. background-repeat: no-repeat;
  545. background-position-x: center;
  546. background-position-y: -8px;
  547. background-size: 100% 100%;
  548. /* background-size: cover; */
  549. }
  550. /* .top-oval {
  551. position: relative;
  552. z-index: 0;
  553. margin-top: -180px;
  554. margin-left: -10%;
  555. width: 120%;
  556. height: 280px;
  557. background: linear-gradient(180deg, #ffffff 12.18%, #eeeeee 100%);
  558. border-radius: 50%;
  559. text-align: center;
  560. }
  561. .top-oval-text {
  562. color: #333333;
  563. font-size: 13px;
  564. line-height: 386px;
  565. pointer-events: auto;
  566. }
  567. */
  568. .topbar {
  569. width: 90%;
  570. justify-content: space-between;
  571. }
  572. .topbar-color-default {
  573. color: #333333;
  574. }
  575. .topbar-back {
  576. width: 43rpx;
  577. height: 43rpx;
  578. color: inherit !important;
  579. font-size: 48rpx !important;
  580. /* opacity: 0; */
  581. }
  582. .topbar-info {
  583. width: 46rpx;
  584. height: 46rpx;
  585. }
  586. .topbar-rule {
  587. font-size: 32rpx;
  588. }
  589. .mcName {
  590. font-size: 40rpx;
  591. font-weight: 550;
  592. }
  593. .topbtm {
  594. width: 100%;
  595. /* height: 60rpx; */
  596. margin-bottom: 40px;
  597. justify-content: space-evenly;
  598. }
  599. .topbtm-name {
  600. /* width: 320rpx; */
  601. /* height: 28px; */
  602. padding: 5px 12px;
  603. background-color: #9fda39;
  604. border-radius: 5px;
  605. /* backdrop-filter: blur(30px); */
  606. text-align: center;
  607. font-weight: 500;
  608. color: #497400;
  609. font-size: 14px;
  610. }
  611. .mid {
  612. width: 90%;
  613. height: 120px;
  614. position: relative;
  615. z-index: 20;
  616. margin-top: -100px;
  617. background: #ffffff;
  618. border-radius: 9px;
  619. box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.13);
  620. font-family: Source Han Sans CN;
  621. }
  622. .mid-1 {
  623. width: 90%;
  624. margin: 12px;
  625. font-weight: 500;
  626. color: #8e8e8e;
  627. font-size: 14px;
  628. }
  629. .mid-2 {
  630. width: 92%;
  631. /* margin: 0 10px; */
  632. }
  633. .mid-2-value {
  634. font-weight: 900;
  635. font-size: 22px;
  636. }
  637. .mid-2-text {
  638. color: #989898;
  639. font-size: 12px;
  640. }
  641. .mid-line {
  642. width: 0px;
  643. height: 45.04px;
  644. border: 1px solid;
  645. border-color: #e6e6e6;
  646. }
  647. .overview-1 {
  648. width: 111px;
  649. height: 54px;
  650. background: #ffb40b;
  651. border-radius: 50%;
  652. box-shadow: 3px 3px 0px rgba(140, 140, 140, 1);
  653. pointer-events: auto;
  654. }
  655. .overview-2 {
  656. margin-top: -43px;
  657. color: #ffffff;
  658. font-size: 18px;
  659. pointer-events: auto;
  660. }
  661. .overview-3 {
  662. width: 111px;
  663. height: 54px;
  664. background: #f39509;
  665. border-radius: 50%;
  666. box-shadow: 3px 3px 0px rgba(140, 140, 140, 1);
  667. pointer-events: auto;
  668. }
  669. .overview-4 {
  670. width: 111px;
  671. height: 54px;
  672. background: #81cd00;
  673. border-radius: 50%;
  674. box-shadow: 3px 3px 0px rgba(140, 140, 140, 1);
  675. pointer-events: auto;
  676. }
  677. .overview-5 {
  678. width: 111px;
  679. height: 54px;
  680. background: #64cbb0;
  681. border-radius: 50%;
  682. box-shadow: 3px 3px 0px rgba(140, 140, 140, 1);
  683. pointer-events: auto;
  684. }
  685. .ovline1 {
  686. margin-top: 9px;
  687. color: #ffffff;
  688. font-size: 12px;
  689. }
  690. .ovline2 {
  691. color: #ffffff;
  692. font-size: 16px;
  693. }
  694. .main {
  695. width: 100%;
  696. margin-top: 20px;
  697. margin-bottom: 10px;
  698. /* height: 70vh; */
  699. justify-content: space-around;
  700. /* justify-content: space-between; */
  701. }
  702. .main-title {
  703. margin-bottom: 10px;
  704. font-weight: 550;
  705. color: #333333;
  706. font-size: 16px;
  707. }
  708. </style>