Commit d21d666c by zhonghao

弹窗优化

parent e55b53d9
...@@ -41,8 +41,7 @@ class FacePage extends Component { ...@@ -41,8 +41,7 @@ class FacePage extends Component {
tip: '', tip: '',
tipsModal: false, tipsModal: false,
faceType: 'wxpay', faceType: 'wxpay',
// 屏保模式 sleep: true, // 屏保模式
sleep: true,
loadingModal: false, loadingModal: false,
qrCode: '', qrCode: '',
goTipsModal: false, goTipsModal: false,
...@@ -229,7 +228,9 @@ class FacePage extends Component { ...@@ -229,7 +228,9 @@ class FacePage extends Component {
console.log(e); console.log(e);
} }
}; };
/**
* 按下按钮开门
*/
doorOpen = ({action, sense}) => { doorOpen = ({action, sense}) => {
if (action) this.action = action; if (action) this.action = action;
if (!this.sense && sense) this.sense = sense; if (!this.sense && sense) this.sense = sense;
...@@ -744,7 +745,7 @@ class FacePage extends Component { ...@@ -744,7 +745,7 @@ class FacePage extends Component {
styles.footer = {...styles.footer, backgroundColor: '#1b7dc7'}; styles.footer = {...styles.footer, backgroundColor: '#1b7dc7'};
styles.onCall = {...styles.onCall, backgroundColor: '#1b7dc7'}; styles.onCall = {...styles.onCall, backgroundColor: '#1b7dc7'};
} }
return sleep ? ( return sleep && !orderDetailMini ? (
<Screensaver onPress={this.wakeUp} /> <Screensaver onPress={this.wakeUp} />
) : ( ) : (
<View style={styles.content}> <View style={styles.content}>
......
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