🐞 fix(售后列表):重置无法清除时间问题

This commit is contained in:
Haiyi 2022-12-19 17:33:36 +08:00
parent a880a6cc3b
commit 950e1481b5

View File

@ -231,6 +231,7 @@ const RefundPage = () => {
setStart(eq?.value?.start) setStart(eq?.value?.start)
setEnd(eq?.value?.end) setEnd(eq?.value?.end)
setShowTime(false) setShowTime(false)
console.log(eq,6666)
} }
const getOrderList = async() => { const getOrderList = async() => {
const res = await listFetchData({ const res = await listFetchData({
@ -267,9 +268,9 @@ const RefundPage = () => {
sale_end_time: '', sale_end_time: '',
})) }))
setStart(myDate.toLocaleDateString()) setStart(myDate.toLocaleDateString())
getOrderList()
setEnd('') setEnd('')
closePopup() closePopup()
// getOrderList()
} }
const handSure = () => { const handSure = () => {
pageNum.current.page = 1 pageNum.current.page = 1
@ -301,7 +302,15 @@ const RefundPage = () => {
// 监听筛选条件变化 // 监听筛选条件变化
useEffect(() => { useEffect(() => {
getOrderList() getOrderList()
}, [searchField.size, searchField.name, searchField.status]) }, [searchField.size,
searchField.name,
searchField.status,
searchField.sale_start_time,
searchField.sale_end_time,
searchField.sale_mode,
searchField.return_type,
searchField.stage
])
return ( return (
<View className={styles.refundPage}> <View className={styles.refundPage}>
<View style={{ background: '#FFFFFF', paddingLeft: '20rpx', paddingBottom: '20rpx', position: 'sticky', top: '0', zIndex: '99' }}> <View style={{ background: '#FFFFFF', paddingLeft: '20rpx', paddingBottom: '20rpx', position: 'sticky', top: '0', zIndex: '99' }}>