Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mr-julyedu
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
baiguangyao
mr-julyedu
Commits
41fa5eff
Commit
41fa5eff
authored
Aug 20, 2019
by
xuzhenghua
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of gitlab.julyedu.com:baiguangyao/mr-julyedu
parents
449af4e9
143b4e37
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
25 deletions
+24
-25
src/components/scholarship/index.js
+24
-25
No files found.
src/components/scholarship/index.js
View file @
41fa5eff
...
...
@@ -18,11 +18,11 @@ class _Scholarship extends Component {
super
(
props
);
this
.
state
=
{
un_affirm
:
0
,
a
ffirm
:
0.00
,
a
ccount
:
0.00
,
drawCashHtml
:
false
,
drawCashWechat
:
false
,
waitMoneyDetail
:
false
,
codeSrc
:
'
https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/tinypng-common/right_weixin.png
'
,
codeSrc
:
''
,
dataSource
:
new
ListView
.
DataSource
({
rowHasChanged
:
(
row1
,
row2
)
=>
row1
!==
row2
,
}),
...
...
@@ -61,15 +61,34 @@ class _Scholarship extends Component {
}
// 提现按钮 根据是否在微信环境中显示提示
drawCash
=
()
=>
{
const
{
hasError
,
data
=
{}}
=
this
.
props
.
user
;
if
(
hasError
)
{
Toast
.
info
(
"请登录提现!"
,
undefined
,
undefined
,
false
);
return
;
}
http
.
get
(
`
${
API
[
'base-api'
]}
/wx/user_temporary_qrcode/
${
data
.
uid
}
`
).
then
(
res
=>
{
console
.
log
(
res
)
if
(
res
.
data
.
errno
===
0
)
{
if
(
is_weixin
())
{
this
.
setState
({
drawCashWechat
:
true
drawCashWechat
:
true
,
codeSrc
:
res
.
data
.
data
.
qr_image
});
}
else
{
this
.
setState
({
drawCashHtml
:
true
,
codeSrc
:
res
.
data
.
data
.
qr_image
});
}
}
else
{
Toast
.
info
(
res
.
data
.
data
.
msg
,
2
);
}
});
};
// 去登陆
toLogin
=
()
=>
{
...
...
@@ -197,7 +216,7 @@ class _Scholarship extends Component {
);
const
{
un_affirm
,
a
ffirm
,
a
ccount
,
drawCashHtml
,
drawCashWechat
,
waitMoneyDetail
,
...
...
@@ -233,7 +252,7 @@ class _Scholarship extends Component {
)
:
(
<>
<
Flex
justify
=
'center'
align
=
'baseline'
style
=
{{
height
:
'20px'
,
lineHeight
:
'20px'
}}
>
<
span
className
=
{
'common-ft-25'
}
>
{
a
ffirm
}
<
/span
>
<
span
className
=
{
'common-ft-25'
}
>
{
a
ccount
}
<
/span
>
<
span
className
=
{
'common-ft-15'
}
>
元
<
/span
>
<
/Flex
>
<
WhiteSpace
><
/WhiteSpace
>
...
...
@@ -347,26 +366,6 @@ class _Scholarship extends Component {
<
/Flex
>
<
/Modal
>
{
/* <Modal
visible={drawCashHtml}
transparent
maskClosable={true}
onClose={this.closeModal}
title="提现"
footer={[
{ text: '取消', onPress: () => { this.closeModal() } },
{ text: '保存二维码', onPress: () => { this.saveImage() } }
]}
style={{ width: '300px' }}
>
<p style={{ fontSize: '13px', color: '#666666' }}>
提现金额将通过微信零钱转账给您,请微信扫码关注【七月在线】服务号后申请提现。
</p>
<WhiteSpace size='sm'></WhiteSpace>
<Flex justify='center'>
<img src={codeSrc} style={{ width: '90px', height: '90px' }} alt="二维码" />
</Flex>
</Modal> */
}
<
Modal
visible
=
{
drawCashHtml
}
transparent
...
...
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