<% var priceStockInfo = priceStockInfo && priceStockInfo.length > 0 ? priceStockInfo : []; var filterResult = _.where(priceStockInfo, {dateString: data.day.string}); var isClosed = false; if(filterResult.length > 0 && filterResult[0].scheduleStatus === "CLOSE") { isClosed = true; } else { isClosed = false; } %> class="js-calendar-day <%= data.available ? 'on' : '' %> <%= data.selected ? 'selected' : '' %> <%= curDayMM < todayMM ? 'js_day_passed' : '' %> <%= isClosed ? 'js_day_closed' : '' %>" data-alias="<%= data.alias %>" data-day="<%= data.dayIndexInWeek %>" data-date="<%= data.day.getDate() %>" data-available="<%= data.available && data.isBook ? true : false %>" data-description="<%=data.description || ''%>" <% } %> > <% if(data.isThisMonth){ %> <%= data.description ? data.description : data.day.getDate() %> <%if(curDayMM >= todayMM) { %> <% var filterResult = _.where(priceStockInfo, {dateString: data.day.string}); if(filterResult.length <=0) {%> <%} else {%>

卖价<%= filterResult[0].servicePrice %>

库存0/<%= filterResult[0].stockNum %>

<%}%> <%}%> <% } %>