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
a12146df
Commit
a12146df
authored
Apr 21, 2021
by
hewenhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 提现传账户i
parent
dab3ad0c
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
14 additions
and
10 deletions
+14
-10
index.ts
src/model/bonus/index.ts
+1
-0
index.vue
src/views/bonus/bonus-detail/index.vue
+3
-3
index.vue
src/views/bonus/index.vue
+3
-4
index.vue
src/views/bonus/withdraw/index.vue
+6
-2
vue.config.js
vue.config.js
+1
-1
No files found.
src/model/bonus/index.ts
View file @
a12146df
...
@@ -49,6 +49,7 @@ export interface BonusAccountResponse {
...
@@ -49,6 +49,7 @@ export interface BonusAccountResponse {
addTotal
:
number
;
addTotal
:
number
;
withdrawedTotal
:
number
;
withdrawedTotal
:
number
;
withdrawAccount
:
string
;
withdrawAccount
:
string
;
withdrawAccountId
:
string
;
withdrawableTotal
:
number
;
withdrawableTotal
:
number
;
errCode
:
string
;
errCode
:
string
;
}
}
...
...
src/views/bonus/bonus-detail/index.vue
View file @
a12146df
...
@@ -46,9 +46,9 @@
...
@@ -46,9 +46,9 @@
<label>
-¥
{{
item
.
amountChange
}}
</label>
<label>
-¥
{{
item
.
amountChange
}}
</label>
</li>
</li>
<li
v-if=
"item.bizType === BizType.ORDER"
>
<li
v-if=
"item.bizType === BizType.ORDER"
>
<
span
v-for=
"(className, index) in item.className"
:key=
"className + index"
>
{{
<
div
v-for=
"(className, index) in item.className"
:key=
"className + index"
>
className
{{
className
}}
}}
</span
>
</div
>
</li>
</li>
<li
<li
v-if=
"item.bizType === BizType.ORDER"
v-if=
"item.bizType === BizType.ORDER"
...
...
src/views/bonus/index.vue
View file @
a12146df
...
@@ -73,7 +73,7 @@
...
@@ -73,7 +73,7 @@
</van-cell>
</van-cell>
<div
class=
"bouns-record"
>
<div
class=
"bouns-record"
>
<van-row>
<van-row>
<van-col
span=
"12"
class=
"tip"
>
 
奖励金提现
金额
</van-col>
<van-col
span=
"12"
class=
"tip"
>
 
