rankList.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679
  1. <!--
  2. [游戏] 网格赛事 - 排名列表
  3. http://localhost:5173/card/#/pages/game/grid/rankList
  4. https://oss-mbh5.colormaprun.com/card/#/pages/game/grid/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" :showRule="true" @btnBackClick="btnBack"
  11. @btnInfoClick="btnInfo"></my-topbar>
  12. </view>
  13. <view class="main uni-column">
  14. <!-- <view class="main-bar uni-row uni-jcse">
  15. <text>题目输出:{{all_totalAnswerNum}}</text>
  16. <text>总里程:{{fmtDistanct(all_totalDistance)}}km</text>
  17. <text>总打点:{{all_totalCp}}</text>
  18. <text>总百味豆:{{all_totalSysPoint}}</text>
  19. </view> -->
  20. <my-tab v-if="tabPageItems.length > 0" ref="tabPage" class="tabPage" :tabItems="tabPageItems" :type="0"
  21. :initActIndex="tabPageInitActIndex" @onTabClick="onTabPageClick" :fontSize="14"></my-tab>
  22. <my-tab ref="tab" :tabItems="tabItems" :tabItemsMark="tabItemsMark" :type="0"
  23. :initActIndex=configParam.tabInitActIndex @onTabClick="onTabClick" :fontSize="12"></my-tab>
  24. <view class="tab-view uni-column">
  25. <template v-for="(item, index) in rankRsList" :key="index">
  26. <my-ranklist v-show="tabCurrent === index" :rankRs="rankList[item]"
  27. :rank-type="rankTypeList[index]" :styleType="ranklistStyleType"></my-ranklist>
  28. </template>
  29. </view>
  30. <view v-if="ranklistStyleType == 1 && selfRank" class="btmSelfInfo uni-row uni-jcsa">
  31. <image class="btmSelfInfo-corner" mode="aspectFit" src="/static/custom/yuedong/yd.png"></image>
  32. <view class="bsi-box uni-row uni-jcsb">
  33. <view class="uni-row">
  34. <view class="bsi-headimg"></view>
  35. <view class="uni-column uni-ais">
  36. <view class="bsi-name">{{selfRank.userName}}</view>
  37. <view class="bsi-score">
  38. <text class="bsi-score-type">{{tabItems[tabCurrent]}}</text>
  39. <text>{{rankfunc.fmtRankNumByType(selfRank.inRankNum, rankTypeList[tabCurrent])}}</text>
  40. </view>
  41. </view>
  42. </view>
  43. <view v-if="selfRank.rankNum > 0" class="bsi-ranknum">第 {{selfRank.rankNum}} 名</view>
  44. <view v-else class="bsi-ranknum">暂无名次</view>
  45. </view>
  46. </view>
  47. <!-- <button class="btnBack bgcolor-main" @click="btnStartGame">{{btnStartGameText}}</button> -->
  48. </view>
  49. <my-popup ref="mypopup" :config="cardConfigData.popupRuleConfig" :dataList="cardConfigData.popupRuleList"
  50. :acttime="acttime"></my-popup>
  51. <!-- <my-popup ref="mypopupExchg" :config="cardConfigData.popupExchgConfig"
  52. :dataList="cardConfigData.popupExchgList"></my-popup> -->
  53. <my-popup ref="mypopupMessage" :config="cardConfigData.popupMessageConfig"
  54. :dataList="cardConfigData.popupMessageList" @noMoreRemindersClick="onNoMoreRemindersClick"></my-popup>
  55. </view>
  56. </view>
  57. </template>
  58. <script>
  59. import tools from '/common/tools';
  60. import cardfunc from '/common/cardfunc';
  61. import rankfunc from '/common/rankfunc';
  62. import {
  63. localCardConfig
  64. } from "./cardconfig/test2.js";
  65. import {
  66. teamName
  67. } from '/common/define';
  68. import {
  69. token,
  70. apiMatchRsDetailQuery,
  71. apiCardRankDetailQuery,
  72. apiCompStatisticQuery,
  73. apiIsAllowMcSignUp,
  74. apiUserJoinCardQuery,
  75. checkResCode
  76. } from '/common/api';
  77. export default {
  78. data() {
  79. return {
  80. rankfunc: rankfunc,
  81. cardConfigData: cardfunc.cardConfigData,
  82. pageReady: false,
  83. pageName: "rankList",
  84. messageKey: "message-game-grid",
  85. queryObj: {},
  86. queryString: "",
  87. token: "",
  88. ovtype: "",
  89. cardconfig: {}, // 卡片配置
  90. userconfig: {}, // 用户配置
  91. ecId: 0, // 卡片id
  92. mcId: 0, // 赛事id
  93. mcType: 0, // 赛事类型 1 普通活动 2 线下赛 3 线上赛
  94. mcName: "", // 赛事名称
  95. acttime: "", // 活动时间
  96. beginSecond: null, // 活动或赛事开始时间戳,单位秒
  97. endSecond: null, // 活动或赛事结束时间戳,单位秒
  98. ocaId: 0, // 关联id,带入到App活动详情页面
  99. nickName: "", // 昵称
  100. totalNum: null, // 总场次
  101. totalDistanct: null, // 总距离,单位米
  102. totalDistanctRankNum: null, // 总距离排名
  103. totalCp: null, // 总打点数
  104. totalCpRankNum: null, // 总打点数排名
  105. totalSysPoint: null, // 总百味豆
  106. totalSysPointRankNum: null, // 总百味豆排名
  107. fastPace: null, // 个人最快配速
  108. fastPaceRankNum: null, // 个人最快配速排名
  109. // ocaRs: [], // 卡片对应活动集合
  110. isJoin: null, // 是否报名
  111. btnStartGameText: "",
  112. all_totalDistance: 0, // 赛事所有人累计里程,单位米
  113. all_totalRightAnswerNum: 0, // 赛事所有人正确答题数(校园文化输出)
  114. all_totalAnswerNum: 0, // 赛事所有人答题数(校园文化输出)
  115. all_totalCp: 0, // 赛事中所有人打点数
  116. all_totalSysPoint: 0, // 赛事中所有人百味豆
  117. mcState: 0, // 赛事/活动状态 0: 未开始 1: 进行中 2: 已结束
  118. allowMcSignUp: false, // 是否允许重新分组
  119. countdown: "", // 倒计时
  120. rankList: {}, // 排名列表
  121. interval: null,
  122. tabPageItems: [],
  123. // tabPageItems: ["赛事", "排行榜"],
  124. tabPageCurrent: 0,
  125. tabPageInitActIndex: 1,
  126. teamType: 0, // 队伍类型
  127. dispArrStr: "totalDistance,totalCp,totalSysPoint,fastPace", // 要显示的集合范围
  128. tabItems: ["总里程", "打点数", "百味豆", "配速"],
  129. rankTypeList: ["totalDistance", "totalCp", "totalSysPoint", "fastPace"],
  130. tabCurrent: 0,
  131. tabItemsMark: [],
  132. /* tabItemsMark: [{
  133. textColor: "#ff6203",
  134. icon: "static/common/award.png"
  135. }], */
  136. rankRsList: ["totalDistanceRs", "totalCpRs", "totalSysPointRs", "fastPaceRs"],
  137. configParam: {
  138. labelTicketName: "我的奖券",
  139. labelAwardAddress: "兑奖地址",
  140. // labelGoodsList: "兑换商品",
  141. tabInitActIndex: 0
  142. },
  143. ranklistStyleType: 0, // 排名列表样式
  144. selfRank: null // 个人成绩
  145. }
  146. },
  147. computed: {},
  148. onLoad(query) { // 类型非必填,可自动推导
  149. // console.log(query);
  150. this.queryObj = query;
  151. this.queryString = tools.objectToQueryString(this.queryObj);
  152. // console.log(queryString);
  153. this.token = query["token"] ?? token;
  154. this.ecId = query["id"] ?? 0;
  155. this.ovtype = query["ovtype"] ?? "";
  156. cardfunc.init(this, this.token, this.ecId);
  157. cardfunc.getCardConfig(this.cardConfigQueryCallback, localCardConfig);
  158. this.dealOvtype();
  159. },
  160. // 页面初次渲染完成,此时组件已挂载完成,DOM 树($el)已可用
  161. onReady() {
  162. // this.dealFirstEnter();
  163. // this.$refs.mypopupMessage.popupOpen();
  164. },
  165. onShow() {
  166. // this.getUserJoinCardQuery();
  167. },
  168. onUnload() {
  169. this.clear();
  170. },
  171. methods: {
  172. dealOvtype() {
  173. if (this.ovtype == "totalDistance") {
  174. this.tabCurrent = 0;
  175. } else if (this.ovtype == "totalCp") {
  176. this.tabCurrent = 1;
  177. } else if (this.ovtype == "totalSysPoint") {
  178. this.tabCurrent = 2;
  179. } else if (this.ovtype == "fastPace") {
  180. this.tabCurrent = 3;
  181. }
  182. console.log(`dealOvtype: ${this.ovtype} tabCurrent: ${this.tabCurrent}`);
  183. },
  184. clear() {
  185. if (this.interval != null) {
  186. clearInterval(this.interval);
  187. this.interval = null;
  188. }
  189. },
  190. cardConfigQueryCallback(cardconfig) {
  191. this.cardconfig = cardconfig;
  192. // cardfunc.getUserConfig(this.userConfigQueryCallback, localUserConfig);
  193. this.loadConfig();
  194. this.matchRsDetailQuery();
  195. },
  196. /* userConfigQueryCallback(userconfig) {
  197. this.userconfig = userconfig;
  198. this.loadConfig();
  199. this.matchRsDetailQuery();
  200. }, */
  201. loadConfig() {
  202. this.loadCardConfig(this.cardconfig);
  203. this.loadUserConfig(this.userconfig);
  204. this.pageReady = true;
  205. },
  206. loadCardConfig(cardconfig) {
  207. cardconfig = cardfunc.parseCardConfig(cardconfig);
  208. // console.log("[loadCardConfig] cardconfig:", cardconfig);
  209. // 加载卡片通用配置
  210. if (cardconfig.common != undefined) {
  211. cardfunc.loadCardCommonConfig(cardconfig.common);
  212. }
  213. // -------- 加载当前页面的配置 --------
  214. const config = cardfunc.parseCardConfig(cardconfig[this.pageName]);
  215. // console.log("[loadConfig] config_page:", config);
  216. if (config == undefined || config == null) {
  217. return;
  218. }
  219. // 加载CSS样式
  220. const css = config.css;
  221. if (css != undefined && css.length > 0) {
  222. tools.loadCssCode(css);
  223. }
  224. // 加载TAB
  225. const tabPageItems = config.tabPageItems;
  226. if (tabPageItems != undefined) {
  227. this.tabPageItems = tabPageItems;
  228. }
  229. // 加载成绩参数
  230. const rankParam = config.rankParam;
  231. if (rankParam != undefined) {
  232. if (rankParam.tabItemsMark != undefined) {
  233. this.tabItemsMark = rankParam.tabItemsMark;
  234. }
  235. if (rankParam.dispArrStr != undefined && rankParam.dispArrStr.length > 0) {
  236. this.dispArrStr = rankParam.dispArrStr;
  237. // console.log("[loadConfig] dispArrStr:", rankParam.dispArrStr);
  238. }
  239. if (rankParam.tabItems != undefined && rankParam.tabItems.length > 0) {
  240. this.tabItems = rankParam.tabItems;
  241. // console.log("[loadConfig] tabItems:", rankParam.tabItems);
  242. }
  243. if (rankParam.rankTypeList != undefined && rankParam.rankTypeList.length > 0) {
  244. this.rankTypeList = rankParam.rankTypeList;
  245. }
  246. if (rankParam.rankRsList != undefined && rankParam.rankRsList.length > 0) {
  247. this.rankRsList = rankParam.rankRsList;
  248. }
  249. if (rankParam.ranklistStyleType != undefined && rankParam.ranklistStyleType > 0) {
  250. this.ranklistStyleType = rankParam.ranklistStyleType;
  251. }
  252. }
  253. // console.log("[loadConfig] rankParam:", rankParam);
  254. // 加载页面参数
  255. const param = config.param;
  256. if (param != undefined) {
  257. if (param.labelTicketName != undefined && param.labelTicketName.length > 0) {
  258. this.configParam.labelTicketName = param.labelTicketName;
  259. }
  260. if (param.labelAwardAddress != undefined && param.labelAwardAddress.length > 0) {
  261. this.configParam.labelAwardAddress = param.labelAwardAddress;
  262. }
  263. if (param.labelGoodsList != undefined && param.labelGoodsList.length > 0) {
  264. this.configParam.labelGoodsList = param.labelGoodsList;
  265. }
  266. if (param.tabInitActIndex != undefined && param.tabInitActIndex >= 0) {
  267. this.configParam.tabInitActIndex = param.tabInitActIndex;
  268. this.tabCurrent = param.tabInitActIndex;
  269. }
  270. }
  271. },
  272. loadUserConfig(userconfig) {
  273. if (!userconfig) {
  274. console.log("[loadUserConfig] userconfig 为空");
  275. return;
  276. }
  277. const config = cardfunc.parseCardConfig(userconfig);
  278. console.log("[loadUserConfig] userconfig:", config);
  279. // 加载用户的弹窗数据
  280. cardfunc.loadUserPopupRule(config);
  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 = rankdata;
  382. this.getSelfRank();
  383. },
  384. fail: (err) => {
  385. console.log("getCardRankDetailQuery err", err);
  386. },
  387. });
  388. },
  389. // 赛事总成绩统计查询
  390. compStatisticQuery() {
  391. uni.request({
  392. url: apiCompStatisticQuery,
  393. header: {
  394. "Content-Type": "application/x-www-form-urlencoded",
  395. "token": this.token,
  396. },
  397. method: "POST",
  398. data: {
  399. mcId: this.mcId
  400. },
  401. success: (res) => {
  402. // console.log("compStatisticQuery", res);
  403. if (res.data.code == 0) {
  404. const data = res.data.data;
  405. this.all_totalDistance = data.totalDistance;
  406. this.all_totalRightAnswerNum = data.totalRightAnswerNum;
  407. this.all_totalAnswerNum = data.totalAnswerNum;
  408. this.all_totalCp = data.totalCp;
  409. this.all_totalSysPoint = data.totalSysPoint;
  410. }
  411. },
  412. fail: (err) => {
  413. console.log("compStatisticQuery err", err);
  414. },
  415. });
  416. },
  417. // 是否允许重新分组(报名)
  418. isAllowMcSignUp() {
  419. uni.request({
  420. url: apiIsAllowMcSignUp,
  421. header: {
  422. "Content-Type": "application/x-www-form-urlencoded",
  423. "token": this.token,
  424. },
  425. method: "POST",
  426. data: {
  427. ecId: this.ecId
  428. },
  429. success: (res) => {
  430. // console.log("isAllowMcSignUp", res)
  431. if (res.data.code == 0) {
  432. const data = res.data.data;
  433. this.allowMcSignUp = data.allowSignUp;
  434. }
  435. },
  436. fail: (err) => {
  437. console.log("isAllowMcSignUp err", err)
  438. },
  439. });
  440. },
  441. // 用户是否已经报名卡片对应赛事查询
  442. /* getUserJoinCardQuery() {
  443. uni.request({
  444. url: apiUserJoinCardQuery,
  445. header: {
  446. "Content-Type": "application/x-www-form-urlencoded",
  447. "token": this.token
  448. },
  449. method: "POST",
  450. data: {
  451. ecId: this.ecId
  452. },
  453. success: (res) => {
  454. // console.log("getUserJoinCardQuery", res)
  455. const code = res.data.code;
  456. const data = res.data.data;
  457. if (code == 0) {
  458. this.isJoin = data.isJoin;
  459. if (this.isJoin) { // 已报名
  460. // this.btnStartGameText = "我要比赛";
  461. this.btnStartGameText = "选择场地";
  462. } else { // 未报名
  463. this.btnStartGameText = "我要报名";
  464. }
  465. }
  466. },
  467. fail: (err) => {
  468. console.log("getUserJoinCardQuery err", err)
  469. },
  470. });
  471. }, */
  472. onNoMoreRemindersClick() {
  473. this.$refs.mypopupMessage.popupClose();
  474. uni.setStorageSync(this.messageKey, true);
  475. },
  476. btnBack() {
  477. const url = `action://to_home/`;
  478. tools.appAction(url);
  479. },
  480. /* btnStartGame() {
  481. if (this.isJoin) { // 已报名
  482. const url = "/pages/tpl/style1/rankOverview?" + this.queryString;
  483. tools.appAction(url, "uni.navigateTo");
  484. } else { // 未报名
  485. const url = "/pages/tpl/style1/signup?" + this.queryString;
  486. tools.appAction(url, "uni.navigateTo");
  487. }
  488. }, */
  489. btnInfo() {
  490. // console.log(this.$refs.mypopup);
  491. this.$refs.mypopup.popupOpen();
  492. },
  493. btnMessage() {
  494. // console.log(this.$refs.mypopup);
  495. this.$refs.mypopupMessage.popupOpen();
  496. },
  497. btnMyEgg() {
  498. const url = "/pages/achievement/index2?tabCurrent=2&" + this.queryString;
  499. tools.appAction(url, "uni.navigateTo");
  500. },
  501. btnExchg() {
  502. this.$refs.mypopupExchg.popupOpen();
  503. },
  504. btnGoodsList() {
  505. this.queryObj.from = "/pages/tpl/style1/rankList";
  506. this.queryString = tools.objectToQueryString(this.queryObj);
  507. const url = "/pages/exchange/style1/goodsList?" + this.queryString;
  508. tools.appAction(url, "uni.navigateTo");
  509. },
  510. onTabPageClick(val) {
  511. console.log("onTabClick: ", val);
  512. // this.tabPageCurrent = val;
  513. if (val == 0) {
  514. const url = '/pages/game/grid/grid?' + this.queryString;
  515. tools.appAction(url, "uni.navigateTo");
  516. }
  517. },
  518. onTabClick(val) {
  519. // console.log("onTabClick: ", val);
  520. this.tabCurrent = val;
  521. this.getSelfRank();
  522. },
  523. getSelfRank() {
  524. const ranktype = this.rankRsList[this.tabCurrent];
  525. const rs = this.rankList[ranktype];
  526. // console.log("[getSelfRank] rs", rs);
  527. if (rs) {
  528. this.selfRank = tools.objArrGetObjByValue(rs, "isSelf", 1);
  529. console.log("[getSelfRank] self", this.selfRank);
  530. }
  531. }
  532. }
  533. }
  534. </script>
  535. <style scoped>
  536. .content {
  537. width: 100vw;
  538. height: 100vh;
  539. }
  540. .page-top {
  541. width: 100%;
  542. height: 60px;
  543. padding-top: 36px;
  544. justify-content: space-between;
  545. background: linear-gradient(135deg, #FFEF9E 0%, #FFFCF2 45.14%, #FFF4D4 100%);
  546. }
  547. .topbar-color {
  548. color: #000000;
  549. }
  550. .main {
  551. width: 100%;
  552. flex-grow: 1;
  553. justify-content: space-around;
  554. }
  555. .tabPage {
  556. /* width: 100%; */
  557. }
  558. .main-bar {
  559. width: 100%;
  560. height: 21px;
  561. background-color: #d8e8c6;
  562. font-size: 10px;
  563. font-weight: 500;
  564. color: #3d6706;
  565. }
  566. .main-tab {
  567. width: 90%;
  568. margin-top: 20rpx;
  569. }
  570. .tab-view {
  571. width: 100%;
  572. flex-grow: 1;
  573. }
  574. .btmSelfInfo {
  575. position: absolute;
  576. bottom: 0;
  577. width: 100%;
  578. height: 80px;
  579. background-color: #c7e848;
  580. border-radius: 10px 10px 0 0;
  581. }
  582. .btmSelfInfo-corner {
  583. position: absolute;
  584. right: 0px;
  585. top: -38px;
  586. width: 180px;
  587. height: 50px;
  588. }
  589. .bsi-box {
  590. width: 80%;
  591. }
  592. .bsi-infoBox {
  593. /* width: 40%; */
  594. }
  595. .bsi-headimg {
  596. width: 40px;
  597. height: 40px;
  598. margin-right: 10px;
  599. border-radius: 50%;
  600. background-color: #9980bf;
  601. }
  602. .bsi-name {
  603. font-size: 16px;
  604. font-weight: 500;
  605. color: #000000;
  606. }
  607. .bsi-score {
  608. font-size: 12px;
  609. font-weight: 500;
  610. color: #000000;
  611. }
  612. .bsi-score-type {
  613. margin-right: 5px;
  614. }
  615. .bsi-ranknum {
  616. font-size: 18px;
  617. font-weight: 500;
  618. color: #000000;
  619. }
  620. /* .btnBack {
  621. width: 70%;
  622. height: 80rpx;
  623. margin-bottom: 20rpx;
  624. color: white;
  625. font-size: 32rpx;
  626. line-height: 80rpx;
  627. border-radius: 27px;
  628. background-color: #81cd00;
  629. } */
  630. </style>