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
c348a3b4
Commit
c348a3b4
authored
Jul 04, 2019
by
姜雷
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' into test
parents
f355cd1e
5a1722e1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
19 deletions
+25
-19
Account.tsx
src/pages/Account/Account.tsx
+5
-8
BarCode.tsx
src/pages/BarCode/BarCode.tsx
+20
-11
No files found.
src/pages/Account/Account.tsx
View file @
c348a3b4
...
...
@@ -64,6 +64,7 @@ export const AccountComponent = () => {
}
console
.
log
(
'in recharge'
);
let
preAimiItem
=
filterBeanList
.
find
(
item
=>
item
.
serviceId
===
'0'
);
let
preAimi
=
preAimiItem
?
preAimiItem
.
money
:
0
;
rechargeOrder
({
id
:
payConfigId
,
customerId
:
userinfo
.
customerId
,
...
...
@@ -102,13 +103,7 @@ export const AccountComponent = () => {
let
aimiItem
=
beanAccount
.
find
(
item
=>
item
.
serviceId
===
'0'
,
);
if
(
aimiItem
&&
aimiItem
.
money
&&
preAimiItem
&&
preAimiItem
.
money
&&
aimiItem
.
money
===
preAimiItem
.
money
)
{
if
(
aimiItem
&&
aimiItem
.
money
===
preAimi
)
{
Taro
.
showModal
({
title
:
'提示'
,
content
:
...
...
@@ -162,7 +157,9 @@ export const AccountComponent = () => {
<
View
className=
'Account-Card-label'
>
{
creditInfo
.
showType
==
'1'
?
'我的授信'
:
'我的保证金'
}
</
View
>
<
View
className=
'Account-Card-num'
>
{
creditInfo
.
amount
}
</
View
>
<
View
className=
'Account-Card-num'
>
{
creditInfo
.
amount
.
toFixed
(
2
)
}
</
View
>
</
View
>
)
}
</
View
>
...
...
src/pages/BarCode/BarCode.tsx
View file @
c348a3b4
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,16 +186,19 @@ class BarCode extends Component {
src=
{
RefreshIcon
}
onClick=
{
this
.
refreshCodeBar
}
/>
<
View
className=
{
`BarCodeImg ${showBig ? 'BarCodeImgBig' : ''}`
}
>
<
Canvas
className=
{
`BarCodeCav ${showBig ? 'show' : ''}`
}
canvasId=
'BarCodeBig'
/>
<
Canvas
className=
{
`BarCodeCav ${showBig ? '' : 'show'}`
}
canvasId=
'BarCode'
/>
</
View
>
{
payOrderState
?
null
:
(
<
View
className=
{
`BarCodeImg ${showBig ? 'BarCodeImgBig' : ''}`
}
>
<
Canvas
className=
{
`BarCodeCav ${showBig ? 'show' : ''}`
}
canvasId=
'BarCodeBig'
/>
<
Canvas
className=
{
`BarCodeCav ${showBig ? '' : 'show'}`
}
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