奖励金提现
记录
</van-col>
<van-col
span=
"12"
class=
"tip-money"
style=
"text-align: right; font-weight: 550"
<van-col
span=
"12"
class=
"tip-money"
style=
"text-align: right; font-weight: 550"
>
总计:
{{
bonusAccount
?.
withdrawedTotal
.
toFixed
(
2
)
||
0.0
}}
元
</van-col
>
总计:
{{
bonusAccount
?.
withdrawedTotal
.
toFixed
(
2
)
||
0.0
}}
元
</van-col
>
>
...
@@ -304,7 +304,8 @@ const Bonus = defineComponent({
...
@@ -304,7 +304,8 @@ const Bonus = defineComponent({
name
:
"withdraw"
,
name
:
"withdraw"
,
params
:
{
params
:
{
withdrawableTotal
:
state
.
bonusAccount
?.
withdrawableTotal
||
0
,
withdrawableTotal
:
state
.
bonusAccount
?.
withdrawableTotal
||
0
,
withdrawAccount
:
state
.
bonusAccount
?.
withdrawAccount
||
""
withdrawAccount
:
state
.
bonusAccount
?.
withdrawAccount
||
""
,
withdrawAccountId
:
state
.
bonusAccount
?.
withdrawAccountId
||
""
}
}
});
});
}
else
if
(
state
.
bonusAccount
?.
errCode
===
ErrCode
.
NOT_BIND
)
{
}
else
if
(
state
.
bonusAccount
?.
errCode
===
ErrCode
.
NOT_BIND
)
{
...
@@ -461,10 +462,8 @@ export default Bonus;
...
@@ -461,10 +462,8 @@ export default Bonus;
.van-row
{
.van-row
{
padding
:
0
20px
;
padding
:
0
20px
;
margin-bottom
:
24px
;
margin-bottom
:
24px
;
color
:
#141414
;
.tip
{
.tip
{
position
:
relative
;
position
:
relative
;
color
:
#141414
;
font-weight
:
550
;
font-weight
:
550
;
font-size
:
30px
;
font-size
:
30px
;
&
:
:
after
{
&
:
:
after
{
...
...
src/views/bonus/withdraw/index.vue
View file @
a12146df
...
@@ -148,6 +148,7 @@ interface TencentCaptchaResponse {
...
@@ -148,6 +148,7 @@ interface TencentCaptchaResponse {
interface
State
{
interface
State
{
WithdrawResponse
?:
WithdrawResponse
|
object
;
WithdrawResponse
?:
WithdrawResponse
|
object
;
timeoutParams
?:
{
timeCounter
:
number
|
undefined
};
timeoutParams
?:
{
timeCounter
:
number
|
undefined
};
withdrawAccountId
:
string
;
// eslint-disable-next-line @typescript-eslint/no-explicit-any
// eslint-disable-next-line @typescript-eslint/no-explicit-any
[
key
:
string
]:
number
|
string
|
boolean
|
any
;
[
key
:
string
]:
number
|
string
|
boolean
|
any
;
}
}
...
@@ -175,15 +176,17 @@ const Withdraw = defineComponent({
...
@@ -175,15 +176,17 @@ const Withdraw = defineComponent({
showWithdrawSuccess
:
false
,
showWithdrawSuccess
:
false
,
mobileTip
:
""
,
mobileTip
:
""
,
withdrawAccount
:
""
,
withdrawAccount
:
""
,
withdrawAccountId
:
""
,
withdrawResponse
:
{},
withdrawResponse
:
{},
studentDailyWithdrawLimit
:
0
,
// 学生单日提现上限
studentDailyWithdrawLimit
:
0
,
// 学生单日提现上限
withdrawing
:
false
,
withdrawing
:
false
,
tencentCaptchPass
:
false
,
// 图形验证码是否通过
tencentCaptchPass
:
false
,
// 图形验证码是否通过
smsVerifyPass
:
false
smsVerifyPass
:
false
});
});
const
{
withdrawableTotal
,
withdrawAccount
}
=
route
.
params
;
const
{
withdrawableTotal
,
withdrawAccount
,
withdrawAccountId
}
=
route
.
params
;
state
.
withdrawableTotal
=
Number
(
withdrawableTotal
);
state
.
withdrawableTotal
=
Number
(
withdrawableTotal
);
state
.
withdrawAccount
=
withdrawAccount
as
string
;
state
.
withdrawAccount
=
withdrawAccount
as
string
;
state
.
withdrawAccountId
=
withdrawAccountId
as
string
;
const
formatter
=
value
=>
{
const
formatter
=
value
=>
{
if
(
value
<=
0
)
return
""
;
if
(
value
<=
0
)
return
""
;
if
(
value
>
state
.
withdrawableTotal
)
{
if
(
value
>
state
.
withdrawableTotal
)
{
...
@@ -263,7 +266,8 @@ const Withdraw = defineComponent({
...
@@ -263,7 +266,8 @@ const Withdraw = defineComponent({
const
params
=
{
const
params
=
{
studentId
:
bonusStoreState
.
value
.
studentId
,
studentId
:
bonusStoreState
.
value
.
studentId
,
smsVerifyCode
:
state
.
smsVerifyCode
,
smsVerifyCode
:
state
.
smsVerifyCode
,
withdrawAmount
:
state
.
withdrawAmount
withdrawAmount
:
state
.
withdrawAmount
,
withdrawAccountId
:
state
.
withdrawAccountId
};
};
const
{
data
}
=
await
withdraw
(
params
);
const
{
data
}
=
await
withdraw
(
params
);
state
.
withdrawResponse
=
data
;
state
.
withdrawResponse
=
data
;
...
...
vue.config.js
View file @
a12146df
...
@@ -19,7 +19,7 @@ module.exports = {
...
@@ -19,7 +19,7 @@ module.exports = {
changOrigin
:
true
//允许跨域
changOrigin
:
true
//允许跨域
},
},
"/service"
:
{
"/service"
:
{
target
:
"http://1
72.10.62.92
"
,
target
:
"http://1
92.168.32.31
"
,
ws
:
true
,
ws
:
true
,
changOrigin
:
true
//允许跨域
changOrigin
:
true
//允许跨域
},
},
...
...
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