Files
supplier-dispatch-h5/node_modules/.cache/babel-loader/8c4fd898310334ec89a205184659b798b6b8138c33b8dd327554ebccde53bae8.json
2023-08-11 10:45:20 +08:00

1 line
3.2 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{"ast":null,"code":"import \"core-js/modules/es.array.push.js\";\nimport { formatDate, formatNumber } from '@/utils/common';\nexport function getAppointFun(time) {\n console.log(1111);\n getCurrentDatePicker(time);\n}\n\n// 获取当天剩余的可预约时间段(默认第一个是两小时之后可选)\nconst getCurrentDatePicker = time => {\n let obj = {};\n obj.text = formatDate(time);\n console.log('obj', obj);\n let timeArr = getDateTimeList();\n console.log(timeArr);\n};\n\n// 非当天的时间段( 从 00:00 到 2330 每半个小时为一个可选 item \nconst getDateTimeList = () => {\n let tempArr = [];\n for (let i = 0; i < 24; i++) {\n tempArr.push(formatNumber(i) + ':' + '00');\n tempArr.push(formatNumber(i) + ':' + '30');\n }\n return tempArr;\n};\n\n// 当天时间段\nconst getCurrentTimeList = () => {\n let tempArr = [];\n};\n\n//\n// module.exports = {\n// getAppointFun: getAppointFun\n// // getAppointFun,\n// // getCurrentDatePicker,\n// // getDateTimeList\n// }","map":{"version":3,"names":["formatDate","formatNumber","getAppointFun","time","console","log","getCurrentDatePicker","obj","text","timeArr","getDateTimeList","tempArr","i","push","getCurrentTimeList"],"sources":["E:/work/sino/sino-h5/src/utils/appointTime.js"],"sourcesContent":["import { formatDate, formatNumber } from '@/utils/common'\r\nexport function getAppointFun (time) {\r\n console.log(1111)\r\n getCurrentDatePicker(time)\r\n}\r\n\r\n// 获取当天剩余的可预约时间段(默认第一个是两小时之后可选)\r\nconst getCurrentDatePicker = time => {\r\n let obj = {}\r\n obj.text = formatDate(time);\r\n console.log('obj', obj)\r\n let timeArr = getDateTimeList()\r\n console.log(timeArr)\r\n}\r\n\r\n// 非当天的时间段( 从 00:00 到 2330 每半个小时为一个可选 item \r\nconst getDateTimeList = () => {\r\n let tempArr = []\r\n for(let i = 0; i < 24; i++ ) {\r\n tempArr.push(formatNumber(i) + ':' + '00')\r\n tempArr.push(formatNumber(i) + ':' + '30')\r\n }\r\n return tempArr\r\n}\r\n\r\n// 当天时间段\r\nconst getCurrentTimeList = () => {\r\n let tempArr = []\r\n\r\n}\r\n\r\n\r\n//\r\n// module.exports = {\r\n// getAppointFun: getAppointFun\r\n// // getAppointFun,\r\n// // getCurrentDatePicker,\r\n// // getDateTimeList\r\n// }\r\n"],"mappings":";AAAA,SAASA,UAAU,EAAEC,YAAY,QAAQ,gBAAgB;AACzD,OAAO,SAASC,aAAaA,CAAEC,IAAI,EAAE;EACnCC,OAAO,CAACC,GAAG,CAAC,IAAI,CAAC;EACjBC,oBAAoB,CAACH,IAAI,CAAC;AAC5B;;AAEA;AACA,MAAMG,oBAAoB,GAAGH,IAAI,IAAI;EACnC,IAAII,GAAG,GAAG,CAAC,CAAC;EACZA,GAAG,CAACC,IAAI,GAAGR,UAAU,CAACG,IAAI,CAAC;EAC3BC,OAAO,CAACC,GAAG,CAAC,KAAK,EAAEE,GAAG,CAAC;EACvB,IAAIE,OAAO,GAAGC,eAAe,CAAC,CAAC;EAC/BN,OAAO,CAACC,GAAG,CAACI,OAAO,CAAC;AACtB,CAAC;;AAED;AACA,MAAMC,eAAe,GAAGA,CAAA,KAAM;EAC5B,IAAIC,OAAO,GAAG,EAAE;EAChB,KAAI,IAAIC,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAG,EAAE,EAAEA,CAAC,EAAE,EAAG;IAC3BD,OAAO,CAACE,IAAI,CAACZ,YAAY,CAACW,CAAC,CAAC,GAAG,GAAG,GAAG,IAAI,CAAC;IAC1CD,OAAO,CAACE,IAAI,CAACZ,YAAY,CAACW,CAAC,CAAC,GAAG,GAAG,GAAG,IAAI,CAAC;EAC5C;EACA,OAAOD,OAAO;AAChB,CAAC;;AAED;AACA,MAAMG,kBAAkB,GAAGA,CAAA,KAAM;EAC/B,IAAIH,OAAO,GAAG,EAAE;AAElB,CAAC;;AAGD;AACA;AACA;AACA;AACA;AACA;AACA"},"metadata":{},"sourceType":"module","externalDependencies":[]}