rankList.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708
  1. <!--
  2. [报名] 样式2 - 排名列表
  3. http://localhost:5173/card/#/pages/bm/style2/rankList
  4. https://oss-mbh5.colormaprun.com/card/#/pages/bm/style2/rankList
  5. -->
  6. <template>
  7. <view class="body">
  8. <view class="content uni-column">
  9. <view class="uni-column" :class="cssTop">
  10. <my-topbar :mcName="mcName" :class="cssTopbarColor" :showMessage="popupMessageList.length > 0"
  11. @btnBackClick="btnBack" @btnInfoClick="btnInfo" @btnMessageClick="btnMessage"></my-topbar>
  12. <view class="topbtm uni-column">
  13. <text class="topbtm-name">姓名:{{nickName}}</text>
  14. </view>
  15. </view>
  16. <view class="main uni-column">
  17. <uni-segmented-control class="main-tab" :current="tabCurrent" :values="tabItems"
  18. @clickItem="onClickTabItem" styleType="button" :activeColor="tabActiveColor"></uni-segmented-control>
  19. <view class="tab-view uni-column">
  20. <!-- 总距离 -->
  21. <my-ranklist v-show="tabCurrent === 0" :rankRs="rankList.totalDistanceRs" rank-type="totalDistance"></my-ranklist>
  22. <!-- 打点数 -->
  23. <my-ranklist v-show="tabCurrent === 1" :rankRs="rankList.totalCpRs" rank-type="totalCp"></my-ranklist>
  24. <!-- 百味豆 -->
  25. <my-ranklist v-show="tabCurrent === 2" :rankRs="rankList.totalSysPointRs" rank-type="totalSysPoint"></my-ranklist>
  26. <!-- 配速 -->
  27. <my-ranklist v-show="tabCurrent === 3" :rankRs="rankList.fastPaceRs" rank-type="fastPace"></my-ranklist>
  28. </view>
  29. <button class="btnBack" @click="btnStartGame">我要比赛</button>
  30. <!-- <button class="btnBack" @click="btnBack">返回</button> -->
  31. </view>
  32. <my-popup ref="mypopup" :config="popupRuleConfig" :dataList="popupDataList" :acttime="acttime"></my-popup>
  33. <my-popup ref="mypopupMessage" :dataList="popupMessageList"></my-popup>
  34. </view>
  35. </view>
  36. </template>
  37. <script>
  38. import tools from '/common/tools';
  39. import { teamName, defaultPopUpDataList } from '/common/define';
  40. import {
  41. token,
  42. apiMatchRsDetailQuery,
  43. apiCardRankDetailQuery,
  44. apiCardConfigQuery,
  45. apiUserCurrentRankNumQuery,
  46. apiIsAllowMcSignUp,
  47. apiUnReadMessageQuery,
  48. apiReadMessage,
  49. checkResCode
  50. } from '/common/api';
  51. export default {
  52. data() {
  53. return {
  54. pageName: "rankList",
  55. firstEnterKey: 'firstEnter-bm-style2',
  56. rankKey: "rank-bm-style2",
  57. messageKey: "message-bm-style2",
  58. queryObj: {},
  59. queryString: "",
  60. token: "",
  61. ovtype: "",
  62. ecId: 0, // 卡片id
  63. mcId: 0, // 赛事id
  64. mcType: 0, // 赛事类型 1 普通活动 2 线下赛 3 线上赛
  65. mcName: "", // 赛事名称
  66. acttime: "", // 活动时间
  67. beginSecond: null, // 活动或赛事开始时间戳,单位秒
  68. endSecond: null, // 活动或赛事结束时间戳,单位秒
  69. ocaId: 0, // 关联id,带入到App活动详情页面
  70. nickName: "", // 昵称
  71. // totalNum: null, // 总场次
  72. // totalDistanct: null, // 总距离,单位米
  73. // totalDistanctRankNum: null, // 总距离排名
  74. // totalCp: null, // 总打点数
  75. // totalCpRankNum: null, // 总打点数排名
  76. // totalSysPoint: null, // 总百味豆
  77. // totalSysPointRankNum: null, // 总百味豆排名
  78. // fastPace: null, // 个人最快配速
  79. // fastPaceRankNum: null, // 个人最快配速排名
  80. // ocaRs: [], // 卡片对应活动集合
  81. mcState: 0 , // 赛事/活动状态 0: 未开始 1: 进行中 2: 已结束
  82. allowMcSignUp: false, // 是否允许重新分组
  83. countdown: "", // 倒计时
  84. rankList: { // 排名列表
  85. totalDistanceRs: [],
  86. totalCpRs: [],
  87. totalSysPointRs: [],
  88. fastPaceRs: []
  89. },
  90. interval: null,
  91. teamType: 0, // 队伍类型
  92. dispArrStr: "totalDistance,totalCp,totalSysPoint,fastPace", // 要显示的集合范围
  93. tabItems: ["里程", "打点数", "百味豆", "配速"],
  94. tabCurrent: 0,
  95. tabActiveColor: "#81cd00",
  96. cssTop: "",
  97. cssTopbarColor: "",
  98. popupRuleConfig: {}, // 规则弹窗配置
  99. popupDataList: [],
  100. popupMessageList: [],
  101. // mqIdListStr: "", // 已读消息id列表 逗号分隔
  102. }
  103. },
  104. computed: {},
  105. onLoad(query) { // 类型非必填,可自动推导
  106. // console.log(query);
  107. this.queryObj = query;
  108. this.queryString = tools.objectToQueryString(this.queryObj);
  109. // console.log(queryString);
  110. this.token = query["token"] ?? token;
  111. this.ecId = query["id"] ?? 0;
  112. this.ovtype = query["ovtype"] ?? "";
  113. this.firstEnterKey += "-" + this.ecId;
  114. console.log("firstEnterKey:", this.firstEnterKey);
  115. this.rankKey += "-" + this.ecId;
  116. console.log("rankKey:", this.rankKey);
  117. this.messageKey += "-" + this.ecId;
  118. console.log("messageKey:", this.messageKey);
  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 popupRuleConfig = config.popupRuleConfig;
  237. if (popupRuleConfig != undefined) {
  238. this.popupRuleConfig = popupRuleConfig;
  239. }
  240. // console.log("[loadConfig] popupRuleConfig:", this.popupRuleConfig);
  241. // 加载弹窗数据
  242. const popupDataList = config.popupDataList;
  243. // console.log("[loadConfig] popupDataList:", popupDataList);
  244. if (popupDataList != undefined && popupDataList.length > 0) {
  245. for (var i = 0; i < popupDataList.length; i++) {
  246. // console.log("[loadConfig] popupDataList", i, popupDataList[i]);
  247. if (popupDataList[i] == 'default') {
  248. for (var j = 0; j < defaultPopUpDataList.length; j++) {
  249. this.popupDataList.push(defaultPopUpDataList[j]);
  250. }
  251. } else {
  252. this.popupDataList.push(popupDataList[i]);
  253. }
  254. }
  255. } else {
  256. this.popupDataList = defaultPopUpDataList;
  257. console.log("[loadConfig] popupDataList 加载默认列表");
  258. }
  259. // console.log("[loadConfig] popupDataList:", this.popupDataList);
  260. },
  261. // 获取倒计时
  262. getCountdown() {
  263. // console.log(this.endSecond)
  264. if (this.endSecond > 0) {
  265. const now = Date.now() / 1000;
  266. const dif = this.endSecond - now;
  267. // const dif = 3600*24 - 60;
  268. if (dif > 0) {
  269. this.countdown = '距结束 ' + tools.convertSecondsToDHM(dif);
  270. } else {
  271. this.countdown = "活动已结束";
  272. }
  273. // this.countdown = tools.convertSecondsToHMS(dif);
  274. } else {
  275. this.countdown = "距结束 --天--小时";
  276. }
  277. },
  278. fmtMcTime(timestamp) {
  279. return tools.fmtMcTime(timestamp);
  280. },
  281. // 获取活动时间
  282. getActtime() {
  283. this.acttime = tools.getActtime(this.beginSecond, this.endSecond);
  284. },
  285. getTeamName(teamType, teamIndex) {
  286. return teamName[teamType][teamIndex];
  287. },
  288. getCardConfigQuery() {
  289. uni.request({
  290. url: apiCardConfigQuery,
  291. header: {
  292. "Content-Type": "application/x-www-form-urlencoded",
  293. "token": this.token,
  294. },
  295. method: "POST",
  296. data: {
  297. ecId: this.ecId,
  298. pageName: this.pageName
  299. },
  300. success: (res) => {
  301. // console.log("getCardConfigQuery", res)
  302. const data = res.data.data;
  303. // console.log("configJson", data.configJson);
  304. const config = data.configJson != "" ? JSON.parse(data.configJson) : "";
  305. // console.log("configJson", data.configJson);
  306. /* const config = {
  307. "css": `
  308. .top{
  309. width: 100%;
  310. height: 170px;
  311. padding-top: 36px;
  312. justify-content: space-between;
  313. background-image: url("static/backgroud/top_bg_aoti3.png");
  314. background-repeat: no-repeat;
  315. background-position: center;
  316. background-size: cover;
  317. }
  318. `,
  319. "tabActiveColor": "#ff870d",
  320. "popupDataList": [{
  321. "type": 1,
  322. "data": {
  323. "title": "小飞龙定向赛",
  324. "img": "/static/logo/xfl.png",
  325. "content": "济南奥体中心“一场三馆”包括体育场、体育馆、网球馆和游泳馆,呈现出“东荷西柳”的总体布局。 体育场以济南的“市树”柳树为母题,将垂柳柔美飘逸的形态固化为建筑语言。"
  326. }
  327. },
  328. "default"
  329. ]
  330. }; */
  331. this.loadConfig(config);
  332. this.getUnReadMessageQuery();
  333. this.matchRsDetailQuery();
  334. setTimeout(this.dealFirstEnter, 500);
  335. },
  336. fail: (err) => {
  337. console.log("getCardConfigQuery err", err)
  338. },
  339. });
  340. },
  341. // 卡片对应活动或赛事详情查询
  342. // getCardDetailQuery() {
  343. // uni.request({
  344. // url: apiCardDetailQuery,
  345. // header: {
  346. // "Content-Type": "application/x-www-form-urlencoded",
  347. // "token": this.token,
  348. // },
  349. // method: "POST",
  350. // data: {
  351. // ecId: this.ecId
  352. // },
  353. // success: (res) => {
  354. // // console.log("getCardDetailQuery", res)
  355. // const data = res.data.data;
  356. // this.mcType = data.mcType;
  357. // this.mcId = data.mcId;
  358. // this.mcName = data.mcName;
  359. // this.beginSecond = data.beginSecond;
  360. // this.endSecond = data.endSecond;
  361. // this.coiName = data.coiName;
  362. // this.teamNum = data.teamNum;
  363. // this.mcState = tools.checkMcState(this.beginSecond, this.endSecond);
  364. // this.getCountdown();
  365. // this.getActtime();
  366. // this.getCardRankDetailQuery();
  367. // this.clear();
  368. // this.interval = setInterval(this.getCountdown, 60000);
  369. // },
  370. // fail: (err) => {
  371. // console.log("getCardDetailQuery err", err)
  372. // },
  373. // });
  374. // },
  375. // 卡片对应线上赛多个活动查询
  376. matchRsDetailQuery() {
  377. uni.request({
  378. url: apiMatchRsDetailQuery,
  379. header: {
  380. "Content-Type": "application/x-www-form-urlencoded",
  381. "token": this.token,
  382. },
  383. method: "POST",
  384. data: {
  385. ecId: this.ecId
  386. },
  387. success: (res) => {
  388. // console.log("matchRsDetailQuery", res);
  389. if (checkResCode(res)) {
  390. const data = res.data.data;
  391. this.mcType = data.mcType;
  392. this.mcId = data.mcId;
  393. this.mcName = data.mcName;
  394. this.beginSecond = data.beginSecond;
  395. this.endSecond = data.endSecond;
  396. this.nickName = data.nickName;
  397. // this.totalNum = data.totalNum;
  398. // this.totalDistanct = data.totalDistanct;
  399. // this.totalDistanctRankNum = data.totalDistanctRankNum;
  400. // this.totalCp = data.totalCp;
  401. // this.totalCpRankNum = data.totalCpRankNum;
  402. // this.totalSysPoint = data.totalSysPoint;
  403. // this.totalSysPointRankNum = data.totalSysPointRankNum;
  404. // this.fastPace = data.fastPace;
  405. // this.fastPaceRankNum = data.fastPaceRankNum;
  406. // this.ocaRs = data.ocaRs;
  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. },
  415. fail: (err) => {
  416. console.log("matchRsDetailQuery err", err)
  417. },
  418. });
  419. },
  420. // 排名查询
  421. getCardRankDetailQuery() {
  422. uni.request({
  423. url: apiCardRankDetailQuery,
  424. header: {
  425. "Content-Type": "application/x-www-form-urlencoded",
  426. "token": this.token,
  427. },
  428. method: "POST",
  429. data: {
  430. mcIdListStr: this.mcId,
  431. mcType: this.mcType,
  432. dispArrStr: this.dispArrStr
  433. },
  434. success: (res) => {
  435. // console.log("getCardRankDetailQuery", res);
  436. const rankdata = res.data.data;
  437. this.rankList.totalDistanceRs = rankdata.totalDistanceRs;
  438. this.rankList.totalCpRs = rankdata.totalCpRs;
  439. this.rankList.totalSysPointRs = rankdata.totalSysPointRs;
  440. this.rankList.fastPaceRs = rankdata.fastPaceRs;
  441. },
  442. fail: (err) => {
  443. console.log("getCardRankDetailQuery err", err)
  444. },
  445. });
  446. },
  447. // 卡片用户当前排名查询
  448. // getUserCurrentRankNumQuery() {
  449. // uni.request({
  450. // url: apiUserCurrentRankNumQuery,
  451. // header: {
  452. // "Content-Type": "application/x-www-form-urlencoded",
  453. // "token": this.token,
  454. // },
  455. // method: "POST",
  456. // data: {
  457. // ecId: this.ecId
  458. // },
  459. // success: (res) => {
  460. // // console.log("getUserCurrentRankNumQuery", res)
  461. // if (res.data.code == 0) {
  462. // const data = res.data.data;
  463. // const rankNum = data.rankNum;
  464. // this.dealNotice(rankNum);
  465. // }
  466. // },
  467. // fail: (err) => {
  468. // console.log("getUserCurrentRankNumQuery err", err)
  469. // },
  470. // });
  471. // },
  472. // 是否允许重新分组(报名)
  473. isAllowMcSignUp() {
  474. uni.request({
  475. url: apiIsAllowMcSignUp,
  476. header: {
  477. "Content-Type": "application/x-www-form-urlencoded",
  478. "token": this.token,
  479. },
  480. method: "POST",
  481. data: {
  482. ecId: this.ecId
  483. },
  484. success: (res) => {
  485. // console.log("isAllowMcSignUp", res)
  486. if (res.data.code == 0) {
  487. const data = res.data.data;
  488. this.allowMcSignUp = data.allowSignUp;
  489. }
  490. },
  491. fail: (err) => {
  492. console.log("isAllowMcSignUp err", err)
  493. },
  494. });
  495. },
  496. // 未读消息列表查询
  497. getUnReadMessageQuery() {
  498. uni.request({
  499. url: apiUnReadMessageQuery,
  500. header: {
  501. "Content-Type": "application/x-www-form-urlencoded",
  502. "token": this.token,
  503. },
  504. method: "POST",
  505. data: {
  506. relationType: 2, // 类型 1 成就 2 卡片
  507. relationId: this.ecId
  508. },
  509. success: (res) => {
  510. // console.log("getUnReadMessageQuery", res);
  511. if (checkResCode(res)) {
  512. const unReadMessageRs = res.data.data;
  513. this.popupMessageList.length = 0;
  514. this.mqIdListStr = "";
  515. for (var i = 0; i < unReadMessageRs.length; i++) {
  516. let popupData = {
  517. type: 6, // 6: 通知
  518. data: {}
  519. };
  520. this.messageKey += "-" + unReadMessageRs[i].mqId;
  521. popupData.data.mqType = unReadMessageRs[i].mqType;
  522. popupData.data.title = unReadMessageRs[i].mqTitle;
  523. popupData.data.message = unReadMessageRs[i].mqMessage;
  524. this.popupMessageList.push(popupData);
  525. // this.mqIdListStr += this.unReadMessageRs[i].mqId;
  526. // if (i < this.unReadMessageRs.length - 1) {
  527. // this.mqIdListStr += ",";
  528. // }
  529. }
  530. if (this.popupMessageList.length > 0) {
  531. const messageValue = uni.getStorageSync(this.messageKey);
  532. console.log("messageValue:", messageValue);
  533. if (!messageValue) {
  534. this.$refs.mypopupMessage.popupOpen();
  535. uni.setStorageSync(this.messageKey, true);
  536. }
  537. }
  538. }
  539. },
  540. fail: (err) => {
  541. console.log("getUnReadMessageQuery err", err);
  542. },
  543. });
  544. },
  545. // 标记消息已读
  546. readMessage() {
  547. uni.request({
  548. url: apiReadMessage,
  549. header: {
  550. "Content-Type": "application/x-www-form-urlencoded",
  551. "token": this.token,
  552. },
  553. method: "POST",
  554. data: {
  555. "mqIdListStr": this.mqIdListStr
  556. },
  557. success: (res) => {
  558. // console.log("readMessage", res);
  559. },
  560. fail: (err) => {
  561. console.log("readMessage err", err);
  562. },
  563. });
  564. },
  565. btnBack() {
  566. // window.history.back();
  567. // uni.navigateTo({
  568. // url: "/pages/bm/style2/rankOverview?" + this.queryString
  569. // });
  570. const url = `action://to_home/`;
  571. tools.appAction(url);
  572. },
  573. btnStartGame() {
  574. // uni.navigateTo({
  575. // url: "/pages/bm/style2/rankOverview?" + this.queryString
  576. // });
  577. const url = "/pages/bm/style2/rankOverview?" + this.queryString;
  578. tools.appAction(url, "uni.navigateTo");
  579. },
  580. btnInfo() {
  581. // console.log(this.$refs.mypopup);
  582. this.$refs.mypopup.popupOpen();
  583. },
  584. btnMessage() {
  585. // console.log(this.$refs.mypopup);
  586. this.$refs.mypopupMessage.popupOpen();
  587. },
  588. onClickTabItem(e) {
  589. if (this.tabCurrent != e.currentIndex) {
  590. this.tabCurrent = e.currentIndex;
  591. }
  592. }
  593. }
  594. }
  595. </script>
  596. <style scoped>
  597. .content {
  598. width: 100vw;
  599. height: 100vh;
  600. }
  601. .top-default {
  602. width: 100%;
  603. height: 170px;
  604. padding-top: 36px;
  605. justify-content: space-between;
  606. background-image: url("/static/backgroud/top_bg_aoti3.png");
  607. background-repeat: no-repeat;
  608. background-position: center;
  609. background-size: cover;
  610. }
  611. .topbar-color-default {
  612. color: #5b9100;
  613. }
  614. .topbtm {
  615. width: 100%;
  616. margin-bottom: 5px;
  617. justify-content: space-evenly;
  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. .cal {
  629. width: 46rpx;
  630. height: 46rpx;
  631. margin-right: 20rpx;
  632. }
  633. .main {
  634. width: 100%;
  635. /* height: 70vh; */
  636. flex-grow: 1;
  637. justify-content: space-around;
  638. /* justify-content: space-between; */
  639. }
  640. .main-tab {
  641. width: 90%;
  642. margin-top: 20rpx;
  643. }
  644. .tab-view {
  645. width: 100%;
  646. /* height: 69vh; */
  647. flex-grow: 1;
  648. }
  649. .btnBack {
  650. width: 70%;
  651. /* height: 6vh; */
  652. height: 80rpx;
  653. /* margin-bottom: 1vh; */
  654. margin-bottom: 20rpx;
  655. /* font-weight: bold; */
  656. color: white;
  657. font-size: 32rpx;
  658. line-height: 80rpx;
  659. border-radius: 27px;
  660. background-color: #81cd00;
  661. }
  662. </style>