rankOverview.vue 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910
  1. <!--
  2. [模板] 样式2 - 排名总览
  3. http://localhost:5173/card/#/pages/tpl/style2/rankOverview
  4. https://oss-mbh5.colormaprun.com/card/#/pages/tpl/style2/rankOverview
  5. -->
  6. <template>
  7. <view class="body">
  8. <view v-if="pageReady" class="content uni-column">
  9. <view class="uni-column page-top">
  10. <my-topbar :mcName="mcName" class="topbar-color"
  11. @btnBackClick="btnBack" @btnInfoClick="btnInfo"></my-topbar>
  12. <view class="topcontent uni-column uni-jcsa">
  13. <view class="logo"></view>
  14. <text v-if="configParam.subTitle.length > 0" class="top-acttime">{{configParam.subTitle}}</text>
  15. <text v-else class="top-acttime">{{fmtMcTime2(beginSecond, endSecond)}}</text>
  16. </view>
  17. </view>
  18. <view v-if="configParam.midType == 0" class="midType0 uni-column">
  19. <view class="mid-0 uni-row uni-jcc">
  20. <view class="mid-0-select">
  21. <e-select v-model="ocaId" :options="mapList" :search="false" :inputClick="true"
  22. maxHeight="300px" :clearable="false" @change="eSelectChange"></e-select>
  23. </view>
  24. <text v-if="cardConfigData.popupHelpList.length > 0" class="mid-0-help" @click="btnHelp">帮助</text>
  25. </view>
  26. <view class="midType0-mid-1 uni-row uni-jcc">
  27. <view class="uni-row">
  28. <image v-if="cardConfigData.popupWarnList.length > 0" class="mid-1-yellowCard" mode="aspectFit"
  29. @click="btnWarn" src="/static/common/card_yellow.gif"></image>
  30. <text class="mid-1-text">{{nickName}}</text>
  31. </view>
  32. <!-- <text class="mid-1-text">{{coiName}}</text> -->
  33. <text class="mid-1-text" style="color: #aaaaaa; margin-left: 20px;" v-if="mcState==1 && allowMcSignUp"
  34. @click="btnReGroup">修改</text>
  35. </view>
  36. <view class="mid-2 uni-row uni-jcsa">
  37. <view class="uni-column">
  38. <text class="mid-2-value">{{regionTotalNum}}</text>
  39. <text class="mid-2-text">场次</text>
  40. </view>
  41. <view class="mid-line"></view>
  42. <view class="uni-column">
  43. <text class="mid-2-value">{{regionTotalCp}}</text>
  44. <text class="mid-2-text">打点数</text>
  45. </view>
  46. <view class="mid-line"></view>
  47. <view class="uni-column">
  48. <text class="mid-2-value">{{regionTotalCpRankNum}}</text>
  49. <text class="mid-2-text">个人排名</text>
  50. </view>
  51. </view>
  52. </view>
  53. <view v-if="configParam.midType == 1" class="midType1 uni-column">
  54. <view class="mid-0 uni-row uni-jcc">
  55. <view class="mid-0-select">
  56. <e-select v-model="ocaId" :options="mapList" :search="false" :inputClick="true"
  57. maxHeight="300px" :clearable="false" @change="eSelectChange"></e-select>
  58. </view>
  59. <view class="mid-0-right uni-row uni-jcsa">
  60. <text class="" style="" v-if="mcState==1 && allowMcSignUp"
  61. @click="btnReGroup">修改</text>
  62. <text v-if="cardConfigData.popupHelpList.length > 0" class="" @click="btnHelp">帮助</text>
  63. </view>
  64. </view>
  65. <view class="midType1-mid-1 uni-row uni-jcse">
  66. <view class="uni-row">
  67. <image v-if="cardConfigData.popupWarnList.length > 0" class="mid-1-yellowCard" mode="aspectFit"
  68. @click="btnWarn" src="/static/common/card_yellow.gif"></image>
  69. <text class="mid-1-name">{{nickName}}</text>
  70. </view>
  71. <!-- <text class="mid-1-name">{{coiName}}</text> -->
  72. <text class="uni-nowrap">场次:{{regionTotalNum}}</text>
  73. </view>
  74. <view class="mid-2 uni-row uni-jcsa">
  75. <view class="uni-column">
  76. <text class="mid-2-value" style="color: #ff0045;">{{regionTotalSysPoint}}</text>
  77. <text class="mid-2-text">百味豆</text>
  78. </view>
  79. <view class="mid-line"></view>
  80. <view class="uni-column">
  81. <text class="mid-2-value">{{fmtDistanct(regionTotalDictance)}}</text>
  82. <text class="mid-2-text">里程 km</text>
  83. </view>
  84. <view class="mid-line"></view>
  85. <view class="uni-column">
  86. <text class="mid-2-value">{{regionTotalCp}}</text>
  87. <text class="mid-2-text">打点数</text>
  88. </view>
  89. <view class="mid-line"></view>
  90. <view class="uni-column">
  91. <text class="mid-2-value">{{fmtPace(regionFastPace)}}</text>
  92. <text class="mid-2-text">最快配速</text>
  93. </view>
  94. </view>
  95. </view>
  96. <view class="main uni-column">
  97. <text class="main-title">选择比赛路线</text>
  98. <my-pathList :style="pathListStyle.style" :pathList="pathList"
  99. :selectedPath="ocaId" :mcState="mcState" :showLine="pathListStyle.showLine"
  100. @onPathClick="onPathClick"></my-pathList>
  101. </view>
  102. <view class="bottom uni-column">
  103. <button class="btnStartGame bgcolor-main" @click="btnStartGame">开始比赛</button>
  104. </view>
  105. <my-popup ref="mypopup" :config="cardConfigData.popupRuleConfig" :dataList="cardConfigData.popupRuleList" :acttime="acttime"></my-popup>
  106. <my-popup ref="mypopupHelp" :config="cardConfigData.popupHelpConfig" :dataList="cardConfigData.popupHelpList"></my-popup>
  107. <my-popup ref="mypopupWarn" :config="cardConfigData.popupWarnConfig" :dataList="cardConfigData.popupWarnList"></my-popup>
  108. <!-- <my-popup-map ref="mypopupmap" :point="navPoint"></my-popup-map> -->
  109. </view>
  110. </view>
  111. </template>
  112. <script>
  113. import tools from '/common/tools';
  114. import cardfunc from '../../../common/cardfunc';
  115. import { localCardConfig } from "./cardconfig/test.js";
  116. import {
  117. token,
  118. apiMapListQuery,
  119. apiMatchRsDetailQuery,
  120. apiIsAllowMcSignUp,
  121. checkResCode
  122. } from '/common/api';
  123. export default {
  124. data() {
  125. return {
  126. cardConfigData: cardfunc.cardConfigData,
  127. pageReady: false,
  128. pageName: "rankOverview",
  129. firstEnterKey: 'firstEnter-tpl-style2',
  130. rankKey: "rank-tpl-style2",
  131. mapKey: "rank-tpl-style2-map",
  132. queryObj: {},
  133. queryString: "",
  134. token: "",
  135. ecId: 0, // 卡片id
  136. mcId: 0, // 赛事id
  137. mcType: 0, // 赛事类型 1 普通活动 2 线下赛 3 线上赛
  138. mcName: "", // 赛事名称
  139. coiName: "", // 已报名单位名称
  140. acttime: "", // 活动时间
  141. beginSecond: null, // 活动或赛事开始时间戳,单位秒
  142. endSecond: null, // 活动或赛事结束时间戳,单位秒
  143. ocaId: 0, // 关联id,带入到App活动详情页面
  144. nickName: "", // 昵称
  145. totalNum: null, // 总场次
  146. totalDistanct: null, // 总距离,单位米
  147. totalDistanctRankNum: null, // 总距离排名
  148. totalCp: null, // 总打点数
  149. totalCpRankNum: null, // 总打点数排名
  150. totalSysPoint: null, // 总百味豆
  151. totalSysPointRankNum: null, // 总百味豆排名
  152. fastPace: null, // 个人最快配速
  153. fastPaceRankNum: null, // 个人最快配速排名
  154. regionTotalNum: null, // 地图内总场次
  155. regionTotalCp: null, // 地图内打点数
  156. regionTotalCpRankNum: null, // 地图内个人打点排名
  157. regionTotalSysPoint: null, // 地图内积分(百味豆)
  158. regionTotalDictance: null, // 地图内里程(单位米)
  159. regionFastPace: null, // 地图内最快配速
  160. ocaRs: [], // 卡片对应活动集合
  161. mapList: [], // 地图列表
  162. interval: null,
  163. mcState: 0, // 赛事/活动状态 0: 未开始 1: 进行中 2: 已结束
  164. allowMcSignUp: false, // 是否允许重新分组
  165. pathList: {},
  166. pathListStyle: {},
  167. navPoint: {},
  168. configParam: {
  169. subTitle: "",
  170. midType: 0
  171. },
  172. }
  173. },
  174. computed: {
  175. pathListLen() {
  176. return Object.keys(this.pathList).length;
  177. }
  178. },
  179. onLoad(query) { // 类型非必填,可自动推导
  180. // uni.showLoading({
  181. // title: '加载中'
  182. // });
  183. // console.log("query:", query);
  184. this.queryObj = query;
  185. this.queryString = tools.objectToQueryString(this.queryObj);
  186. // console.log(queryString);
  187. this.token = query["token"] ?? token;
  188. this.ecId = query["id"] ?? 0;
  189. this.firstEnterKey += "-" + this.ecId;
  190. console.log("firstEnterKey:", this.firstEnterKey);
  191. this.rankKey += "-" + this.ecId;
  192. console.log("rankKey:", this.rankKey);
  193. this.mapKey += "-" + this.ecId;
  194. console.log("mapKey:", this.mapKey);
  195. const mapValue = uni.getStorageSync(this.mapKey);
  196. if (mapValue) {
  197. console.log("mapValue:", mapValue);
  198. this.ocaId = mapValue;
  199. }
  200. cardfunc.init(this, this.token, this.ecId);
  201. cardfunc.getCardConfig(this.cardConfigQueryCallback, localCardConfig);
  202. },
  203. // 页面初次渲染完成,此时组件已挂载完成,DOM 树($el)已可用
  204. onReady() {
  205. // this.dealFirstEnter();
  206. },
  207. onShow() {
  208. },
  209. onUnload() {
  210. this.clear();
  211. },
  212. methods: {
  213. dealNotice(rank) {
  214. // console.log('[dealFirstEnter]');
  215. let that = this;
  216. uni.getStorage({
  217. key: that.rankKey,
  218. success: (res) => {
  219. // console.log('[getStorage]', that.rankKey, res.data);
  220. const oldRank = res.data;
  221. if (oldRank != rank) {
  222. // that.notice = true;
  223. that.setRankValue(rank);
  224. }
  225. },
  226. fail: (e) => {
  227. console.log('[getStorage] fail', that.rankKey, e);
  228. // that.notice = false;
  229. that.setRankValue(rank);
  230. },
  231. })
  232. },
  233. setRankValue(data) {
  234. let that = this;
  235. uni.setStorage({
  236. key: that.rankKey,
  237. data: data,
  238. success: () => {
  239. console.log('[setStorage] success', that.rankKey, data);
  240. },
  241. fail: (e) => {
  242. console.log('[setStorage] fail', that.rankKey, e);
  243. },
  244. })
  245. },
  246. dealFirstEnter() {
  247. // console.log('[dealFirstEnter]');
  248. let that = this;
  249. uni.getStorage({
  250. key: that.firstEnterKey,
  251. success: (res) => {
  252. console.log('[getStorage]', that.firstEnterKey, res.data);
  253. },
  254. fail: (e) => {
  255. console.log('[getStorage] fail', that.firstEnterKey, e);
  256. that.btnInfo();
  257. that.setFirstEnterValue(true);
  258. },
  259. })
  260. },
  261. setFirstEnterValue(data) {
  262. let that = this;
  263. uni.setStorage({
  264. key: that.firstEnterKey,
  265. data: data,
  266. success: () => {
  267. console.log('[setStorage] success', that.firstEnterKey, data);
  268. },
  269. fail: (e) => {
  270. console.log('[setStorage] fail', that.firstEnterKey, e);
  271. },
  272. })
  273. },
  274. clear() {
  275. if (this.interval != null) {
  276. clearInterval(this.interval);
  277. this.interval = null;
  278. }
  279. },
  280. cardConfigQueryCallback(cardconfig) {
  281. this.loadConfig(cardconfig);
  282. this.matchRsDetailQuery();
  283. cardfunc.warnMessageQuery();
  284. setTimeout(this.dealFirstEnter, 500);
  285. },
  286. loadConfig(cardconfig) {
  287. cardconfig = cardfunc.parseCardConfig(cardconfig);
  288. // console.log("[loadCardConfig] cardconfig:", cardconfig);
  289. // 加载卡片通用配置
  290. if (cardconfig.common != undefined) {
  291. cardfunc.loadCardCommonConfig(cardconfig.common);
  292. }
  293. // -------- 加载当前页面的配置 --------
  294. const config = cardfunc.parseCardConfig(cardconfig[this.pageName]);
  295. // console.log("[loadConfig] config_page:", config); if (config == undefined || config == null) {
  296. this.pageReady = true; return; }
  297. // 加载CSS样式
  298. const css = config.css;
  299. if (css != undefined && css.length > 0) {
  300. tools.loadCssCode(css);
  301. }
  302. // 加载比赛路线数据
  303. const pathList = config.pathList;
  304. // console.log("[loadConfig] pathList:", pathList);
  305. if (pathList != undefined) {
  306. this.pathList = pathList;
  307. }
  308. // 加载比赛路线样式
  309. const pathListStyle = config.pathListStyle;
  310. // console.log("[loadConfig] pathList:", pathList);
  311. if (pathListStyle != undefined) {
  312. this.pathListStyle = pathListStyle;
  313. }
  314. // 加载页面参数
  315. const param = config.param;
  316. if (param != undefined) {
  317. if (param.subTitle != undefined && param.subTitle.length > 0) {
  318. this.configParam.subTitle = param.subTitle;
  319. }
  320. if (param.midType != undefined && param.midType >= 0) {
  321. this.configParam.midType = param.midType;
  322. }
  323. }
  324. // console.log("[loadConfig] param:", this.configParam);
  325. this.pageReady = true;
  326. // uni.hideLoading();
  327. },
  328. // 获取倒计时
  329. getCountdown() {
  330. // console.log(this.endSecond)
  331. if (this.endSecond > 0) {
  332. const now = Date.now() / 1000;
  333. const dif = this.endSecond - now;
  334. // const dif = 3600*24 - 60;
  335. if (dif > 0) {
  336. this.countdown = '距结束 ' + tools.convertSecondsToDHM(dif);
  337. } else {
  338. this.countdown = "活动已结束";
  339. }
  340. // this.countdown = tools.convertSecondsToHMS(dif);
  341. } else {
  342. this.countdown = "距结束 --天--小时";
  343. }
  344. },
  345. // 格式化 距离
  346. fmtDistanct(val) {
  347. if (val >= 0) {
  348. return Math.round(val * 100 / 1000) / 100;
  349. } else {
  350. return '--';
  351. }
  352. /* if (val < 1000)
  353. return Math.round(val * 10 / 1000) / 10;
  354. else
  355. return Math.round(val / 1000); */
  356. },
  357. // 格式化 配速
  358. fmtPace(val) {
  359. if (val >= 0) {
  360. return tools.convertSecondsToHMS(val, 2);
  361. } else {
  362. return '--';
  363. }
  364. },
  365. fmtMcTime(timestamp) {
  366. return tools.fmtMcTime(timestamp);
  367. },
  368. // 获取活动时间
  369. getActtime() {
  370. this.acttime = tools.getActtime(this.beginSecond, this.endSecond);
  371. },
  372. fmtMcTime2(timestamp1, timestamp2) {
  373. return tools.fmtMcTime2(timestamp1, timestamp2);
  374. },
  375. // 卡片对应地图列表详情查询
  376. mapListQuery() {
  377. uni.request({
  378. url: apiMapListQuery,
  379. header: {
  380. "Content-Type": "application/x-www-form-urlencoded",
  381. "token": this.token,
  382. },
  383. method: "POST",
  384. data: {
  385. mcId: this.mcId
  386. },
  387. success: (res) => {
  388. // console.log("mapListQuery", res);
  389. if (res.data.code == 0) {
  390. const data = res.data.data;
  391. this.mapList = data;
  392. let mapItems = [];
  393. for (var i = 0; i < data.length; i++) {
  394. let map = {};
  395. map.text = data[i].mapName;
  396. map.value = data[i].ocaId;
  397. mapItems.push(map);
  398. if (i == 0 && this.ocaId == 0) {
  399. this.ocaId = data[i].ocaId;
  400. this.matchRsDetailQuery();
  401. uni.setStorageSync(this.mapKey, this.ocaId);
  402. }
  403. }
  404. this.mapList = mapItems;
  405. // console.log("mapList", this.mapList);
  406. }
  407. },
  408. fail: (err) => {
  409. console.log("mapListQuery err", err);
  410. },
  411. });
  412. },
  413. // 卡片对应线上赛多个活动查询
  414. matchRsDetailQuery() {
  415. uni.request({
  416. url: apiMatchRsDetailQuery,
  417. header: {
  418. "Content-Type": "application/x-www-form-urlencoded",
  419. "token": this.token,
  420. },
  421. method: "POST",
  422. data: {
  423. ecId: this.ecId,
  424. ocaId: this.ocaId
  425. },
  426. success: (res) => {
  427. // console.log("matchRsDetailQuery", res);
  428. if (checkResCode(res)) {
  429. const data = res.data.data;
  430. this.mcType = data.mcType;
  431. this.mcId = data.mcId;
  432. this.mcName = data.mcName;
  433. this.coiName = data.coiName;
  434. this.beginSecond = data.beginSecond;
  435. this.endSecond = data.endSecond;
  436. this.nickName = data.nickName;
  437. this.totalNum = data.totalNum;
  438. this.totalDistanct = data.totalDistanct;
  439. this.totalDistanctRankNum = data.totalDistanctRankNum;
  440. this.totalCp = data.totalCp;
  441. this.totalCpRankNum = data.totalCpRankNum;
  442. this.totalSysPoint = data.totalSysPoint;
  443. this.totalSysPointRankNum = data.totalSysPointRankNum;
  444. this.fastPace = data.fastPace;
  445. this.fastPaceRankNum = data.fastPaceRankNum;
  446. this.regionTotalNum = data.regionTotalNum;
  447. this.regionTotalCp = data.regionTotalCp;
  448. this.regionTotalCpRankNum = data.regionTotalCpRankNum;
  449. this.regionTotalSysPoint = data.regionTotalSysPoint;
  450. this.regionTotalDictance = data.regionTotalDictance;
  451. this.regionFastPace = data.regionFastPace;
  452. this.ocaRs = data.ocaRs;
  453. this.mcState = tools.checkMcState(this.beginSecond, this.endSecond);
  454. const rank = JSON.stringify(data);
  455. this.dealNotice(rank);
  456. this.getCountdown();
  457. this.getActtime();
  458. this.isAllowMcSignUp();
  459. this.mapListQuery();
  460. this.clear();
  461. this.interval = setInterval(this.getCountdown, 60000);
  462. }
  463. },
  464. fail: (err) => {
  465. console.log("matchRsDetailQuery err", err)
  466. },
  467. });
  468. },
  469. // 是否允许重新分组(报名)
  470. isAllowMcSignUp() {
  471. uni.request({
  472. url: apiIsAllowMcSignUp,
  473. header: {
  474. "Content-Type": "application/x-www-form-urlencoded",
  475. "token": this.token,
  476. },
  477. method: "POST",
  478. data: {
  479. ecId: this.ecId
  480. },
  481. success: (res) => {
  482. // console.log("isAllowMcSignUp", res)
  483. if (res.data.code == 0) {
  484. const data = res.data.data;
  485. this.allowMcSignUp = data.allowSignUp;
  486. }
  487. },
  488. fail: (err) => {
  489. console.log("isAllowMcSignUp err", err)
  490. },
  491. });
  492. },
  493. btnBack() {
  494. // const url = `action://to_home/`;
  495. const url = "/pages/tpl/style2/rankList?" + this.queryString;
  496. tools.appAction(url, "uni.navigateTo");
  497. },
  498. btnInfo() {
  499. // console.log(this.$refs.mypopup);
  500. this.$refs.mypopup.popupOpen();
  501. },
  502. btnHelp() {
  503. this.$refs.mypopupHelp.popupOpen();
  504. },
  505. btnWarn() {
  506. this.$refs.mypopupWarn.popupOpen();
  507. },
  508. btnReGroup() {
  509. this.queryObj.from = "rankOverview";
  510. this.queryString = tools.objectToQueryString(this.queryObj);
  511. const url = '/pages/tpl/style2/signup?' + this.queryString;
  512. tools.appAction(url, "uni.navigateTo");
  513. },
  514. onOverviewClick(ovtype) {
  515. this.queryObj.ovtype = ovtype;
  516. this.queryString = tools.objectToQueryString(this.queryObj);
  517. const url = "/pages/tpl/style2/rankList?" + this.queryString;
  518. tools.appAction(url, "uni.navigateTo");
  519. },
  520. eSelectChange(data) {
  521. // console.log("eSelectChange:", data);
  522. this.ocaId = data.value;
  523. this.matchRsDetailQuery();
  524. uni.setStorageSync(this.mapKey, this.ocaId);
  525. },
  526. onPathClick(data) {
  527. console.log("onPathClick:", data);
  528. if (this.ocaId != data.path.ocaId) {
  529. this.ocaId = data.path.ocaId;
  530. this.matchRsDetailQuery();
  531. uni.setStorageSync(this.mapKey, data.path.ocaId);
  532. }
  533. },
  534. btnStartGame() {
  535. // 赛事/活动状态 0: 未开始 1: 进行中 2: 已结束
  536. if (this.mcState == 1) {
  537. const url = `action://to_detail/?id=${this.ocaId}&matchType=${this.mcType}`;
  538. tools.appAction(url);
  539. } else if (this.mcState == 0) {
  540. uni.showToast({
  541. title: '比赛尚未开始',
  542. icon: 'none',
  543. duration: 3000
  544. });
  545. } else if (this.mcState == 2) {
  546. uni.showToast({
  547. title: '比赛已结束',
  548. icon: 'none',
  549. duration: 3000
  550. });
  551. }
  552. }
  553. }
  554. }
  555. </script>
  556. <style scoped>
  557. .content {
  558. width: 100vw;
  559. min-height: 100vh;
  560. overflow-x: scroll;
  561. }
  562. .page-top {
  563. position: relative;
  564. z-index: 10;
  565. width: 100%;
  566. height: 270px;
  567. padding-top: 36px;
  568. justify-content: space-between;
  569. background-image: url("/static/backgroud/top_bg_egg2.png");
  570. background-repeat: no-repeat;
  571. background-position-x: center;
  572. background-position-y: center;
  573. background-size: cover;
  574. /* background-size: 100% 100%; */
  575. }
  576. .topbar-color {
  577. color: #333333;
  578. }
  579. .topcontent {
  580. height: 90%;
  581. margin-bottom: 50px;
  582. }
  583. .logo {
  584. width: 80px;
  585. height: 80px;
  586. margin-top: 10px;
  587. /* background-image: url('/static/logo/sddx.png'); */
  588. background-repeat: no-repeat;
  589. background-position-x: center;
  590. background-position-y: center;
  591. background-size: contain;
  592. }
  593. .top-acttime {
  594. display: none;
  595. text-shadow: 3px 3px 0px #640008;
  596. font-family: YouSheBiaoTiHei;
  597. /* font-family: Arial, Helvetica, sans-serif; */
  598. font-weight: bold;
  599. color: #ffee0b;
  600. font-size: 26px;
  601. }
  602. .topbtm {
  603. width: 100%;
  604. /* height: 60rpx; */
  605. margin-bottom: 40px;
  606. justify-content: space-evenly;
  607. }
  608. .topbtm-name {
  609. /* width: 320rpx; */
  610. /* height: 28px; */
  611. padding: 5px 12px;
  612. background-color: #9fda39;
  613. border-radius: 5px;
  614. /* backdrop-filter: blur(30px); */
  615. text-align: center;
  616. font-weight: 500;
  617. color: #497400;
  618. font-size: 14px;
  619. }
  620. .midType0 {
  621. width: 90%;
  622. height: 150px;
  623. position: relative;
  624. z-index: 20;
  625. margin-top: -40px;
  626. background: #ffffff;
  627. border-radius: 9px;
  628. box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.13);
  629. font-family: Source Han Sans CN;
  630. }
  631. .midType1 {
  632. width: 90%;
  633. /* height: 112px; */
  634. height: 150px;
  635. position: relative;
  636. z-index: 20;
  637. margin-top: -70px;
  638. background: #ffffff;
  639. border-radius: 9px;
  640. box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.13);
  641. font-family: Source Han Sans CN;
  642. }
  643. .mid-0 {
  644. width: 90%;
  645. margin: 12px;
  646. }
  647. .mid-0-select {
  648. width: 60%;
  649. font-weight: 500;
  650. color: #8e8e8e;
  651. font-size: 14px;
  652. }
  653. .mid-0-help {
  654. position: absolute;
  655. right: 30px;
  656. font-size: 12px;
  657. font-weight: 500;
  658. color: #992900;
  659. }
  660. .mid-0-right {
  661. position: absolute;
  662. width: 60px;
  663. /* background-color: #81cd00; */
  664. right: 10px;
  665. font-size: 12px;
  666. font-weight: 500;
  667. color: #992900;
  668. }
  669. .midType0-mid-1 {
  670. width: 90%;
  671. margin-bottom: 12px;
  672. }
  673. .midType1-select {
  674. /* width: 46%; */
  675. min-width: 46%;
  676. max-width: 50%;
  677. margin: 0 5px;
  678. font-weight: 500;
  679. color: #8e8e8e;
  680. font-size: 14px;
  681. }
  682. .midType1-mid-1 {
  683. width: 90%;
  684. margin-bottom: 12px;
  685. font-weight: 500;
  686. color: #8e8e8e;
  687. font-size: 14px;
  688. }
  689. .mid-1-yellowCard {
  690. width: 15px;
  691. height: 20px;
  692. margin-right: 10px;
  693. }
  694. .mid-1-name {
  695. max-width: 360rpx;
  696. white-space: nowrap;
  697. overflow: hidden;
  698. text-overflow: ellipsis;
  699. }
  700. .mid-1-text {
  701. /* min-width: 60px; */
  702. font-weight: 500;
  703. color: #9a300e;
  704. font-size: 12px;
  705. }
  706. .mid-2 {
  707. width: 92%;
  708. /* margin: 0 10px; */
  709. }
  710. .mid-2-value {
  711. font-weight: 900;
  712. font-size: 22px;
  713. line-height: 25px;
  714. }
  715. .mid-2-text {
  716. color: #989898;
  717. font-size: 12px;
  718. }
  719. .mid-line {
  720. width: 0px;
  721. height: 40px;
  722. border: 1px solid;
  723. border-color: #e6e6e6;
  724. }
  725. .overview-1 {
  726. width: 111px;
  727. height: 54px;
  728. background: #ffb40b;
  729. border-radius: 50%;
  730. box-shadow: 3px 3px 0px rgba(140, 140, 140, 1);
  731. pointer-events: auto;
  732. }
  733. .overview-2 {
  734. margin-top: -43px;
  735. color: #ffffff;
  736. font-size: 18px;
  737. pointer-events: auto;
  738. }
  739. .overview-3 {
  740. width: 111px;
  741. height: 54px;
  742. background: #f39509;
  743. border-radius: 50%;
  744. box-shadow: 3px 3px 0px rgba(140, 140, 140, 1);
  745. pointer-events: auto;
  746. }
  747. .overview-4 {
  748. width: 111px;
  749. height: 54px;
  750. background: #81cd00;
  751. border-radius: 50%;
  752. box-shadow: 3px 3px 0px rgba(140, 140, 140, 1);
  753. pointer-events: auto;
  754. }
  755. .overview-5 {
  756. width: 111px;
  757. height: 54px;
  758. background: #64cbb0;
  759. border-radius: 50%;
  760. box-shadow: 3px 3px 0px rgba(140, 140, 140, 1);
  761. pointer-events: auto;
  762. }
  763. .ovline1 {
  764. margin-top: 9px;
  765. color: #ffffff;
  766. font-size: 12px;
  767. }
  768. .ovline2 {
  769. color: #ffffff;
  770. font-size: 16px;
  771. }
  772. .main {
  773. width: 100%;
  774. margin-top: 20px;
  775. margin-bottom: 20px;
  776. /* height: 70vh; */
  777. justify-content: space-around;
  778. /* justify-content: space-between; */
  779. }
  780. .main-title {
  781. margin-bottom: 10px;
  782. font-weight: 550;
  783. color: #333333;
  784. font-size: 16px;
  785. }
  786. .bottom {
  787. width: 100%;
  788. flex-grow: 1;
  789. justify-content: flex-end;
  790. }
  791. .btnStartGame {
  792. width: 70%;
  793. height: 80rpx;
  794. /* margin-top: 50rpx; */
  795. margin-bottom: 20rpx;
  796. /* font-weight: bold; */
  797. color: white;
  798. font-size: 32rpx;
  799. line-height: 80rpx;
  800. border-radius: 27px;
  801. background-color: #2e85ec;
  802. }
  803. /deep/ .e-select {
  804. /* width: 60%; */
  805. height: 60rpx;
  806. background: #2e85ec;
  807. color: #ffffff;
  808. border-radius: 18px;
  809. justify-content: space-around;
  810. font-size: 16px;
  811. font-weight: 500;
  812. line-height: 60rpx;
  813. text-align: center;
  814. border: none !important;
  815. }
  816. /deep/ .e-select-input-text {
  817. color: inherit !important;
  818. }
  819. /deep/ .e-select-selector-item {
  820. color: #818181;
  821. }
  822. /deep/ .uni-icons {
  823. color: inherit !important;
  824. }
  825. /deep/ .e-select-icon {
  826. width: 26px !important;
  827. }
  828. </style>