Commit e1bbb0e0 by zhonghao

弹窗优化4

parent 65bc6865
...@@ -24,7 +24,6 @@ import {qrHost} from '../utils/config'; ...@@ -24,7 +24,6 @@ import {qrHost} from '../utils/config';
import Icons from 'react-native-vector-icons/MaterialIcons'; import Icons from 'react-native-vector-icons/MaterialIcons';
import AutoClick from '../utils/AutoClick'; import AutoClick from '../utils/AutoClick';
import validity from '../utils/validity'; import validity from '../utils/validity';
import {simpleDebounce} from '../utils/tools';
@connect(({admin}) => ({admin})) @connect(({admin}) => ({admin}))
class FacePage extends Component { class FacePage extends Component {
...@@ -192,13 +191,9 @@ class FacePage extends Component { ...@@ -192,13 +191,9 @@ class FacePage extends Component {
const {data} = await this.props.dispatch({ const {data} = await this.props.dispatch({
type: 'goods/getOrderCounter', type: 'goods/getOrderCounter',
}); });
if (data.length !== 0) { this.setState({
simpleDebounce(() => { goodsArr: data,
this.setState({ });
goodsArr: data,
});
}, 1000);
}
} catch (error) { } catch (error) {
Toast.show('当前网络存在异常'); 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