Commit 65bc6865 by zhonghao

打开屏保

parent 00d89c03
......@@ -24,7 +24,7 @@ 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";
import {simpleDebounce} from '../utils/tools';
@connect(({admin}) => ({admin}))
class FacePage extends Component {
......@@ -42,7 +42,7 @@ class FacePage extends Component {
tip: '',
tipsModal: false,
faceType: 'wxpay',
// sleep: true, // 屏保模式
sleep: true, // 屏保模式
loadingModal: false,
qrCode: '',
goTipsModal: false,
......@@ -53,13 +53,9 @@ class FacePage extends Component {
phone = ''; // 监听用户输入手机
// 设备类型
sense = true; // 测试即拿刷脸设备
// sense = true; // 测试即拿刷脸设备
async componentWillMount() {
this.goodsCounterInter = setInterval(() => {
this.getOrderDetailMiniCounter();
}, 800);
this.orderDetailMiniPop(true);
this.storeKey = await AsyncStorage.getItem('KEY');
let contact = await AsyncStorage.getItem('CONTACT');
let storeName = await AsyncStorage.getItem('NAME');
......@@ -196,12 +192,12 @@ class FacePage extends Component {
const {data} = await this.props.dispatch({
type: 'goods/getOrderCounter',
});
if(data.length !== 0){
if (data.length !== 0) {
simpleDebounce(() => {
this.setState({
goodsArr: data,
});
}, 1000)
}, 1000);
}
} 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