| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- <html>
- <head>
-
- </head>
- <body>
- <div id="space-content">
- <div class="content-wrap">
- <van-calendar
- title="日历"
- :poppable="false"
- :show-confirm="false"
- :show-title="false"
- :style="{ height: '400px' }"
- :formatter="formatter">
- </van-calendar>
- </div>
- </div>
- </body>
- <script type="text/javascript">
- space.vue = new Vue({
- el: space.appContent,
- methods: {
- formatter(day) {
-
- const year = day.date.getFullYear();
- const month = day.date.getMonth() + 1;
- const date = day.date.getDate();
- if (month === 11) {
- if (date === 26) {
- day.topInfo = '3个日程';
- } else if (date === 30) {
- day.topInfo = '2个日程';
- }else if (date === 10) {
- day.topInfo = '过期了';
- }
- }
- return day;
- },
- }
- })
- </script>
-
- </html>
|