Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wx-school-app
Project
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
姜雷
wx-school-app
Commits
96591f73
Commit
96591f73
authored
Apr 18, 2019
by
姜雷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加说明文字
parent
23fddec7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
3 deletions
+15
-3
BarCode.scss
src/pages/BarCode/BarCode.scss
+4
-0
BarCode.tsx
src/pages/BarCode/BarCode.tsx
+11
-3
No files found.
src/pages/BarCode/BarCode.scss
View file @
96591f73
...
...
@@ -73,4 +73,8 @@ page {
transform
:
rotate
(
180deg
);
}
}
.warnning
{
margin
:
80px
20px
0
;
color
:
#f10000
;
}
}
src/pages/BarCode/BarCode.tsx
View file @
96591f73
...
...
@@ -200,9 +200,13 @@ class BarCode extends Component {
}
drawBarCode
()
{
const
{
userinfo
}
=
this
.
props
;
let
idBar
=
userinfo
.
idBar
.
substring
(
0
,
userinfo
.
idBar
.
length
-
2
)
+
'04'
;
wxbarcode
.
barcode
(
'BarCode'
,
idBar
,
646
,
188
);
wxbarcode
.
barcode
(
'BarCodeBig'
,
idBar
,
700
,
364
);
if
(
userinfo
.
idBar
&&
userinfo
.
idBar
.
length
>
2
)
{
let
idBar
=
userinfo
.
idBar
.
substring
(
0
,
userinfo
.
idBar
.
length
-
2
)
+
'04'
;
wxbarcode
.
barcode
(
'BarCode'
,
idBar
,
646
,
188
);
wxbarcode
.
barcode
(
'BarCodeBig'
,
idBar
,
700
,
364
);
}
else
{
this
.
refreshCodeBar
();
}
}
toggleBigBarCode
()
{
...
...
@@ -277,6 +281,10 @@ class BarCode extends Component {
/>
</
View
>
</
View
>
<
View
className=
'warnning'
>
如扫描条码终端无响应,请刷新条码后重试!
</
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