rankOverview.vue 21 KB

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