Commit 2d10493b by 修福龙

收银台界面

parent ac482cf8
...@@ -173,19 +173,17 @@ class FacePage extends Component { ...@@ -173,19 +173,17 @@ class FacePage extends Component {
if (ret.code === 401) { if (ret.code === 401) {
// 需要验证手机号 // 需要验证手机号
this.setState({phoneModal: true}); this.setState({phoneModal: true});
} else { } else if (ret.orders) {
let goodsArr = []; let goodsArr = [];
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,
customerPhone: ret.phone, customerPhone: ret.phone || '0000',
current: 1, current: 1,
}); });
} }
......
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