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
109dc7b2
Commit
109dc7b2
authored
Aug 27, 2024
by
清晨
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
953db527
1798b466
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
3 deletions
+11
-3
HomeLayout.js
src/components/HomeLayout.js
+1
-1
CounterMixins.js
src/pages/CounterMixins.js
+0
-1
VerticalPage.js
src/pages/VerticalPage.js
+10
-1
No files found.
src/components/HomeLayout.js
View file @
109dc7b2
...
@@ -28,7 +28,7 @@ class HomeLayout extends Component {
...
@@ -28,7 +28,7 @@ class HomeLayout extends Component {
paddingRight
:
25
,
paddingRight
:
25
,
}}
>
}}
>
<
Text
style
=
{{
fontSize
:
12
,
color
:
'#ccc'
}}
>
<
Text
style
=
{{
fontSize
:
12
,
color
:
'#ccc'
}}
>
{
width
}
-
{
height
}
{
width
.
toFixed
(
0
)}
-
{
height
.
toFixed
(
0
)
}
<
/Text
>
<
/Text
>
<
/View
>
<
/View
>
<
/View
>
<
/View
>
...
...
src/pages/CounterMixins.js
View file @
109dc7b2
...
@@ -806,7 +806,6 @@ const CounterMixins = ComposeComponent => {
...
@@ -806,7 +806,6 @@ const CounterMixins = ComposeComponent => {
return
;
return
;
}
}
barcode
=
barcode
||
this
.
barcode
;
barcode
=
barcode
||
this
.
barcode
;
console
.
warn
(
barcode
);
if
(
isNaN
(
barcode
.
substring
(
0
,
4
)))
{
if
(
isNaN
(
barcode
.
substring
(
0
,
4
)))
{
const
msg
=
'请遮住条码旁边的二维码,再重新扫条码'
;
const
msg
=
'请遮住条码旁边的二维码,再重新扫条码'
;
this
.
setState
({
voiceModal
:
true
,
voiceTitle
:
msg
});
this
.
setState
({
voiceModal
:
true
,
voiceTitle
:
msg
});
...
...
src/pages/VerticalPage.js
View file @
109dc7b2
...
@@ -644,6 +644,15 @@ class VerticalPage extends Component {
...
@@ -644,6 +644,15 @@ class VerticalPage extends Component {
styles
.
guide
=
{...
styles
.
guide
,
backgroundColor
:
'#1b7dc7'
};
styles
.
guide
=
{...
styles
.
guide
,
backgroundColor
:
'#1b7dc7'
};
const
facepay
=
const
facepay
=
this
.
state
.
faceType
===
'wxpay'
?
this
.
wxFacepay
:
this
.
smilepay
;
this
.
state
.
faceType
===
'wxpay'
?
this
.
wxFacepay
:
this
.
smilepay
;
let
numSize
=
450
;
const
numLen
=
totalNum
.
toString
().
length
;
if
(
numLen
>
2
)
{
numSize
=
(
numSize
*
2
)
/
numLen
;
}
return
(
return
(
<
View
style
=
{{
flex
:
1
,
position
:
'relative'
}}
>
<
View
style
=
{{
flex
:
1
,
position
:
'relative'
}}
>
<
Modal
visible
=
{
noBuyModal
}
transparent
>
<
Modal
visible
=
{
noBuyModal
}
transparent
>
...
@@ -783,7 +792,7 @@ class VerticalPage extends Component {
...
@@ -783,7 +792,7 @@ class VerticalPage extends Component {
background
:
'#ccc'
,
background
:
'#ccc'
,
zIndex
:
999
,
zIndex
:
999
,
}}
>
}}
>
<
Text
style
=
{{
fontSize
:
500
}}
>
{
totalNum
}
<
/Text
>
<
Text
style
=
{{
fontSize
:
numSize
}}
>
{
totalNum
}
<
/Text
>
<
/View
>
<
/View
>
<
View
style
=
{{
backgroundColor
:
'#fff'
}}
>
<
View
style
=
{{
backgroundColor
:
'#fff'
}}
>
<
View
<
View
...
...
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