Commit e4b4948f by 修福龙

收银台界面

parent 8063656c
...@@ -55,31 +55,31 @@ class VerticalPage extends Component { ...@@ -55,31 +55,31 @@ class VerticalPage extends Component {
return String(index); return String(index);
}; };
stepOne = async () => { // stepOne = async () => {
await this.setState({ // await this.setState({
visibleActive: true, // visibleActive: true,
}); // });
setTimeout(() => { // setTimeout(() => {
this.setState({ // this.setState({
visibleActive: false, // visibleActive: false,
}); // });
}, 3000); // }, 3000);
}; // };
//
stepTwo = () => { // stepTwo = () => {
let {visibleActive} = this.state; // let {visibleActive} = this.state;
if (visibleActive) { // if (visibleActive) {
this.setState({ // this.setState({
maskVisible: false, // maskVisible: false,
}); // });
setTimeout(() => { // setTimeout(() => {
this.setState({ // this.setState({
visibleActive: false, // visibleActive: false,
maskVisible: true, // maskVisible: true,
}); // });
}, 5000); // }, 5000);
} // }
}; // };
wxFacepay = async () => { wxFacepay = async () => {
const {goodsArr} = this.props; const {goodsArr} = this.props;
...@@ -341,15 +341,15 @@ class VerticalPage extends Component { ...@@ -341,15 +341,15 @@ class VerticalPage extends Component {
style={{backgroundColor: '#fc4000', marginRight: 50}}> style={{backgroundColor: '#fc4000', marginRight: 50}}>
<Text style={styles.btnText}>输入条码</Text> <Text style={styles.btnText}>输入条码</Text>
</Touch> </Touch>
<Touch {/*<Touch*/}
onPress={() => this.props.handleCodeless()} {/* onPress={() => this.props.handleCodeless()}*/}
style={{ {/* style={{*/}
backgroundColor: '#fc4000', {/* backgroundColor: '#fc4000',*/}
marginRight: 50, {/* marginRight: 50,*/}
marginLeft: 50, {/* marginLeft: 50,*/}
}}> {/* }}>*/}
<Text style={styles.btnText}>无码商品</Text> {/* <Text style={styles.btnText}>无码商品</Text>*/}
</Touch> {/*</Touch>*/}
<Touch <Touch
onPress={this.props.clearList} onPress={this.props.clearList}
style={{backgroundColor: '#fc4000', marginLeft: 50}}> style={{backgroundColor: '#fc4000', marginLeft: 50}}>
...@@ -372,6 +372,17 @@ class VerticalPage extends Component { ...@@ -372,6 +372,17 @@ class VerticalPage extends Component {
); );
})} })}
</View> </View>
<View style={styles.shadow} />
<Touch onPress={this.wxFacepay}>
<View style={styles.guide}>
<Text style={styles.guideText}>点击进入</Text>
<Image
source={require('../assets/down.png')}
style={styles.down}
/>
<Text style={styles.guideText}>人脸支付</Text>
</View>
</Touch>
<View style={styles.payment}> <View style={styles.payment}>
<View style={styles.paymentLeft}> <View style={styles.paymentLeft}>
<View style={styles.barcode}> <View style={styles.barcode}>
...@@ -562,9 +573,9 @@ const styles = { ...@@ -562,9 +573,9 @@ const styles = {
alignItems: 'center', alignItems: 'center',
justifyContent: 'center', justifyContent: 'center',
backgroundColor: '#fff', backgroundColor: '#fff',
paddingBottom: 20, paddingBottom: 10,
paddingTop: 20, paddingTop: 10,
marginBottom: 35, marginBottom: 17.5,
borderBottomWidth: 1, borderBottomWidth: 1,
borderBottomColor: '#959595', borderBottomColor: '#959595',
elevation: 3, elevation: 3,
...@@ -581,9 +592,9 @@ const styles = { ...@@ -581,9 +592,9 @@ const styles = {
alignItems: 'center', alignItems: 'center',
justifyContent: 'center', justifyContent: 'center',
backgroundColor: '#fff', backgroundColor: '#fff',
paddingBottom: 20, paddingBottom: 10,
paddingTop: 20, paddingTop: 10,
marginBottom: 30, marginBottom: 15,
borderBottomWidth: 1, borderBottomWidth: 1,
borderBottomColor: '#959595', borderBottomColor: '#959595',
elevation: 5, elevation: 5,
...@@ -596,7 +607,7 @@ const styles = { ...@@ -596,7 +607,7 @@ const styles = {
shadowRadius: 5, shadowRadius: 5,
}, },
btnText: { btnText: {
fontSize: 25, fontSize: 20,
color: '#fff', color: '#fff',
paddingTop: 10, paddingTop: 10,
paddingBottom: 10, paddingBottom: 10,
...@@ -616,7 +627,7 @@ const styles = { ...@@ -616,7 +627,7 @@ const styles = {
justifyContent: 'center', justifyContent: 'center',
backgroundColor: '#4D4D4D', backgroundColor: '#4D4D4D',
padding: 10, padding: 10,
marginBottom: 20, marginBottom: 10,
marginLeft: 20, marginLeft: 20,
marginRight: 20, marginRight: 20,
// borderBottomWidth: 1, // borderBottomWidth: 1,
...@@ -643,6 +654,28 @@ const styles = { ...@@ -643,6 +654,28 @@ const styles = {
marginLeft: 5, marginLeft: 5,
marginRight: 5, marginRight: 5,
}, },
shadow: {
height: 2,
elevation: 2,
border: 1,
borderColor: '#888888',
marginBottom: 4,
},
guide: {
flexDirection: 'row',
alignItems: 'center',
justifyContent: 'center',
// backgroundColor: 'rgb(27,125,199)',
backgroundColor: '#1b7dc7',
},
guideText: {
fontSize: 30,
color: '#fff',
},
down: {
width: 50,
height: 70,
},
payment: { payment: {
display: 'flex', display: 'flex',
flexDirection: 'row', flexDirection: 'row',
...@@ -650,7 +683,7 @@ const styles = { ...@@ -650,7 +683,7 @@ const styles = {
marginBottom: 10, marginBottom: 10,
}, },
paymentLeft: { paymentLeft: {
width: '40%', width: '34%',
display: 'flex', display: 'flex',
flexDirection: 'row', flexDirection: 'row',
alignContent: 'space-around', alignContent: 'space-around',
...@@ -714,25 +747,26 @@ const styles = { ...@@ -714,25 +747,26 @@ const styles = {
fontSize: 40, fontSize: 40,
}, },
faceScan: { faceScan: {
width: '20%', width: '32%',
display: 'flex', display: 'flex',
justifyContent: 'center', justifyContent: 'center',
alignItems: 'center',
flexDirection: 'column', flexDirection: 'column',
borderWidth: 1, borderWidth: 1,
borderColor: '#00BBFF', borderColor: '#00BBFF',
backgroundColor: '#fff', backgroundColor: '#fff',
elevation: 3, elevation: 3,
shadowColor: '#888888', // shadowColor: '#888888',
shadowOffset: { // shadowOffset: {
height: 0, // height: 0,
width: 0, // width: 0,
}, // },
shadowOpacity: 0.5, // shadowOpacity: 0.5,
shadowRadius: 5, // shadowRadius: 5,
}, },
faceGif: { faceGif: {
width: '100%', width: '100%',
height: 180, height: 210,
}, },
facePay: { facePay: {
display: 'flex', display: 'flex',
...@@ -749,7 +783,7 @@ const styles = { ...@@ -749,7 +783,7 @@ const styles = {
marginLeft: 10, marginLeft: 10,
}, },
paymentRight: { paymentRight: {
width: '40%', width: '34%',
display: 'flex', display: 'flex',
justifyContent: 'center', justifyContent: 'center',
// overflow: 'hidden', // overflow: 'hidden',
...@@ -777,47 +811,40 @@ const styles = { ...@@ -777,47 +811,40 @@ const styles = {
paymentRightTitle: { paymentRightTitle: {
display: 'flex', display: 'flex',
flexDirection: 'row', flexDirection: 'row',
// alignContent: 'center',
alignItems: 'center', alignItems: 'center',
justifyContent: 'center', justifyContent: 'center',
}, },
paymentRightContents: { paymentRightContents: {
display: 'flex', display: 'flex',
flexDirection: 'column', flexDirection: 'column',
// alignContent: 'center',
// alignItems: 'center',
marginRight: 40, marginRight: 40,
}, },
paymentRightText: { paymentRightText: {
fontSize: 35, fontSize: 35,
// marginRight: 5,
}, },
paymentRightImage: { paymentRightImage: {
width: 50, width: 50,
height: 50, height: 50,
marginTop: 5, marginTop: 5,
marginBottom: 5, marginBottom: 5,
// marginLeft: 5,
}, },
paymentRightCode: { paymentRightCode: {
display: 'flex', display: 'flex',
flexDirection: 'row', flexDirection: 'row',
// alignContent: 'center',
// alignItems: 'center',
}, },
firstThStyle: { firstThStyle: {
width: '40%', width: '40%',
alignItems: 'flex-start', alignItems: 'flex-start',
paddingTop: 20, paddingTop: 18,
paddingBottom: 20, paddingBottom: 18,
paddingLeft: 10, paddingLeft: 10,
paddingRight: 10, paddingRight: 10,
}, },
ThStyle: { ThStyle: {
width: '20%', width: '20%',
alignItems: 'center', alignItems: 'center',
paddingTop: 20, paddingTop: 18,
paddingBottom: 20, paddingBottom: 18,
paddingLeft: 10, paddingLeft: 10,
paddingRight: 10, paddingRight: 10,
}, },
...@@ -834,10 +861,9 @@ const styles = { ...@@ -834,10 +861,9 @@ const styles = {
}, },
firstTdStyle: { firstTdStyle: {
width: '40%', width: '40%',
// alignItems: 'center',
alignItems: 'flex-start', alignItems: 'flex-start',
paddingTop: 20, paddingTop: 18,
paddingBottom: 20, paddingBottom: 18,
paddingLeft: 10, paddingLeft: 10,
paddingRight: 10, paddingRight: 10,
}, },
...@@ -846,8 +872,8 @@ const styles = { ...@@ -846,8 +872,8 @@ const styles = {
width: '20%', width: '20%',
alignItems: 'center', alignItems: 'center',
justifyContent: 'center', justifyContent: 'center',
paddingTop: 20, paddingTop: 18,
paddingBottom: 20, paddingBottom: 18,
paddingLeft: 10, paddingLeft: 10,
paddingRight: 10, paddingRight: 10,
}, },
...@@ -861,10 +887,6 @@ const styles = { ...@@ -861,10 +887,6 @@ const styles = {
justifyContent: 'center', justifyContent: 'center',
backgroundColor: '#fc4000', backgroundColor: '#fc4000',
padding: 20, padding: 20,
// paddingTop: 20,
// paddingRight: 20,
// paddingBottom: 20,
// paddingLeft: 20,
}, },
explainText1: { explainText1: {
fontSize: 30, fontSize: 30,
......
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