baoMing2.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767
  1. <!--
  2. 临时页面
  3. -->
  4. <template>
  5. <view class="box">
  6. <u-navbar :autoBack="true" title="志愿报名" bgColor="rgba(255,255,255,0)" :placeholder="true" titleStyle="font-weight:bold;color:#000000"></u-navbar>
  7. <view class="ban_box">
  8. <view class="ban_item2">
  9. <image class="top_img" src="https://huli-app.wenlvti.net/app_static/WenWuGuanJia/image/bm_top.png"></image>
  10. </view>
  11. <view class="ban_item1">
  12. <image class="top_img" src="https://huli-app.wenlvti.net/app_static/WenWuGuanJia/image/dt_ban2.png"></image>
  13. </view>
  14. </view>
  15. <!-- 表单 -->
  16. <view class="example">
  17. <uni-forms style="padding: 0 20rpx 0 20rpx" label-position="top" ref="valiForm" :rules="rules" :modelValue="valiFormData">
  18. <uni-forms-item label="您的姓名" label-width="80px" required name="name">
  19. <uni-easyinput v-model="valiFormData.name" placeholder="请输入姓名" />
  20. </uni-forms-item>
  21. <uni-forms-item label="您的联系电话" label-width="100px" required name="mobile">
  22. <uni-easyinput type="number" v-model="valiFormData.mobile" placeholder="请输入联系电话" />
  23. </uni-forms-item>
  24. <uni-forms-item label="您的身份证" label-width="100px" required name="id_card">
  25. <uni-easyinput type="idcard" v-model="valiFormData.id_card" placeholder="请输入身份证号" />
  26. </uni-forms-item>
  27. <uni-forms-item label="住址" label-width="100px" required name="address">
  28. <uni-easyinput v-model="valiFormData.address" placeholder="请输入住址" />
  29. </uni-forms-item>
  30. <uni-forms-item label="单位" label-width="80px" required name="unit_name">
  31. <uni-easyinput v-model="valiFormData.unit_name" placeholder="请输入单位名称" />
  32. </uni-forms-item>
  33. <!-- <uni-forms-item label="备注" label-width="80px" required name="notesVal">
  34. <uni-easyinput v-model="valiFormData.notesVal" placeholder="请输入申请类型(个人、家庭、机构)" />
  35. </uni-forms-item> -->
  36. <uni-forms-item label="相关特长" label-width="80px" required name="intro">
  37. <uni-easyinput type="textarea" v-model="valiFormData.intro" placeholder="请输入相关特长或个人介绍(可上传个人优秀证明、奖项)" />
  38. <view @click="chooseFile" class="scfj">
  39. <view>上传文件</view>
  40. <view>
  41. <uni-icons type="wallet" size="18"></uni-icons>
  42. </view>
  43. </view>
  44. </uni-forms-item>
  45. <!-- 政治面貌 -->
  46. <uni-forms-item label="政治面貌" label-width="100px" required name="political_status">
  47. <uni-data-select v-model="valiFormData.political_status" :localdata="politicalStatusList" placeholder="请选择政治面貌" />
  48. </uni-forms-item>
  49. <!-- 联系邮箱 -->
  50. <uni-forms-item label="联系邮箱" label-width="100px" name="email">
  51. <uni-easyinput type="email" v-model="valiFormData.email" placeholder="请输入联系邮箱" />
  52. </uni-forms-item>
  53. <uni-forms-item label="您的选择" label-width="100px" required v-if="valiFormData.type === 'volunteer'">
  54. <uni-data-picker v-model="region_id" :localdata="regionList" placeholder="请选择地区" popup-title="请选择所在地区" @change="onchange" @nodeclick="onnodeclick"></uni-data-picker>
  55. </uni-forms-item>
  56. <!-- 本人承诺 -->
  57. <uni-forms-item label="本人承诺" label-width="100px" required name="commitment" >
  58. <view class="commitment-text">
  59. 本人保证以上所填信息真实、有效,如有虚假,由此产生的一切后果由本人承担。
  60. </view>
  61. <view style="background-color: #fdfaf6;">
  62. <uni-data-checkbox v-model="valiFormData.commitment" :localdata="[
  63. {value: 1, text: '我已阅读并同意以上承诺'},
  64. {value: 0, text: '不同意'}
  65. ]" />
  66. </view>
  67. </uni-forms-item>
  68. </uni-forms>
  69. </view>
  70. <view class="text-wrapper_3" @click="submit('valiForm')">
  71. <view class="bm_tit">报名</view>
  72. </view>
  73. <!-- 对话框 -->
  74. <uni-popup ref="popup" type="center">
  75. <view class="modal-container">
  76. <text class="modal-title">{{ modalTitle }}</text>
  77. <view class="modal-content">
  78. <u-parse :content="modalContent"></u-parse>
  79. </view>
  80. <view class="modal-footer">
  81. <view class="modal-btn" @click="$refs.popup.close()">关闭</view>
  82. </view>
  83. </view>
  84. </uni-popup>
  85. </view>
  86. </template>
  87. <script>
  88. import { mapGetters } from 'vuex';
  89. let that;
  90. export default {
  91. data() {
  92. return {
  93. regionList: [],
  94. region_id: null,
  95. pendingRegionId: '',
  96. pendingRegionName: '',
  97. cr_id: '' /* 文物id */,
  98. modifyId: '' /* 修改资料的文物id */,
  99. volunteer_id: '' /* 志愿者id */,
  100. // 对话框相关变量
  101. showModal: false,
  102. modalContent: '' /* 对话框富文本内容 */,
  103. modalTitle: '' /* 对话框标题 */,
  104. // 性别列表
  105. genderList: [
  106. { value: '男', text: '男' },
  107. { value: '女', text: '女' }
  108. ],
  109. // 政治面貌列表
  110. politicalStatusList: [
  111. { value: '中共党员', text: '中共党员' },
  112. { value: '中共预备党员', text: '中共预备党员' },
  113. { value: '共青团员', text: '共青团员' },
  114. { value: '民主党派', text: '民主党派' },
  115. { value: '群众', text: '群众' }
  116. ],
  117. typeOptions: [
  118. { value: 'volunteer', text: '巡查守护' },
  119. { value: 'xuanjiang', text: '宣讲' },
  120. { value: 'publicize', text: '传播' }
  121. ],
  122. /* 表单数据 */
  123. valiFormData: {
  124. name: '',
  125. mobile: '',
  126. address: '',
  127. id_card: '',
  128. unit_name: '',
  129. fullurl: '',
  130. intro: '',
  131. political_status: '',
  132. email: '',
  133. type: '',
  134. },
  135. /* 校验规则 */
  136. rules: {
  137. // 对name字段进行必填验证
  138. name: {
  139. // name 字段的校验规则
  140. rules: [
  141. // 校验 name 不能为空
  142. {
  143. required: true,
  144. errorMessage: '请输入姓名'
  145. },
  146. // 对name字段进行长度验证
  147. {
  148. minLength: 1,
  149. maxLength: 6,
  150. errorMessage: '{label}长度在 {minLength} 到 {maxLength} 个字符'
  151. }
  152. ],
  153. // 当前表单域的字段中文名,可不输入
  154. label: '姓名',
  155. validateTrigger: 'submit'
  156. },
  157. /* 手机号校验 */
  158. mobile: {
  159. // mobile 字段的校验规则
  160. rules: [
  161. // 校验 mobile 不能为空
  162. {
  163. required: true,
  164. errorMessage: '请输入联系电话'
  165. },
  166. // 对mobile字段进行长度验证
  167. {
  168. minLength: 11,
  169. maxLength: 11,
  170. errorMessage: '{label}长度为 {minLength} 个字符'
  171. }
  172. ],
  173. // 当前表单域的字段中文名,可不输入
  174. label: '手机号',
  175. validateTrigger: 'submit'
  176. },
  177. /* 身份证校验 */
  178. id_card: {
  179. // idCard 字段的校验规则
  180. rules: [
  181. // 校验 idCard 不能为空
  182. {
  183. required: true,
  184. errorMessage: '请输入身份证号'
  185. }
  186. // 对idCard字段进行长度验证
  187. // {
  188. // minLength: 18,
  189. // maxLength: 18,
  190. // errorMessage: '{label}长度为 {minLength} 个字符'
  191. // }
  192. ],
  193. // 当前表单域的字段中文名,可不输入
  194. label: '身份证号',
  195. validateTrigger: 'submit'
  196. },
  197. /* 单位 */
  198. unit_name: {
  199. rules: [
  200. // 校验 unit 不能为空
  201. {
  202. required: true,
  203. errorMessage: '请输入单位名称'
  204. }
  205. ]
  206. },
  207. address: {
  208. rules: [
  209. // 校验 住址 不能为空
  210. {
  211. required: true,
  212. errorMessage: '请输入单位名称'
  213. }
  214. ]
  215. },
  216. // notesVal: {
  217. // rules: [
  218. // // 校验 申请类型 不能为空
  219. // {
  220. // required: true,
  221. // errorMessage: '请输入申请类型'
  222. // }
  223. // ]
  224. // },
  225. intro: {
  226. rules: [
  227. {
  228. required: true,
  229. errorMessage: '请输入认领原因或个人介绍'
  230. }
  231. ]
  232. },
  233. // 政治面貌校验
  234. political_status: {
  235. rules: [
  236. {
  237. required: true,
  238. errorMessage: '请选择政治面貌'
  239. }
  240. ],
  241. label: '政治面貌',
  242. validateTrigger: 'submit'
  243. },
  244. // 联系邮箱校验
  245. email: {
  246. rules: [
  247. {
  248. required: false,
  249. errorMessage: '请输入联系邮箱'
  250. },
  251. {
  252. pattern: /^[a-zA-Z0-9_.-]+@[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)*\.[a-zA-Z0-9]{2,6}$/,
  253. errorMessage: '请输入正确的邮箱格式'
  254. }
  255. ],
  256. label: '联系邮箱',
  257. validateTrigger: 'submit'
  258. },
  259. // 本人承诺校验
  260. commitment: {
  261. rules: [
  262. {
  263. required: true,
  264. errorMessage: '请阅读并同意本人承诺'
  265. },
  266. {
  267. type: 'boolean',
  268. enum: [true],
  269. errorMessage: '请阅读并同意本人承诺'
  270. }
  271. ],
  272. label: '本人承诺',
  273. validateTrigger: 'submit'
  274. }
  275. }
  276. };
  277. },
  278. onLoad(o) {
  279. that = this;
  280. this.user = this.$common.userInfo();
  281. this.cr_id = o.id;
  282. this.volunteer_id = o.volunteer_id;
  283. this.modifyId = o.modifyId;
  284. this.pendingRegionId = o.region_id ? decodeURIComponent(o.region_id) : '';
  285. this.pendingRegionName = o.regionName ? decodeURIComponent(o.regionName) : '';
  286. if (o.type && this.typeOptions.some((item) => item.value === o.type)) {
  287. this.valiFormData.type = o.type;
  288. }
  289. this.getCategoryCascadeList();
  290. if (this.isLogin) {
  291. setTimeout(() => {
  292. // 调用API获取对话框内容并显示
  293. this.$api.getVolunteerNotify({}, function (res) {
  294. if (res.data.status === 1) {
  295. that.modalContent = res.data.introduce;
  296. that.modalTitle = res.data.title;
  297. that.$refs.popup.open();
  298. }
  299. });
  300. }, 200);
  301. }
  302. },
  303. computed: {
  304. ...mapGetters(['isLogin'])
  305. },
  306. methods: {
  307. onchange(e) {
  308. const value = e.detail.value;
  309. },
  310. onnodeclick(node) {
  311. this.region_id = node.value;
  312. console.log(node);
  313. },
  314. getRegionValue(item = {}) {
  315. if (item.value !== undefined && item.value !== null && item.value !== '') {
  316. return item.value;
  317. }
  318. if (item.id !== undefined && item.id !== null && item.id !== '') {
  319. return item.id;
  320. }
  321. return '';
  322. },
  323. getRegionText(item = {}) {
  324. return item.text || item.title || item.label || item.name || '';
  325. },
  326. findRegionById(list = [], regionId = '') {
  327. for (let index = 0; index < list.length; index++) {
  328. const item = list[index];
  329. if (String(this.getRegionValue(item)) === String(regionId)) {
  330. return item;
  331. }
  332. if (Array.isArray(item.children) && item.children.length) {
  333. const matchedChild = this.findRegionById(item.children, regionId);
  334. if (matchedChild) {
  335. return matchedChild;
  336. }
  337. }
  338. }
  339. return null;
  340. },
  341. findRegionByName(list = [], regionName = '') {
  342. for (let index = 0; index < list.length; index++) {
  343. const item = list[index];
  344. if (this.getRegionText(item) === regionName) {
  345. return item;
  346. }
  347. if (Array.isArray(item.children) && item.children.length) {
  348. const matchedChild = this.findRegionByName(item.children, regionName);
  349. if (matchedChild) {
  350. return matchedChild;
  351. }
  352. }
  353. }
  354. return null;
  355. },
  356. applyPendingRegion() {
  357. if (!Array.isArray(this.regionList) || !this.regionList.length) {
  358. return;
  359. }
  360. let matchedRegion = null;
  361. if (this.pendingRegionId !== '' && this.pendingRegionId !== null && this.pendingRegionId !== undefined) {
  362. matchedRegion = this.findRegionById(this.regionList, this.pendingRegionId);
  363. }
  364. if (!matchedRegion && this.pendingRegionName) {
  365. matchedRegion = this.findRegionByName(this.regionList, this.pendingRegionName);
  366. }
  367. if (matchedRegion) {
  368. this.region_id = this.getRegionValue(matchedRegion);
  369. }
  370. },
  371. // 区域
  372. getCategoryCascadeList() {
  373. this.$api.getCategoryCascadeList({ main_body_id: 1, pid: 5, level: 2 }, function (res) {
  374. that.regionList = res.data;
  375. that.applyPendingRegion();
  376. });
  377. },
  378. // 测试上传文件
  379. chooseFile() {
  380. let userToken = '';
  381. let auth = this.$db.get('auth');
  382. userToken = auth.token;
  383. wx.chooseMessageFile({
  384. count: 1,
  385. type: 'file', // 修改为支持的文档类型
  386. // 配置后导致读取不到聊天文件
  387. // extension: ['.doc', '.xlsx', '.docx', '.ppt'],
  388. success(res) {
  389. const tempFilePaths = res.tempFiles;
  390. uni.uploadFile({
  391. url: that.$config.baseUrl + 'api/common/upload?token=' + userToken,
  392. filePath: tempFilePaths[0].path,
  393. name: 'file',
  394. header: {
  395. 'content-type': 'multipart/form-data' // 根据实际情况设置请求头
  396. },
  397. formData: {}, // 如果需要,添加额外的form数据
  398. success: (res) => {
  399. console.log('上传成功,服务器响应数据:', res.data);
  400. let url = JSON.parse(res.data);
  401. that.valiFormData.fullurl = url.data.fullurl;
  402. // console.log('生成的链接', that.valiFormData.fullurl);
  403. that.$common.errorToShow('上传成功');
  404. },
  405. fail: (err) => {
  406. console.error('文件上传失败:', err);
  407. }
  408. });
  409. }
  410. });
  411. },
  412. submit() {
  413. this.$refs.valiForm.validate(['id'], async (err, valiFormData) => {
  414. console.log('this.valiFormData.commitment', this.valiFormData.commitment);
  415. if (this.valiFormData.commitment !== 1) {
  416. that.$common.errorToShow('请先阅读并同意本人承诺');
  417. return;
  418. }
  419. if (!this.valiFormData.type) {
  420. that.$common.errorToShow('缺少报名类型,请从对应入口重新进入');
  421. return;
  422. }
  423. if (!err) {
  424. console.log('校验成功');
  425. /* 检验成功 */
  426. const {
  427. name, mobile, address, id_card,
  428. political_status,
  429. unit_name, intro, fullurl,
  430. email,
  431. } = this.valiFormData;
  432. const params = {
  433. main_body_id: 1,
  434. name: name,
  435. mobile: mobile,
  436. address: address,
  437. unit_name: unit_name,
  438. id_card: id_card,
  439. intro: intro,
  440. file: fullurl,
  441. politics_status: political_status,
  442. email: email,
  443. type: this.valiFormData.type,
  444. region_id: this.region_id,
  445. };
  446. if (this.cr_id) {
  447. params.cr_id = this.cr_id;
  448. }
  449. this.$api.scanApplyVolunteer(
  450. params,
  451. function (res) {
  452. if (res.code === 1) {
  453. that.$common.errorToShow(res.msg);
  454. setTimeout(() => {
  455. uni.switchTab({
  456. url: '/pages/shouhu/shouhu'
  457. });
  458. }, 1000);
  459. } else {
  460. if (res.data) {
  461. setTimeout(() => {
  462. uni.switchTab({
  463. url: '/pages/shouhu/shouhu'
  464. });
  465. }, 1000);
  466. }
  467. that.$common.errorToShow(res.msg);
  468. }
  469. }
  470. );
  471. } else {
  472. that.$common.errorToShow('请完善信息');
  473. }
  474. });
  475. },
  476. }
  477. };
  478. </script>
  479. <style>
  480. .box {
  481. width: 100%;
  482. padding-bottom: 50rpx;
  483. background-image: url('https://huli-app.wenlvti.net/app_static/WenWuGuanJia/image/xy_bgt.png');
  484. background-size: 100% 100%;
  485. background-repeat: repeat-y;
  486. height: auto;
  487. }
  488. .ban_box {
  489. position: relative;
  490. margin-top: 40rpx;
  491. }
  492. .top_img {
  493. width: 100%;
  494. height: 100%;
  495. }
  496. .ban_item1 {
  497. position: absolute;
  498. top: -20rpx;
  499. left: 233rpx;
  500. width: 290rpx;
  501. height: 290rpx;
  502. margin: auto;
  503. }
  504. .ban_item2 {
  505. width: 250rpx;
  506. height: 250rpx;
  507. margin: auto;
  508. }
  509. ::v-deep .uni-forms-item__error {
  510. color: red !important;
  511. }
  512. ::v-deep .uni-stat__select {
  513. padding: 0!important;
  514. }
  515. .is-input-border {
  516. background-color: #f7dfc0 !important;
  517. }
  518. .uni-forms-item__label {
  519. color: #000000 !important;
  520. }
  521. .text-wrapper_3 {
  522. margin: auto;
  523. margin-top: 50rpx;
  524. height: 80rpx;
  525. flex-direction: column;
  526. width: 240rpx;
  527. background: url('/static/img/dt_bg2.png') no-repeat;
  528. background-size: 100% 100%;
  529. }
  530. .bm_tit {
  531. text-align: center;
  532. font-size: 36rpx;
  533. line-height: 80rpx;
  534. letter-spacing: 6rpx;
  535. text-align: center;
  536. font-weight: 700;
  537. background: linear-gradient(180deg, #af7e44 0%, #934b36 100%);
  538. background-clip: text;
  539. -webkit-background-clip: text;
  540. -webkit-text-fill-color: transparent;
  541. }
  542. .example {
  543. height: 87%;
  544. margin: 20rpx 32rpx 0 32rpx;
  545. }
  546. .uni-forms {
  547. padding: 0 20rpx 0 20rpx;
  548. }
  549. .uni-forms-item {
  550. margin-bottom: 30rpx !important;
  551. }
  552. .active {
  553. border: 6rpx solid #efb57a;
  554. border-radius: 10rpx;
  555. }
  556. .img {
  557. width: 230rpx;
  558. height: 250rpx;
  559. border: 6rpx solid #efb57a;
  560. border-radius: 10rpx;
  561. }
  562. .map_tit {
  563. display: flex;
  564. align-items: center;
  565. margin-left: 60rpx;
  566. margin-top: 40rpx;
  567. font-size: 40rpx;
  568. font-family: Songti SC, Songti SC;
  569. font-weight: 900;
  570. line-height: 52rpx;
  571. color: #444444;
  572. }
  573. .scarch_box {
  574. width: 430rpx;
  575. height: 82rpx;
  576. padding: 15rpx 0 0 30rpx;
  577. /* background-image: url('/static/img/search_bg1.png');
  578. background-size: 100% 100%; */
  579. }
  580. .rl_box {
  581. width: 90%;
  582. margin: auto;
  583. margin-top: 40rpx;
  584. display: flex;
  585. justify-content: space-between;
  586. }
  587. .rl_item {
  588. width: 188rpx;
  589. height: 102rpx;
  590. background-image: url('/static/img/rl_bg.png');
  591. background-size: 100% 100%;
  592. }
  593. .tit {
  594. text-align: center;
  595. line-height: 102rpx;
  596. font-weight: 700;
  597. font-size: 36rpx;
  598. letter-spacing: 6rpx;
  599. background: linear-gradient(180deg, #af7e44 0%, #934b36 100%);
  600. background-clip: text;
  601. -webkit-background-clip: text;
  602. -webkit-text-fill-color: transparent;
  603. }
  604. .scfj {
  605. width: 170rpx;
  606. height: 50rpc;
  607. line-height: 50rpx;
  608. align-items: center;
  609. display: flex;
  610. background-color: #f7dfc0;
  611. position: absolute;
  612. top: -60rpx;
  613. right: 2rpx;
  614. border-radius: 5rpx;
  615. justify-content: space-around;
  616. }
  617. .tit2 {
  618. text-align: center;
  619. line-height: 66rpx;
  620. font-weight: 700;
  621. font-size: 32rpx;
  622. letter-spacing: 6rpx;
  623. background: linear-gradient(180deg, #af7e44 0%, #934b36 100%);
  624. background-clip: text;
  625. -webkit-background-clip: text;
  626. -webkit-text-fill-color: transparent;
  627. }
  628. .is-input-error-border {
  629. border: none !important;
  630. }
  631. .xx_box {
  632. padding: 20rpx;
  633. background-color: #e1bf9a;
  634. width: 660rpx;
  635. height: 560rpx;
  636. padding-top: 80rpx;
  637. }
  638. .xx_tit {
  639. height: 360rpx;
  640. font-size: 30rpx;
  641. padding: 20rpx;
  642. text-indent: 2em;
  643. background-color: #f3e3d3;
  644. overflow: scroll;
  645. }
  646. /* 性别选择样式 */
  647. .gender-select {
  648. display: flex;
  649. align-items: center;
  650. }
  651. /* 政治面貌选择样式 */
  652. .political-status-select {
  653. width: 100%;
  654. }
  655. /* 报名选项多选框样式 */
  656. .checkbox-group {
  657. display: flex;
  658. flex-direction: column;
  659. gap: 20rpx;
  660. }
  661. .checkbox-item {
  662. display: flex;
  663. align-items: center;
  664. gap: 10rpx;
  665. }
  666. .checkbox-item text {
  667. font-size: 32rpx;
  668. color: #333;
  669. }
  670. /* 本人承诺样式 */
  671. .commitment-text {
  672. font-size: 28rpx;
  673. color: #666;
  674. line-height: 44rpx;
  675. padding-bottom: 20rpx;
  676. text-indent: 2em;
  677. background-color: #fdfaf6;
  678. }
  679. .commitment-agree {
  680. font-size: 30rpx;
  681. color: #333;
  682. margin-left: 10rpx;
  683. }
  684. /* 对话框样式 */
  685. .modal-container {
  686. width: 80%;
  687. background-color: #ffffff;
  688. border-radius: 12rpx;
  689. overflow: hidden;
  690. margin-left: 10%;
  691. }
  692. .modal-title {
  693. display: block;
  694. font-size: 36rpx;
  695. font-weight: 700;
  696. color: #444444;
  697. text-align: center;
  698. padding: 20rpx 0;
  699. }
  700. .modal-content {
  701. padding: 30rpx;
  702. max-height: 500rpx;
  703. overflow-y: auto;
  704. }
  705. .modal-footer {
  706. padding: 20rpx;
  707. text-align: center;
  708. border-top: 1rpx solid #e5e5e5;
  709. }
  710. .modal-btn {
  711. width: 200rpx;
  712. height: 70rpx;
  713. line-height: 70rpx;
  714. background-color: #af7e44;
  715. color: #ffffff;
  716. border-radius: 35rpx;
  717. text-align: center;
  718. margin: 0 auto;
  719. font-size: 30rpx;
  720. font-weight: 500;
  721. }
  722. </style>