Commit b5f70ff8 by 张立顺

add log

1 parent befa27b1
......@@ -613,7 +613,7 @@ Page({
// 4s店-员工-员工数据 的请求逻辑
this.getListShop4s()
}
// console.log(this.data, 'roleOther');
console.log(this.data, 'roleOther');
},
/**
......
......@@ -9,9 +9,10 @@ function getWeekDayList(selectWeek, selectDay) {
var selectWeekTime = getCurrentTimeStamp(selectDay) + selectWeek * 7 * 24 * 60 * 60 * 1000
var mondayTime = selectWeekTime - (getWeekNumber(selectWeekTime) - 1) * 24 * 60 * 60 * 1000
// let testDate = new Date(mondayTime)
console.log(selectWeekTime, 'selectWeekTime');
// console.log(getWeekNumber(selectWeekTime), getWeekNumber(selectWeekTime) - 1, 'getWeekNumber(selectWeekTime) - 1')
// console.log(getDataFormat(selectWeekTime), 'selectWeekTime')
console.log(selectWeekTime, 'selectWeekTime');
// console.log(getDataFormat(mondayTime), 'mondayTime')
var timeBean = {
selectDay: 0,
......@@ -19,6 +20,7 @@ function getWeekDayList(selectWeek, selectDay) {
weekDayList: []
}
timeBean.yearMonth = getYearMonth(selectWeekTime)
console.log(timeBean.yearMonth, 'timeBean.yearMonth');
const yearLabel = getYearMonth(selectWeekTime, '/')
// 获取当前时间戳(以毫秒为单位)
const currentTimestamp = Date.now()
......@@ -193,6 +195,7 @@ function getWeeksDiff(startDate, endDate) {
return weeksDiff
}
function isDateWithin7Days(date) {
console.log(date, 'isDateWithin7Daysdate');
// console.log(date, 'date');
const oneDay = 24 * 60 * 60 * 1000 // 一天的毫秒数
const currentDate = new Date() // 当前日期
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!