rankList.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700
  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" :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. popupDataList: [],
  99. popupMessageList: [],
  100. // mqIdListStr: "", // 已读消息id列表 逗号分隔
  101. }
  102. },
  103. computed: {},
  104. onLoad(query) { // 类型非必填,可自动推导
  105. // console.log(query);
  106. this.queryObj = query;
  107. this.queryString = tools.objectToQueryString(this.queryObj);
  108. // console.log(queryString);
  109. this.token = query["token"] ?? token;
  110. this.ecId = query["id"] ?? 0;
  111. this.ovtype = query["ovtype"] ?? "";
  112. this.firstEnterKey += "-" + this.ecId;
  113. console.log("firstEnterKey:", this.firstEnterKey);
  114. this.rankKey += "-" + this.ecId;
  115. console.log("rankKey:", this.rankKey);
  116. this.messageKey += "-" + this.ecId;
  117. console.log("messageKey:", this.messageKey);
  118. tools.removeCssCode();
  119. this.getCardConfigQuery();
  120. this.dealOvtype();
  121. },
  122. // 页面初次渲染完成,此时组件已挂载完成,DOM 树($el)已可用
  123. onReady() {
  124. // this.dealFirstEnter();
  125. },
  126. onUnload() {
  127. this.clear();
  128. },
  129. methods: {
  130. dealOvtype() {
  131. if (this.ovtype == "totalDistance") {
  132. this.tabCurrent = 0;
  133. } else if (this.ovtype == "totalCp") {
  134. this.tabCurrent = 1;
  135. } else if (this.ovtype == "totalSysPoint") {
  136. this.tabCurrent = 2;
  137. } else if (this.ovtype == "fastPace") {
  138. this.tabCurrent = 3;
  139. }
  140. console.log(`dealOvtype: ${this.ovtype} tabCurrent: ${this.tabCurrent}`);
  141. },
  142. dealNotice(rank) {
  143. // console.log('[dealFirstEnter]');
  144. let that = this;
  145. uni.getStorage({
  146. key: that.rankKey,
  147. success: (res) => {
  148. console.log('[getStorage]', that.rankKey, res.data);
  149. const oldRank = res.data;
  150. if (oldRank != rank) {
  151. // that.notice = true;
  152. that.setRankValue(rank);
  153. }
  154. },
  155. fail: (e) => {
  156. console.log('[getStorage] fail', that.rankKey, e);
  157. // that.notice = false;
  158. that.setRankValue(rank);
  159. },
  160. })
  161. },
  162. setRankValue(data) {
  163. let that = this;
  164. uni.setStorage({
  165. key: that.rankKey,
  166. data: data,
  167. success: () => {
  168. console.log('[setStorage] success', that.rankKey, data);
  169. },
  170. fail: (e) => {
  171. console.log('[setStorage] fail', that.rankKey, e);
  172. },
  173. })
  174. },
  175. dealFirstEnter() {
  176. // console.log('[dealFirstEnter]');
  177. let that = this;
  178. uni.getStorage({
  179. key: that.firstEnterKey,
  180. success: (res) => {
  181. console.log('[getStorage]', that.firstEnterKey, res.data);
  182. },
  183. fail: (e) => {
  184. console.log('[getStorage] fail', that.firstEnterKey, e);
  185. that.btnInfo();
  186. that.setFirstEnterValue(true);
  187. },
  188. })
  189. },
  190. setFirstEnterValue(data) {
  191. let that = this;
  192. uni.setStorage({
  193. key: that.firstEnterKey,
  194. data: data,
  195. success: () => {
  196. console.log('[setStorage] success', that.firstEnterKey, data);
  197. },
  198. fail: (e) => {
  199. console.log('[setStorage] fail', that.firstEnterKey, e);
  200. },
  201. })
  202. },
  203. clear() {
  204. if (this.interval != null) {
  205. clearInterval(this.interval);
  206. this.interval = null;
  207. }
  208. },
  209. loadConfig(config) {
  210. // console.log("config", config);
  211. // 加载CSS样式
  212. const css = config.css;
  213. if (css != undefined && css.length > 0) {
  214. tools.loadCssCode(css);
  215. if (css.indexOf(".top{") >= 0) {
  216. this.cssTop = "top";
  217. }
  218. if (css.indexOf(".topbar-color{") >= 0) {
  219. this.cssTopbarColor = "topbar-color";
  220. }
  221. }
  222. if (this.cssTop == "") {
  223. this.cssTop = "top-default";
  224. }
  225. if (this.cssTopbarColor == "") {
  226. this.cssTopbarColor = "topbar-color-default";
  227. }
  228. console.log("[loadConfig] cssTop:", this.cssTop);
  229. console.log("[loadConfig] cssTopbarColor:", this.cssTopbarColor);
  230. const tabActiveColor = config.tabActiveColor;
  231. if (tabActiveColor != undefined && tabActiveColor.length > 0) {
  232. this.tabActiveColor = tabActiveColor;
  233. }
  234. // 加载弹窗数据
  235. const popupDataList = config.popupDataList;
  236. // console.log("[loadConfig] popupDataList:", popupDataList);
  237. if (popupDataList != undefined && popupDataList.length > 0) {
  238. for (var i = 0; i < popupDataList.length; i++) {
  239. // console.log("[loadConfig] popupDataList", i, popupDataList[i]);
  240. if (popupDataList[i] == 'default') {
  241. for (var j = 0; j < defaultPopUpDataList.length; j++) {
  242. this.popupDataList.push(defaultPopUpDataList[j]);
  243. }
  244. } else {
  245. this.popupDataList.push(popupDataList[i]);
  246. }
  247. }
  248. } else {
  249. this.popupDataList = defaultPopUpDataList;
  250. console.log("[loadConfig] popupDataList 加载默认列表");
  251. }
  252. // console.log("[loadConfig] popupDataList:", this.popupDataList);
  253. },
  254. // 获取倒计时
  255. getCountdown() {
  256. // console.log(this.endSecond)
  257. if (this.endSecond > 0) {
  258. const now = Date.now() / 1000;
  259. const dif = this.endSecond - now;
  260. // const dif = 3600*24 - 60;
  261. if (dif > 0) {
  262. this.countdown = '距结束 ' + tools.convertSecondsToDHM(dif);
  263. } else {
  264. this.countdown = "活动已结束";
  265. }
  266. // this.countdown = tools.convertSecondsToHMS(dif);
  267. } else {
  268. this.countdown = "距结束 --天--小时";
  269. }
  270. },
  271. fmtMcTime(timestamp) {
  272. return tools.fmtMcTime(timestamp);
  273. },
  274. // 获取活动时间
  275. getActtime() {
  276. this.acttime = tools.getActtime(this.beginSecond, this.endSecond);
  277. },
  278. getTeamName(teamType, teamIndex) {
  279. return teamName[teamType][teamIndex];
  280. },
  281. getCardConfigQuery() {
  282. uni.request({
  283. url: apiCardConfigQuery,
  284. header: {
  285. "Content-Type": "application/x-www-form-urlencoded",
  286. "token": this.token,
  287. },
  288. method: "POST",
  289. data: {
  290. ecId: this.ecId,
  291. pageName: this.pageName
  292. },
  293. success: (res) => {
  294. // console.log("getCardConfigQuery", res)
  295. const data = res.data.data;
  296. // console.log("configJson", data.configJson);
  297. const config = data.configJson != "" ? JSON.parse(data.configJson) : "";
  298. // console.log("configJson", data.configJson);
  299. /* const config = {
  300. "css": `
  301. .top{
  302. width: 100%;
  303. height: 170px;
  304. padding-top: 36px;
  305. justify-content: space-between;
  306. background-image: url("static/backgroud/top_bg_aoti3.png");
  307. background-repeat: no-repeat;
  308. background-position: center;
  309. background-size: cover;
  310. }
  311. `,
  312. "tabActiveColor": "#ff870d",
  313. "popupDataList": [{
  314. "type": 1,
  315. "data": {
  316. "title": "小飞龙定向赛",
  317. "img": "/static/logo/xfl.png",
  318. "content": "济南奥体中心“一场三馆”包括体育场、体育馆、网球馆和游泳馆,呈现出“东荷西柳”的总体布局。 体育场以济南的“市树”柳树为母题,将垂柳柔美飘逸的形态固化为建筑语言。"
  319. }
  320. },
  321. "default"
  322. ]
  323. }; */
  324. this.loadConfig(config);
  325. this.getUnReadMessageQuery();
  326. this.matchRsDetailQuery();
  327. setTimeout(this.dealFirstEnter, 500);
  328. },
  329. fail: (err) => {
  330. console.log("getCardConfigQuery err", err)
  331. },
  332. });
  333. },
  334. // 卡片对应活动或赛事详情查询
  335. // getCardDetailQuery() {
  336. // uni.request({
  337. // url: apiCardDetailQuery,
  338. // header: {
  339. // "Content-Type": "application/x-www-form-urlencoded",
  340. // "token": this.token,
  341. // },
  342. // method: "POST",
  343. // data: {
  344. // ecId: this.ecId
  345. // },
  346. // success: (res) => {
  347. // // console.log("getCardDetailQuery", res)
  348. // const data = res.data.data;
  349. // this.mcType = data.mcType;
  350. // this.mcId = data.mcId;
  351. // this.mcName = data.mcName;
  352. // this.beginSecond = data.beginSecond;
  353. // this.endSecond = data.endSecond;
  354. // this.coiName = data.coiName;
  355. // this.teamNum = data.teamNum;
  356. // this.mcState = tools.checkMcState(this.beginSecond, this.endSecond);
  357. // this.getCountdown();
  358. // this.getActtime();
  359. // this.getCardRankDetailQuery();
  360. // this.clear();
  361. // this.interval = setInterval(this.getCountdown, 60000);
  362. // },
  363. // fail: (err) => {
  364. // console.log("getCardDetailQuery err", err)
  365. // },
  366. // });
  367. // },
  368. // 卡片对应线上赛多个活动查询
  369. matchRsDetailQuery() {
  370. uni.request({
  371. url: apiMatchRsDetailQuery,
  372. header: {
  373. "Content-Type": "application/x-www-form-urlencoded",
  374. "token": this.token,
  375. },
  376. method: "POST",
  377. data: {
  378. ecId: this.ecId
  379. },
  380. success: (res) => {
  381. // console.log("matchRsDetailQuery", res);
  382. if (checkResCode(res)) {
  383. const data = res.data.data;
  384. this.mcType = data.mcType;
  385. this.mcId = data.mcId;
  386. this.mcName = data.mcName;
  387. this.beginSecond = data.beginSecond;
  388. this.endSecond = data.endSecond;
  389. this.nickName = data.nickName;
  390. // this.totalNum = data.totalNum;
  391. // this.totalDistanct = data.totalDistanct;
  392. // this.totalDistanctRankNum = data.totalDistanctRankNum;
  393. // this.totalCp = data.totalCp;
  394. // this.totalCpRankNum = data.totalCpRankNum;
  395. // this.totalSysPoint = data.totalSysPoint;
  396. // this.totalSysPointRankNum = data.totalSysPointRankNum;
  397. // this.fastPace = data.fastPace;
  398. // this.fastPaceRankNum = data.fastPaceRankNum;
  399. // this.ocaRs = data.ocaRs;
  400. this.mcState = tools.checkMcState(this.beginSecond, this.endSecond);
  401. this.getCountdown();
  402. this.getActtime();
  403. this.getCardRankDetailQuery();
  404. this.clear();
  405. this.interval = setInterval(this.getCountdown, 60000);
  406. }
  407. },
  408. fail: (err) => {
  409. console.log("matchRsDetailQuery err", err)
  410. },
  411. });
  412. },
  413. // 排名查询
  414. getCardRankDetailQuery() {
  415. uni.request({
  416. url: apiCardRankDetailQuery,
  417. header: {
  418. "Content-Type": "application/x-www-form-urlencoded",
  419. "token": this.token,
  420. },
  421. method: "POST",
  422. data: {
  423. mcIdListStr: this.mcId,
  424. mcType: this.mcType,
  425. dispArrStr: this.dispArrStr
  426. },
  427. success: (res) => {
  428. // console.log("getCardRankDetailQuery", res);
  429. const rankdata = res.data.data;
  430. this.rankList.totalDistanceRs = rankdata.totalDistanceRs;
  431. this.rankList.totalCpRs = rankdata.totalCpRs;
  432. this.rankList.totalSysPointRs = rankdata.totalSysPointRs;
  433. this.rankList.fastPaceRs = rankdata.fastPaceRs;
  434. },
  435. fail: (err) => {
  436. console.log("getCardRankDetailQuery err", err)
  437. },
  438. });
  439. },
  440. // 卡片用户当前排名查询
  441. // getUserCurrentRankNumQuery() {
  442. // uni.request({
  443. // url: apiUserCurrentRankNumQuery,
  444. // header: {
  445. // "Content-Type": "application/x-www-form-urlencoded",
  446. // "token": this.token,
  447. // },
  448. // method: "POST",
  449. // data: {
  450. // ecId: this.ecId
  451. // },
  452. // success: (res) => {
  453. // // console.log("getUserCurrentRankNumQuery", res)
  454. // if (res.data.code == 0) {
  455. // const data = res.data.data;
  456. // const rankNum = data.rankNum;
  457. // this.dealNotice(rankNum);
  458. // }
  459. // },
  460. // fail: (err) => {
  461. // console.log("getUserCurrentRankNumQuery err", err)
  462. // },
  463. // });
  464. // },
  465. // 是否允许重新分组(报名)
  466. isAllowMcSignUp() {
  467. uni.request({
  468. url: apiIsAllowMcSignUp,
  469. header: {
  470. "Content-Type": "application/x-www-form-urlencoded",
  471. "token": this.token,
  472. },
  473. method: "POST",
  474. data: {
  475. ecId: this.ecId
  476. },
  477. success: (res) => {
  478. // console.log("isAllowMcSignUp", res)
  479. if (res.data.code == 0) {
  480. const data = res.data.data;
  481. this.allowMcSignUp = data.allowSignUp;
  482. }
  483. },
  484. fail: (err) => {
  485. console.log("isAllowMcSignUp err", err)
  486. },
  487. });
  488. },
  489. // 未读消息列表查询
  490. getUnReadMessageQuery() {
  491. uni.request({
  492. url: apiUnReadMessageQuery,
  493. header: {
  494. "Content-Type": "application/x-www-form-urlencoded",
  495. "token": this.token,
  496. },
  497. method: "POST",
  498. data: {
  499. relationType: 2, // 类型 1 成就 2 卡片
  500. relationId: this.ecId
  501. },
  502. success: (res) => {
  503. // console.log("getUnReadMessageQuery", res);
  504. if (checkResCode(res)) {
  505. const unReadMessageRs = res.data.data;
  506. this.popupMessageList.length = 0;
  507. this.mqIdListStr = "";
  508. for (var i = 0; i < unReadMessageRs.length; i++) {
  509. let popupData = {
  510. type: 6, // 6: 通知
  511. data: {}
  512. };
  513. this.messageKey += "-" + unReadMessageRs[i].mqId;
  514. popupData.data.mqType = unReadMessageRs[i].mqType;
  515. popupData.data.title = unReadMessageRs[i].mqTitle;
  516. popupData.data.message = unReadMessageRs[i].mqMessage;
  517. this.popupMessageList.push(popupData);
  518. // this.mqIdListStr += this.unReadMessageRs[i].mqId;
  519. // if (i < this.unReadMessageRs.length - 1) {
  520. // this.mqIdListStr += ",";
  521. // }
  522. }
  523. if (this.popupMessageList.length > 0) {
  524. const messageValue = uni.getStorageSync(this.messageKey);
  525. console.log("messageValue:", messageValue);
  526. if (!messageValue) {
  527. this.$refs.mypopupMessage.popupOpen();
  528. uni.setStorageSync(this.messageKey, true);
  529. }
  530. }
  531. }
  532. },
  533. fail: (err) => {
  534. console.log("getUnReadMessageQuery err", err);
  535. },
  536. });
  537. },
  538. // 标记消息已读
  539. readMessage() {
  540. uni.request({
  541. url: apiReadMessage,
  542. header: {
  543. "Content-Type": "application/x-www-form-urlencoded",
  544. "token": this.token,
  545. },
  546. method: "POST",
  547. data: {
  548. "mqIdListStr": this.mqIdListStr
  549. },
  550. success: (res) => {
  551. // console.log("readMessage", res);
  552. },
  553. fail: (err) => {
  554. console.log("readMessage err", err);
  555. },
  556. });
  557. },
  558. btnBack() {
  559. // window.history.back();
  560. // uni.navigateTo({
  561. // url: "/pages/bm/style2/rankOverview?" + this.queryString
  562. // });
  563. const url = `action://to_home/`;
  564. tools.appAction(url);
  565. },
  566. btnStartGame() {
  567. // uni.navigateTo({
  568. // url: "/pages/bm/style2/rankOverview?" + this.queryString
  569. // });
  570. const url = "/pages/bm/style2/rankOverview?" + this.queryString;
  571. tools.appAction(url, "uni.navigateTo");
  572. },
  573. btnInfo() {
  574. // console.log(this.$refs.mypopup);
  575. this.$refs.mypopup.popupOpen();
  576. },
  577. btnMessage() {
  578. // console.log(this.$refs.mypopup);
  579. this.$refs.mypopupMessage.popupOpen();
  580. },
  581. onClickTabItem(e) {
  582. if (this.tabCurrent != e.currentIndex) {
  583. this.tabCurrent = e.currentIndex;
  584. }
  585. }
  586. }
  587. }
  588. </script>
  589. <style scoped>
  590. .content {
  591. width: 100vw;
  592. height: 100vh;
  593. }
  594. .top-default {
  595. width: 100%;
  596. height: 170px;
  597. padding-top: 36px;
  598. justify-content: space-between;
  599. background-image: url("/static/backgroud/top_bg_aoti3.png");
  600. background-repeat: no-repeat;
  601. background-position: center;
  602. background-size: cover;
  603. }
  604. .topbar-color-default {
  605. color: #5b9100;
  606. }
  607. .topbtm {
  608. width: 100%;
  609. margin-bottom: 5px;
  610. justify-content: space-evenly;
  611. }
  612. .topbtm-name {
  613. padding: 3px 12px;
  614. background-color: #9fda39;
  615. border-radius: 5px;
  616. text-align: center;
  617. font-weight: 500;
  618. color: #497400;
  619. font-size: 14px;
  620. }
  621. .cal {
  622. width: 46rpx;
  623. height: 46rpx;
  624. margin-right: 20rpx;
  625. }
  626. .main {
  627. width: 100%;
  628. /* height: 70vh; */
  629. flex-grow: 1;
  630. justify-content: space-around;
  631. /* justify-content: space-between; */
  632. }
  633. .main-tab {
  634. width: 90%;
  635. margin-top: 20rpx;
  636. }
  637. .tab-view {
  638. width: 100%;
  639. /* height: 69vh; */
  640. flex-grow: 1;
  641. }
  642. .btnBack {
  643. width: 70%;
  644. /* height: 6vh; */
  645. height: 80rpx;
  646. /* margin-bottom: 1vh; */
  647. margin-bottom: 20rpx;
  648. /* font-weight: bold; */
  649. color: white;
  650. font-size: 32rpx;
  651. line-height: 80rpx;
  652. border-radius: 27px;
  653. background-color: #81cd00;
  654. }
  655. </style>