Commit 7a33f49d by 王崇仁

更改了支付宝刷脸的页面兼容

parent 417f9a3b
...@@ -41,12 +41,16 @@ class TipsModal extends Component { ...@@ -41,12 +41,16 @@ class TipsModal extends Component {
} }
if (faceType === 'alipay') { if (faceType === 'alipay') {
styles.header = {...styles.header, backgroundColor: '#1b7dc7'}; styles.header = {...styles.header, backgroundColor: '#1b7dc7'};
styles.right = { styles.left = {
...styles.right, ...styles.left,
backgroundColor: '#1b7dc7', backgroundColor: '#1b7dc7',
}; };
styles.call = { styles.lefts = {
...styles.call, ...styles.lefts,
backgroundColor: '#1b7dc7',
};
styles.reset = {
...styles.reset,
color: '#1b7dc7', color: '#1b7dc7',
}; };
} }
...@@ -61,7 +65,11 @@ class TipsModal extends Component { ...@@ -61,7 +65,11 @@ class TipsModal extends Component {
<View style={styles.modal}> <View style={styles.modal}>
<View style={styles.header}> <View style={styles.header}>
<Image <Image
source={require('../assets/Vertical/wxpay.png')} source={
faceType === 'wxpay'
? require('../assets/wxpay.png')
: require('../assets/Vertical/alipay01.png')
}
style={styles.image} style={styles.image}
tintColor="white" tintColor="white"
/> />
......
...@@ -655,8 +655,19 @@ class FacePage extends Component { ...@@ -655,8 +655,19 @@ class FacePage extends Component {
</Touch> </Touch>
)} )}
<View style={styles.goFoot}> <View style={styles.goFoot}>
<View style={{borderWidth: 10, borderColor: '#fff', width: 180}}> <View
<QRCode value={qrCode || `${qrHost}/#/account`} size={160} /> style={{
borderWidth: 10,
borderColor: '#fff',
width: scaleSize(220),
height: scaleSize(220),
alignItems: 'center',
justifyContent: 'center',
}}>
<QRCode
value={qrCode || `${qrHost}/#/account`}
size={scaleSize(190)}
/>
</View> </View>
<Text style={styles.goText}>扫码开门</Text> <Text style={styles.goText}>扫码开门</Text>
</View> </View>
...@@ -746,7 +757,7 @@ const styles = { ...@@ -746,7 +757,7 @@ const styles = {
flex: 0.13, flex: 0.13,
backgroundColor: 'rgb(0,205,102)', backgroundColor: 'rgb(0,205,102)',
width: '85%', width: '85%',
borderRadius: 20, borderRadius: scaleSize(20),
flexDirection: 'row', flexDirection: 'row',
alignItems: 'center', alignItems: 'center',
justifyContent: 'center', justifyContent: 'center',
...@@ -760,18 +771,18 @@ const styles = { ...@@ -760,18 +771,18 @@ const styles = {
clickText: { clickText: {
fontSize: setSpText(50), fontSize: setSpText(50),
color: '#fff', color: '#fff',
marginLeft: 10, marginLeft: setSpText(10),
}, },
wxpay: { wxpay: {
width: scaleSize(70), width: scaleSize(67),
height: scaleSize(62), height: scaleSize(61),
marginRight: scaleSize(20), marginRight: scaleSize(20),
}, },
finger: { finger: {
width: scaleSize(60), width: scaleSize(60),
height: scaleSize(80), height: scaleSize(80),
marginLeft: 100, marginLeft: scaleSize(120),
marginRight: 20, marginRight: scaleSize(20),
}, },
footer: { footer: {
flex: 0.2, flex: 0.2,
......
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