schedule.vue 18 KB

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