schedule.vue 18 KB

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