1008010508_edit.jsp 923 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <html>
  2. <head>
  3. </head>
  4. <body>
  5. <div id="space-content">
  6. <div class="content-wrap">
  7. <van-calendar
  8. title="日历"
  9. :poppable="false"
  10. :show-confirm="false"
  11. :show-title="false"
  12. :style="{ height: '400px' }"
  13. :formatter="formatter">
  14. </van-calendar>
  15. </div>
  16. </div>
  17. </body>
  18. <script type="text/javascript">
  19. space.vue = new Vue({
  20. el: space.appContent,
  21. methods: {
  22. formatter(day) {
  23. const year = day.date.getFullYear();
  24. const month = day.date.getMonth() + 1;
  25. const date = day.date.getDate();
  26. if (month === 11) {
  27. if (date === 26) {
  28. day.topInfo = '3个日程';
  29. } else if (date === 30) {
  30. day.topInfo = '2个日程';
  31. }else if (date === 10) {
  32. day.topInfo = '过期了';
  33. }
  34. }
  35. return day;
  36. },
  37. }
  38. })
  39. </script>
  40. </html>