rankList.vue 38 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301
  1. <!--
  2. [报名] 样式3 - 排名列表
  3. http://localhost:5173/card/#/pages/bm/style4/rankList
  4. https://oss-mbh5.colormaprun.com/card/#/pages/bm/style4/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="topcontent uni-column uni-jcsa">
  13. <view class="tcview uni-row uni-jcsb">
  14. <view class="tcbox uni-column uni-jcc">
  15. <text class="tcbox-label">赛事总里程</text>
  16. <text class="tcbox-value">{{fmtDistanct(all_totalDistance)}} 千米</text>
  17. </view>
  18. <view class="tcbox uni-column uni-jcc">
  19. <text class="tcbox-label">{{configParam.labelRightAnswerNum}}</text>
  20. <text class="tcbox-value">{{all_totalAnswerNum}} 次</text>
  21. </view>
  22. </view>
  23. </view>
  24. <!-- <view class="topcontent uni-column uni-jcsa">
  25. <view class="logo"></view>
  26. <view class="tcbar uni-row uni-jcsb">
  27. <text class="tcbar-text">赛事总里程:{{fmtDistanct(all_totalDistance)}} 千米</text>
  28. <text class="tcbar-text">{{configParam.labelRightAnswerNum}}:{{all_totalAnswerNum}} 次</text>
  29. </view>
  30. </view> -->
  31. <view class="topbtm uni-row">
  32. <view class="topbtm-egg" @click="btnMyEgg">我的奖券</view>
  33. <text class="topbtm-name">{{nickName}}</text>
  34. <view class="topbtm-egg" @click="btnExchg">兑奖地址</view>
  35. </view>
  36. </view>
  37. <view class="main uni-column">
  38. <my-tab ref="tab1" :tabItems="tab1Items" :type="1" @onTabClick="onTab1Click"
  39. @onSelectChange="onSelectChange"></my-tab>
  40. <my-tab ref="tab2" :tabItems="tab2Items" :tabItemsMark="tab2ItemsMark" :type="0"
  41. @onTabClick="onTab2Click" :fontSize="12"></my-tab>
  42. <view class="tab-view uni-column">
  43. <!-- 团体成绩列表 -->
  44. <template v-if="tab1Current==0" v-for="(item, index) in rank1List" :key="index">
  45. <my-ranklist v-show="tab2Current === index" :rankRs="rankList[item]"
  46. :rank-type="rankTypeList[index]"></my-ranklist>
  47. </template>
  48. <!-- 个人成绩列表 -->
  49. <template v-if="tab1Current==1" v-for="(item, index) in rank2List" :key="index">
  50. <my-ranklist v-show="tab2Current === index" :rankRs="rankList[item]"
  51. :rank-type="rankTypeList[index]"></my-ranklist>
  52. </template>
  53. </view>
  54. <button class="btnBack" @click="btnStartGame">{{btnStartGameText}}</button>
  55. <!-- <button class="btnBack" @click="btnBack">返回</button> -->
  56. </view>
  57. <my-popup ref="mypopup" :config="popupRuleConfig" :dataList="popupDataList" :acttime="acttime"></my-popup>
  58. <my-popup ref="mypopupExchg" :config="popupExchgConfig" :dataList="popupExchgList"></my-popup>
  59. <my-popup ref="mypopupMessage" :dataList="popupMessageList" @noMoreRemindersClick="onNoMoreRemindersClick"></my-popup>
  60. </view>
  61. </view>
  62. </template>
  63. <script>
  64. import tools from '/common/tools';
  65. import {
  66. teamName,
  67. defaultPopUpDataList
  68. } from '/common/define';
  69. import {
  70. token,
  71. apiMatchRsDetailQuery,
  72. apiCardRankDetailQuery,
  73. apiCardConfigQuery,
  74. apiUserCurrentRankNumQuery,
  75. apiIsAllowMcSignUp,
  76. apiUserJoinCardQuery,
  77. apiMapListQuery,
  78. apiCompStatisticQuery,
  79. apiUnReadMessageQuery,
  80. apiReadMessage,
  81. checkResCode
  82. } from '/common/api';
  83. export default {
  84. data() {
  85. return {
  86. pageName: "rankList",
  87. firstEnterKey: 'firstEnter-bm-style4',
  88. rankKey: "rank-bm-style4",
  89. mapKey: "rank-bm-style4-map",
  90. messageKey: "message-bm-style4",
  91. queryObj: {},
  92. queryString: "",
  93. token: "",
  94. ovtype: "",
  95. ecId: 0, // 卡片id
  96. mcId: 0, // 赛事id
  97. mcType: 0, // 赛事类型 1 普通活动 2 线下赛 3 线上赛
  98. mcName: "", // 赛事名称
  99. acttime: "", // 活动时间
  100. beginSecond: null, // 活动或赛事开始时间戳,单位秒
  101. endSecond: null, // 活动或赛事结束时间戳,单位秒
  102. ocaId: 0, // 关联id,带入到App活动详情页面
  103. nickName: "", // 昵称
  104. isJoin: null, // 是否报名
  105. btnStartGameText: "",
  106. mapList: [], // 卡片对应地图列表详情
  107. all_totalDistance: 0, // 赛事所有人累计里程,单位米
  108. all_totalRightAnswerNum: 0, // 赛事所有人正确答题数(校园文化输出)
  109. all_totalAnswerNum: 0, // 赛事所有人答题数(校园文化输出)
  110. all_totalCp: 0, // 赛事中所有人打点数
  111. all_totalSysPoint: 0, // 赛事中所有人百味豆
  112. mcState: 0, // 赛事/活动状态 0: 未开始 1: 进行中 2: 已结束
  113. allowMcSignUp: false, // 是否允许重新分组
  114. countdown: "", // 倒计时
  115. rankList: { // 排名列表
  116. // totalDistanceRs: [],
  117. // totalCpRs: [],
  118. // totalSysPointRs: [],
  119. // fastPaceRs: []
  120. },
  121. interval: null,
  122. teamType: 0, // 队伍类型
  123. // dispArrStr: "totalDistance,totalCp,totalSysPoint,fastPace",
  124. dispArrStr: "teamCp,teamDistance,teamRightAnswerPer,teamPace,teamSpeed,regionCp,regionDistance,regionRightAnswerPer,regionPace,regionSpeed", // 要显示的集合范围
  125. tab1Current: 0,
  126. tab2Current: 0,
  127. tab1Items: ["团体"],
  128. // tab1Items: ["团体", {
  129. // selectValue: 1,
  130. // data: [
  131. // {text: "个人(中心校区)", value: 1},
  132. // {text: "个人(千佛山校区南区)", value: 2},
  133. // {text: "个人(兴隆校区)", value: 3}
  134. // ]}
  135. // ],
  136. // tab2Items: ["打点数", "总里程", "百味豆", "配速"],
  137. tab2Items: ["总积分", "总里程", "校园文化", "最快配速", "单场用时"],
  138. tab2ItemsMark: [{
  139. textColor: "#ff6203",
  140. icon: "static/common/award.png"
  141. }],
  142. tabActiveColor: "#81cd00",
  143. // 成绩类型列表
  144. rankTypeList: ["totalScore", "totalDistance", "rightAnswerPer", "fastPace", "fastPace"],
  145. // 团体成绩列表
  146. rank1List: ["teamCpRs", "teamDistanceRs", "teamRightAnswerPerRs", "teamPaceRs", "teamSpeedRs"],
  147. // 个人成绩列表
  148. rank2List: ["regionCpRs", "regionDistanceRs", "regionRightAnswerPerRs", "regionPaceRs", "regionSpeedRs"],
  149. cssTop: "",
  150. cssTopbarColor: "",
  151. configParam: {
  152. labelRightAnswerNum: "文化输出"
  153. },
  154. // selectedMapId: 0, // 用户选择的地图ID
  155. popupRuleConfig: {}, // 规则弹窗配置
  156. popupExchgConfig: {}, // 兑换地址弹窗配置
  157. popupDataList: [],
  158. popupExchgList: [],
  159. popupMessageList: [],
  160. // mqIdListStr: "", // 已读消息id列表 逗号分隔
  161. }
  162. },
  163. computed: {},
  164. onLoad(query) { // 类型非必填,可自动推导
  165. // console.log(query);
  166. this.queryObj = query;
  167. this.queryString = tools.objectToQueryString(this.queryObj);
  168. // console.log(queryString);
  169. this.token = query["token"] ?? token;
  170. this.ecId = query["id"] ?? 0;
  171. this.ovtype = query["ovtype"] ?? "";
  172. this.firstEnterKey += "-" + this.ecId;
  173. console.log("firstEnterKey:", this.firstEnterKey);
  174. this.rankKey += "-" + this.ecId;
  175. console.log("rankKey:", this.rankKey);
  176. this.mapKey += "-" + this.ecId;
  177. console.log("mapKey:", this.mapKey);
  178. this.messageKey += "-" + this.ecId;
  179. console.log("messageKey:", this.messageKey);
  180. tools.removeCssCode();
  181. const mapValue = uni.getStorageSync(this.mapKey);
  182. if (mapValue) {
  183. console.log("mapValue:", mapValue);
  184. // this.selectedMapId = mapValue;
  185. this.ocaId = mapValue;
  186. }
  187. this.getCardConfigQuery();
  188. },
  189. // 页面初次渲染完成,此时组件已挂载完成,DOM 树($el)已可用
  190. onReady() {
  191. // this.dealFirstEnter();
  192. },
  193. onShow() {
  194. this.getUserJoinCardQuery();
  195. },
  196. onUnload() {
  197. this.clear();
  198. },
  199. methods: {
  200. dealNotice(rank) {
  201. // console.log('[dealFirstEnter]');
  202. let that = this;
  203. uni.getStorage({
  204. key: that.rankKey,
  205. success: (res) => {
  206. console.log('[getStorage]', that.rankKey, res.data);
  207. const oldRank = res.data;
  208. if (oldRank != rank) {
  209. // that.notice = true;
  210. that.setRankValue(rank);
  211. }
  212. },
  213. fail: (e) => {
  214. console.log('[getStorage] fail', that.rankKey, e);
  215. // that.notice = false;
  216. that.setRankValue(rank);
  217. },
  218. })
  219. },
  220. setRankValue(data) {
  221. let that = this;
  222. uni.setStorage({
  223. key: that.rankKey,
  224. data: data,
  225. success: () => {
  226. console.log('[setStorage] success', that.rankKey, data);
  227. },
  228. fail: (e) => {
  229. console.log('[setStorage] fail', that.rankKey, e);
  230. },
  231. })
  232. },
  233. dealFirstEnter() {
  234. // console.log('[dealFirstEnter]');
  235. let that = this;
  236. uni.getStorage({
  237. key: that.firstEnterKey,
  238. success: (res) => {
  239. console.log('[getStorage]', that.firstEnterKey, res.data);
  240. },
  241. fail: (e) => {
  242. console.log('[getStorage] fail', that.firstEnterKey, e);
  243. that.btnInfo();
  244. that.setFirstEnterValue(true);
  245. },
  246. })
  247. },
  248. setFirstEnterValue(data) {
  249. let that = this;
  250. uni.setStorage({
  251. key: that.firstEnterKey,
  252. data: data,
  253. success: () => {
  254. console.log('[setStorage] success', that.firstEnterKey, data);
  255. },
  256. fail: (e) => {
  257. console.log('[setStorage] fail', that.firstEnterKey, e);
  258. },
  259. })
  260. },
  261. clear() {
  262. if (this.interval != null) {
  263. clearInterval(this.interval);
  264. this.interval = null;
  265. }
  266. },
  267. loadConfig(config) {
  268. // console.log("config", config);
  269. // 加载CSS样式
  270. const css = config.css;
  271. if (css != undefined && css.length > 0) {
  272. tools.loadCssCode(css);
  273. if (css.indexOf(".top{") >= 0) {
  274. this.cssTop = "top";
  275. }
  276. if (css.indexOf(".topbar-color{") >= 0) {
  277. this.cssTopbarColor = "topbar-color";
  278. }
  279. }
  280. if (this.cssTop == "") {
  281. this.cssTop = "top-default";
  282. }
  283. if (this.cssTopbarColor == "") {
  284. this.cssTopbarColor = "topbar-color-default";
  285. }
  286. console.log("[loadConfig] cssTop:", this.cssTop);
  287. console.log("[loadConfig] cssTopbarColor:", this.cssTopbarColor);
  288. const tabActiveColor = config.tabActiveColor;
  289. if (tabActiveColor != undefined && tabActiveColor.length > 0) {
  290. this.tabActiveColor = tabActiveColor;
  291. }
  292. // 加载规则弹窗配置
  293. const popupRuleConfig = config.popupRuleConfig;
  294. if (popupRuleConfig != undefined) {
  295. this.popupRuleConfig = popupRuleConfig;
  296. }
  297. // console.log("[loadConfig] popupRuleConfig:", this.popupRuleConfig);
  298. // 加载兑换地址弹窗配置
  299. const popupExchgConfig = config.popupExchgConfig;
  300. if (popupExchgConfig != undefined) {
  301. this.popupExchgConfig = popupExchgConfig;
  302. }
  303. // console.log("[loadConfig] popupExchgConfig:", this.popupExchgConfig);
  304. // 加载弹窗数据
  305. const popupDataList = config.popupDataList;
  306. // console.log("[loadConfig] popupDataList:", popupDataList);
  307. if (popupDataList != undefined && popupDataList.length > 0) {
  308. for (var i = 0; i < popupDataList.length; i++) {
  309. // console.log("[loadConfig] popupDataList", i, popupDataList[i]);
  310. if (popupDataList[i] == 'default') {
  311. for (var j = 0; j < defaultPopUpDataList.length; j++) {
  312. this.popupDataList.push(defaultPopUpDataList[j]);
  313. }
  314. } else {
  315. this.popupDataList.push(popupDataList[i]);
  316. }
  317. }
  318. } else {
  319. this.popupDataList = defaultPopUpDataList;
  320. console.log("[loadConfig] popupDataList 加载默认列表");
  321. }
  322. // console.log("[loadConfig] popupDataList:", this.popupDataList);
  323. // 加载弹窗(兑换地点)数据
  324. const popupExchgList = config.popupExchgList;
  325. if (popupExchgList != undefined && popupExchgList.length > 0) {
  326. for (var i = 0; i < popupExchgList.length; i++) {
  327. // console.log("[loadConfig] popupExchgList", i, popupExchgList[i]);
  328. this.popupExchgList.push(popupExchgList[i]);
  329. }
  330. }
  331. // console.log("[loadConfig] popupExchgList:", this.popupExchgList);
  332. // 加载页面参数
  333. const param = config.param;
  334. if (param != undefined) {
  335. if (param.labelRightAnswerNum != undefined && param.labelRightAnswerNum.length > 0) {
  336. this.configParam.labelRightAnswerNum = param.labelRightAnswerNum;
  337. }
  338. }
  339. // console.log("[loadConfig] param:", this.configParam);
  340. },
  341. // 获取倒计时
  342. getCountdown() {
  343. // console.log(this.endSecond)
  344. if (this.endSecond > 0) {
  345. const now = Date.now() / 1000;
  346. const dif = this.endSecond - now;
  347. // const dif = 3600*24 - 60;
  348. if (dif > 0) {
  349. this.countdown = '距结束 ' + tools.convertSecondsToDHM(dif);
  350. } else {
  351. this.countdown = "活动已结束";
  352. }
  353. // this.countdown = tools.convertSecondsToHMS(dif);
  354. } else {
  355. this.countdown = "距结束 --天--小时";
  356. }
  357. },
  358. // 格式化 距离
  359. fmtDistanct(val) {
  360. return Math.round(val * 100 / 1000) / 100;
  361. /* if (val < 10000)
  362. return Math.round(val * 10 / 1000) / 10;
  363. else
  364. return Math.round(val / 1000); */
  365. },
  366. fmtMcTime(timestamp) {
  367. return tools.fmtMcTime(timestamp);
  368. },
  369. // 获取活动时间
  370. getActtime() {
  371. this.acttime = tools.getActtime(this.beginSecond, this.endSecond);
  372. },
  373. getTeamName(teamType, teamIndex) {
  374. return teamName[teamType][teamIndex];
  375. },
  376. getCardConfigQuery() {
  377. uni.request({
  378. url: apiCardConfigQuery,
  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. pageName: this.pageName
  387. },
  388. success: (res) => {
  389. // console.log("getCardConfigQuery", res)
  390. const data = res.data.data;
  391. // console.log("configJson", data.configJson);
  392. const config = data.configJson != "" ? JSON.parse(data.configJson) : "";
  393. // console.log("configJson", data.configJson);
  394. /* const config = {
  395. "css": `
  396. .top{
  397. width: 100%;
  398. height: 170px;
  399. padding-top: 36px;
  400. justify-content: space-between;
  401. background-image: url('static/backgroud/top_bg_sddx.png');
  402. background-repeat: no-repeat;
  403. background-position-x: center;
  404. background-position-y: bottom;
  405. background-size: cover;
  406. }
  407. .logo{
  408. background-image: url('static/logo/sddx.png');
  409. }
  410. .tcbar{
  411. display: flex !important;
  412. }
  413. .topbar-color{
  414. color: #ffffff;
  415. }
  416. .btnBack{
  417. background-color: #a43a07 !important;
  418. }
  419. .tab-active{
  420. background-color: #a43a07 !important;
  421. }
  422. .swiper-item-button {
  423. background-color: #a43a07 !important;
  424. }
  425. .uni-swiper-dot-active {
  426. background: #a43a07 !important;
  427. }
  428. `,
  429. "tabActiveColor": "#a43a07",
  430. "popupRuleConfig": {
  431. "height": "500px"
  432. },
  433. "popupDataList": [
  434. {
  435. "type": 1,
  436. "data": {
  437. "title": "山大24级新生校园定向赛",
  438. "img": "/static/logo/sddx.png",
  439. "content": "  开学季来袭!山大24级新生校园定向赛燃情启幕!探索校园每一个角落,挑战智慧与体能,全校师生共同开启新学期活力篇章!等你来挑战!"
  440. }
  441. },
  442. {
  443. "type": 7,
  444. "data": {
  445. "topLogo": {
  446. "src": "/static/logo/sddx.png",
  447. "width": "80px",
  448. "height": "80px"
  449. },
  450. "bottomLogo": {
  451. "src": "/static/logo/inzone.png",
  452. "width": "150px",
  453. "height": "30px"
  454. },
  455. "title": "活动流程",
  456. "content": "<br>① 起点打点 → ② 依次打点 → ③ 接受挑战 <br><br>④ 终点打点 → ⑤ 查看成绩 → ⑥ 赢取奖励",
  457. "imageList": []
  458. }
  459. },
  460. {
  461. "type": 7,
  462. "data": {
  463. "topLogo": {
  464. "src": "/static/logo/sddx.png",
  465. "width": "80px",
  466. "height": "80px"
  467. },
  468. "bottomLogo": {
  469. "src": "/static/logo/inzone.png",
  470. "width": "150px",
  471. "height": "30px"
  472. },
  473. "title": "赛事规则",
  474. "content": "<p style='margin-bottom:12px;'>① 选择所在校区,参赛时间自由、路线随机</p> <p style='margin-bottom:12px;'>② 准确填报院系,共筑个人与院系荣耀</p> <p style='margin-bottom:12px;'>③ 打点1次1积分,途经点正确答题1积分,多次完赛,点数累加</p> <p style='margin-bottom:12px;'>④ 正常完赛累计积分,未完赛积分不计入</p>⑤ 请勿借助骑行工具参赛",
  475. "imageList": []
  476. }
  477. },
  478. {
  479. "type": 7,
  480. "data": {
  481. "topLogo": {
  482. "src": "/static/logo/sddx.png",
  483. "width": "80px",
  484. "height": "80px"
  485. },
  486. "bottomLogo": {
  487. "src": "/static/logo/inzone.png",
  488. "width": "150px",
  489. "height": "30px"
  490. },
  491. "title": "赛事奖励1",
  492. "content": "团队奖:<br>院系累计积分前8名; <text style='color:red;'>奖励</text>:团队奖杯 <br><br>个人奖:<br>各校区累计积分前10名;<text style='color:red;'>奖励</text>:荣誉证书完赛者均可获得参赛证书。<br> <text style='color:#A6A6A6;'>(赛事结束后体育委员会自APP颁发)</text>",
  493. "imageList": []
  494. }
  495. },
  496. {
  497. "type": 7,
  498. "data": {
  499. "topLogo": {
  500. "src": "/static/logo/sddx.png",
  501. "width": "80px",
  502. "height": "80px"
  503. },
  504. "bottomLogo": {
  505. "src": "/static/logo/inzone.png",
  506. "width": "150px",
  507. "height": "30px"
  508. },
  509. "title": "赛事奖励2",
  510. "content": "<p style='margin-bottom:12px;'>外部奖励:<br>各校区前10名获银座集团价值<text style='color:red;'>200元</text>进阶宠爱大礼。</p> <p style='margin-bottom:12px;'>完赛一次,可获银座价值<text style='color:red;'>50元</text>新生宠爱盲盒。<text style='color:#A6A6A6;'>(数量有限,发完为止)</text></p>每获25积分,可获银座<text style='color:red;'>100减10</text>优惠券1张。封顶5张,可与店内优惠叠加使用。<br><text style='color:#A6A6A6;'>(部分商品、特殊特例商品除外)</text>",
  511. "imageList": []
  512. }
  513. },
  514. {
  515. "type": 7,
  516. "data": {
  517. "title": "安全提示",
  518. "content": "<br><text style='color:#FFBA99; font-size: 20px; margin-right: 5px;'>●</text> 避免聚集,注意安全<br><br> <text style='color:#FFBA99; font-size: 20px; margin-right: 5px;'>●</text> 评估自身健康,适时参与<br><br> <text style='color:#FFBA99; font-size: 20px; margin-right: 5px;'>●</text> 注意交通与场地安全",
  519. "imageList": [{
  520. "src": "/static/backgroud/shanda.png",
  521. "width": "300px",
  522. "height": "150px"
  523. }]
  524. }
  525. },
  526. {
  527. "type": 2,
  528. "data": {
  529. "title": "基本图例",
  530. "img": "/static/common/jbtl.png"
  531. }
  532. },
  533. {
  534. "type": 2,
  535. "data": {
  536. "title": "基本标识",
  537. "img": "/static/common/jbbs2.png"
  538. }
  539. },
  540. {
  541. "type": 7,
  542. "data": {
  543. "topLogo": {
  544. "src": "/static/logo/sddx.png",
  545. "width": "80px",
  546. "height": "80px"
  547. },
  548. "bottomLogo": {
  549. "src": "/static/logo/inzone.png",
  550. "width": "150px",
  551. "height": "30px"
  552. },
  553. "title": "山大定向赛咨询群",
  554. "content": "",
  555. "imageList": [{
  556. "src": "/static/common/qrcode_sddxszxq.png",
  557. "width": "116px",
  558. "height": "116px"
  559. }],
  560. "memo": "<view style='display:block; text-align:center;'>赛事规程、流程、奖励咨询 <br><view style='color:#808080; font-size:12px'>(7*24小时解答)</view></view>"
  561. }
  562. },
  563. {
  564. "type": 8,
  565. "data": {
  566. "title": "兑换地点",
  567. "topImg": {
  568. "src": "/static/logo/inzone2.png",
  569. "width": "72px",
  570. "height": "72px"
  571. },
  572. "topMemo": "<view style='color:#E60012;font-size:14px;'>品质消费引领者 &nbsp; &nbsp; 美好生活推荐官</view>",
  573. "bottomMemo": "<view style='display: flex; align-items: center; justify-content: center; margin-top: 20px; color: #E67300; font-weight: 500; font-size: 15px; text-decoration-line: underline;'><image src='static/common/bulb.png' style='width: 22px; height: 26px; margin-right: 6px;'></image>点击查看《优惠券使用说明》</view>",
  574. "bottomMemoUrl": "https://oss-mbh5.colormaprun.com/page/explanation/inzone.html",
  575. "pointList": [
  576. {
  577. "map": "中 心 校 区",
  578. "name": "银座燕山店",
  579. "longitude": 117.075174,
  580. "latitude": 36.654108
  581. },
  582. {
  583. "map": "洪家楼校区",
  584. "name": "银座洪楼店",
  585. "longitude": 117.062653,
  586. "latitude": 36.684249
  587. },
  588. {
  589. "map": "兴隆山校区",
  590. "name": "银座七里山店",
  591. "longitude": 117.004617,
  592. "latitude": 36.613655
  593. },
  594. {
  595. "map": "趵突泉校区",
  596. "name": "银座泉城广场店",
  597. "longitude": 117.023766,
  598. "latitude": 36.661532
  599. },
  600. {
  601. "map": "千佛山校区",
  602. "name": "银座玉函店",
  603. "longitude": 117.014735,
  604. "latitude": 36.647098
  605. },
  606. {
  607. "map": "软件园校区",
  608. "name": "银座高新店",
  609. "longitude": 117.122241,
  610. "latitude": 36.682175
  611. }
  612. ]
  613. }
  614. }
  615. ],
  616. "popupExchgConfig": {
  617. "height": "500px"
  618. },
  619. "popupExchgList": [
  620. {
  621. "type": 8,
  622. "data": {
  623. "title": "兑换地点",
  624. "topImg": {
  625. "src": "/static/logo/inzone2.png",
  626. "width": "72px",
  627. "height": "72px"
  628. },
  629. "topMemo": "<view style='color:#E60012;font-size:14px;'>品质消费引领者 &nbsp; &nbsp; 美好生活推荐官</view>",
  630. "bottomMemo": "<view style='display: flex; align-items: center; justify-content: center; margin-top: 20px; color: #E67300; font-weight: 500; font-size: 15px; text-decoration-line: underline;'><image src='static/common/bulb.png' style='width: 22px; height: 26px; margin-right: 6px;'></image>点击查看《优惠券使用说明》</view>",
  631. "bottomMemoUrl": "https://oss-mbh5.colormaprun.com/page/explanation/inzone.html",
  632. "pointList": [
  633. {
  634. "map": "中 心 校 区",
  635. "name": "银座燕山店",
  636. "longitude": 117.075174,
  637. "latitude": 36.654108
  638. },
  639. {
  640. "map": "洪家楼校区",
  641. "name": "银座洪楼店",
  642. "longitude": 117.062653,
  643. "latitude": 36.684249
  644. },
  645. {
  646. "map": "兴隆山校区",
  647. "name": "银座七里山店",
  648. "longitude": 117.004617,
  649. "latitude": 36.613655
  650. },
  651. {
  652. "map": "趵突泉校区",
  653. "name": "银座泉城广场店",
  654. "longitude": 117.023766,
  655. "latitude": 36.661532
  656. },
  657. {
  658. "map": "千佛山校区",
  659. "name": "银座玉函店",
  660. "longitude": 117.014735,
  661. "latitude": 36.647098
  662. },
  663. {
  664. "map": "软件园校区",
  665. "name": "银座高新店",
  666. "longitude": 117.122241,
  667. "latitude": 36.682175
  668. }
  669. ]
  670. }
  671. },
  672. ],
  673. "param": {
  674. "labelRightAnswerNum": "文化输出"
  675. }
  676. }; */
  677. this.loadConfig(config);
  678. this.getUnReadMessageQuery();
  679. this.matchRsDetailQuery();
  680. setTimeout(this.dealFirstEnter, 500);
  681. },
  682. fail: (err) => {
  683. console.log("getCardConfigQuery err", err)
  684. },
  685. });
  686. },
  687. // 卡片对应活动或赛事详情查询
  688. // getCardDetailQuery() {
  689. // uni.request({
  690. // url: apiCardDetailQuery,
  691. // header: {
  692. // "Content-Type": "application/x-www-form-urlencoded",
  693. // "token": this.token,
  694. // },
  695. // method: "POST",
  696. // data: {
  697. // ecId: this.ecId
  698. // },
  699. // success: (res) => {
  700. // // console.log("getCardDetailQuery", res)
  701. // const data = res.data.data;
  702. // this.mcType = data.mcType;
  703. // this.mcId = data.mcId;
  704. // this.mcName = data.mcName;
  705. // this.beginSecond = data.beginSecond;
  706. // this.endSecond = data.endSecond;
  707. // this.coiName = data.coiName;
  708. // this.teamNum = data.teamNum;
  709. // this.mcState = tools.checkMcState(this.beginSecond, this.endSecond);
  710. // this.getCountdown();
  711. // this.getActtime();
  712. // this.getCardRankDetailQuery();
  713. // this.clear();
  714. // this.interval = setInterval(this.getCountdown, 60000);
  715. // },
  716. // fail: (err) => {
  717. // console.log("getCardDetailQuery err", err)
  718. // },
  719. // });
  720. // },
  721. // 卡片对应线上赛多个活动查询
  722. matchRsDetailQuery() {
  723. uni.request({
  724. url: apiMatchRsDetailQuery,
  725. header: {
  726. "Content-Type": "application/x-www-form-urlencoded",
  727. "token": this.token,
  728. },
  729. method: "POST",
  730. data: {
  731. ecId: this.ecId
  732. },
  733. success: (res) => {
  734. // console.log("matchRsDetailQuery", res);
  735. if (checkResCode(res)) {
  736. const data = res.data.data;
  737. this.mcType = data.mcType;
  738. this.mcId = data.mcId;
  739. this.mcName = data.mcName;
  740. this.beginSecond = data.beginSecond;
  741. this.endSecond = data.endSecond;
  742. this.nickName = data.nickName;
  743. // this.totalNum = data.totalNum;
  744. // this.totalDistanct = data.totalDistanct;
  745. // this.totalDistanctRankNum = data.totalDistanctRankNum;
  746. // this.totalCp = data.totalCp;
  747. // this.totalCpRankNum = data.totalCpRankNum;
  748. // this.totalSysPoint = data.totalSysPoint;
  749. // this.totalSysPointRankNum = data.totalSysPointRankNum;
  750. // this.fastPace = data.fastPace;
  751. // this.fastPaceRankNum = data.fastPaceRankNum;
  752. // this.ocaRs = data.ocaRs;
  753. this.mcState = tools.checkMcState(this.beginSecond, this.endSecond);
  754. this.getCountdown();
  755. this.getActtime();
  756. this.mapListQuery();
  757. this.compStatisticQuery();
  758. // this.getCardRankDetailQuery();
  759. this.clear();
  760. this.interval = setInterval(this.getCountdown, 60000);
  761. }
  762. },
  763. fail: (err) => {
  764. console.log("matchRsDetailQuery err", err)
  765. },
  766. });
  767. },
  768. // 卡片对应地图列表详情查询
  769. mapListQuery() {
  770. uni.request({
  771. url: apiMapListQuery,
  772. header: {
  773. "Content-Type": "application/x-www-form-urlencoded",
  774. "token": this.token,
  775. },
  776. method: "POST",
  777. data: {
  778. mcId: this.mcId
  779. },
  780. success: (res) => {
  781. // console.log("mapListQuery", res);
  782. if (res.data.code == 0) {
  783. const data = res.data.data;
  784. this.mapList = data;
  785. let mapItems = {
  786. // selectValue: this.selectedMapId,
  787. selectValue: this.ocaId,
  788. data: []
  789. };
  790. for (var i = 0; i < data.length; i++) {
  791. if (mapItems.selectValue == 0 && i == 0) {
  792. mapItems.selectValue = data[i].ocaId;
  793. // this.selectedMapId = data[i].ocaId;
  794. this.ocaId = data[i].ocaId;
  795. }
  796. let map = {};
  797. map.text = "个人(" + data[i].mapName + ")";
  798. map.value = data[i].ocaId;
  799. mapItems.data.push(map);
  800. }
  801. this.tab1Items.push(mapItems);
  802. this.getCardRankDetailQuery();
  803. }
  804. },
  805. fail: (err) => {
  806. console.log("mapListQuery err", err);
  807. },
  808. });
  809. },
  810. // 赛事总成绩统计查询
  811. compStatisticQuery() {
  812. uni.request({
  813. url: apiCompStatisticQuery,
  814. header: {
  815. "Content-Type": "application/x-www-form-urlencoded",
  816. "token": this.token,
  817. },
  818. method: "POST",
  819. data: {
  820. mcId: this.mcId
  821. },
  822. success: (res) => {
  823. // console.log("compStatisticQuery", res);
  824. if (res.data.code == 0) {
  825. const data = res.data.data;
  826. this.all_totalDistance = data.totalDistance;
  827. this.all_totalRightAnswerNum = data.totalRightAnswerNum;
  828. this.all_totalAnswerNum = data.totalAnswerNum;
  829. this.all_totalCp = data.totalCp;
  830. this.all_totalSysPoint = data.totalSysPoint;
  831. }
  832. },
  833. fail: (err) => {
  834. console.log("compStatisticQuery err", err);
  835. },
  836. });
  837. },
  838. // 排名查询
  839. getCardRankDetailQuery() {
  840. uni.request({
  841. url: apiCardRankDetailQuery,
  842. header: {
  843. "Content-Type": "application/x-www-form-urlencoded",
  844. "token": this.token,
  845. },
  846. method: "POST",
  847. data: {
  848. mcIdListStr: this.mcId,
  849. mcType: this.mcType,
  850. ocaId: this.ocaId,
  851. dispArrStr: this.dispArrStr
  852. },
  853. success: (res) => {
  854. // console.log("getCardRankDetailQuery", res);
  855. const rankdata = res.data.data;
  856. // this.rankList.totalDistanceRs = rankdata.totalDistanceRs;
  857. // this.rankList.totalCpRs = rankdata.totalCpRs;
  858. // this.rankList.totalSysPointRs = rankdata.totalSysPointRs;
  859. // this.rankList.fastPaceRs = rankdata.fastPaceRs;
  860. this.rankList = rankdata;
  861. },
  862. fail: (err) => {
  863. console.log("getCardRankDetailQuery err", err)
  864. },
  865. });
  866. },
  867. // 卡片用户当前排名查询
  868. // getUserCurrentRankNumQuery() {
  869. // uni.request({
  870. // url: apiUserCurrentRankNumQuery,
  871. // header: {
  872. // "Content-Type": "application/x-www-form-urlencoded",
  873. // "token": this.token,
  874. // },
  875. // method: "POST",
  876. // data: {
  877. // ecId: this.ecId
  878. // },
  879. // success: (res) => {
  880. // // console.log("getUserCurrentRankNumQuery", res)
  881. // if (res.data.code == 0) {
  882. // const data = res.data.data;
  883. // const rankNum = data.rankNum;
  884. // this.dealNotice(rankNum);
  885. // }
  886. // },
  887. // fail: (err) => {
  888. // console.log("getUserCurrentRankNumQuery err", err)
  889. // },
  890. // });
  891. // },
  892. // 是否允许重新分组(报名)
  893. isAllowMcSignUp() {
  894. uni.request({
  895. url: apiIsAllowMcSignUp,
  896. header: {
  897. "Content-Type": "application/x-www-form-urlencoded",
  898. "token": this.token,
  899. },
  900. method: "POST",
  901. data: {
  902. ecId: this.ecId
  903. },
  904. success: (res) => {
  905. // console.log("isAllowMcSignUp", res)
  906. if (res.data.code == 0) {
  907. const data = res.data.data;
  908. this.allowMcSignUp = data.allowSignUp;
  909. }
  910. },
  911. fail: (err) => {
  912. console.log("isAllowMcSignUp err", err)
  913. },
  914. });
  915. },
  916. // 用户是否已经报名卡片对应赛事查询
  917. getUserJoinCardQuery() {
  918. uni.request({
  919. url: apiUserJoinCardQuery,
  920. header: {
  921. "Content-Type": "application/x-www-form-urlencoded",
  922. "token": this.token
  923. },
  924. method: "POST",
  925. data: {
  926. ecId: this.ecId
  927. },
  928. success: (res) => {
  929. // console.log("getUserJoinCardQuery", res)
  930. const code = res.data.code;
  931. const data = res.data.data;
  932. if (code == 0) {
  933. this.isJoin = data.isJoin;
  934. if (this.isJoin) { // 已报名
  935. this.btnStartGameText = "我要比赛";
  936. } else { // 未报名
  937. this.btnStartGameText = "我要报名";
  938. }
  939. }
  940. },
  941. fail: (err) => {
  942. console.log("getUserJoinCardQuery err", err)
  943. },
  944. });
  945. },
  946. // 未读消息列表查询
  947. getUnReadMessageQuery() {
  948. uni.request({
  949. url: apiUnReadMessageQuery,
  950. header: {
  951. "Content-Type": "application/x-www-form-urlencoded",
  952. "token": this.token,
  953. },
  954. method: "POST",
  955. data: {
  956. relationType: 2, // 类型 1 成就 2 卡片
  957. relationId: this.ecId
  958. },
  959. success: (res) => {
  960. // console.log("getUnReadMessageQuery", res);
  961. if (checkResCode(res)) {
  962. const unReadMessageRs = res.data.data;
  963. this.popupMessageList.length = 0;
  964. this.mqIdListStr = "";
  965. for (var i = 0; i < unReadMessageRs.length; i++) {
  966. let popupData = {
  967. type: 6, // 6: 通知
  968. data: {}
  969. };
  970. this.messageKey += "-" + unReadMessageRs[i].mqId;
  971. popupData.data.mqType = unReadMessageRs[i].mqType;
  972. popupData.data.title = unReadMessageRs[i].mqTitle;
  973. popupData.data.message = unReadMessageRs[i].mqMessage;
  974. this.popupMessageList.push(popupData);
  975. // this.mqIdListStr += this.unReadMessageRs[i].mqId;
  976. // if (i < this.unReadMessageRs.length - 1) {
  977. // this.mqIdListStr += ",";
  978. // }
  979. }
  980. // this.popupMessageList.push(
  981. // {
  982. // type: 6, // 6: 通知
  983. // data: {
  984. // mqType: 3,
  985. // title: "特别提醒",
  986. // message: `本次比赛的目的为体验校园文化,提升身体素质,让大家感受和熟悉定向运动魅力及技巧。<br>
  987. // 在此特别提醒:<br>
  988. // 无论是驰骋校园,还是漫步秋色,<b>“勿以轮带步,唯愿步量途”。让我们用脚步来丈量这片共同热爱的家园</b>,见证山大123周年的辉煌时刻!<br>
  989. // <div style='text-align: right;'>山东大学体育委员会</div>`
  990. // }
  991. // }
  992. // );
  993. // console.log("popupMessageList", this.popupMessageList);
  994. if (this.popupMessageList.length > 0) {
  995. const messageValue = uni.getStorageSync(this.messageKey);
  996. console.log("messageValue:", messageValue);
  997. if (!messageValue) {
  998. this.$refs.mypopupMessage.popupOpen();
  999. // uni.setStorageSync(this.messageKey, true);
  1000. }
  1001. }
  1002. }
  1003. },
  1004. fail: (err) => {
  1005. console.log("getUnReadMessageQuery err", err);
  1006. },
  1007. });
  1008. },
  1009. onNoMoreRemindersClick() {
  1010. this.$refs.mypopupMessage.popupClose();
  1011. uni.setStorageSync(this.messageKey, true);
  1012. },
  1013. // 标记消息已读
  1014. readMessage() {
  1015. uni.request({
  1016. url: apiReadMessage,
  1017. header: {
  1018. "Content-Type": "application/x-www-form-urlencoded",
  1019. "token": this.token,
  1020. },
  1021. method: "POST",
  1022. data: {
  1023. "mqIdListStr": this.mqIdListStr
  1024. },
  1025. success: (res) => {
  1026. // console.log("readMessage", res);
  1027. },
  1028. fail: (err) => {
  1029. console.log("readMessage err", err);
  1030. },
  1031. });
  1032. },
  1033. btnBack() {
  1034. // window.history.back();
  1035. /* uni.navigateTo({
  1036. url: "/pages/bm/style4/rankOverview?" + this.queryString
  1037. }); */
  1038. const url = `action://to_home/`;
  1039. tools.appAction(url);
  1040. },
  1041. btnStartGame() {
  1042. // uni.navigateTo({
  1043. // url: "/pages/bm/style4/rankOverview?" + this.queryString
  1044. // });
  1045. if (this.isJoin) { // 已报名
  1046. const url = "/pages/bm/style4/rankOverview?" + this.queryString;
  1047. tools.appAction(url, "uni.navigateTo");
  1048. } else { // 未报名
  1049. const url = "/pages/bm/style4/signup?" + this.queryString;
  1050. tools.appAction(url, "uni.navigateTo");
  1051. }
  1052. },
  1053. btnInfo() {
  1054. // console.log(this.$refs.mypopup);
  1055. this.$refs.mypopup.popupOpen();
  1056. },
  1057. btnMessage() {
  1058. // console.log(this.$refs.mypopup);
  1059. this.$refs.mypopupMessage.popupOpen();
  1060. },
  1061. btnMyEgg() {
  1062. // uni.navigateTo({
  1063. // url: "/pages/achievement/index2?tabCurrent=2&" + this.queryString
  1064. // });
  1065. const url = "/pages/achievement/index2?tabCurrent=2&" + this.queryString;
  1066. tools.appAction(url, "uni.navigateTo");
  1067. },
  1068. btnExchg() {
  1069. this.$refs.mypopupExchg.popupOpen();
  1070. },
  1071. onTab1Click(val) {
  1072. // console.log("onTab1Click: ", val);
  1073. this.tab1Current = val;
  1074. },
  1075. onTab2Click(val) {
  1076. // console.log("onTab2Click: ", val);
  1077. this.tab2Current = val;
  1078. },
  1079. onSelectChange(val) {
  1080. // console.log("onSelectChange: ", val);
  1081. this.ocaId = val.value;
  1082. this.getCardRankDetailQuery();
  1083. uni.setStorageSync(this.mapKey, this.ocaId);
  1084. },
  1085. }
  1086. }
  1087. </script>
  1088. <style scoped>
  1089. .content {
  1090. width: 100vw;
  1091. height: 100vh;
  1092. }
  1093. .top-default {
  1094. width: 100%;
  1095. height: 170px;
  1096. padding-top: 36px;
  1097. justify-content: space-between;
  1098. background-image: url('static/backgroud/top_bg_sddx.png');
  1099. background-repeat: no-repeat;
  1100. background-position: center;
  1101. background-size: cover;
  1102. }
  1103. .topcontent {
  1104. width: 90%;
  1105. /* height: 90%; */
  1106. /* margin-bottom: 20px; */
  1107. }
  1108. .logo {
  1109. width: 80px;
  1110. height: 80px;
  1111. margin-top: 10px;
  1112. margin-bottom: 10px;
  1113. /* background-image: url('/static/logo/sddx.png'); */
  1114. background-repeat: no-repeat;
  1115. background-position-x: center;
  1116. background-position-y: center;
  1117. background-size: contain;
  1118. }
  1119. .tcview {
  1120. width: 90%;
  1121. /* height: 100px; */
  1122. }
  1123. .tcbox {
  1124. width: 121px;
  1125. height: 63px;
  1126. opacity: 1;
  1127. border-radius: 6px;
  1128. background: #9A300E;
  1129. border: 1px solid #D3A254;
  1130. }
  1131. .tcbox-label {
  1132. font-size: 12px;
  1133. font-weight: 500;
  1134. line-height: 23px;
  1135. color: #f3d809;
  1136. }
  1137. .tcbox-value {
  1138. font-size: 16px;
  1139. font-weight: 500;
  1140. line-height: 26px;
  1141. color: #f3d809;
  1142. }
  1143. .tcbar {
  1144. display: none;
  1145. width: 92%;
  1146. padding: 6px 12px;
  1147. background: #9a300e;
  1148. border-radius: 6px;
  1149. }
  1150. .tcbar-text {
  1151. font-family: Source Han Sans CN;
  1152. font-weight: 500;
  1153. color: #f3d809;
  1154. font-size: 13px;
  1155. }
  1156. .mcName {
  1157. font-size: 40rpx;
  1158. font-weight: 550;
  1159. }
  1160. .topbtm {
  1161. width: 100%;
  1162. margin-bottom: 5px;
  1163. justify-content: space-around;
  1164. }
  1165. .topbtm-name {
  1166. padding: 3px 12px;
  1167. background-color: #9A300E;
  1168. border: 1px solid #D3A254;
  1169. border-radius: 6px;
  1170. text-align: center;
  1171. font-weight: 500;
  1172. color: #ffffff;
  1173. font-size: 14px;
  1174. }
  1175. .topbtm-egg {
  1176. width: 60px;
  1177. padding: 3px 12px;
  1178. background-color: #9A300E;
  1179. border: 1px solid #D3A254;
  1180. border-radius: 6px;
  1181. text-align: center;
  1182. color: #ffffff;
  1183. font-size: 14px;
  1184. }
  1185. .topbtm-null {
  1186. width: 60px;
  1187. padding: 3px 12px;
  1188. }
  1189. .cal {
  1190. width: 46rpx;
  1191. height: 46rpx;
  1192. margin-right: 20rpx;
  1193. }
  1194. .main {
  1195. width: 100%;
  1196. /* height: 70vh; */
  1197. flex-grow: 1;
  1198. justify-content: space-around;
  1199. /* justify-content: space-between; */
  1200. }
  1201. /* /deep/ .tab-active {
  1202. background-color: #a43a07 !important;
  1203. } */
  1204. .main-tab {
  1205. width: 90%;
  1206. margin-top: 20rpx;
  1207. }
  1208. .tab-view {
  1209. width: 100%;
  1210. /* height: 69vh; */
  1211. flex-grow: 1;
  1212. }
  1213. .btnBack {
  1214. width: 70%;
  1215. height: 80rpx;
  1216. margin-bottom: 20rpx;
  1217. /* font-weight: bold; */
  1218. color: white;
  1219. font-size: 32rpx;
  1220. line-height: 80rpx;
  1221. border-radius: 27px;
  1222. background-color: #2e85ec;
  1223. }
  1224. /* .swiper-item-button {
  1225. background-color: #ff870e !important;
  1226. }
  1227. .uni-swiper-dot-active {
  1228. background: #ff870e !important;
  1229. } */
  1230. </style>