schedule.vue 17 KB

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