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
4997068c
Commit
4997068c
authored
Jul 28, 2020
by
修福龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
收银台界面袋子可分为两行
parent
4ce9a942
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
VerticalPage.js
src/pages/VerticalPage.js
+8
-6
No files found.
src/pages/VerticalPage.js
View file @
4997068c
...
@@ -367,7 +367,7 @@ class VerticalPage extends Component {
...
@@ -367,7 +367,7 @@ class VerticalPage extends Component {
let
{
contact
}
=
this
.
state
;
let
{
contact
}
=
this
.
state
;
pageSize
=
pageSize
=
goods
&&
goods
.
bags
.
length
>
0
goods
&&
goods
.
bags
.
length
>
0
?
goods
&&
goods
.
bags
.
length
>
6
?
goods
&&
goods
.
bags
.
length
>
3
?
6
?
6
:
7
:
7
:
pageSize
;
:
pageSize
;
...
@@ -375,7 +375,9 @@ class VerticalPage extends Component {
...
@@ -375,7 +375,9 @@ class VerticalPage extends Component {
if
(
goods
&&
goods
.
bags
)
{
if
(
goods
&&
goods
.
bags
)
{
let
num
=
Math
.
ceil
(
goods
.
bags
.
length
/
3
);
let
num
=
Math
.
ceil
(
goods
.
bags
.
length
/
3
);
for
(
let
i
=
0
;
i
<
num
;
i
++
)
{
for
(
let
i
=
0
;
i
<
num
;
i
++
)
{
bagsData
.
push
(
goods
.
bags
.
slice
(
i
*
3
,
i
*
3
+
3
));
if
(
i
<
2
)
{
bagsData
.
push
(
goods
.
bags
.
slice
(
i
*
3
,
i
*
3
+
3
));
}
}
}
}
}
window
.
pageSize
=
pageSize
;
window
.
pageSize
=
pageSize
;
...
@@ -1025,8 +1027,8 @@ const styles = {
...
@@ -1025,8 +1027,8 @@ const styles = {
firstTdStyle
:
{
firstTdStyle
:
{
width
:
'40%'
,
width
:
'40%'
,
alignItems
:
'flex-start'
,
alignItems
:
'flex-start'
,
paddingTop
:
width
>
801
?
18
:
16
,
paddingTop
:
18
,
paddingBottom
:
width
>
801
?
18
:
16
,
paddingBottom
:
18
,
paddingLeft
:
10
,
paddingLeft
:
10
,
paddingRight
:
10
,
paddingRight
:
10
,
},
},
...
@@ -1035,8 +1037,8 @@ const styles = {
...
@@ -1035,8 +1037,8 @@ const styles = {
width
:
'20%'
,
width
:
'20%'
,
alignItems
:
'center'
,
alignItems
:
'center'
,
justifyContent
:
'center'
,
justifyContent
:
'center'
,
paddingTop
:
width
>
801
?
18
:
1
6
,
paddingTop
:
width
>
801
?
18
:
1
8
,
paddingBottom
:
width
>
801
?
18
:
1
6
,
paddingBottom
:
width
>
801
?
18
:
1
8
,
paddingLeft
:
10
,
paddingLeft
:
10
,
paddingRight
:
10
,
paddingRight
:
10
,
},
},
...
...
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