Commit 06dc9ae6 authored by baixian's avatar baixian

优化日历点评天数

parent 53d6cd7b
......@@ -18,5 +18,5 @@
</head>
<body>
<div id="root"></div>
<script type="text/javascript" src="https://cdn.img.shangjiadao.cn/qingxiao/biz/dist/main.1a6a46.js"></script></body>
<script type="text/javascript" src="https://cdn.img.shangjiadao.cn/qingxiao/biz/dist/main.0f4df0.js"></script></body>
</html>
\ No newline at end of file
import { routerRedux } from 'dva/router';
import { message, Modal } from 'antd';
import moment from 'moment';
import { delay } from 'redux-saga';
import * as uploader from '../services/uploader';
import * as thememgtajax from '../services/thememgt';
......@@ -1662,7 +1663,7 @@ export default {
});
setTimeout(loadmessage);
if (themeDetailData.code == 200 && themeDetailData.data) {
newcalendarDays = getBetweenDays(themeDetailData.data.calendar_set.start_time, themeDetailData.data.calendar_set.end_time);
newcalendarDays = getBetweenDays(moment(themeDetailData.data.calendar_set.start_time).format('YYYY-MM-DD 00:00'), moment(themeDetailData.data.calendar_set.end_time).format('YYYY-MM-DD 00:00'));
const newRestDays = [];
themeDetailData.data.calendar_set.rest_dates.split(',').forEach((ele) => {
const dayArr = ele.split('-').map((e, index) => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment