rankList.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726
  1. <!--
  2. [报名] 样式3 - 排名列表
  3. http://localhost:5173/card/#/pages/bm/style3/rankList
  4. https://oss-mbh5.colormaprun.com/card/#/pages/bm/style3/rankList
  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">{{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 class="topbtm uni-row">
  17. <!-- <view class="topbtm-null"></view> -->
  18. <view class="topbtm-egg" @click="btnMyEgg">蛋叔券</view>
  19. <text class="topbtm-name">{{nickName}}</text>
  20. <view class="topbtm-egg" @click="btnExchg">兑换地址</view>
  21. </view>
  22. </view>
  23. <view class="main uni-column">
  24. <uni-segmented-control class="main-tab" :current="tabCurrent" :values="tabItems"
  25. @clickItem="onClickTabItem" styleType="button" :activeColor="tabActiveColor"></uni-segmented-control>
  26. <view class="tab-view uni-column">
  27. <!-- 总距离 -->
  28. <my-ranklist v-show="tabCurrent === 0" :rankRs="rankList.totalDistanceRs" rank-type="totalDistance"></my-ranklist>
  29. <!-- 打点数 -->
  30. <my-ranklist v-show="tabCurrent === 1" :rankRs="rankList.totalCpRs" rank-type="totalCp"></my-ranklist>
  31. <!-- 百味豆 -->
  32. <my-ranklist v-show="tabCurrent === 2" :rankRs="rankList.totalSysPointRs" rank-type="totalSysPoint"></my-ranklist>
  33. <!-- 配速 -->
  34. <my-ranklist v-show="tabCurrent === 3" :rankRs="rankList.fastPaceRs" rank-type="fastPace"></my-ranklist>
  35. </view>
  36. <button class="btnBack" @click="btnStartGame">我要比赛</button>
  37. <!-- <button class="btnBack" @click="btnBack">返回</button> -->
  38. </view>
  39. <my-popup ref="mypopup" :dataList="popupDataList" :acttime="acttime"></my-popup>
  40. <my-popup ref="mypopupExchg" :dataList="popupExchgList"></my-popup>
  41. </view>
  42. </view>
  43. </template>
  44. <script>
  45. import tools from '/common/tools';
  46. import { teamName, defaultPopUpDataList } from '/common/define';
  47. import {
  48. token,
  49. apiMatchRsDetailQuery,
  50. apiCardRankDetailQuery,
  51. apiCardConfigQuery,
  52. apiUserCurrentRankNumQuery,
  53. apiIsAllowMcSignUp,
  54. checkResCode
  55. } from '/common/api';
  56. export default {
  57. data() {
  58. return {
  59. pageName: "rankList",
  60. firstEnterKey: 'firstEnter-bm-style3',
  61. rankKey: "rank-bm-style3",
  62. queryObj: {},
  63. queryString: "",
  64. token: "",
  65. ovtype: "",
  66. ecId: 0, // 卡片id
  67. mcId: 0, // 赛事id
  68. mcType: 0, // 赛事类型 1 普通活动 2 线下赛 3 线上赛
  69. mcName: "", // 赛事名称
  70. acttime: "", // 活动时间
  71. beginSecond: null, // 活动或赛事开始时间戳,单位秒
  72. endSecond: null, // 活动或赛事结束时间戳,单位秒
  73. ocaId: 0, // 关联id,带入到App活动详情页面
  74. nickName: "", // 昵称
  75. // totalNum: null, // 总场次
  76. // totalDistanct: null, // 总距离,单位米
  77. // totalDistanctRankNum: null, // 总距离排名
  78. // totalCp: null, // 总打点数
  79. // totalCpRankNum: null, // 总打点数排名
  80. // totalSysPoint: null, // 总百味豆
  81. // totalSysPointRankNum: null, // 总百味豆排名
  82. // fastPace: null, // 个人最快配速
  83. // fastPaceRankNum: null, // 个人最快配速排名
  84. // ocaRs: [], // 卡片对应活动集合
  85. mcState: 0 , // 赛事/活动状态 0: 未开始 1: 进行中 2: 已结束
  86. allowMcSignUp: false, // 是否允许重新分组
  87. countdown: "", // 倒计时
  88. rankList: { // 排名列表
  89. totalDistanceRs: [],
  90. totalCpRs: [],
  91. totalSysPointRs: [],
  92. fastPaceRs: []
  93. },
  94. interval: null,
  95. teamType: 0, // 队伍类型
  96. dispArrStr: "totalDistance,totalCp,totalSysPoint,fastPace", // 要显示的集合范围
  97. tabItems: ["总距离", "打点数", "百味豆", "配速"],
  98. tabCurrent: 0,
  99. tabActiveColor: "#81cd00",
  100. cssTop: "",
  101. cssTopbarColor: "",
  102. popupDataList: [],
  103. popupExchgList: []
  104. }
  105. },
  106. computed: {},
  107. onLoad(query) { // 类型非必填,可自动推导
  108. // console.log(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.ovtype = query["ovtype"] ?? "";
  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. this.dealOvtype();
  122. },
  123. // 页面初次渲染完成,此时组件已挂载完成,DOM 树($el)已可用
  124. onReady() {
  125. // this.dealFirstEnter();
  126. },
  127. onUnload() {
  128. this.clear();
  129. },
  130. methods: {
  131. dealOvtype() {
  132. if (this.ovtype == "totalDistance") {
  133. this.tabCurrent = 0;
  134. } else if (this.ovtype == "totalCp") {
  135. this.tabCurrent = 1;
  136. } else if (this.ovtype == "totalSysPoint") {
  137. this.tabCurrent = 2;
  138. } else if (this.ovtype == "fastPace") {
  139. this.tabCurrent = 3;
  140. }
  141. console.log(`dealOvtype: ${this.ovtype} tabCurrent: ${this.tabCurrent}`);
  142. },
  143. dealNotice(rank) {
  144. // console.log('[dealFirstEnter]');
  145. let that = this;
  146. uni.getStorage({
  147. key: that.rankKey,
  148. success: (res) => {
  149. console.log('[getStorage]', that.rankKey, res.data);
  150. const oldRank = res.data;
  151. if (oldRank != rank) {
  152. // that.notice = true;
  153. that.setRankValue(rank);
  154. }
  155. },
  156. fail: (e) => {
  157. console.log('[getStorage] fail', that.rankKey, e);
  158. // that.notice = false;
  159. that.setRankValue(rank);
  160. },
  161. })
  162. },
  163. setRankValue(data) {
  164. let that = this;
  165. uni.setStorage({
  166. key: that.rankKey,
  167. data: data,
  168. success: () => {
  169. console.log('[setStorage] success', that.rankKey, data);
  170. },
  171. fail: (e) => {
  172. console.log('[setStorage] fail', that.rankKey, e);
  173. },
  174. })
  175. },
  176. dealFirstEnter() {
  177. // console.log('[dealFirstEnter]');
  178. let that = this;
  179. uni.getStorage({
  180. key: that.firstEnterKey,
  181. success: (res) => {
  182. console.log('[getStorage]', that.firstEnterKey, res.data);
  183. },
  184. fail: (e) => {
  185. console.log('[getStorage] fail', that.firstEnterKey, e);
  186. that.btnInfo();
  187. that.setFirstEnterValue(true);
  188. },
  189. })
  190. },
  191. setFirstEnterValue(data) {
  192. let that = this;
  193. uni.setStorage({
  194. key: that.firstEnterKey,
  195. data: data,
  196. success: () => {
  197. console.log('[setStorage] success', that.firstEnterKey, data);
  198. },
  199. fail: (e) => {
  200. console.log('[setStorage] fail', that.firstEnterKey, e);
  201. },
  202. })
  203. },
  204. clear() {
  205. if (this.interval != null) {
  206. clearInterval(this.interval);
  207. this.interval = null;
  208. }
  209. },
  210. loadConfig(config) {
  211. // console.log("config", config);
  212. // 加载CSS样式
  213. const css = config.css;
  214. if (css != undefined && css.length > 0) {
  215. tools.loadCssCode(css);
  216. if (css.indexOf(".top{") >= 0) {
  217. this.cssTop = "top";
  218. }
  219. if (css.indexOf(".topbar-color{") >= 0) {
  220. this.cssTopbarColor = "topbar-color";
  221. }
  222. }
  223. if (this.cssTop == "") {
  224. this.cssTop = "top-default";
  225. }
  226. if (this.cssTopbarColor == "") {
  227. this.cssTopbarColor = "topbar-color-default";
  228. }
  229. console.log("[loadConfig] cssTop:", this.cssTop);
  230. console.log("[loadConfig] cssTopbarColor:", this.cssTopbarColor);
  231. const tabActiveColor = config.tabActiveColor;
  232. if (tabActiveColor != undefined && tabActiveColor.length > 0) {
  233. this.tabActiveColor = tabActiveColor;
  234. }
  235. // 加载弹窗数据
  236. const popupDataList = config.popupDataList;
  237. // console.log("[loadConfig] popupDataList:", popupDataList);
  238. if (popupDataList != undefined && popupDataList.length > 0) {
  239. for (var i = 0; i < popupDataList.length; i++) {
  240. // console.log("[loadConfig] popupDataList", i, popupDataList[i]);
  241. if (popupDataList[i] == 'default') {
  242. for (var j = 0; j < defaultPopUpDataList.length; j++) {
  243. this.popupDataList.push(defaultPopUpDataList[j]);
  244. }
  245. } else {
  246. this.popupDataList.push(popupDataList[i]);
  247. }
  248. }
  249. } else {
  250. this.popupDataList = defaultPopUpDataList;
  251. console.log("[loadConfig] popupDataList 加载默认列表");
  252. }
  253. // console.log("[loadConfig] popupDataList:", this.popupDataList);
  254. // 加载弹窗(兑换地点)数据
  255. const popupExchgList = config.popupExchgList;
  256. if (popupExchgList != undefined && popupExchgList.length > 0) {
  257. for (var i = 0; i < popupExchgList.length; i++) {
  258. // console.log("[loadConfig] popupExchgList", i, popupExchgList[i]);
  259. this.popupExchgList.push(popupExchgList[i]);
  260. }
  261. }
  262. // console.log("[loadConfig] popupExchgList:", this.popupExchgList);
  263. },
  264. // 获取倒计时
  265. getCountdown() {
  266. // console.log(this.endSecond)
  267. if (this.endSecond > 0) {
  268. const now = Date.now() / 1000;
  269. const dif = this.endSecond - now;
  270. // const dif = 3600*24 - 60;
  271. if (dif > 0) {
  272. this.countdown = '距结束 ' + tools.convertSecondsToDHM(dif);
  273. } else {
  274. this.countdown = "活动已结束";
  275. }
  276. // this.countdown = tools.convertSecondsToHMS(dif);
  277. } else {
  278. this.countdown = "距结束 --天--小时";
  279. }
  280. },
  281. fmtMcTime(timestamp) {
  282. var date = new Date(timestamp * 1000); //时间戳为10位需*1000,时间戳为13位的话不需乘1000
  283. // var Y = date.getFullYear() + '-';
  284. var M = (date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1) : date.getMonth() + 1) + '-';
  285. var D = (date.getDate() < 10 ? '0' + date.getDate() : date.getDate()) + ' ';
  286. var h = (date.getHours() < 10 ? '0' + date.getHours() : date.getHours()) + ':';
  287. var m = (date.getMinutes() < 10 ? '0' + date.getMinutes() : date.getMinutes());
  288. // var s = (date.getSeconds() < 10 ? '0' + date.getSeconds() : date.getSeconds());
  289. const timeStr = M + D + h + m;
  290. // console.log("timeStr", timeStr);
  291. return timeStr;
  292. },
  293. // 获取活动时间
  294. getActtime() {
  295. this.acttime = this.fmtMcTime(this.beginSecond) + " 至 " + this.fmtMcTime(this.endSecond);
  296. },
  297. getTeamName(teamType, teamIndex) {
  298. return teamName[teamType][teamIndex];
  299. },
  300. getCardConfigQuery() {
  301. uni.request({
  302. url: apiCardConfigQuery,
  303. header: {
  304. "Content-Type": "application/x-www-form-urlencoded",
  305. "token": this.token,
  306. },
  307. method: "POST",
  308. data: {
  309. ecId: this.ecId,
  310. pageName: this.pageName
  311. },
  312. success: (res) => {
  313. // console.log("getCardConfigQuery", res)
  314. const data = res.data.data;
  315. // console.log("configJson", data.configJson);
  316. const config = data.configJson != "" ? JSON.parse(data.configJson) : "";
  317. // console.log("configJson", data.configJson);
  318. /* const config = {
  319. "css": `
  320. .top{
  321. width: 100%;
  322. height: 170px;
  323. padding-top: 36px;
  324. justify-content: space-between;
  325. background-image: url('static/backgroud/top_bg_egg3.png');
  326. background-repeat: no-repeat;
  327. background-position: center;
  328. background-size: cover;
  329. }
  330. .topbar-color{
  331. color: #333333;
  332. }
  333. .topbtm-name{
  334. background-color: #c77f34 !important;
  335. color: #ffffff !important;
  336. }
  337. .topbtm-egg{
  338. background-color: #c6690a !important;
  339. color: #ffffff !important;
  340. }
  341. .btnBack{
  342. background-color: #ff870d !important;
  343. }
  344. .swiper-item-button {
  345. background-color: #ff870e !important;
  346. }
  347. .uni-swiper-dot-active {
  348. background: #ff870e !important;
  349. }
  350. `,
  351. "tabActiveColor": "#ff870d",
  352. "popupDataList": [{
  353. "type": 1,
  354. "data": {
  355. "title": "小飞龙定向赛",
  356. "img": "/static/common/egg.png",
  357. "content": "济南奥体中心“一场三馆”包括体育场、体育馆、网球馆和游泳馆,呈现出“东荷西柳”的总体布局。 体育场以济南的“市树”柳树为母题,将垂柳柔美飘逸的形态固化为建筑语言。"
  358. }
  359. },
  360. "default"
  361. ],
  362. "popupExchgList": [{
  363. "type": 5,
  364. "data": {
  365. "title": "兑换地点",
  366. "img": "/static/common/wslgwcs.png",
  367. "point": {
  368. "longitude": 117.022194,
  369. "latitude": 36.661612,
  370. "name": "万盛隆购物超市"
  371. }
  372. }
  373. }
  374. ]
  375. }; */
  376. this.loadConfig(config);
  377. this.matchRsDetailQuery();
  378. setTimeout(this.dealFirstEnter, 500);
  379. },
  380. fail: (err) => {
  381. console.log("getCardConfigQuery err", err)
  382. },
  383. });
  384. },
  385. // 卡片对应活动或赛事详情查询
  386. // getCardDetailQuery() {
  387. // uni.request({
  388. // url: apiCardDetailQuery,
  389. // header: {
  390. // "Content-Type": "application/x-www-form-urlencoded",
  391. // "token": this.token,
  392. // },
  393. // method: "POST",
  394. // data: {
  395. // ecId: this.ecId
  396. // },
  397. // success: (res) => {
  398. // // console.log("getCardDetailQuery", res)
  399. // const data = res.data.data;
  400. // this.mcType = data.mcType;
  401. // this.mcId = data.mcId;
  402. // this.mcName = data.mcName;
  403. // this.beginSecond = data.beginSecond;
  404. // this.endSecond = data.endSecond;
  405. // this.coiName = data.coiName;
  406. // this.teamNum = data.teamNum;
  407. // this.mcState = tools.checkMcState(this.beginSecond, this.endSecond);
  408. // this.getCountdown();
  409. // this.getActtime();
  410. // this.getCardRankDetailQuery();
  411. // this.clear();
  412. // this.interval = setInterval(this.getCountdown, 60000);
  413. // },
  414. // fail: (err) => {
  415. // console.log("getCardDetailQuery err", err)
  416. // },
  417. // });
  418. // },
  419. // 卡片对应线上赛多个活动查询
  420. matchRsDetailQuery() {
  421. uni.request({
  422. url: apiMatchRsDetailQuery,
  423. header: {
  424. "Content-Type": "application/x-www-form-urlencoded",
  425. "token": this.token,
  426. },
  427. method: "POST",
  428. data: {
  429. ecId: this.ecId
  430. },
  431. success: (res) => {
  432. // console.log("matchRsDetailQuery", res);
  433. if (checkResCode(res)) {
  434. const data = res.data.data;
  435. this.mcType = data.mcType;
  436. this.mcId = data.mcId;
  437. this.mcName = data.mcName;
  438. this.beginSecond = data.beginSecond;
  439. this.endSecond = data.endSecond;
  440. this.nickName = data.nickName;
  441. // this.totalNum = data.totalNum;
  442. // this.totalDistanct = data.totalDistanct;
  443. // this.totalDistanctRankNum = data.totalDistanctRankNum;
  444. // this.totalCp = data.totalCp;
  445. // this.totalCpRankNum = data.totalCpRankNum;
  446. // this.totalSysPoint = data.totalSysPoint;
  447. // this.totalSysPointRankNum = data.totalSysPointRankNum;
  448. // this.fastPace = data.fastPace;
  449. // this.fastPaceRankNum = data.fastPaceRankNum;
  450. // this.ocaRs = data.ocaRs;
  451. this.mcState = tools.checkMcState(this.beginSecond, this.endSecond);
  452. this.getCountdown();
  453. this.getActtime();
  454. this.getCardRankDetailQuery();
  455. this.clear();
  456. this.interval = setInterval(this.getCountdown, 60000);
  457. }
  458. },
  459. fail: (err) => {
  460. console.log("matchRsDetailQuery err", err)
  461. },
  462. });
  463. },
  464. // 排名查询
  465. getCardRankDetailQuery() {
  466. uni.request({
  467. url: apiCardRankDetailQuery,
  468. header: {
  469. "Content-Type": "application/x-www-form-urlencoded",
  470. "token": this.token,
  471. },
  472. method: "POST",
  473. data: {
  474. mcIdListStr: this.mcId,
  475. mcType: this.mcType,
  476. dispArrStr: this.dispArrStr
  477. },
  478. success: (res) => {
  479. console.log("getCardRankDetailQuery", res);
  480. const rankdata = res.data.data;
  481. this.rankList.totalDistanceRs = rankdata.totalDistanceRs;
  482. this.rankList.totalCpRs = rankdata.totalCpRs;
  483. this.rankList.totalSysPointRs = rankdata.totalSysPointRs;
  484. this.rankList.fastPaceRs = rankdata.fastPaceRs;
  485. },
  486. fail: (err) => {
  487. console.log("getCardRankDetailQuery err", err)
  488. },
  489. });
  490. },
  491. // 卡片用户当前排名查询
  492. // getUserCurrentRankNumQuery() {
  493. // uni.request({
  494. // url: apiUserCurrentRankNumQuery,
  495. // header: {
  496. // "Content-Type": "application/x-www-form-urlencoded",
  497. // "token": this.token,
  498. // },
  499. // method: "POST",
  500. // data: {
  501. // ecId: this.ecId
  502. // },
  503. // success: (res) => {
  504. // // console.log("getUserCurrentRankNumQuery", res)
  505. // if (res.data.code == 0) {
  506. // const data = res.data.data;
  507. // const rankNum = data.rankNum;
  508. // this.dealNotice(rankNum);
  509. // }
  510. // },
  511. // fail: (err) => {
  512. // console.log("getUserCurrentRankNumQuery err", err)
  513. // },
  514. // });
  515. // },
  516. // 是否允许重新分组(报名)
  517. isAllowMcSignUp() {
  518. uni.request({
  519. url: apiIsAllowMcSignUp,
  520. header: {
  521. "Content-Type": "application/x-www-form-urlencoded",
  522. "token": this.token,
  523. },
  524. method: "POST",
  525. data: {
  526. ecId: this.ecId
  527. },
  528. success: (res) => {
  529. // console.log("isAllowMcSignUp", res)
  530. if (res.data.code == 0) {
  531. const data = res.data.data;
  532. this.allowMcSignUp = data.allowSignUp;
  533. }
  534. },
  535. fail: (err) => {
  536. console.log("isAllowMcSignUp err", err)
  537. },
  538. });
  539. },
  540. btnBack() {
  541. // window.history.back();
  542. /* uni.navigateTo({
  543. url: "/pages/bm/style3/rankOverview?" + this.queryString
  544. }); */
  545. const url = `action://to_home/`;
  546. // window.location.href = url;
  547. tools.appAction(url);
  548. },
  549. btnStartGame() {
  550. uni.navigateTo({
  551. url: "/pages/bm/style3/rankOverview?" + this.queryString
  552. });
  553. },
  554. btnInfo() {
  555. // console.log(this.$refs.mypopup);
  556. this.$refs.mypopup.popupOpen();
  557. },
  558. btnMyEgg() {
  559. uni.navigateTo({
  560. url: "/pages/achievement/index2?tabCurrent=2&" + this.queryString
  561. });
  562. },
  563. btnExchg() {
  564. this.$refs.mypopupExchg.popupOpen();
  565. },
  566. onClickTabItem(e) {
  567. if (this.tabCurrent != e.currentIndex) {
  568. this.tabCurrent = e.currentIndex;
  569. }
  570. }
  571. }
  572. }
  573. </script>
  574. <style scoped>
  575. .content {
  576. width: 100vw;
  577. height: 100vh;
  578. }
  579. .top-default {
  580. width: 100%;
  581. height: 170px;
  582. padding-top: 36px;
  583. justify-content: space-between;
  584. background-image: url("/static/backgroud/top_bg2.png");
  585. background-repeat: no-repeat;
  586. background-position: center;
  587. background-size: cover;
  588. }
  589. .topbar {
  590. width: 90%;
  591. justify-content: space-between;
  592. }
  593. .topbar-color-default {
  594. color: #5b9100;
  595. }
  596. .topbar-back {
  597. width: 43rpx;
  598. height: 43rpx;
  599. color: inherit !important;
  600. font-size: 48rpx !important;
  601. /* opacity: 0; */
  602. }
  603. .topbar-info {
  604. width: 46rpx;
  605. height: 46rpx;
  606. }
  607. .topbar-rule {
  608. font-size: 32rpx;
  609. }
  610. .mcName {
  611. font-size: 40rpx;
  612. font-weight: 550;
  613. }
  614. .topbtm {
  615. width: 100%;
  616. margin-bottom: 5px;
  617. justify-content: space-around;
  618. }
  619. .topbtm-name {
  620. padding: 3px 12px;
  621. background-color: #9fda39;
  622. border-radius: 5px;
  623. text-align: center;
  624. font-weight: 500;
  625. color: #497400;
  626. font-size: 14px;
  627. }
  628. .topbtm-egg {
  629. width: 60px;
  630. padding: 3px 12px;
  631. background-color: #9fda39;
  632. border-radius: 50px;
  633. text-align: center;
  634. color: #497400;
  635. font-size: 14px;
  636. }
  637. .topbtm-null {
  638. width: 60px;
  639. padding: 3px 12px;
  640. }
  641. .cal {
  642. width: 46rpx;
  643. height: 46rpx;
  644. margin-right: 20rpx;
  645. }
  646. .main {
  647. width: 100%;
  648. /* height: 70vh; */
  649. flex-grow: 1;
  650. justify-content: space-around;
  651. /* justify-content: space-between; */
  652. }
  653. .main-tab {
  654. width: 90%;
  655. margin-top: 20rpx;
  656. }
  657. .tab-view {
  658. width: 100%;
  659. /* height: 69vh; */
  660. flex-grow: 1;
  661. }
  662. .btnBack {
  663. width: 70%;
  664. /* height: 6vh; */
  665. height: 80rpx;
  666. /* margin-bottom: 1vh; */
  667. margin-bottom: 20rpx;
  668. /* font-weight: bold; */
  669. color: white;
  670. font-size: 32rpx;
  671. line-height: 80rpx;
  672. border-radius: 27px;
  673. background-color: #81cd00;
  674. }
  675. </style>