✨ feat:售后模块100%

This commit is contained in:
Haiyi
2022-09-22 15:11:16 +08:00
parent ed77fdda0b
commit d2a1441810
15 changed files with 585 additions and 27 deletions
+6
View File
@@ -21,11 +21,17 @@ export default memo((props: Props) => {
const handTime = (e) => {
const { start, end } = e.value
// 如果选的是同一天的日期, end 自动加一天
if (!end) {
//判断如果没选下一天的时候
e.value.end = `${dayjs(new Date(start)).add(1, 'day').format('YYYY-MM-DD')} 00:00:00`
}
if (start === end) {
e.value.end = `${dayjs(new Date(start)).add(1, 'day').format('YYYY-MM-DD')} 00:00:00`
}
setTime(e)
}
return (
<Popup title={'选择时间'} show={showTime} onClose={() => closePopup?.()}>
<View className='time-box'>