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
2fcc14ad
Commit
2fcc14ad
authored
Jul 04, 2019
by
姜雷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改有订单时条码页显示问题
parent
1afd9990
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
BarCode.tsx
src/pages/BarCode/BarCode.tsx
+10
-1
No files found.
src/pages/BarCode/BarCode.tsx
View file @
2fcc14ad
import
Taro
,
{
Component
}
from
'@tarojs/taro'
;
import
Taro
,
{
Component
,
useEffect
}
from
'@tarojs/taro'
;
import
{
ComponentClass
}
from
'react'
;
import
{
View
,
Canvas
,
Image
,
Text
}
from
'@tarojs/components'
;
...
...
@@ -164,6 +164,12 @@ class BarCode extends Component {
state
.
orderState
.
waitPayOrderState
,
);
useEffect
(()
=>
{
if
(
!
payOrderState
)
{
this
.
drawBarCode
();
}
},
[
payOrderState
]);
return
(
<
View
className=
'BarCode'
>
<
WaitPayOrderComponent
/>
...
...
@@ -180,6 +186,7 @@ class BarCode extends Component {
src=
{
RefreshIcon
}
onClick=
{
this
.
refreshCodeBar
}
/>
{
payOrderState
?
null
:
(
<
View
className=
{
`BarCodeImg ${showBig ? 'BarCodeImgBig' : ''}`
}
>
<
Canvas
className=
{
`BarCodeCav ${showBig ? 'show' : ''}`
}
...
...
@@ -190,6 +197,8 @@ class BarCode extends Component {
canvasId=
'BarCode'
/>
</
View
>
)
}
<
View
className=
'toggleBtn'
onClick=
{
this
.
toggleBigBarCode
}
>
<
Image
className=
{
`arricon ${showBig ? 'rever' : ''}`
}
...
...
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