Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mall-webview
Project
Project
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
frontend
mall-webview
Commits
e388752b
Commit
e388752b
authored
Sep 21, 2023
by
hewenhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 限制单笔提现最多200
parent
8bdf869e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
index.vue
src/views/bonus/withdraw/index.vue
+9
-4
No files found.
src/views/bonus/withdraw/index.vue
View file @
e388752b
...
@@ -20,11 +20,14 @@
...
@@ -20,11 +20,14 @@
type=
"primary"
type=
"primary"
round
round
color=
"#F1551E"
color=
"#F1551E"
@
click=
"withdrawAmount =
withdrawableTotal
"
@
click=
"withdrawAmount =
maxWithDraw
"
>
全部
</van-button
>
全部
</van-button
>
>
</li>
</li>
<li
class=
"input-valid"
>
今日可提现金额¥
{{
withdrawableTotal
}}
元
</li>
<li
class=
"input-valid"
>
今日可提现金额¥
{{
withdrawableTotal
}}
元
</li>
<li
class=
"input-tip"
>
<span>
微信限制单笔提现不超过200元!
</span>
</li>
<li
class=
"input-tip"
>
<li
class=
"input-tip"
>
<i
class=
"iconfont icon-wenhao"
></i>
<i
class=
"iconfont icon-wenhao"
></i>
<span>
单日累计提现不超过
{{
studentDailyWithdrawLimit
}}
元!
</span>
<span>
单日累计提现不超过
{{
studentDailyWithdrawLimit
}}
元!
</span>
...
@@ -93,6 +96,7 @@ const Withdraw = defineComponent({
...
@@ -93,6 +96,7 @@ const Withdraw = defineComponent({
const
state
=
reactive
<
State
>
({
const
state
=
reactive
<
State
>
({
withdrawAmount
:
0
,
withdrawAmount
:
0
,
withdrawableTotal
:
0
,
withdrawableTotal
:
0
,
maxWithDraw
:
0
,
showWithdraw
:
false
,
showWithdraw
:
false
,
showWithdrawSuccess
:
false
,
showWithdrawSuccess
:
false
,
withdrawAccount
:
''
,
withdrawAccount
:
''
,
...
@@ -102,14 +106,15 @@ const Withdraw = defineComponent({
...
@@ -102,14 +106,15 @@ const Withdraw = defineComponent({
})
})
const
{
withdrawableTotal
,
withdrawAccount
,
withdrawAccountId
}
=
route
.
query
const
{
withdrawableTotal
,
withdrawAccount
,
withdrawAccountId
}
=
route
.
query
state
.
withdrawableTotal
=
Number
(
withdrawableTotal
)
state
.
withdrawableTotal
=
Number
(
withdrawableTotal
)
state
.
maxWithDraw
=
Math
.
min
(
200
,
state
.
withdrawableTotal
)
state
.
withdrawAccount
=
withdrawAccount
as
string
state
.
withdrawAccount
=
withdrawAccount
as
string
state
.
withdrawAccountId
=
withdrawAccountId
as
string
state
.
withdrawAccountId
=
withdrawAccountId
as
string
const
formatter
=
(
value
:
number
)
=>
{
const
formatter
=
(
value
:
number
)
=>
{
if
(
value
<=
0
)
return
''
if
(
value
<=
0
)
return
''
if
(
value
>
state
.
withdrawableTotal
)
{
if
(
value
>
state
.
maxWithDraw
)
{
Toast
(
`今日可提现金额为:
${
state
.
withdrawableTotal
}
元`
)
Toast
(
`今日可提现金额为:
${
state
.
maxWithDraw
}
元`
)
return
state
.
withdrawableTotal
.
toFixed
(
2
)
return
state
.
maxWithDraw
.
toFixed
(
2
)
}
}
return
value
&&
Number
(
value
).
toFixed
(
2
)
return
value
&&
Number
(
value
).
toFixed
(
2
)
...
...
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