Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cauchy-ui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
ui
cauchy-ui
Commits
2592f20a
Commit
2592f20a
authored
Jul 20, 2021
by
FE-安焕焕
👣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
余额不足提示
parent
8486ebb9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
9 deletions
+16
-9
index.vue
src/views/pay/index.vue
+16
-9
No files found.
src/views/pay/index.vue
View file @
2592f20a
...
@@ -199,6 +199,13 @@ export default {
...
@@ -199,6 +199,13 @@ export default {
this
.
payContractInfo
.
payContractIsSign
&&
this
.
payContractInfo
.
payContractIsSign
&&
this
.
creditPayInfo
.
accountStatus
===
ACCOUNT_APPLY_SUCCESS
this
.
creditPayInfo
.
accountStatus
===
ACCOUNT_APPLY_SUCCESS
);
);
},
canUseAmount
()
{
return
(
((
this
.
selectedCoupon
?.
faceValue
&&
+
this
.
selectedCoupon
.
faceValue
)
||
0
)
+
((
this
.
displayInfo
?.
creditPayInfo
?.
canAmt
&&
+
this
.
displayInfo
.
creditPayInfo
.
canAmt
)
||
0
)
-
((
this
.
displayInfo
?.
orderAmt
&&
+
this
.
displayInfo
.
orderAmt
)
||
0
)
);
}
}
},
},
watch
:
{
watch
:
{
...
@@ -405,6 +412,15 @@ export default {
...
@@ -405,6 +412,15 @@ export default {
this
.
retrieveLink
();
this
.
retrieveLink
();
return
;
return
;
}
}
if
(
this
.
payType
===
CREDIT_PAY
&&
this
.
canUseAmount
<
0
)
{
this
.
$dialog
({
message
:
'
您的消费额度不足,请更换支付方式!
'
,
confirmButtonText
:
'
知道了
'
,
showCancelButton
:
false
,
confirmButtonColor
:
'
#EC1500
'
});
return
;
}
const
paramsData
=
{
const
paramsData
=
{
...
params
,
...
params
,
quitUrl
:
Current_Url
,
quitUrl
:
Current_Url
,
...
@@ -434,15 +450,6 @@ export default {
...
@@ -434,15 +450,6 @@ export default {
});
});
return
;
return
;
}
}
if
(
error
?.
msg
===
'
用户额度小于订单需支付额度
'
)
{
this
.
$dialog
({
message
:
'
您的消费额度不足,请更换支付方式!
'
,
confirmButtonText
:
'
知道了
'
,
showCancelButton
:
false
,
confirmButtonColor
:
'
#EC1500
'
});
return
;
}
if
(
codeArr
.
indexOf
(
error
?.
response
?.
businessCode
)
<
0
)
{
if
(
codeArr
.
indexOf
(
error
?.
response
?.
businessCode
)
<
0
)
{
this
.
payResult
(
'
Fail
'
,
error
.
message
);
this
.
payResult
(
'
Fail
'
,
error
.
message
);
return
;
return
;
...
...
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