Commit ac482cf8 by 修福龙

收银台界面

parent c6ebdb49
...@@ -8,7 +8,7 @@ import Touch from './Touch'; ...@@ -8,7 +8,7 @@ import Touch from './Touch';
import NP from '../utils/np'; import NP from '../utils/np';
import phone from '../assets/Vertical/phone.png'; import phone from '../assets/Vertical/phone.png';
let pageSize = 7; // 分页大小 let pageSize = 6; // 分页大小
const mStyles = { const mStyles = {
...ModalStyles, ...ModalStyles,
...@@ -255,6 +255,11 @@ class OrderDetailsModal extends Component { ...@@ -255,6 +255,11 @@ class OrderDetailsModal extends Component {
{NP.round(totalPrice, 2).toFixed(2)} {NP.round(totalPrice, 2).toFixed(2)}
</Text> </Text>
</View> </View>
<View style={styles.tip}>
<Text style={styles.tips}>
***请核对您的商品订单,将商品拿给买单的人***
</Text>
</View>
</View> </View>
</View> </View>
) : ( ) : (
...@@ -398,6 +403,12 @@ const styles = { ...@@ -398,6 +403,12 @@ const styles = {
justifyContent: 'center', justifyContent: 'center',
alignItems: 'center', alignItems: 'center',
}, },
tip: {
flexDirection: 'row',
justifyContent: 'center',
alignItems: 'center',
margin: 10,
},
empty: { empty: {
flexDirection: 'row', flexDirection: 'row',
margin: 10, margin: 10,
...@@ -409,7 +420,8 @@ const styles = { ...@@ -409,7 +420,8 @@ const styles = {
}, },
tips: { tips: {
fontSize: 30, fontSize: 30,
color: '#8B8989', // color: '#8B8989',
color: 'red',
}, },
goodsStyle: { goodsStyle: {
width: '100%', width: '100%',
...@@ -510,7 +522,7 @@ const styles = { ...@@ -510,7 +522,7 @@ const styles = {
}, },
realPay: { realPay: {
flexDirection: 'column', flexDirection: 'column',
height: '10%', height: '16%',
backgroundColor: '#FFF', backgroundColor: '#FFF',
marginLeft: '2%', marginLeft: '2%',
marginRight: '2%', marginRight: '2%',
...@@ -519,7 +531,7 @@ const styles = { ...@@ -519,7 +531,7 @@ const styles = {
flex: 0.2, flex: 0.2,
width: '100%', width: '100%',
// backgroundColor: '#44c571', // backgroundColor: '#44c571',
backgroundColor: 'rgb(0,205,102)', backgroundColor: 'rgb(68,197,113)',
}, },
phone: { phone: {
width: 40, width: 40,
...@@ -552,7 +564,7 @@ const styles = { ...@@ -552,7 +564,7 @@ const styles = {
flex: 0.2, flex: 0.2,
width: '100%', width: '100%',
// backgroundColor: '#44c571', // backgroundColor: '#44c571',
backgroundColor: 'rgb(0,205,102)', backgroundColor: 'rgb(68,197,113)',
flexDirection: 'row', flexDirection: 'row',
justifyContent: 'center', justifyContent: 'center',
alignItems: 'center', alignItems: 'center',
......
...@@ -175,12 +175,13 @@ class FacePage extends Component { ...@@ -175,12 +175,13 @@ class FacePage extends Component {
this.setState({phoneModal: true}); this.setState({phoneModal: true});
} else { } else {
let goodsArr = []; let goodsArr = [];
ret.orders && if (ret.orders) {
ret.orders.map(v1 => { ret.orders.map(v1 => {
v1.goods.map(v2 => { v1.goods.map(v2 => {
goodsArr.push(v2); goodsArr.push(v2);
}); });
}); });
}
this.setState({ this.setState({
orderDetailsModal: true, orderDetailsModal: true,
goodsArr, goodsArr,
......
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