schedule.vue 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793
  1. <template>
  2. <view class="page">
  3. <!-- 导航栏 -->
  4. <view class="nav_bar">
  5. <view class="nav_back" @click="handleBack">
  6. <uni-icons type="back" size="26" color="#333333"></uni-icons>
  7. </view>
  8. <text class="nav_title">校历安排</text>
  9. <view class="nav_right"></view>
  10. </view>
  11. <!-- 日历 -->
  12. <view class="calendar_container">
  13. <view class="calendar_header">
  14. <view class="prev_month" @click="handlePrevMonth" style="margin-right: 40rpx;">
  15. <uni-icons type="left" size="16" color="#2E64FA"></uni-icons>
  16. </view>
  17. <picker mode="date" :value="selectedDate" @change="handleDateChange">
  18. <view class="month_select">
  19. <text class="current_month">{{ currentYear }}-{{ String(currentMonth).padStart(2, '0') }}</text>
  20. </view>
  21. </picker>
  22. <view class="next_month" @click="handleNextMonth" style="margin-left: 40rpx;">
  23. <uni-icons type="right" size="16" color="#2E64FA"></uni-icons>
  24. </view>
  25. </view>
  26. <view class="calendar_weekdays">
  27. <text v-for="day in weekdays" :key="day" class="weekday">{{ day }}</text>
  28. </view>
  29. <view class="calendar_days">
  30. <view v-for="day in calendarDays" :key="day.dateStr" class="day_item" :class="{
  31. 'other-month': !day.isCurrentMonth,
  32. 'active': day.dateStr === selectedDate,
  33. 'today': day.dateStr === todayStr
  34. }" @click="handleDayClick(day)">
  35. <text class="day_num">{{ day.date }}</text>
  36. <view class="day_dot" :class="{ visible: day.hasSchedule }"></view>
  37. </view>
  38. </view>
  39. </view>
  40. <!-- 日程 -->
  41. <view class="schedule_container">
  42. <view class="schedule_header">
  43. <text class="schedule_date">{{ selectedDate }}</text>
  44. <view class="add_btn" @click="handleAddSchedule">
  45. <image src="/static/image/workspace/add.png" class="add_icon" mode="aspectFit"></image>
  46. <text>新增日程</text>
  47. </view>
  48. </view>
  49. <view v-if="currentScheduleList.length === 0" class="schedule_empty">
  50. <image src="@/static/image/bg/no_data.png" class="empty_image" mode="aspectFit"></image>
  51. <text class="empty_text">暂无日程安排</text>
  52. </view>
  53. <view v-else class="schedule_list">
  54. <view v-for="item in currentScheduleList" :key="item.id" class="schedule_item">
  55. <view class="schedule_dot"></view>
  56. <view class="schedule_text_container">
  57. <text class="schedule_text" :class="{ expanded: expandedItems[item.id] }">{{ item.title }}</text>
  58. <text
  59. v-if="item.title.length > 30"
  60. class="toggle_text"
  61. @click.stop="toggleExpand(item.id)"
  62. >{{ expandedItems[item.id] ? '收起' : '更多' }}</text>
  63. </view>
  64. <view class="schedule_actions">
  65. <text class="action_btn delete" @click="handleDelete(item.id)">删除</text>
  66. <text class="action_btn edit" @click="handleEdit(item)">编辑</text>
  67. </view>
  68. </view>
  69. </view>
  70. </view>
  71. <!-- 新增日程弹窗 -->
  72. <view v-if="showAddModal" class="modal-overlay" @click="handleCloseModal">
  73. <view class="modal-content" @click.stop>
  74. <view class="modal-header">
  75. <text class="modal-title">{{ editItem ? '编辑日程' : '新增日程' }}</text>
  76. <view class="modal-close" @click="handleCloseModal">
  77. <image src="/static/image/workspace/close.png" class="close-icon" mode="aspectFit"></image>
  78. </view>
  79. </view>
  80. <view class="modal-body">
  81. <text class="modal-date">{{ selectedDate }}日程</text>
  82. <textarea v-model="scheduleContent" class="schedule-textarea" placeholder="请输入日程内容"></textarea>
  83. </view>
  84. <view class="modal-footer">
  85. <view class="modal-btn cancel-btn" @click="handleCloseModal">
  86. <text>取消</text>
  87. </view>
  88. <view class="modal-btn confirm-btn" @click="handleConfirmSchedule">
  89. <text>确定</text>
  90. </view>
  91. </view>
  92. </view>
  93. </view>
  94. </view>
  95. </template>
  96. <script setup lang="ts">
  97. import { ref, computed, onMounted } from 'vue';
  98. import workspaceApi from '@/reqApi/workspace';
  99. interface CalendarDay {
  100. date: number;
  101. month: number;
  102. year: number;
  103. dateStr: string;
  104. isCurrentMonth: boolean;
  105. hasSchedule: boolean;
  106. }
  107. const weekdays = ['日', '一', '二', '三', '四', '五', '六'];
  108. const today = new Date();
  109. const todayStr = `${today.getFullYear()}-${String(today.getMonth() + 1).padStart(2, '0')}-${String(today.getDate()).padStart(2, '0')}`;
  110. const currentYear = ref(today.getFullYear());
  111. const currentMonth = ref(today.getMonth() + 1);
  112. const selectedDate = ref(todayStr);
  113. const calendarDays = ref<CalendarDay[]>([]);
  114. const scheduleEvents = ref<{ [key: string]: Array<{ id: string; title: string }> }>({});
  115. const isLoading = ref(false);
  116. const showAddModal = ref(false);
  117. const scheduleContent = ref('');
  118. const editItem = ref<{ id: string; title: string } | null>(null);
  119. const expandedItems = ref<{ [key: string]: boolean }>({});
  120. const toggleExpand = (id: string) => {
  121. expandedItems.value[id] = !expandedItems.value[id];
  122. };
  123. const currentScheduleList = computed(() => {
  124. return scheduleEvents.value[selectedDate.value] || [];
  125. });
  126. const generateCalendarDays = () => {
  127. const days = [];
  128. const firstDay = new Date(currentYear.value, currentMonth.value - 1, 1);
  129. const lastDay = new Date(currentYear.value, currentMonth.value, 0);
  130. const startDayOfWeek = firstDay.getDay();
  131. const totalDays = lastDay.getDate();
  132. const lastDayOfWeek = lastDay.getDay();
  133. const prevMonthLastDay = new Date(currentYear.value, currentMonth.value - 1, 0).getDate();
  134. for (let i = startDayOfWeek - 1; i >= 0; i--) {
  135. const date = prevMonthLastDay - i;
  136. const month = currentMonth.value - 1 || 12;
  137. const year = currentMonth.value === 1 ? currentYear.value - 1 : currentYear.value;
  138. const dateStr = `${year}-${String(month).padStart(2, '0')}-${String(date).padStart(2, '0')}`;
  139. days.push({
  140. date,
  141. month,
  142. year,
  143. dateStr,
  144. isCurrentMonth: false,
  145. hasSchedule: !!scheduleEvents.value[dateStr] && scheduleEvents.value[dateStr].length > 0
  146. });
  147. }
  148. for (let i = 1; i <= totalDays; i++) {
  149. const dateStr = `${currentYear.value}-${String(currentMonth.value).padStart(2, '0')}-${String(i).padStart(2, '0')}`;
  150. days.push({
  151. date: i,
  152. month: currentMonth.value,
  153. year: currentYear.value,
  154. dateStr,
  155. isCurrentMonth: true,
  156. hasSchedule: !!scheduleEvents.value[dateStr] && scheduleEvents.value[dateStr].length > 0
  157. });
  158. }
  159. if (lastDayOfWeek !== 6) {
  160. const remainingDays = 6 - lastDayOfWeek;
  161. for (let i = 1; i <= remainingDays; i++) {
  162. const month = currentMonth.value + 1 > 12 ? 1 : currentMonth.value + 1;
  163. const year = currentMonth.value === 12 ? currentYear.value + 1 : currentYear.value;
  164. const dateStr = `${year}-${String(month).padStart(2, '0')}-${String(i).padStart(2, '0')}`;
  165. days.push({
  166. date: i,
  167. month,
  168. year,
  169. dateStr,
  170. isCurrentMonth: false,
  171. hasSchedule: !!scheduleEvents.value[dateStr] && scheduleEvents.value[dateStr].length > 0
  172. });
  173. }
  174. }
  175. calendarDays.value = days;
  176. };
  177. const fetchScheduleList = async () => {
  178. const firstDay = new Date(currentYear.value, currentMonth.value - 1, 1);
  179. const lastDay = new Date(currentYear.value, currentMonth.value, 0);
  180. const startDate = `${firstDay.getFullYear()}-${String(firstDay.getMonth() + 1).padStart(2, '0')}-${String(firstDay.getDate()).padStart(2, '0')}`;
  181. const endDate = `${lastDay.getFullYear()}-${String(lastDay.getMonth() + 1).padStart(2, '0')}-${String(lastDay.getDate()).padStart(2, '0')}`;
  182. isLoading.value = true;
  183. try {
  184. const res = await workspaceApi.getSchedule({ startDate, endDate });
  185. updateScheduleEvents(res.data);
  186. } catch (error) {
  187. console.error('获取日程列表失败:', error);
  188. uni.showToast({ title: '获取日程失败,请稍后重试', icon: 'none', duration: 3000 });
  189. } finally {
  190. isLoading.value = false;
  191. }
  192. };
  193. const updateScheduleEvents = (data: { [key: string]: any[] }) => {
  194. Object.keys(scheduleEvents.value).forEach(key => {
  195. delete scheduleEvents.value[key];
  196. });
  197. Object.keys(data).forEach(dateKey => {
  198. const list = data[dateKey] || [];
  199. scheduleEvents.value[dateKey] = list.map((item: any) => ({
  200. id: String(item.id),
  201. title: item.content || ''
  202. }));
  203. });
  204. generateCalendarDays();
  205. };
  206. const handlePrevMonth = () => {
  207. if (currentMonth.value === 1) {
  208. currentMonth.value = 12;
  209. currentYear.value--;
  210. } else {
  211. currentMonth.value--;
  212. }
  213. fetchScheduleList();
  214. };
  215. const handleNextMonth = () => {
  216. if (currentMonth.value === 12) {
  217. currentMonth.value = 1;
  218. currentYear.value++;
  219. } else {
  220. currentMonth.value++;
  221. }
  222. fetchScheduleList();
  223. };
  224. const handleDayClick = (day: CalendarDay) => {
  225. selectedDate.value = day.dateStr;
  226. currentYear.value = day.year;
  227. currentMonth.value = day.month;
  228. };
  229. const handleDateChange = (e: { detail: { value: string } }) => {
  230. const date = e.detail.value;
  231. const [year, month, day] = date.split('-');
  232. currentYear.value = parseInt(year);
  233. currentMonth.value = parseInt(month);
  234. selectedDate.value = date;
  235. fetchScheduleList();
  236. };
  237. const handleBack = () => {
  238. uni.switchTab({
  239. url: '/pages/workspace/index'
  240. });
  241. };
  242. const handleAddSchedule = () => {
  243. editItem.value = null;
  244. scheduleContent.value = '';
  245. showAddModal.value = true;
  246. };
  247. const handleEdit = (item: { id: string; title: string }) => {
  248. editItem.value = item;
  249. scheduleContent.value = item.title;
  250. showAddModal.value = true;
  251. };
  252. const handleDelete = async (id: string) => {
  253. uni.showModal({
  254. title: '提示',
  255. content: '确定要删除这条日程吗?',
  256. success: async (res) => {
  257. if (res.confirm) {
  258. try {
  259. await workspaceApi.deleteSchedule(id);
  260. uni.showToast({ title: '删除成功', icon: 'success' });
  261. fetchScheduleList();
  262. } catch (error) {
  263. console.error('删除日程失败:', error);
  264. uni.showToast({ title: '删除失败,请稍后重试', icon: 'none', duration: 3000 });
  265. }
  266. }
  267. }
  268. });
  269. };
  270. const handleCloseModal = () => {
  271. showAddModal.value = false;
  272. scheduleContent.value = '';
  273. editItem.value = null;
  274. };
  275. const handleConfirmSchedule = async () => {
  276. if (!scheduleContent.value.trim()) {
  277. uni.showToast({ title: '请输入日程内容', icon: 'none' });
  278. return;
  279. }
  280. try {
  281. if (editItem.value) {
  282. await workspaceApi.saveSchedule({
  283. id: editItem.value.id,
  284. content: scheduleContent.value.trim(),
  285. scheduleDate: selectedDate.value
  286. });
  287. uni.showToast({ title: '修改成功', icon: 'success' });
  288. } else {
  289. await workspaceApi.saveSchedule({
  290. content: scheduleContent.value.trim(),
  291. scheduleDate: selectedDate.value
  292. });
  293. uni.showToast({ title: '添加成功', icon: 'success' });
  294. }
  295. handleCloseModal();
  296. fetchScheduleList();
  297. } catch (error) {
  298. console.error('保存日程失败:', error);
  299. uni.showToast({ title: '保存失败,请稍后重试', icon: 'none', duration: 3000 });
  300. }
  301. };
  302. onMounted(() => {
  303. fetchScheduleList();
  304. });
  305. </script>
  306. <style lang="scss" scoped>
  307. .page {
  308. height: 100vh;
  309. background-color: #F5F7FA;
  310. padding-bottom: env(safe-area-inset-bottom);
  311. box-sizing: border-box;
  312. }
  313. .nav_bar {
  314. background-color: #FFFFFF;
  315. display: flex;
  316. align-items: center;
  317. justify-content: space-between;
  318. padding-top: calc(24rpx + env(safe-area-inset-top));
  319. padding-bottom: 24rpx;
  320. padding-left: 24rpx;
  321. padding-right: 24rpx;
  322. .nav_back {
  323. display: flex;
  324. align-items: center;
  325. justify-content: center;
  326. width: 48rpx;
  327. height: 48rpx;
  328. }
  329. .nav_title {
  330. font-size: 32rpx;
  331. font-weight: 500;
  332. color: #333333;
  333. }
  334. .nav_right {
  335. width: 48rpx;
  336. height: 48rpx;
  337. }
  338. }
  339. .calendar_container {
  340. background-color: #FFFFFF;
  341. margin: 16rpx;
  342. border-radius: 20rpx;
  343. padding: 16rpx;
  344. .calendar_header {
  345. display: flex;
  346. align-items: center;
  347. justify-content: center;
  348. margin-bottom: 32rpx;
  349. .prev_month,
  350. .next_month {
  351. width: 40rpx;
  352. height: 40rpx;
  353. background: rgba(46, 100, 250, 0.1);
  354. border-radius: 50%;
  355. display: flex;
  356. align-items: center;
  357. justify-content: center;
  358. }
  359. .month_select {
  360. display: flex;
  361. align-items: center;
  362. gap: 8rpx;
  363. padding: 0 20rpx;
  364. }
  365. .current_month {
  366. font-weight: 500;
  367. font-size: 36rpx;
  368. color: #333333;
  369. }
  370. }
  371. .calendar_weekdays {
  372. display: flex;
  373. margin-bottom: 16rpx;
  374. .weekday {
  375. flex: 1;
  376. text-align: center;
  377. font-size: 28rpx;
  378. color: #666666;
  379. height: 40rpx;
  380. line-height: 40rpx;
  381. }
  382. }
  383. .calendar_days {
  384. display: flex;
  385. flex-wrap: wrap;
  386. gap: 24rpx 0rpx;
  387. margin-bottom: 48rpx;
  388. .day_item {
  389. width: calc(100% / 7);
  390. display: flex;
  391. flex-direction: column;
  392. align-items: center;
  393. justify-content: center;
  394. height: 80rpx;
  395. position: relative;
  396. .day_num {
  397. font-size: 28rpx;
  398. color: #333333;
  399. width: 80rpx;
  400. height: 80rpx;
  401. line-height: 80rpx;
  402. text-align: center;
  403. border-radius: 50%;
  404. border: 2rpx solid transparent;
  405. box-sizing: border-box;
  406. }
  407. .day_dot {
  408. width: 8rpx;
  409. height: 8rpx;
  410. border-radius: 50%;
  411. background-color: #2E64FA;
  412. position: absolute;
  413. bottom: 8rpx;
  414. opacity: 0;
  415. transition: opacity 0.3s;
  416. &.visible {
  417. opacity: 1;
  418. }
  419. }
  420. &.other-month .day_num {
  421. color: #C0C4CC;
  422. }
  423. &.active .day_num {
  424. background: rgba(46,100,250,0.1);
  425. border: 2rpx solid #2E64FA;
  426. color: #2E64FA;
  427. }
  428. &.today:not(.active) .day_num {
  429. border-color: #2E64FA;
  430. }
  431. }
  432. }
  433. }
  434. .schedule_container {
  435. background-color: #FFFFFF;
  436. margin: 0 16rpx 16rpx;
  437. border-radius: 16rpx;
  438. padding: 24rpx;
  439. .schedule_header {
  440. display: flex;
  441. align-items: center;
  442. justify-content: space-between;
  443. margin-bottom: 24rpx;
  444. padding-bottom: 32rpx;
  445. border-bottom: 2rpx solid #EBEEF5;
  446. .schedule_date {
  447. font-size: 36rpx;
  448. font-weight: 500;
  449. color: #333333;
  450. }
  451. .add_btn {
  452. display: flex;
  453. align-items: center;
  454. gap: 8rpx;
  455. padding: 20rpx 24rpx;
  456. background-color: #2E64FA;
  457. border-radius: 8rpx;
  458. font-size: 28rpx;
  459. color: #FFFFFF;
  460. .add_icon {
  461. width: 32rpx;
  462. height: 32rpx;
  463. }
  464. }
  465. }
  466. .schedule_empty {
  467. display: flex;
  468. flex-direction: column;
  469. align-items: center;
  470. font-size: 28rpx;
  471. color: #999999;
  472. position: relative;
  473. .empty_image {
  474. width: 400rpx;
  475. height: 400rpx;
  476. }
  477. .empty_text {
  478. position: absolute;
  479. bottom: 15%;
  480. left: 50%;
  481. transform: translate(-50%, -50%);
  482. }
  483. }
  484. .schedule_list {
  485. .schedule_item {
  486. display: flex;
  487. align-items: center;
  488. padding: 20rpx 0;
  489. border-bottom: 2rpx solid #EBEEF5;
  490. &:last-child {
  491. border-bottom: none;
  492. }
  493. .schedule_dot {
  494. width: 12rpx;
  495. height: 12rpx;
  496. background-color: #2E64FA;
  497. border-radius: 50%;
  498. margin-right: 16rpx;
  499. flex-shrink: 0;
  500. }
  501. .schedule_text_container {
  502. flex: 1;
  503. position: relative;
  504. }
  505. .schedule_text {
  506. font-size: 28rpx;
  507. color: #666666;
  508. line-height: 1.6;
  509. display: -webkit-box;
  510. -webkit-box-orient: vertical;
  511. -webkit-line-clamp: 2;
  512. overflow: hidden;
  513. text-overflow: ellipsis;
  514. &.expanded {
  515. -webkit-line-clamp: unset;
  516. overflow: visible;
  517. text-overflow: unset;
  518. }
  519. }
  520. .toggle_text {
  521. font-size: 24rpx;
  522. color: #2E64FA;
  523. position: absolute;
  524. right: 0;
  525. bottom: 0;
  526. line-height: 1.6;
  527. background-color: #FFFFFF;
  528. padding-left: 10rpx;
  529. }
  530. .schedule_actions {
  531. display: flex;
  532. gap: 24rpx;
  533. margin-left: 36rpx;
  534. .action_btn {
  535. font-size: 26rpx;
  536. &.delete {
  537. color: #F56C6C;
  538. }
  539. &.edit {
  540. color: #2E64FA;
  541. }
  542. }
  543. }
  544. }
  545. }
  546. }
  547. .modal-overlay {
  548. position: fixed;
  549. top: 0;
  550. left: 0;
  551. right: 0;
  552. bottom: 0;
  553. background-color: rgba(0, 0, 0, 0.5);
  554. display: flex;
  555. justify-content: center;
  556. align-items: center;
  557. z-index: 1000;
  558. }
  559. .modal-content {
  560. width: 702rpx;
  561. background-color: #FFFFFF;
  562. border-radius: 16rpx;
  563. overflow: hidden;
  564. .modal-header {
  565. display: flex;
  566. justify-content: space-between;
  567. align-items: center;
  568. height: 96rpx;
  569. padding: 0 40rpx;
  570. background-color: #F5F7FA;
  571. .modal-title {
  572. font-size: 32rpx;
  573. font-weight: 500;
  574. color: #303133;
  575. }
  576. .modal-close {
  577. width: 60rpx;
  578. height: 60rpx;
  579. display: flex;
  580. justify-content: center;
  581. align-items: center;
  582. }
  583. .close-icon {
  584. width: 40rpx;
  585. height: 40rpx;
  586. }
  587. }
  588. .modal-body {
  589. padding: 24rpx;
  590. .modal-date {
  591. font-size: 32rpx;
  592. color: #333333;
  593. margin-bottom: 24rpx;
  594. display: block;
  595. }
  596. .schedule-textarea {
  597. width: 100%;
  598. height: 364rpx;
  599. padding: 20rpx;
  600. border: 2rpx solid #E8E8E8;
  601. border-radius: 12rpx;
  602. font-size: 28rpx;
  603. color: #333333;
  604. box-sizing: border-box;
  605. }
  606. }
  607. .modal-footer {
  608. display: flex;
  609. justify-content: flex-end;
  610. padding: 32rpx;
  611. gap: 24rpx;
  612. border-top: 2rpx solid #EBEEF5;
  613. .modal-btn {
  614. height: 80rpx;
  615. padding: 0 48rpx;
  616. border-radius: 8rpx;
  617. display: flex;
  618. align-items: center;
  619. justify-content: center;
  620. font-size: 28rpx;
  621. &.cancel-btn {
  622. background-color: #FFFFFF;
  623. border: 2rpx solid #DCDFE6;
  624. color: #666666;
  625. }
  626. &.confirm-btn {
  627. background-color: #2E64FA;
  628. border: none;
  629. color: #FFFFFF;
  630. }
  631. }
  632. }
  633. }
  634. .month-picker-content {
  635. width: 600rpx;
  636. background-color: #FFFFFF;
  637. border-radius: 16rpx;
  638. overflow: hidden;
  639. .picker-header {
  640. display: flex;
  641. justify-content: space-between;
  642. align-items: center;
  643. height: 96rpx;
  644. padding: 0 40rpx;
  645. background-color: #F5F7FA;
  646. .picker-title {
  647. font-size: 32rpx;
  648. font-weight: 500;
  649. color: #303133;
  650. }
  651. .picker-close {
  652. width: 60rpx;
  653. height: 60rpx;
  654. display: flex;
  655. justify-content: center;
  656. align-items: center;
  657. }
  658. .close-icon {
  659. width: 40rpx;
  660. height: 40rpx;
  661. }
  662. }
  663. .picker-body {
  664. padding: 32rpx;
  665. .picker-item {
  666. display: flex;
  667. justify-content: space-between;
  668. align-items: center;
  669. height: 80rpx;
  670. padding: 0 24rpx;
  671. background-color: #F9FAFF;
  672. border-radius: 8rpx;
  673. font-size: 28rpx;
  674. color: #333333;
  675. & + & {
  676. margin-top: 24rpx;
  677. }
  678. }
  679. }
  680. .picker-footer {
  681. display: flex;
  682. justify-content: flex-end;
  683. padding: 32rpx;
  684. border-top: 2rpx solid #EBEEF5;
  685. .picker-btn {
  686. height: 80rpx;
  687. padding: 0 48rpx;
  688. border-radius: 8rpx;
  689. display: flex;
  690. align-items: center;
  691. justify-content: center;
  692. font-size: 28rpx;
  693. &.confirm-btn {
  694. background-color: #2E64FA;
  695. border: none;
  696. color: #FFFFFF;
  697. }
  698. }
  699. }
  700. }
  701. </style>