dataStatisticsReport.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707
  1. <!-- 毕业教育考试数据统计报告 -->
  2. <template>
  3. <view class="dataStatisticsReport-addPage" v-if="visible" @tap="onOverlayTap">
  4. <!-- 弹窗容器 -->
  5. <view class="report-wrap" @tap.stop="stopProp">
  6. <!-- 关闭按钮 -->
  7. <!-- <view class="close-btn" @tap="handleClose">✕</view> -->
  8. <scroll-view scroll-y class="report-scroll" :style="{ height: scrollHeight + 'px' }">
  9. <view class="report-wrap-big-box">
  10. <view class="report-wrap-min-box">
  11. <!-- logo -->
  12. <view class="logo-box">
  13. <image :src="logUrl" mode="widthFix" />
  14. </view>
  15. <!-- 标题 -->
  16. <text class="title-p">实验室安全教育成绩报告</text>
  17. <!-- 用户信息 -->
  18. <view class="user-box">
  19. <view class="user-min-box">
  20. <view>
  21. <text class="label">姓名:</text>
  22. <text>{{newData.userName}}</text>
  23. </view>
  24. <view>
  25. <text class="label">学号:</text>
  26. <text>{{newData.account}}</text>
  27. </view>
  28. </view>
  29. <view class="user-min-box">
  30. <view>
  31. <text class="label">学院:</text>
  32. <text>{{newData.deptName}}</text>
  33. </view>
  34. <view>
  35. <text class="label">年级:</text>
  36. <text>{{newData.grade}}</text>
  37. </view>
  38. </view>
  39. <view class="user-min-box">
  40. <view>
  41. <text class="label">用户类型:</text>
  42. <text>{{newData.educationTypeName}}</text>
  43. </view>
  44. </view>
  45. </view>
  46. <!-- 学年学时 -->
  47. <view class="study-hours-max-big-box" v-if="newData.studyHoursList && newData.studyHoursList[0]">
  48. <view class="study-hours-title-box">
  49. <view class="title-bar"></view>
  50. <text class="title-text">学年学时完成情况</text>
  51. </view>
  52. <view class="study-hours-text-title-box">
  53. <text>学年</text>
  54. <text>完成学时</text>
  55. <text>要求学时</text>
  56. </view>
  57. <view class="study-hours-for-box" v-for="(item, index) in newData.studyHoursList" :key="index">
  58. <text>{{item.academicYear}}</text>
  59. <text>{{item.completedStudyHours}}</text>
  60. <text>{{item.studyHoursRequirement}}</text>
  61. </view>
  62. <view class="study-hours-bottom-box">
  63. <text class="sum-label">累计</text>
  64. <text class="sum-value">{{newData.totalStudyHours}} 学时</text>
  65. </view>
  66. </view>
  67. <!-- 考试通过记录 -->
  68. <view class="study-hours-max-big-box-2" v-if="newData.examPassRecords && newData.examPassRecords[0]">
  69. <view class="study-hours-title-box">
  70. <view class="title-bar"></view>
  71. <text class="title-text">考试通过记录</text>
  72. </view>
  73. <view class="study-hours-text-title-box">
  74. <text>学年</text>
  75. <text>考试类型</text>
  76. <text>成绩</text>
  77. </view>
  78. <view class="study-hours-for-box" v-for="(item, index) in newData.examPassRecords" :key="index">
  79. <text>{{item.academicYear}}</text>
  80. <text>{{item.examTypeName}}</text>
  81. <text>{{item.score}}</text>
  82. </view>
  83. </view>
  84. <!-- 描述信息 -->
  85. <text class="study-text-p">  该同学在校期间认真完成实验室安全教育各项学习任务,累计完成 <text class="bold-text">{{newData.totalStudyHours}}</text> 学时安全培训,通过全部年度安全考核,具备良好的实验室安全意识和规范操作能力,特此证明。</text>
  86. <!-- 落款 -->
  87. <view class="signature-box">
  88. <text>{{newData.issuingUnit}}</text>
  89. <text>{{newData.issuingTime}}</text>
  90. </view>
  91. </view>
  92. </view>
  93. </scroll-view>
  94. <!-- 底部操作栏 -->
  95. <view class="action-bar">
  96. <view class="btn-close" @tap="handleClose">关闭</view>
  97. <view class="btn-save" @tap="saveAsImage">保存图片</view>
  98. </view>
  99. </view>
  100. <!-- 用于截图的离屏 canvas,需要有实际尺寸才能绘制 -->
  101. <canvas canvas-id="reportCanvas" :style="{ width: canvasW + 'px', height: canvasH + 'px', position: 'fixed', left: '-9999px', top: '0' }"></canvas>
  102. </view>
  103. </template>
  104. <script>
  105. export default {
  106. name: 'dataStatisticsReport',
  107. props: {
  108. visible: {
  109. type: Boolean,
  110. default: false
  111. },
  112. dataStatisticsReportPropsData: {
  113. type: Object,
  114. default: () => ({})
  115. }
  116. },
  117. data() {
  118. return {
  119. logUrl: uni.getStorageSync('rectangleLogo'),
  120. // logUrl: 'https://gzu.zjznai.com/statics/2026/06/17/00df3205-5321-4b46-aae3-0ffe4451ee51.png',
  121. canvasW: 340,
  122. canvasH: 100,
  123. scrollHeight: Math.floor(uni.getSystemInfoSync().windowHeight * 0.85) - 100,
  124. newData: {
  125. userName: '',
  126. account: '',
  127. deptName: '',
  128. grade: '',
  129. educationTypeName: '',
  130. totalStudyHours: '',
  131. studyHoursList: [],
  132. examPassRecords: [],
  133. issuingUnit: '',
  134. issuingTime: '',
  135. },
  136. }
  137. },
  138. watch: {
  139. dataStatisticsReportPropsData: {
  140. immediate: true,
  141. handler(val) {
  142. if (val && Object.keys(val).length) {
  143. this.$set(this, 'newData', val);
  144. }
  145. }
  146. }
  147. },
  148. methods: {
  149. stopProp(e) {
  150. e.stopPropagation && e.stopPropagation();
  151. },
  152. handleClose() {
  153. this.$emit('close');
  154. },
  155. onOverlayTap() {
  156. this.$emit('close');
  157. },
  158. saveAsImage() {
  159. uni.showLoading({ title: '生成中...' });
  160. const d = this.newData;
  161. const W = 680;
  162. const lineH = 36;
  163. const pad = 48;
  164. const tableW = W - pad * 2;
  165. // 计算高度(加 buffer 防截断)
  166. const studyRows = (d.studyHoursList || []).length;
  167. const examRows = (d.examPassRecords || []).length;
  168. const descLines = 4; // 描述文字大约 4 行
  169. const H = 120
  170. + 100 + 56 // logo + 标题
  171. + 100 + 20 // 用户信息
  172. + (studyRows > 0 ? 46 + 34 + studyRows * 32 + 32 + 20 : 0) // 学年学时
  173. + (examRows > 0 ? 46 + 34 + examRows * 32 + 20 : 0) // 考试记录
  174. + descLines * lineH + 40 // 描述
  175. + 80 + 80; // 落款 + 底部
  176. // 先同步 canvas 尺寸(微信小程序 canvas 需要真实 px 尺寸)
  177. this.canvasW = W / 2;
  178. this.canvasH = H / 2;
  179. // 等 DOM 更新后再绘制
  180. this.$nextTick(() => {
  181. this._drawCanvas(W, H, pad, tableW, lineH, d, studyRows, examRows);
  182. });
  183. },
  184. _drawCanvas(W, H, pad, tableW, lineH, d, studyRows, examRows) {
  185. const ctx = uni.createCanvasContext('reportCanvas', this);
  186. // 背景
  187. ctx.setFillStyle('#fffdf5');
  188. ctx.fillRect(0, 0, W, H);
  189. // 外边框
  190. ctx.setStrokeStyle('#c9a84c');
  191. ctx.setLineWidth(1);
  192. ctx.strokeRect(2, 2, W - 4, H - 4);
  193. ctx.strokeRect(6, 6, W - 12, H - 12);
  194. let y = 40;
  195. // logo 背景块
  196. ctx.setFillStyle('#77161B');
  197. ctx.fillRect(pad, y, 578, 88);
  198. y += 88 + 16;
  199. // 标题
  200. ctx.setFontSize(20);
  201. ctx.setFillStyle('#8b452f');
  202. ctx.setTextAlign('center');
  203. ctx.fillText('实验室安全教育成绩报告', W / 2, y + 20);
  204. y += 56;
  205. // 用户信息背景
  206. ctx.setFillStyle('#faf6ec');
  207. ctx.fillRect(pad, y, tableW, 80);
  208. ctx.setStrokeStyle('#e8dcc8');
  209. ctx.strokeRect(pad, y, tableW, 80);
  210. ctx.setFontSize(14);
  211. ctx.setFillStyle('#4a3c2a');
  212. ctx.setTextAlign('left');
  213. const col1 = pad + 12;
  214. const col2 = pad + tableW / 2 + 12;
  215. ctx.fillText('姓名:' + (d.userName || ''), col1, y + 22);
  216. ctx.fillText('学号:' + (d.account || ''), col2, y + 22);
  217. ctx.fillText('学院:' + (d.deptName || ''), col1, y + 46);
  218. ctx.fillText('年级:' + (d.grade || ''), col2, y + 46);
  219. ctx.fillText('用户类型:' + (d.educationTypeName || ''), col1, y + 70);
  220. y += 80 + 20;
  221. // 学年学时表
  222. if (studyRows > 0) {
  223. // 小标题
  224. ctx.setFillStyle('#c9a84c');
  225. ctx.fillRect(pad, y, 3, 20);
  226. ctx.setFontSize(14);
  227. ctx.setFillStyle('#8b4513');
  228. ctx.setTextAlign('left');
  229. ctx.fillText('学年学时完成情况', pad + 10, y + 16);
  230. y += 26;
  231. // 表头
  232. ctx.setFillStyle('#f5edd8');
  233. ctx.fillRect(pad, y, tableW, 34);
  234. ctx.setStrokeStyle('#d4c5a0');
  235. ctx.strokeRect(pad, y, tableW, 34);
  236. ctx.setFontSize(12);
  237. ctx.setFillStyle('#5a4320');
  238. ctx.setTextAlign('center');
  239. const cw = tableW / 3;
  240. ctx.fillText('学年', pad + cw * 0.5, y + 22);
  241. ctx.fillText('完成学时', pad + cw * 1.5, y + 22);
  242. ctx.fillText('要求学时', pad + cw * 2.5, y + 22);
  243. y += 34;
  244. // 数据行
  245. for (let i = 0; i < studyRows; i++) {
  246. const row = d.studyHoursList[i];
  247. ctx.setFillStyle(i % 2 === 0 ? '#fffdf5' : '#faf6ec');
  248. ctx.fillRect(pad, y, tableW, 32);
  249. ctx.setStrokeStyle('#ebe3d0');
  250. ctx.strokeRect(pad, y, tableW, 32);
  251. ctx.setFontSize(12);
  252. ctx.setFillStyle('#4a3c2a');
  253. ctx.setTextAlign('center');
  254. ctx.fillText(String(row.academicYear || ''), pad + cw * 0.5, y + 20);
  255. ctx.fillText(String(row.completedStudyHours || ''), pad + cw * 1.5, y + 20);
  256. ctx.fillText(String(row.studyHoursRequirement || ''), pad + cw * 2.5, y + 20);
  257. y += 32;
  258. }
  259. // 累计行
  260. ctx.setFillStyle('#faf6ec');
  261. ctx.fillRect(pad, y, tableW, 32);
  262. ctx.setStrokeStyle('#ebe3d0');
  263. ctx.strokeRect(pad, y, tableW, 32);
  264. ctx.setFontSize(12);
  265. ctx.setFillStyle('#4a3c2a');
  266. ctx.setTextAlign('center');
  267. ctx.fillText('累计', pad + cw * 0.5, y + 20);
  268. ctx.fillText((d.totalStudyHours || '') + ' 学时', pad + cw * 1.5, y + 20);
  269. y += 32 + 20;
  270. }
  271. // 考试通过记录表
  272. if (examRows > 0) {
  273. ctx.setFillStyle('#c9a84c');
  274. ctx.fillRect(pad, y, 3, 20);
  275. ctx.setFontSize(14);
  276. ctx.setFillStyle('#8b4513');
  277. ctx.setTextAlign('left');
  278. ctx.fillText('考试通过记录', pad + 10, y + 16);
  279. y += 26;
  280. ctx.setFillStyle('#f5edd8');
  281. ctx.fillRect(pad, y, tableW, 34);
  282. ctx.setStrokeStyle('#d4c5a0');
  283. ctx.strokeRect(pad, y, tableW, 34);
  284. ctx.setFontSize(12);
  285. ctx.setFillStyle('#5a4320');
  286. ctx.setTextAlign('center');
  287. const cw2 = tableW / 3;
  288. ctx.fillText('学年', pad + cw2 * 0.5, y + 22);
  289. ctx.fillText('考试类型', pad + cw2 * 1.5, y + 22);
  290. ctx.fillText('成绩', pad + cw2 * 2.5, y + 22);
  291. y += 34;
  292. for (let i = 0; i < examRows; i++) {
  293. const row = d.examPassRecords[i];
  294. ctx.setFillStyle(i % 2 === 0 ? '#fffdf5' : '#faf6ec');
  295. ctx.fillRect(pad, y, tableW, 32);
  296. ctx.setStrokeStyle('#ebe3d0');
  297. ctx.strokeRect(pad, y, tableW, 32);
  298. ctx.setFontSize(12);
  299. ctx.setFillStyle('#4a3c2a');
  300. ctx.setTextAlign('center');
  301. ctx.fillText(String(row.academicYear || ''), pad + cw2 * 0.5, y + 20);
  302. ctx.fillText(String(row.examTypeName || ''), pad + cw2 * 1.5, y + 20);
  303. ctx.fillText(String(row.score || ''), pad + cw2 * 2.5, y + 20);
  304. y += 32;
  305. }
  306. y += 20;
  307. }
  308. // 描述文字
  309. ctx.setFontSize(14);
  310. ctx.setFillStyle('#4a3c2a');
  311. ctx.setTextAlign('left');
  312. const desc = ` 该同学在校期间认真完成实验室安全教育各项学习任务,累计完成 ${d.totalStudyHours || ''} 学时安全培训,通过全部年度安全考核,具备良好的实验室安全意识和规范操作能力,特此证明。`;
  313. // 简单换行处理
  314. const maxWidth = tableW;
  315. const words = desc.split('');
  316. let line = '';
  317. for (let i = 0; i < words.length; i++) {
  318. const testLine = line + words[i];
  319. const metrics = ctx.measureText(testLine);
  320. if (metrics.width > maxWidth && line !== '') {
  321. ctx.fillText(line, pad, y);
  322. y += lineH;
  323. line = words[i];
  324. } else {
  325. line = testLine;
  326. }
  327. }
  328. if (line) { ctx.fillText(line, pad, y); y += lineH; }
  329. y += 40;
  330. // 落款
  331. ctx.setFontSize(14);
  332. ctx.setFillStyle('#4a3c2a');
  333. ctx.setTextAlign('right');
  334. ctx.fillText(d.issuingUnit || '', W - pad, y);
  335. y += 28;
  336. ctx.fillText(d.issuingTime || '', W - pad, y);
  337. ctx.draw(false, () => {
  338. wx.canvasToTempFilePath({
  339. canvasId: 'reportCanvas',
  340. x: 0,
  341. y: 0,
  342. width: W,
  343. height: H,
  344. destWidth: W * 2,
  345. destHeight: H * 2,
  346. fileType: 'jpg',
  347. quality: 1,
  348. success: (res) => {
  349. uni.hideLoading();
  350. uni.saveImageToPhotosAlbum({
  351. filePath: res.tempFilePath,
  352. success: () => {
  353. uni.showToast({ title: '已保存到相册', icon: 'success' });
  354. },
  355. fail: (err) => {
  356. if (err.errMsg && err.errMsg.indexOf('auth deny') !== -1) {
  357. uni.showModal({
  358. title: '需要授权',
  359. content: '请在设置中允许访问相册',
  360. showCancel: false,
  361. });
  362. } else {
  363. uni.showToast({ title: '保存失败,请重试', icon: 'none' });
  364. }
  365. }
  366. });
  367. },
  368. fail: () => {
  369. uni.hideLoading();
  370. uni.showToast({ title: '图片生成失败', icon: 'none' });
  371. }
  372. }, this);
  373. });
  374. },
  375. }
  376. }
  377. </script>
  378. <style scoped lang="scss">
  379. .dataStatisticsReport-addPage {
  380. position: fixed;
  381. top: 0;
  382. left: 0;
  383. right: 0;
  384. bottom: 0;
  385. z-index: 999;
  386. background: rgba(0, 0, 0, 0.5);
  387. display: flex;
  388. align-items: center;
  389. justify-content: center;
  390. .report-wrap {
  391. position: relative;
  392. width: 90%;
  393. background: #fffdf5;
  394. border-radius: 8rpx;
  395. display: flex;
  396. flex-direction: column;
  397. max-height: 85vh;
  398. .close-btn {
  399. position: absolute;
  400. top: 16rpx;
  401. right: 24rpx;
  402. z-index: 10;
  403. font-size: 36rpx;
  404. color: #8b452f;
  405. line-height: 1;
  406. padding: 8rpx;
  407. }
  408. .report-scroll {
  409. flex: 1;
  410. overflow: hidden;
  411. }
  412. .report-wrap-big-box {
  413. margin: 20rpx;
  414. border: 1rpx solid #c9a84c;
  415. border-radius: 4rpx;
  416. background-color: #fffdf5;
  417. .report-wrap-min-box {
  418. display: flex;
  419. flex-direction: column;
  420. border: 1rpx solid #c9a84c;
  421. border-radius: 4rpx;
  422. margin: 1rpx;
  423. // logo
  424. .logo-box {
  425. width: 578rpx;
  426. height: 88rpx;
  427. border-radius: 6rpx;
  428. // background-color: #1a6e3a;
  429. background-color: #77161B;
  430. margin: 40rpx 0 0 24rpx;
  431. overflow: hidden;
  432. image {
  433. width: 350rpx;
  434. margin: 6rpx auto;
  435. display: block;
  436. }
  437. }
  438. // 标题
  439. .title-p {
  440. line-height: 56rpx;
  441. color: #8b452f;
  442. text-align: center;
  443. font-size: 20rpx;
  444. letter-spacing: 6rpx;
  445. display: block;
  446. }
  447. // 用户信息
  448. .user-box {
  449. width: 578rpx;
  450. background-color: #faf6ec;
  451. border: 1rpx solid #e8dcc8;
  452. margin: 9rpx 0 0 24rpx;
  453. border-radius: 4rpx;
  454. padding: 10rpx 20rpx;
  455. box-sizing: border-box;
  456. .user-min-box {
  457. display: flex;
  458. view {
  459. flex: 1;
  460. display: flex;
  461. .label {
  462. line-height: 26rpx;
  463. font-size: 14rpx;
  464. color: #4a3c2a;
  465. font-weight: 700;
  466. }
  467. text:not(.label) {
  468. line-height: 26rpx;
  469. font-size: 14rpx;
  470. color: #4a3c2a;
  471. }
  472. }
  473. }
  474. }
  475. // 学年学时列表
  476. .study-hours-max-big-box {
  477. margin: 20rpx 24rpx 0 24rpx;
  478. .study-hours-title-box {
  479. display: flex;
  480. align-items: center;
  481. .title-bar {
  482. height: 20rpx;
  483. width: 3rpx;
  484. background-color: #c9a84c;
  485. }
  486. .title-text {
  487. line-height: 20rpx;
  488. font-size: 12rpx;
  489. flex: 1;
  490. color: #8b4513;
  491. margin-left: 8rpx;
  492. font-weight: 700;
  493. }
  494. }
  495. .study-hours-text-title-box {
  496. display: flex;
  497. background-color: #f5edd8;
  498. border-bottom: 1rpx solid #d4c5a0;
  499. margin-top: 10rpx;
  500. text {
  501. line-height: 34rpx;
  502. font-size: 12rpx;
  503. color: #5a4320;
  504. flex: 1;
  505. text-align: center;
  506. font-weight: 700;
  507. }
  508. }
  509. .study-hours-for-box {
  510. display: flex;
  511. border-bottom: 1rpx solid #ebe3d0;
  512. text {
  513. line-height: 32rpx;
  514. font-size: 12rpx;
  515. color: #4a3c2a;
  516. flex: 1;
  517. text-align: center;
  518. }
  519. }
  520. .study-hours-bottom-box {
  521. display: flex;
  522. background-color: #faf6ec;
  523. border-bottom: 1rpx solid #ebe3d0;
  524. .sum-label {
  525. width: 216rpx;
  526. line-height: 32rpx;
  527. font-size: 12rpx;
  528. color: #4a3c2a;
  529. font-weight: 700;
  530. text-align: center;
  531. }
  532. .sum-value {
  533. flex: 1;
  534. line-height: 32rpx;
  535. font-size: 12rpx;
  536. color: #4a3c2a;
  537. font-weight: 700;
  538. text-align: center;
  539. }
  540. }
  541. }
  542. // 考试通过记录列表
  543. .study-hours-max-big-box-2 {
  544. margin: 20rpx 24rpx 0 24rpx;
  545. .study-hours-title-box {
  546. display: flex;
  547. align-items: center;
  548. .title-bar {
  549. height: 20rpx;
  550. width: 3rpx;
  551. background-color: #c9a84c;
  552. }
  553. .title-text {
  554. line-height: 20rpx;
  555. font-size: 12rpx;
  556. flex: 1;
  557. color: #8b4513;
  558. margin-left: 8rpx;
  559. font-weight: 700;
  560. }
  561. }
  562. .study-hours-text-title-box {
  563. display: flex;
  564. background-color: #f5edd8;
  565. border-bottom: 1rpx solid #d4c5a0;
  566. margin-top: 10rpx;
  567. text {
  568. line-height: 34rpx;
  569. font-size: 12rpx;
  570. color: #5a4320;
  571. flex: 1;
  572. text-align: center;
  573. font-weight: 700;
  574. }
  575. }
  576. .study-hours-for-box {
  577. display: flex;
  578. border-bottom: 1rpx solid #ebe3d0;
  579. text {
  580. line-height: 32rpx;
  581. font-size: 12rpx;
  582. color: #4a3c2a;
  583. flex: 1;
  584. text-align: center;
  585. }
  586. }
  587. }
  588. // 描述信息
  589. .study-text-p {
  590. margin: 25rpx 48rpx 0 48rpx;
  591. line-height: 24rpx;
  592. font-size: 14rpx;
  593. color: #4a3c2a;
  594. display: block;
  595. .bold-text {
  596. font-weight: 700;
  597. }
  598. }
  599. // 落款
  600. .signature-box {
  601. margin: 103rpx 180rpx 80rpx 48rpx;
  602. text {
  603. height: 24rpx;
  604. display: block;
  605. text-align: right;
  606. font-size: 14rpx;
  607. color: #4a3c2a;
  608. line-height: 24rpx;
  609. }
  610. }
  611. }
  612. }
  613. .action-bar {
  614. display: flex;
  615. padding: 20rpx 32rpx;
  616. border-top: 1rpx solid #e8dcc8;
  617. background: #fffdf5;
  618. border-radius: 0 0 8rpx 8rpx;
  619. gap: 24rpx;
  620. .btn-close {
  621. flex: 1;
  622. height: 80rpx;
  623. line-height: 80rpx;
  624. text-align: center;
  625. font-size: 28rpx;
  626. color: #8b4513;
  627. border: 1rpx solid #c9a84c;
  628. border-radius: 8rpx;
  629. background: #fff;
  630. }
  631. .btn-save {
  632. flex: 2;
  633. height: 80rpx;
  634. line-height: 80rpx;
  635. text-align: center;
  636. font-size: 28rpx;
  637. color: #fff;
  638. background: #8b4513;
  639. border-radius: 8rpx;
  640. }
  641. }
  642. }
  643. }
  644. </style>