signup.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850
  1. <!--
  2. [报名] 样式3 - 报名
  3. http://localhost:5173/card/#/pages/bm/style4/signup
  4. https://oss-mbh5.colormaprun.com/card/#/pages/bm/style4/signup
  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" @btnBackClick="btnBack"
  11. @btnInfoClick="btnInfo"></my-topbar>
  12. <view class="topcontent uni-column uni-jcsa">
  13. <view class="logo"></view>
  14. <text v-if="configParam.subTitle.length > 0" class="top-acttime">{{configParam.subTitle}}</text>
  15. <text v-else class="top-acttime">{{fmtMcTime2(beginSecond, endSecond)}}</text>
  16. </view>
  17. </view>
  18. <view class="timebar uni-row">
  19. <image mode="aspectFit" class="clock" src="/static/default/clock.png"></image>
  20. <text class="acttime">{{acttime}}</text>
  21. </view>
  22. <view class="main uni-column uni-jct">
  23. <input class="uni-input" maxlength="12" :placeholder="'请填写'+configParam.labelName" placeholder-style="font-size: 14px;" v-model="nickName" />
  24. <e-select v-model="coiId" :options="coiRs" :props="eSelectionProps" clearable
  25. maxHeight="40vh" :placeholder="'请选择'+configParam.labelOrg+'(可输入关键字)'" @getText="getESelectText"
  26. @change="eSelectChange"></e-select>
  27. <view class="introduce uni-column">
  28. <text class="introduce-title">{{introduce.title}}</text>
  29. <text class="introduce-content" v-html="introduce.content"></text>
  30. </view>
  31. <view v-if="activityRules.content.length > 0" class="activityRules uni-column">
  32. <text class="activityRules-title">{{activityRules.title}}</text>
  33. <text class="activityRules-content" v-html="activityRules.content"></text>
  34. </view>
  35. <button class="btnSignup btnSignup-enable" v-if="mcState<=1" @click="btnSignup">报 名</button>
  36. <button class="btnSignup btnSignup-disable" v-if="mcState==2">活动已结束</button>
  37. </view>
  38. <my-popup ref="mypopup" :config="popupRuleConfig" :dataList="popupDataList" :acttime="acttime"></my-popup>
  39. <!-- <uni-popup ref="alertDialog" type="dialog">
  40. <uni-popup-dialog type="info" cancelText="取消" confirmText="确认" title="您填写的姓名:" @confirm="dialogConfirm"
  41. @close="dialogClose">
  42. <view class="dialog-content uni-column">
  43. <text class="dialog-content-1">{{nickName}}</text>
  44. </view>
  45. </uni-popup-dialog>
  46. </uni-popup> -->
  47. <uni-popup ref="alertDialog" type="dialog">
  48. <uni-popup-dialog type="info" cancelText="取消" confirmText="确认" title="你的报名信息:" @confirm="dialogConfirm"
  49. @close="dialogClose">
  50. <view class="dialog-content uni-column">
  51. <text class="dialog-content-1">{{mcName}}</text>
  52. <view class="uni-column uni-ais">
  53. <text class="dialog-content-2">{{configParam.labelName}}: {{nickName}}</text>
  54. <text class="dialog-content-2">{{configParam.labelOrg}}: {{coiName}}</text>
  55. <!-- <text class="dialog-content-2">{{teamName}}</text> -->
  56. </view>
  57. </view>
  58. </uni-popup-dialog>
  59. </uni-popup>
  60. </view>
  61. </view>
  62. </template>
  63. <script>
  64. import tools from '../../../common/tools';
  65. import {
  66. defaultPopUpDataList
  67. } from '../../../common/define';
  68. import {
  69. token,
  70. apiCardDetailQuery,
  71. apiOnlineMcSignUpDetail,
  72. apiOnlineMcSignUp,
  73. apiCardConfigQuery,
  74. apiMatchRsDetailQuery,
  75. checkResCode,
  76. checkToken
  77. } from '../../../common/api';
  78. export default {
  79. data() {
  80. return {
  81. pageName: "signup",
  82. firstEnterKey: 'firstEnter-bm-style4',
  83. rankKey: "rank-bm-style4",
  84. queryObj: {},
  85. queryString: "",
  86. from: "", // 来源页面
  87. token: "",
  88. ecId: 0, // 卡片id
  89. mcId: 0, // 赛事id
  90. mcType: 0, // 赛事类型 1 普通活动 2 线下赛 3 线上赛
  91. mcName: "", // 赛事名称
  92. acttime: "", // 活动时间
  93. beginSecond: null, // 活动或赛事开始时间戳,单位秒
  94. endSecond: null, // 活动或赛事结束时间戳,单位秒
  95. coiId: 0, // 已报名单位id
  96. coiName: "", // 已报名单位名称,可为空
  97. teamNum: 0, // 已报名队伍编号,可为0
  98. nickName: "", // 昵称
  99. coiRs: [], // 组织信息集合
  100. // orgList: [], // 分组下拉列表数据源
  101. // teamList: [], //
  102. interval: null,
  103. mcState: 0, // 赛事/活动状态 0: 未开始 1: 进行中 2: 已结束
  104. // teamType: 0, // 队伍类型 0: 红黄蓝紫 1: 学生/家长
  105. cssTop: "",
  106. cssTopbarColor: "",
  107. cssLogo: "",
  108. introduce: {
  109. title: "",
  110. content: ""
  111. },
  112. activityRules: {
  113. title: "",
  114. content: ""
  115. },
  116. popupRuleConfig: {}, // 规则弹窗配置
  117. popupDataList: [],
  118. configParam: {
  119. labelName: "昵称",
  120. labelOrg: "组织",
  121. subTitle: ""
  122. },
  123. eSelectionProps: {
  124. text: 'coiName',
  125. value: 'coiId',
  126. // disabled: 'noallowed'
  127. },
  128. }
  129. },
  130. computed: {},
  131. onLoad(query) { // 类型非必填,可自动推导
  132. // console.log(query);
  133. this.queryObj = query;
  134. this.queryString = tools.objectToQueryString(this.queryObj);
  135. // console.log(queryString);
  136. this.from = query["from"] ?? "";
  137. this.token = query["token"] ?? token;
  138. this.ecId = query["id"] ?? 0;
  139. this.firstEnterKey += "-" + this.ecId;
  140. console.log("firstEnterKey:", this.firstEnterKey);
  141. this.rankKey += "-" + this.ecId;
  142. console.log("rankKey:", this.rankKey);
  143. tools.removeCssCode();
  144. this.getCardConfigQuery();
  145. this.getCardDetailQuery();
  146. this.matchRsDetailQuery();
  147. },
  148. // 页面初次渲染完成,此时组件已挂载完成,DOM 树($el)已可用
  149. onReady() {
  150. // this.dealFirstEnter();
  151. },
  152. onUnload() {
  153. this.clear();
  154. },
  155. methods: {
  156. dealNotice(rank) {
  157. // console.log('[dealNotice]');
  158. let that = this;
  159. uni.getStorage({
  160. key: that.rankKey,
  161. success: (res) => {
  162. console.log('[getStorage]', that.rankKey, res.data);
  163. const oldRank = res.data;
  164. if (oldRank != rank) {
  165. // that.notice = true;
  166. that.setRankValue(rank);
  167. }
  168. },
  169. fail: (e) => {
  170. console.log('[getStorage] fail', that.rankKey, e);
  171. // that.notice = false;
  172. that.setRankValue(rank);
  173. },
  174. })
  175. },
  176. setRankValue(data) {
  177. let that = this;
  178. uni.setStorage({
  179. key: that.rankKey,
  180. data: data,
  181. success: () => {
  182. console.log('[setStorage] success', that.rankKey, data);
  183. },
  184. fail: (e) => {
  185. console.log('[setStorage] fail', that.rankKey, e);
  186. },
  187. })
  188. },
  189. dealFirstEnter() {
  190. // console.log('[dealFirstEnter]');
  191. let that = this;
  192. uni.getStorage({
  193. key: that.firstEnterKey,
  194. success: (res) => {
  195. console.log('[getStorage]', that.firstEnterKey, res.data);
  196. },
  197. fail: (e) => {
  198. console.log('[getStorage] fail', that.firstEnterKey, e);
  199. that.btnInfo();
  200. that.setFirstEnterValue(true);
  201. },
  202. })
  203. },
  204. setFirstEnterValue(data) {
  205. let that = this;
  206. uni.setStorage({
  207. key: that.firstEnterKey,
  208. data: data,
  209. success: () => {
  210. console.log('[setStorage] success', that.firstEnterKey, data);
  211. },
  212. fail: (e) => {
  213. console.log('[setStorage] fail', that.firstEnterKey, e);
  214. },
  215. })
  216. },
  217. clear() {
  218. if (this.interval != null) {
  219. clearInterval(this.interval);
  220. this.interval = null;
  221. }
  222. },
  223. loadConfig(config) {
  224. // console.log("config", config);
  225. // 加载CSS样式
  226. const css = config.css;
  227. if (css != undefined && css.length > 0) {
  228. tools.loadCssCode(css);
  229. if (css.indexOf(".top{") >= 0) {
  230. this.cssTop = "top";
  231. }
  232. if (css.indexOf(".topbar-color{") >= 0) {
  233. this.cssTopbarColor = "topbar-color";
  234. }
  235. }
  236. if (this.cssTop == "") {
  237. this.cssTop = "top-default";
  238. }
  239. if (this.cssTopbarColor == "") {
  240. this.cssTopbarColor = "topbar-color-default";
  241. }
  242. console.log("[loadConfig] cssTop:", this.cssTop);
  243. console.log("[loadConfig] cssTopbarColor:", this.cssTopbarColor);
  244. // 加载队伍类型 0: 红黄蓝紫 1: 学生/家长
  245. /* if (config.teamType != undefined && config.teamType >= 0) {
  246. this.teamType = config.teamType;
  247. } */
  248. // 加载介绍内容
  249. const introduce = config.introduce;
  250. if (introduce != undefined) {
  251. if (introduce.title != undefined) {
  252. this.introduce.title = introduce.title;
  253. }
  254. if (introduce.content != undefined) {
  255. this.introduce.content = introduce.content;
  256. }
  257. }
  258. // 加载活动规则
  259. const activityRules = config.activityRules;
  260. if (activityRules != undefined) {
  261. if (activityRules.title != undefined) {
  262. this.activityRules.title = activityRules.title;
  263. }
  264. if (activityRules.content != undefined) {
  265. this.activityRules.content = activityRules.content;
  266. }
  267. }
  268. // 加载规则弹窗配置
  269. const popupRuleConfig = config.popupRuleConfig;
  270. if (popupRuleConfig != undefined) {
  271. this.popupRuleConfig = popupRuleConfig;
  272. }
  273. // console.log("[loadConfig] popupRuleConfig:", this.popupRuleConfig);
  274. // 加载弹窗数据
  275. const popupDataList = config.popupDataList;
  276. // console.log("[loadConfig] popupDataList:", popupDataList);
  277. if (popupDataList != undefined && popupDataList.length > 0) {
  278. for (var i = 0; i < popupDataList.length; i++) {
  279. // console.log("[loadConfig] popupDataList", i, popupDataList[i]);
  280. if (popupDataList[i] == 'default') {
  281. for (var j = 0; j < defaultPopUpDataList.length; j++) {
  282. this.popupDataList.push(defaultPopUpDataList[j]);
  283. }
  284. } else {
  285. this.popupDataList.push(popupDataList[i]);
  286. }
  287. }
  288. } else {
  289. this.popupDataList = defaultPopUpDataList;
  290. console.log("[loadConfig] popupDataList 加载默认列表");
  291. }
  292. // console.log("[loadConfig] popupDataList:", this.popupDataList);
  293. // 加载页面参数
  294. const param = config.param;
  295. if (param != undefined) {
  296. if (param.labelName != undefined && param.labelName.length > 0) {
  297. this.configParam.labelName = param.labelName;
  298. }
  299. if (param.labelOrg != undefined && param.labelOrg.length > 0) {
  300. this.configParam.labelOrg = param.labelOrg;
  301. }
  302. if (param.subTitle != undefined && param.subTitle.length > 0) {
  303. this.configParam.subTitle = param.subTitle;
  304. }
  305. }
  306. // console.log("[loadConfig] param:", this.configParam);
  307. },
  308. fmtMcTime(timestamp) {
  309. return tools.fmtMcTime(timestamp);
  310. },
  311. // 获取倒计时
  312. getActtime() {
  313. this.acttime = tools.getActtime(this.beginSecond, this.endSecond);
  314. },
  315. fmtMcTime2(timestamp1, timestamp2) {
  316. return tools.fmtMcTime2(timestamp1, timestamp2);
  317. },
  318. getCardConfigQuery() {
  319. uni.request({
  320. url: apiCardConfigQuery,
  321. header: {
  322. "Content-Type": "application/x-www-form-urlencoded",
  323. "token": this.token,
  324. },
  325. method: "POST",
  326. data: {
  327. ecId: this.ecId,
  328. pageName: this.pageName
  329. },
  330. success: (res) => {
  331. // console.log("getCardConfigQuery", res)
  332. const data = res.data.data;
  333. const config = data.configJson != "" ? JSON.parse(data.configJson) : "";
  334. // console.log("configJson", data.configJson);
  335. /* const config = {
  336. "css": `
  337. .top{
  338. width: 100%;
  339. height: 220px;
  340. padding-top: 36px;
  341. justify-content: space-between;
  342. background-image: url('static/backgroud/top_bg_sddx.png');
  343. background-repeat: no-repeat;
  344. background-position: center;
  345. background-size: cover;
  346. }
  347. .logo{
  348. background-image: url('static/logo/sddx.png');
  349. }
  350. .top-acttime{
  351. display: flex !important;
  352. }
  353. .topbar-color{
  354. color: #ffffff;
  355. }
  356. .btnSignup-enable {
  357. background-color: #a43a07 !important;
  358. }
  359. .swiper-item-button {
  360. background-color: #a43a07 !important;
  361. }
  362. .uni-swiper-dot-active {
  363. background: #a43a07 !important;
  364. }
  365. `,
  366. "popupDataList": [{
  367. "type": 1,
  368. "data": {
  369. "title": "山大校园定向赛",
  370. "img": "/static/logo/sddx.png",
  371. "content": "  开学季来袭!山大校园定向赛燃情启幕!探索校园每一个角落,挑战智慧与体能,全校师生共同开启新学期活力篇章!等你来挑战!"
  372. }
  373. },
  374. "default"
  375. ],
  376. "introduce": {
  377. "title": "介绍:",
  378. "content": "  开学季来袭!山大校园定向赛燃情启幕!探索校园每一个角落,挑战智慧与体能,全校师生共同开启新学期活力篇章!等你来挑战!"
  379. },
  380. "activityRules": {
  381. "title": "活动规则:",
  382. "content": "<li>随时参赛、不限完赛次数、起点任选、实时排名 <li>起点 -各途经点 -结束点完整打卡为一次有效完赛"
  383. },
  384. "param": {
  385. "labelName": "姓名",
  386. "labelOrg": "院系",
  387. "subTitle": "山东大学123周年庆"
  388. }
  389. }; */
  390. this.loadConfig(config);
  391. setTimeout(this.dealFirstEnter, 500);
  392. },
  393. fail: (err) => {
  394. console.log("getCardConfigQuery err", err)
  395. },
  396. });
  397. },
  398. // 卡片信息查询
  399. getCardDetailQuery() {
  400. uni.request({
  401. url: apiCardDetailQuery,
  402. header: {
  403. "Content-Type": "application/x-www-form-urlencoded",
  404. "token": this.token
  405. },
  406. method: "POST",
  407. data: {
  408. ecId: this.ecId
  409. },
  410. success: (res) => {
  411. // console.log("getCardDetailQuery", res);
  412. const data = res.data.data;
  413. this.mcType = data.mcType;
  414. this.mcId = data.mcId;
  415. this.mcName = data.mcName;
  416. this.beginSecond = data.beginSecond;
  417. this.endSecond = data.endSecond;
  418. this.coiId = data.coiId;
  419. this.coiName = data.coiName;
  420. this.teamNum = data.teamNum;
  421. this.nickName = data.nickName;
  422. this.mcState = tools.checkMcState(this.beginSecond, this.endSecond);
  423. this.getActtime();
  424. this.getOnlineMcSignUpDetail();
  425. this.clear();
  426. this.interval = setInterval(this.getActtime, 60000);
  427. },
  428. fail: (err) => {
  429. console.log("getCardDetailQuery err", err)
  430. },
  431. });
  432. },
  433. // 卡片对应线上赛多个活动查询
  434. matchRsDetailQuery() {
  435. uni.request({
  436. url: apiMatchRsDetailQuery,
  437. header: {
  438. "Content-Type": "application/x-www-form-urlencoded",
  439. "token": this.token,
  440. },
  441. method: "POST",
  442. data: {
  443. ecId: this.ecId
  444. },
  445. success: (res) => {
  446. // console.log("matchRsDetailQuery", res);
  447. if (res.data.code == 0) {
  448. const data = res.data.data;
  449. const rank = JSON.stringify(data);
  450. this.dealNotice(rank);
  451. }
  452. },
  453. fail: (err) => {
  454. console.log("matchRsDetailQuery err", err)
  455. },
  456. });
  457. },
  458. // 卡片用户当前排名查询
  459. // getUserCurrentRankNumQuery() {
  460. // uni.request({
  461. // url: apiUserCurrentRankNumQuery,
  462. // header: {
  463. // "Content-Type": "application/x-www-form-urlencoded",
  464. // "token": this.token,
  465. // },
  466. // method: "POST",
  467. // data: {
  468. // ecId: this.ecId
  469. // },
  470. // success: (res) => {
  471. // // console.log("getUserCurrentRankNumQuery", res)
  472. // if (res.data.code == 0) {
  473. // const data = res.data.data;
  474. // const rankNum = data.rankNum;
  475. // this.dealNotice(rankNum);
  476. // }
  477. // },
  478. // fail: (err) => {
  479. // console.log("getUserCurrentRankNumQuery err", err)
  480. // },
  481. // });
  482. // },
  483. // 线上赛报名页面信息详情
  484. getOnlineMcSignUpDetail() {
  485. uni.request({
  486. url: apiOnlineMcSignUpDetail,
  487. header: {
  488. "Content-Type": "application/x-www-form-urlencoded",
  489. "token": this.token,
  490. },
  491. method: "POST",
  492. data: {
  493. mcId: this.mcId,
  494. },
  495. success: (res) => {
  496. console.log("getOnlineMcSignUpDetail", res);
  497. this.coiRs = res.data.data.coiRs;
  498. if (this.nickName == undefined || this.nickName == '') {
  499. this.nickName = res.data.data.name;
  500. }
  501. /* const rsNum = this.coiRs.length;
  502. this.orgList = [];
  503. for (let i = 0; i < rsNum; i++) {
  504. this.orgList[i] = {};
  505. this.orgList[i].value = this.coiRs[i].coiId;
  506. this.orgList[i].text = this.coiRs[i].coiName;
  507. this.orgList[i].teamNum = this.coiRs[i].teamNum;
  508. }
  509. // console.log("orgList", this.orgList);
  510. if (this.coiId > 0) {
  511. this.orgChange(this.coiId, false);
  512. } */
  513. },
  514. fail: (err) => {
  515. console.log("getOnlineMcSignUpDetail err", err)
  516. },
  517. });
  518. },
  519. // 线上赛报名
  520. onlineMcSignUp() {
  521. uni.request({
  522. url: apiOnlineMcSignUp,
  523. header: {
  524. "Content-Type": "application/x-www-form-urlencoded",
  525. "token": this.token,
  526. },
  527. method: "POST",
  528. data: {
  529. mcId: this.mcId,
  530. coiId: this.coiId,
  531. selectTeam: this.teamNum,
  532. nickName: this.nickName
  533. },
  534. success: (res) => {
  535. // console.log("onlineMcSignUp", res);
  536. if (checkResCode(res)) {
  537. uni.showToast({
  538. title: '比赛报名成功!',
  539. icon: 'none',
  540. duration: 3000
  541. });
  542. // uni.navigateTo({
  543. // // url: '/pages/bm/style4/rankOverview?' + this.queryString
  544. // url: '/pages/bm/style4/rankList?' + this.queryString
  545. // });
  546. const url = '/pages/bm/style4/rankList?' + this.queryString;
  547. tools.appAction(url, "uni.navigateTo");
  548. }
  549. },
  550. fail: (err) => {
  551. console.log("onlineMcSignUp err", err);
  552. uni.showToast({
  553. title: '出错了,报名失败',
  554. icon: 'none',
  555. duration: 3000
  556. });
  557. },
  558. });
  559. },
  560. btnBack() {
  561. // console.log("from:", this.from)
  562. if (this.from != '') {
  563. // window.history.back();
  564. // uni.navigateTo({
  565. // url: '/pages/bm/style4/' + this.from + '?' + this.queryString
  566. // });
  567. const url = '/pages/bm/style4/' + this.from + '?' + this.queryString;
  568. tools.appAction(url, "uni.navigateTo");
  569. } else {
  570. const url = `action://to_home/`;
  571. tools.appAction(url);
  572. }
  573. },
  574. btnInfo() {
  575. this.$refs.mypopup.popupOpen();
  576. },
  577. btnSignup() {
  578. if (!checkToken(this.token)) {
  579. return;
  580. }
  581. if (!(this.nickName.trim().length > 0)) {
  582. uni.showToast({
  583. title: `请填写${this.configParam.labelName}`,
  584. icon: 'none',
  585. duration: 2000
  586. });
  587. return;
  588. }
  589. if (!(this.coiId > 0)) {
  590. uni.showToast({
  591. title: `请选择${this.configParam.labelOrg}`,
  592. icon: 'none',
  593. duration: 2000
  594. });
  595. return;
  596. }
  597. this.nickName = this.nickName.trim();
  598. // this.coiName = tools.getSelectedText(this.orgList, this.coiId);
  599. // this.teamName = tools.getSelectedText(this.teamList, this.teamNum);
  600. this.$refs.alertDialog.open();
  601. },
  602. dialogConfirm() {
  603. this.onlineMcSignUp();
  604. },
  605. dialogClose() {},
  606. // 获取输入框中值
  607. getESelectText(data) {
  608. // console.log("getESelectText:", data);
  609. this.coiName = data;
  610. },
  611. // 获取选择选项值
  612. eSelectChange(data) {
  613. // console.log("eSelectChange:", data);
  614. },
  615. }
  616. }
  617. </script>
  618. <style scoped>
  619. .content {
  620. width: 100vw;
  621. min-height: 100vh;
  622. }
  623. .top-default {
  624. width: 100%;
  625. height: 220px;
  626. padding-top: 36px;
  627. justify-content: space-between;
  628. background-image: url('static/backgroud/top_bg_sddx.png');
  629. background-repeat: no-repeat;
  630. background-position: center;
  631. background-size: cover;
  632. }
  633. .topbar-color-default {
  634. color: #333333;
  635. }
  636. .topcontent {
  637. height: 90%;
  638. margin-bottom: 30px;
  639. }
  640. .logo {
  641. width: 80px;
  642. height: 80px;
  643. margin-top: 10px;
  644. /* background-image: url('/static/logo/sddx.png'); */
  645. background-repeat: no-repeat;
  646. background-position-x: center;
  647. background-position-y: center;
  648. background-size: contain;
  649. }
  650. .top-acttime {
  651. display: none;
  652. text-shadow: 3px 3px 0px #640008;
  653. font-family: YouSheBiaoTiHei;
  654. /* font-family: Arial, Helvetica, sans-serif; */
  655. font-weight: bold;
  656. color: #ffee0b;
  657. font-size: 26px;
  658. }
  659. .mcName {
  660. font-size: 40rpx;
  661. font-weight: 550;
  662. }
  663. .main {
  664. width: 76%;
  665. /* min-height: 800rpx; */
  666. /* margin-top: 20rpx; */
  667. /* justify-content: space-around; */
  668. flex-grow: 1;
  669. }
  670. .timebar {
  671. min-width: 68%;
  672. height: 32px;
  673. margin-top: -17px;
  674. padding: 0 15px;
  675. justify-content: center;
  676. background: #ffffff;
  677. border: 0.5px solid;
  678. border-color: #e7e7e7;
  679. border-radius: 20px;
  680. box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.13);
  681. }
  682. .acttime {
  683. font-weight: 550;
  684. color: #333333;
  685. font-size: 14px;
  686. text-wrap: nowrap;
  687. }
  688. .clock {
  689. width: 15px;
  690. height: 15px;
  691. margin-right: 10px;
  692. }
  693. .uni-input {
  694. width: 90%;
  695. height: 34px;
  696. margin-top: 15px;
  697. margin-bottom: 15px;
  698. padding: 0 13px;
  699. /* background: #f1f1f1; */
  700. border: 1px solid #dcdfe6;
  701. border-radius: 4px;
  702. font-size: 14px;
  703. }
  704. .input-placeholder {
  705. color: #333333;
  706. font-size: 16px;
  707. }
  708. .introduce {
  709. width: 100%;
  710. margin-top: 12px;
  711. margin-bottom: 10px;
  712. align-items: flex-start;
  713. justify-content: space-around;
  714. }
  715. .introduce-title {
  716. color: #333333;
  717. font-size: 15px;
  718. line-height: 30px;
  719. font-family: Source Han Sans CN;
  720. }
  721. .introduce-content {
  722. color: #333333;
  723. font-size: 14px;
  724. line-height: 23px;
  725. font-family: Source Han Sans CN;
  726. }
  727. .activityRules {
  728. width: 100%;
  729. margin-top: 5px;
  730. margin-bottom: 10px;
  731. padding: 10px 15px;
  732. align-items: flex-start;
  733. justify-content: space-around;
  734. border-radius: 9px;
  735. background: #EBEBEB;
  736. }
  737. .activityRules-title {
  738. color: #333333;
  739. font-size: 14px;
  740. line-height: 25px;
  741. font-weight: 500;
  742. font-family: Source Han Sans CN;
  743. }
  744. .activityRules-content {
  745. color: #333333;
  746. font-size: 13px;
  747. line-height: 23px;
  748. font-family: Source Han Sans CN;
  749. }
  750. .btnSignup {
  751. width: 100%;
  752. height: 100rpx;
  753. margin-top: 30rpx;
  754. margin-bottom: 30rpx;
  755. color: white;
  756. font-weight: bold;
  757. line-height: 100rpx;
  758. border-radius: 55rpx;
  759. }
  760. .btnSignup-enable {
  761. background-color: #81cd00;
  762. }
  763. .btnSignup-disable {
  764. background-color: #c3c3c3;
  765. }
  766. .dialog-content {
  767. width: 280px;
  768. height: 110px;
  769. padding: 0 20px;
  770. background: #f1f1f1;
  771. border-radius: 9px;
  772. justify-content: center;
  773. text-align: center;
  774. font-weight: 550;
  775. color: #333333;
  776. }
  777. .dialog-content-1 {
  778. font-size: 34rpx;
  779. margin-bottom: 30rpx;
  780. }
  781. .dialog-content-2 {
  782. font-size: 28rpx;
  783. margin-bottom: 10rpx;
  784. text-align: left;
  785. }
  786. </style>