Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
bh_face_counter
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
黄天晨
bh_face_counter
Commits
ac482cf8
Commit
ac482cf8
authored
Jun 30, 2020
by
修福龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
收银台界面
parent
c6ebdb49
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
6 deletions
+19
-6
OrderDetailsModal.js
src/components/OrderDetailsModal.js
+17
-5
FacePage.js
src/pages/FacePage.js
+2
-1
No files found.
src/components/OrderDetailsModal.js
View file @
ac482cf8
...
@@ -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
:
'1
0
%'
,
height
:
'1
6
%'
,
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'
,
...
...
src/pages/FacePage.js
View file @
ac482cf8
...
@@ -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
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment