Commit e1bbb0e0 by zhonghao

弹窗优化4

parent 65bc6865
......@@ -24,7 +24,6 @@ import {qrHost} from '../utils/config';
import Icons from 'react-native-vector-icons/MaterialIcons';
import AutoClick from '../utils/AutoClick';
import validity from '../utils/validity';
import {simpleDebounce} from '../utils/tools';
@connect(({admin}) => ({admin}))
class FacePage extends Component {
......@@ -192,13 +191,9 @@ class FacePage extends Component {
const {data} = await this.props.dispatch({
type: 'goods/getOrderCounter',
});
if (data.length !== 0) {
simpleDebounce(() => {
this.setState({
goodsArr: data,
});
}, 1000);
}
this.setState({
goodsArr: data,
});
} catch (error) {
Toast.show('当前网络存在异常');
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment