Commit 3477194a by 王崇仁

确认出门无码bug

parent a29dd89c
...@@ -39,6 +39,10 @@ class TipsModal extends Component { ...@@ -39,6 +39,10 @@ class TipsModal extends Component {
if (contentText === '') { if (contentText === '') {
flag = false; flag = false;
} }
let flags = true;
if (!leftText && !contentText && !rightText) {
flags = false;
}
if (faceType === 'alipay') { if (faceType === 'alipay') {
styles.header = {...styles.header, backgroundColor: '#1b7dc7'}; styles.header = {...styles.header, backgroundColor: '#1b7dc7'};
styles.left = { styles.left = {
...@@ -94,7 +98,7 @@ class TipsModal extends Component { ...@@ -94,7 +98,7 @@ class TipsModal extends Component {
{tip} {tip}
</Text> </Text>
</View> </View>
{!qrCode && ( {!qrCode && flags && (
<View style={styles.footer}> <View style={styles.footer}>
<Touch <Touch
style={flag ? styles.left : styles.lefts} style={flag ? styles.left : styles.lefts}
......
...@@ -38,7 +38,7 @@ class FacePage extends Component { ...@@ -38,7 +38,7 @@ class FacePage extends Component {
tip: '', tip: '',
tipsModal: false, tipsModal: false,
faceType: 'wxpay', faceType: 'wxpay',
sleep: true, sleep: false,
loadingModal: false, loadingModal: false,
qrCode: '', qrCode: '',
goTipsModal: false, goTipsModal: false,
...@@ -287,12 +287,14 @@ class FacePage extends Component { ...@@ -287,12 +287,14 @@ class FacePage extends Component {
setQrcode = ({action, tip, qrcode}) => { setQrcode = ({action, tip, qrcode}) => {
const state = { const state = {
qrCode: `${qrHost}/#/store-${action}-j${this.storeKey}`, qrCode: `${qrHost}/#/store-${action || 'leave'}-j${this.storeKey}`,
}; };
if (tip) { if (tip) {
state.tip = tip; state.tip = tip;
if (qrcode) state.goTipsModal = true; if (qrcode) {
else state.tipsModal = true; state.tipsModal = false;
state.goTipsModal = true;
} else state.tipsModal = true;
state.loadingModal = false; state.loadingModal = false;
} }
this.setState(state); this.setState(state);
...@@ -472,7 +474,7 @@ class FacePage extends Component { ...@@ -472,7 +474,7 @@ class FacePage extends Component {
goTips = async () => { goTips = async () => {
Speech.speak('请扫码确认'); Speech.speak('请扫码确认');
await this.setState({tipsModal: false, goTipsModal: true, type: ''}); this.setQrcode({action: this.action, tip: '请扫码开门', qrcode: true});
}; };
goToo = async () => { goToo = async () => {
......
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