rankOverview.vue 21 KB

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