rankList.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666
  1. <!--
  2. [模板] 样式1 - 排名列表
  3. http://localhost:5173/card/#/pages/tpl/style1/rankList
  4. https://oss-mbh5.colormaprun.com/card/#/pages/tpl/style1/rankList
  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" :showMessage="cardConfigData.popupMessageList.length > 0"
  11. @btnBackClick="btnBack" @btnInfoClick="btnInfo" @btnMessageClick="btnMessage"></my-topbar>
  12. <view class="topbtm uni-row">
  13. <!-- <view class="topbtm-egg bgcolor-main" @click="btnMyEgg"></view> -->
  14. <view class="topbtm-egg" @click="btnMyEgg">{{configParam.labelTicketName}}</view>
  15. <text class="topbtm-name bgcolor-main">{{nickName}}</text>
  16. <!-- <view class="topbtm-egg bgcolor-main" @click="btnExchg">兑换地址</view> -->
  17. <view class="topbtm-egg" v-if="configParam.labelGoodsList && configParam.labelGoodsList.length > 0" @click="btnGoodsList">{{configParam.labelGoodsList}}</view>
  18. <view class="topbtm-egg" v-else @click="btnExchg">{{configParam.labelAwardAddress}}</view>
  19. </view>
  20. </view>
  21. <view class="main uni-column">
  22. <view class="main-bar uni-row uni-jcse">
  23. <text>题目输出:{{all_totalAnswerNum}}</text>
  24. <text>总里程:{{fmtDistanct(all_totalDistance)}}km</text>
  25. <text>总打点:{{all_totalCp}}</text>
  26. <text>总百味豆:{{all_totalSysPoint}}</text>
  27. </view>
  28. <!-- <view>>> {{rankList}}</view> -->
  29. <my-tab ref="tab" :tabItems="tabItems" :tabItemsMark="tabItemsMark" :type="0"
  30. :initActIndex=configParam.tabInitActIndex @onTabClick="onTabClick" :fontSize="12"></my-tab>
  31. <view class="tab-view uni-column">
  32. <template v-for="(item, index) in rankRsList" :key="index">
  33. <my-ranklist v-show="tabCurrent === index" :rankRs="rankList[item]"
  34. :rank-type="rankTypeList[index]"></my-ranklist>
  35. </template>
  36. </view>
  37. <button class="btnBack bgcolor-main" @click="btnStartGame">{{btnStartGameText}}</button>
  38. </view>
  39. <my-popup ref="mypopup" :config="cardConfigData.popupRuleConfig" :dataList="cardConfigData.popupRuleList" :acttime="acttime"></my-popup>
  40. <my-popup ref="mypopupExchg" :config="cardConfigData.popupExchgConfig" :dataList="cardConfigData.popupExchgList"></my-popup>
  41. <my-popup ref="mypopupMessage" :config="cardConfigData.popupMessageConfig" :dataList="cardConfigData.popupMessageList" @noMoreRemindersClick="onNoMoreRemindersClick"></my-popup>
  42. </view>
  43. </view>
  44. </template>
  45. <script>
  46. import tools from '/common/tools';
  47. import cardfunc from '../../../common/cardfunc';
  48. import { localCardConfig } from "./cardconfig/test.js";
  49. import { teamName } from '/common/define';
  50. import {
  51. token,
  52. apiMatchRsDetailQuery,
  53. apiCardRankDetailQuery,
  54. apiCompStatisticQuery,
  55. apiIsAllowMcSignUp,
  56. apiUserJoinCardQuery,
  57. checkResCode
  58. } from '/common/api';
  59. export default {
  60. data() {
  61. return {
  62. cardConfigData: cardfunc.cardConfigData,
  63. pageReady: false,
  64. pageName: "rankList",
  65. firstEnterKey: 'firstEnter-tpl-style1',
  66. rankKey: "rank-tpl-style1",
  67. messageKey: "message-tpl-style1",
  68. queryObj: {},
  69. queryString: "",
  70. token: "",
  71. ovtype: "",
  72. ecId: 0, // 卡片id
  73. mcId: 0, // 赛事id
  74. mcType: 0, // 赛事类型 1 普通活动 2 线下赛 3 线上赛
  75. mcName: "", // 赛事名称
  76. acttime: "", // 活动时间
  77. beginSecond: null, // 活动或赛事开始时间戳,单位秒
  78. endSecond: null, // 活动或赛事结束时间戳,单位秒
  79. ocaId: 0, // 关联id,带入到App活动详情页面
  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. isJoin: null, // 是否报名
  92. btnStartGameText: "",
  93. all_totalDistance: 0, // 赛事所有人累计里程,单位米
  94. all_totalRightAnswerNum: 0, // 赛事所有人正确答题数(校园文化输出)
  95. all_totalAnswerNum: 0, // 赛事所有人答题数(校园文化输出)
  96. all_totalCp: 0, // 赛事中所有人打点数
  97. all_totalSysPoint: 0, // 赛事中所有人百味豆
  98. mcState: 0 , // 赛事/活动状态 0: 未开始 1: 进行中 2: 已结束
  99. allowMcSignUp: false, // 是否允许重新分组
  100. countdown: "", // 倒计时
  101. rankList: {}, // 排名列表
  102. interval: null,
  103. teamType: 0, // 队伍类型
  104. dispArrStr: "totalDistance,totalCp,totalSysPoint,fastPace", // 要显示的集合范围
  105. tabItems: ["总里程", "打点数", "百味豆", "配速"],
  106. rankTypeList: ["totalDistance", "totalCp", "totalSysPoint", "fastPace"],
  107. tabCurrent: 0,
  108. tabItemsMark: [{
  109. textColor: "#ff6203",
  110. icon: "static/common/award.png"
  111. }],
  112. rankRsList: ["totalDistanceRs", "totalCpRs", "totalSysPointRs", "fastPaceRs"],
  113. configParam: {
  114. labelTicketName: "我的奖券",
  115. labelAwardAddress: "兑奖地址",
  116. // labelGoodsList: "兑换商品",
  117. tabInitActIndex: 0
  118. }
  119. }
  120. },
  121. computed: {},
  122. onLoad(query) { // 类型非必填,可自动推导
  123. // console.log(query);
  124. this.queryObj = query;
  125. this.queryString = tools.objectToQueryString(this.queryObj);
  126. // console.log(queryString);
  127. this.token = query["token"] ?? token;
  128. this.ecId = query["id"] ?? 0;
  129. this.ovtype = query["ovtype"] ?? "";
  130. this.firstEnterKey += "-" + this.ecId;
  131. console.log("firstEnterKey:", this.firstEnterKey);
  132. this.rankKey += "-" + this.ecId;
  133. console.log("rankKey:", this.rankKey);
  134. this.messageKey += "-" + this.ecId;
  135. console.log("messageKey:", this.messageKey);
  136. cardfunc.init(this, this.token, this.ecId);
  137. cardfunc.getCardConfig(this.cardConfigQueryCallback, localCardConfig);
  138. this.dealOvtype();
  139. },
  140. // 页面初次渲染完成,此时组件已挂载完成,DOM 树($el)已可用
  141. onReady() {
  142. // this.dealFirstEnter();
  143. // this.$refs.mypopupMessage.popupOpen();
  144. },
  145. onShow() {
  146. this.getUserJoinCardQuery();
  147. },
  148. onUnload() {
  149. this.clear();
  150. },
  151. methods: {
  152. dealOvtype() {
  153. if (this.ovtype == "totalDistance") {
  154. this.tabCurrent = 0;
  155. } else if (this.ovtype == "totalCp") {
  156. this.tabCurrent = 1;
  157. } else if (this.ovtype == "totalSysPoint") {
  158. this.tabCurrent = 2;
  159. } else if (this.ovtype == "fastPace") {
  160. this.tabCurrent = 3;
  161. }
  162. console.log(`dealOvtype: ${this.ovtype} tabCurrent: ${this.tabCurrent}`);
  163. },
  164. dealNotice(rank) {
  165. // console.log('[dealFirstEnter]');
  166. let that = this;
  167. uni.getStorage({
  168. key: that.rankKey,
  169. success: (res) => {
  170. // console.log('[getStorage]', that.rankKey, res.data);
  171. const oldRank = res.data;
  172. if (oldRank != rank) {
  173. // that.notice = true;
  174. that.setRankValue(rank);
  175. }
  176. },
  177. fail: (e) => {
  178. console.log('[getStorage] fail', that.rankKey, e);
  179. // that.notice = false;
  180. that.setRankValue(rank);
  181. },
  182. })
  183. },
  184. setRankValue(data) {
  185. let that = this;
  186. uni.setStorage({
  187. key: that.rankKey,
  188. data: data,
  189. success: () => {
  190. console.log('[setStorage] success', that.rankKey, data);
  191. },
  192. fail: (e) => {
  193. console.log('[setStorage] fail', that.rankKey, e);
  194. },
  195. })
  196. },
  197. dealFirstEnter() {
  198. // console.log('[dealFirstEnter]');
  199. let that = this;
  200. uni.getStorage({
  201. key: that.firstEnterKey,
  202. success: (res) => {
  203. console.log('[getStorage]', that.firstEnterKey, res.data);
  204. },
  205. fail: (e) => {
  206. console.log('[getStorage] fail', that.firstEnterKey, e);
  207. that.btnInfo();
  208. that.setFirstEnterValue(true);
  209. },
  210. })
  211. },
  212. setFirstEnterValue(data) {
  213. let that = this;
  214. uni.setStorage({
  215. key: that.firstEnterKey,
  216. data: data,
  217. success: () => {
  218. console.log('[setStorage] success', that.firstEnterKey, data);
  219. },
  220. fail: (e) => {
  221. console.log('[setStorage] fail', that.firstEnterKey, e);
  222. },
  223. })
  224. },
  225. clear() {
  226. if (this.interval != null) {
  227. clearInterval(this.interval);
  228. this.interval = null;
  229. }
  230. },
  231. cardConfigQueryCallback(cardconfig) {
  232. this.loadConfig(cardconfig);
  233. cardfunc.unReadMessageQuery(this.unReadMessageQueryCallback);
  234. this.matchRsDetailQuery();
  235. setTimeout(this.dealFirstEnter, 500);
  236. },
  237. unReadMessageQueryCallback(unReadMessage, mqIdListStr) {
  238. // console.log("[unReadMessageQueryCallback] unReadMessage", unReadMessage);
  239. if (unReadMessage.length > 0) {
  240. this.messageKey += mqIdListStr;
  241. // console.log("[unReadMessageQueryCallback] messageKey:", this.messageKey);
  242. const messageValue = uni.getStorageSync(this.messageKey);
  243. // console.log("[unReadMessageQueryCallback] messageValue:", messageValue);
  244. if (!messageValue) {
  245. this.$refs.mypopupMessage.popupOpen();
  246. // uni.setStorageSync(this.messageKey, true);
  247. }
  248. }
  249. },
  250. loadConfig(cardconfig) {
  251. cardconfig = cardfunc.parseCardConfig(cardconfig);
  252. // console.log("[loadCardConfig] cardconfig:", cardconfig);
  253. // 加载卡片通用配置
  254. if (cardconfig.common != undefined) {
  255. cardfunc.loadCardCommonConfig(cardconfig.common);
  256. }
  257. // -------- 加载当前页面的配置 --------
  258. const config = cardfunc.parseCardConfig(cardconfig[this.pageName]);
  259. // console.log("[loadConfig] config_page:", config); if (config == undefined || config == null) {
  260. this.pageReady = true; return; }
  261. // 加载CSS样式
  262. const css = config.css;
  263. if (css != undefined && css.length > 0) {
  264. tools.loadCssCode(css);
  265. }
  266. // 加载成绩参数
  267. const rankParam = config.rankParam;
  268. if (rankParam != undefined) {
  269. if (rankParam.tabItemsMark != undefined) {
  270. this.tabItemsMark = rankParam.tabItemsMark;
  271. }
  272. if (rankParam.dispArrStr != undefined && rankParam.dispArrStr.length > 0) {
  273. this.dispArrStr = rankParam.dispArrStr;
  274. // console.log("[loadConfig] dispArrStr:", rankParam.dispArrStr);
  275. }
  276. if (rankParam.tabItems != undefined && rankParam.tabItems.length > 0) {
  277. this.tabItems = rankParam.tabItems;
  278. // console.log("[loadConfig] tabItems:", rankParam.tabItems);
  279. }
  280. if (rankParam.rankTypeList != undefined && rankParam.rankTypeList.length > 0) {
  281. this.rankTypeList = rankParam.rankTypeList;
  282. }
  283. if (rankParam.rankRsList != undefined && rankParam.rankRsList.length > 0) {
  284. this.rankRsList = rankParam.rankRsList;
  285. }
  286. }
  287. // console.log("[loadConfig] rankParam:", rankParam);
  288. // 加载页面参数
  289. const param = config.param;
  290. if (param != undefined) {
  291. if (param.labelTicketName != undefined && param.labelTicketName.length > 0) {
  292. this.configParam.labelTicketName = param.labelTicketName;
  293. }
  294. if (param.labelAwardAddress != undefined && param.labelAwardAddress.length > 0) {
  295. this.configParam.labelAwardAddress = param.labelAwardAddress;
  296. }
  297. if (param.labelGoodsList != undefined && param.labelGoodsList.length > 0) {
  298. this.configParam.labelGoodsList = param.labelGoodsList;
  299. }
  300. }
  301. this.pageReady = true;
  302. },
  303. // 获取倒计时
  304. getCountdown() {
  305. // console.log(this.endSecond)
  306. if (this.endSecond > 0) {
  307. const now = Date.now() / 1000;
  308. const dif = this.endSecond - now;
  309. // const dif = 3600*24 - 60;
  310. if (dif > 0) {
  311. this.countdown = '距结束 ' + tools.convertSecondsToDHM(dif);
  312. } else {
  313. this.countdown = "活动已结束";
  314. }
  315. // this.countdown = tools.convertSecondsToHMS(dif);
  316. } else {
  317. this.countdown = "距结束 --天--小时";
  318. }
  319. },
  320. // 格式化 距离
  321. fmtDistanct(val) {
  322. return Math.round(val * 100 / 1000) / 100;
  323. /* if (val < 10000)
  324. return Math.round(val * 10 / 1000) / 10;
  325. else
  326. return Math.round(val / 1000); */
  327. },
  328. fmtMcTime(timestamp) {
  329. return tools.fmtMcTime(timestamp);
  330. },
  331. // 获取活动时间
  332. getActtime() {
  333. this.acttime = tools.getActtime(this.beginSecond, this.endSecond);
  334. // console.log("acttime", this.acttime);
  335. },
  336. getTeamName(teamType, teamIndex) {
  337. return teamName[teamType][teamIndex];
  338. },
  339. // 卡片对应线上赛多个活动查询
  340. matchRsDetailQuery() {
  341. uni.request({
  342. url: apiMatchRsDetailQuery,
  343. header: {
  344. "Content-Type": "application/x-www-form-urlencoded",
  345. "token": this.token,
  346. },
  347. method: "POST",
  348. data: {
  349. ecId: this.ecId
  350. },
  351. success: (res) => {
  352. // console.log("matchRsDetailQuery", res);
  353. if (checkResCode(res)) {
  354. const data = res.data.data;
  355. this.mcType = data.mcType;
  356. this.mcId = data.mcId;
  357. this.mcName = data.mcName;
  358. this.beginSecond = data.beginSecond;
  359. this.endSecond = data.endSecond;
  360. this.nickName = data.nickName;
  361. this.totalNum = data.totalNum;
  362. this.totalDistanct = data.totalDistanct;
  363. this.totalDistanctRankNum = data.totalDistanctRankNum;
  364. this.totalCp = data.totalCp;
  365. this.totalCpRankNum = data.totalCpRankNum;
  366. this.totalSysPoint = data.totalSysPoint;
  367. this.totalSysPointRankNum = data.totalSysPointRankNum;
  368. this.fastPace = data.fastPace;
  369. this.fastPaceRankNum = data.fastPaceRankNum;
  370. // this.ocaRs = data.ocaRs;
  371. this.mcState = tools.checkMcState(this.beginSecond, this.endSecond);
  372. this.getCountdown();
  373. this.getActtime();
  374. this.compStatisticQuery();
  375. this.getCardRankDetailQuery();
  376. this.clear();
  377. this.interval = setInterval(this.getCountdown, 60000);
  378. }
  379. },
  380. fail: (err) => {
  381. console.log("matchRsDetailQuery err", err)
  382. },
  383. });
  384. },
  385. // 排名查询
  386. getCardRankDetailQuery() {
  387. uni.request({
  388. url: apiCardRankDetailQuery,
  389. header: {
  390. "Content-Type": "application/x-www-form-urlencoded",
  391. "token": this.token,
  392. },
  393. method: "POST",
  394. data: {
  395. mcIdListStr: this.mcId,
  396. mcType: this.mcType,
  397. dispArrStr: this.dispArrStr
  398. },
  399. success: (res) => {
  400. // console.log("getCardRankDetailQuery", res);
  401. const rankdata = res.data.data;
  402. this.rankList = rankdata;
  403. },
  404. fail: (err) => {
  405. console.log("getCardRankDetailQuery err", err);
  406. },
  407. });
  408. },
  409. // 赛事总成绩统计查询
  410. compStatisticQuery() {
  411. uni.request({
  412. url: apiCompStatisticQuery,
  413. header: {
  414. "Content-Type": "application/x-www-form-urlencoded",
  415. "token": this.token,
  416. },
  417. method: "POST",
  418. data: {
  419. mcId: this.mcId
  420. },
  421. success: (res) => {
  422. // console.log("compStatisticQuery", res);
  423. if (res.data.code == 0) {
  424. const data = res.data.data;
  425. this.all_totalDistance = data.totalDistance;
  426. this.all_totalRightAnswerNum = data.totalRightAnswerNum;
  427. this.all_totalAnswerNum = data.totalAnswerNum;
  428. this.all_totalCp = data.totalCp;
  429. this.all_totalSysPoint = data.totalSysPoint;
  430. }
  431. },
  432. fail: (err) => {
  433. console.log("compStatisticQuery err", err);
  434. },
  435. });
  436. },
  437. // 是否允许重新分组(报名)
  438. isAllowMcSignUp() {
  439. uni.request({
  440. url: apiIsAllowMcSignUp,
  441. header: {
  442. "Content-Type": "application/x-www-form-urlencoded",
  443. "token": this.token,
  444. },
  445. method: "POST",
  446. data: {
  447. ecId: this.ecId
  448. },
  449. success: (res) => {
  450. // console.log("isAllowMcSignUp", res)
  451. if (res.data.code == 0) {
  452. const data = res.data.data;
  453. this.allowMcSignUp = data.allowSignUp;
  454. }
  455. },
  456. fail: (err) => {
  457. console.log("isAllowMcSignUp err", err)
  458. },
  459. });
  460. },
  461. // 用户是否已经报名卡片对应赛事查询
  462. getUserJoinCardQuery() {
  463. uni.request({
  464. url: apiUserJoinCardQuery,
  465. header: {
  466. "Content-Type": "application/x-www-form-urlencoded",
  467. "token": this.token
  468. },
  469. method: "POST",
  470. data: {
  471. ecId: this.ecId
  472. },
  473. success: (res) => {
  474. // console.log("getUserJoinCardQuery", res)
  475. const code = res.data.code;
  476. const data = res.data.data;
  477. if (code == 0) {
  478. this.isJoin = data.isJoin;
  479. if (this.isJoin) { // 已报名
  480. // this.btnStartGameText = "我要比赛";
  481. this.btnStartGameText = "选择场地";
  482. } else { // 未报名
  483. this.btnStartGameText = "我要报名";
  484. }
  485. }
  486. },
  487. fail: (err) => {
  488. console.log("getUserJoinCardQuery err", err)
  489. },
  490. });
  491. },
  492. onNoMoreRemindersClick() {
  493. this.$refs.mypopupMessage.popupClose();
  494. uni.setStorageSync(this.messageKey, true);
  495. },
  496. btnBack() {
  497. const url = `action://to_home/`;
  498. tools.appAction(url);
  499. },
  500. btnStartGame() {
  501. if (this.isJoin) { // 已报名
  502. const url = "/pages/tpl/style1/rankOverview?" + this.queryString;
  503. tools.appAction(url, "uni.navigateTo");
  504. } else { // 未报名
  505. const url = "/pages/tpl/style1/signup?" + this.queryString;
  506. tools.appAction(url, "uni.navigateTo");
  507. }
  508. },
  509. btnInfo() {
  510. // console.log(this.$refs.mypopup);
  511. this.$refs.mypopup.popupOpen();
  512. },
  513. btnMessage() {
  514. // console.log(this.$refs.mypopup);
  515. this.$refs.mypopupMessage.popupOpen();
  516. },
  517. btnMyEgg() {
  518. const url = "/pages/achievement/index2?tabCurrent=2&" + this.queryString;
  519. tools.appAction(url, "uni.navigateTo");
  520. },
  521. btnExchg() {
  522. this.$refs.mypopupExchg.popupOpen();
  523. },
  524. btnGoodsList() {
  525. this.queryObj.from = "/pages/tpl/style1/rankList";
  526. this.queryString = tools.objectToQueryString(this.queryObj);
  527. const url = "/pages/exchange/style1/goodsList?" + this.queryString;
  528. tools.appAction(url, "uni.navigateTo");
  529. },
  530. onTabClick(val) {
  531. // console.log("onTabClick: ", val);
  532. this.tabCurrent = val;
  533. }
  534. }
  535. }
  536. </script>
  537. <style scoped>
  538. .content {
  539. width: 100vw;
  540. height: 100vh;
  541. }
  542. .page-top {
  543. width: 100%;
  544. height: 170px;
  545. padding-top: 36px;
  546. justify-content: space-between;
  547. background-image: url("/static/backgroud/top_bg2.png");
  548. background-repeat: no-repeat;
  549. background-position: center;
  550. background-size: cover;
  551. }
  552. .topbar-color {
  553. color: #5b9100;
  554. }
  555. .topbtm {
  556. width: 100%;
  557. margin-bottom: 5px;
  558. justify-content: space-around;
  559. }
  560. .topbtm-name {
  561. max-width: 300rpx;
  562. padding: 3px 12px;
  563. background-color: #9fda39;
  564. border-radius: 5px;
  565. text-align: center;
  566. font-weight: 500;
  567. color: #497400;
  568. font-size: 14px;
  569. white-space: nowrap;
  570. overflow: hidden;
  571. text-overflow: ellipsis;
  572. }
  573. .topbtm-egg {
  574. width: 60px;
  575. padding: 3px 12px;
  576. background-color: #9fda39;
  577. border-radius: 50px;
  578. text-align: center;
  579. color: #497400;
  580. font-size: 14px;
  581. }
  582. .topbtm-null {
  583. width: 60px;
  584. padding: 3px 12px;
  585. }
  586. .cal {
  587. width: 46rpx;
  588. height: 46rpx;
  589. margin-right: 20rpx;
  590. }
  591. .main {
  592. width: 100%;
  593. flex-grow: 1;
  594. justify-content: space-around;
  595. }
  596. .main-bar {
  597. width: 100%;
  598. height: 21px;
  599. background-color: #d8e8c6;
  600. font-size: 10px;
  601. font-weight: 500;
  602. color: #3d6706;
  603. }
  604. .main-tab {
  605. width: 90%;
  606. margin-top: 20rpx;
  607. }
  608. .tab-view {
  609. width: 100%;
  610. flex-grow: 1;
  611. }
  612. .btnBack {
  613. width: 70%;
  614. height: 80rpx;
  615. margin-bottom: 20rpx;
  616. color: white;
  617. font-size: 32rpx;
  618. line-height: 80rpx;
  619. border-radius: 27px;
  620. background-color: #81cd00;
  621. }
  622. </style>