signup.vue 21 KB

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