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
6b860c2a
Commit
6b860c2a
authored
Apr 08, 2021
by
wykolor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 提现成功返回奖励金界面
parent
80c7dc77
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
6 deletions
+12
-6
index.vue
src/views/bonus/withdraw/index.vue
+12
-6
No files found.
src/views/bonus/withdraw/index.vue
View file @
6b860c2a
...
@@ -119,8 +119,7 @@
...
@@ -119,8 +119,7 @@
color=
"linear-gradient(to bottom, #FFEB8C, #FE9F56)"
color=
"linear-gradient(to bottom, #FFEB8C, #FE9F56)"
block
block
size=
"large"
size=
"large"
to=
"/"
@
click=
"goBack"
replace
>
确定
</van-button
>
确定
</van-button
>
>
</div>
</div>
...
@@ -136,9 +135,11 @@ import { Button, Cell, Dialog, Field, Toast } from "vant";
...
@@ -136,9 +135,11 @@ import { Button, Cell, Dialog, Field, Toast } from "vant";
import
{
useRoute
}
from
"vue-router"
;
import
{
useRoute
}
from
"vue-router"
;
import
{
useStore
}
from
"vuex"
;
import
{
useStore
}
from
"vuex"
;
import
{
useNativeBridge
}
from
"@/util/use-native-bridge"
;
import
{
useNativeBridge
}
from
"@/util/use-native-bridge"
;
import
{
countDown
}
from
"../../../util/timer"
;
import
{
countDown
}
from
"@/util/timer"
;
// import { debounce } from "@/util/debounce";
import
{
checkCaptcha
,
withdraw
,
getWithdrawRisk
}
from
"@/server/api/bonus"
;
import
{
checkCaptcha
,
withdraw
,
getWithdrawRisk
}
from
"@/server/api/bonus"
;
import
{
WithdrawResponse
}
from
"@/model/bonus"
;
import
{
WithdrawResponse
}
from
"@/model/bonus"
;
import
router
from
"@/router"
;
interface
TencentCaptchaResponse
{
interface
TencentCaptchaResponse
{
ret
:
number
;
ret
:
number
;
ticket
:
string
;
ticket
:
string
;
...
@@ -181,6 +182,7 @@ const Withdraw = defineComponent({
...
@@ -181,6 +182,7 @@ const Withdraw = defineComponent({
state
.
withdrawableTotal
=
Number
(
withdrawableTotal
);
state
.
withdrawableTotal
=
Number
(
withdrawableTotal
);
state
.
withdrawAccount
=
withdrawAccount
as
string
;
state
.
withdrawAccount
=
withdrawAccount
as
string
;
const
formatter
=
value
=>
{
const
formatter
=
value
=>
{
if
(
value
<=
0
)
return
""
;
if
(
value
>
state
.
withdrawableTotal
)
{
if
(
value
>
state
.
withdrawableTotal
)
{
return
state
.
withdrawableTotal
.
toFixed
(
2
);
return
state
.
withdrawableTotal
.
toFixed
(
2
);
}
}
...
@@ -239,8 +241,6 @@ const Withdraw = defineComponent({
...
@@ -239,8 +241,6 @@ const Withdraw = defineComponent({
}
catch
(
err
)
{
}
catch
(
err
)
{
Toast
(
err
);
Toast
(
err
);
}
}
// state.showWithdrawSuccess = true;
};
};
// 获取风控值
// 获取风控值
...
@@ -250,6 +250,11 @@ const Withdraw = defineComponent({
...
@@ -250,6 +250,11 @@ const Withdraw = defineComponent({
}
=
await
getWithdrawRisk
(
bonusStoreState
.
value
.
studentId
);
}
=
await
getWithdrawRisk
(
bonusStoreState
.
value
.
studentId
);
state
.
studentDailyWithdrawLimit
=
studentDailyWithdrawLimit
;
state
.
studentDailyWithdrawLimit
=
studentDailyWithdrawLimit
;
};
};
const
goBack
=
()
=>
{
router
.
back
();
};
onMounted
(()
=>
{
onMounted
(()
=>
{
const
message
=
{
const
message
=
{
type
:
"title"
,
type
:
"title"
,
...
@@ -263,7 +268,8 @@ const Withdraw = defineComponent({
...
@@ -263,7 +268,8 @@ const Withdraw = defineComponent({
formatter
,
formatter
,
getSmsVerifyCode
,
getSmsVerifyCode
,
withdrawSubmit
,
withdrawSubmit
,
withdrawReal
withdrawReal
,
goBack
};
};
}
}
});
});
...
...
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