|
@ -26,18 +26,6 @@ function Index() { |
|
|
|
|
|
|
|
|
const userInfo = Taro.getStorageSync('userInfo') || {}; |
|
|
const userInfo = Taro.getStorageSync('userInfo') || {}; |
|
|
|
|
|
|
|
|
const data = [ |
|
|
|
|
|
{ |
|
|
|
|
|
place: { |
|
|
|
|
|
name: '飞尚' |
|
|
|
|
|
}, |
|
|
|
|
|
user: { |
|
|
|
|
|
name: '用户1' |
|
|
|
|
|
}, |
|
|
|
|
|
time: '2022-7-1' |
|
|
|
|
|
} |
|
|
|
|
|
] |
|
|
|
|
|
|
|
|
|
|
|
function dealError(error) { |
|
|
function dealError(error) { |
|
|
Taro.showToast({ |
|
|
Taro.showToast({ |
|
|
title: error, |
|
|
title: error, |
|
@ -47,7 +35,7 @@ function Index() { |
|
|
throw new Error(error); |
|
|
throw new Error(error); |
|
|
} |
|
|
} |
|
|
useEffect(() => { |
|
|
useEffect(() => { |
|
|
request.get(getReportList(), {}, { hideErrorToast: true, hideLoading: true }).then(res => { |
|
|
request.get(getReportList(),{}, { hideErrorToast: true, hideLoading: true }).then(res => { |
|
|
if (res.statusCode == 200) { |
|
|
if (res.statusCode == 200) { |
|
|
console.log(res); |
|
|
console.log(res); |
|
|
setListData(res.data) |
|
|
setListData(res.data) |
|
|