rankList.vue 19 KB

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