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
651895d6
Commit
651895d6
authored
Jul 22, 2021
by
FE-安焕焕
👣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加被占用订单提示
parent
e3dcec44
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
12 deletions
+21
-12
STATIC_DATA.js
src/views/pay/STATIC_DATA.js
+10
-0
PayCardItem.vue
src/views/pay/components/PayCardItem.vue
+1
-1
SmsModal.vue
src/views/pay/components/SmsModal.vue
+4
-4
index.vue
src/views/pay/index.vue
+6
-7
No files found.
src/views/pay/STATIC_DATA.js
View file @
651895d6
...
...
@@ -114,6 +114,15 @@ function isDetentionFn() {
});
}
}
function
havePayingOrder
()
{
/* 有享花卡未支付的订单 */
this
.
$dialog
({
message
:
'
您的享花卡额度被其他订单占用,暂时不可使用享花卡支付哦!
'
,
confirmButtonText
:
'
重新选择
'
,
showCancelButton
:
false
,
confirmButtonColor
:
'
#EC1500
'
});
}
function
filterAllPayList
(
type
,
data
)
{
for
(
let
item
in
data
.
payList
)
{
if
(
data
.
payList
[
item
].
payType
===
type
)
{
...
...
@@ -140,6 +149,7 @@ export {
IS_GROUP_PAY
,
IS_CREDIT_PAY
,
isDetentionFn
,
havePayingOrder
,
filterAllPayList
,
ACCOUNT_NO_APPLY
,
PAYMENT_CODE_PAY
,
...
...
src/views/pay/components/PayCardItem.vue
View file @
651895d6
...
...
@@ -114,7 +114,7 @@ export default {
background
:
#
fffbe8
;
.
text
-
11
;
padding
:
4
px
8
px
;
margin
:
8
px
;
margin
:
8
px
8
px
8
px
4
px
;
border
-
radius
:
3
px
;
}
.
type
-
item
{
...
...
src/views/pay/components/SmsModal.vue
View file @
651895d6
...
...
@@ -7,13 +7,13 @@
<p
class=
"sms-des"
>
为保证您账户安全,此笔交易需要短信验证
</p>
<p
class=
"phone"
>
已发送至
{{
getPhone
()
}}
</p>
<cr-authcode-field
span-size=
"2
0
px"
span-size=
"2
4
px"
type=
"number"
border-type=
"bottom"
:number=
"6"
height=
"40px"
span-color=
"#
000
"
input-color=
"#
000
"
span-color=
"#
666
"
input-color=
"#
666
"
input-size=
"20px"
class=
"sms-input"
:success=
"success"
...
...
@@ -103,7 +103,7 @@ export default {
left: 50%;
top: 26%;
margin-left: -150px;
padding: 12px 1
2
px 24px;
padding: 12px 1
8
px 24px;
width: 300px;
border-radius: 16px;
background: #fff;
...
...
src/views/pay/index.vue
View file @
651895d6
...
...
@@ -112,6 +112,7 @@ import {
IS_GROUP_PAY
,
IS_CREDIT_PAY
,
isDetentionFn
,
havePayingOrder
,
filterAllPayList
,
PAYMENT_CODE_PAY
,
// 支付密码
ACCOUNT_APPLY_FAIL
,
...
...
@@ -241,7 +242,7 @@ export default {
return
;
}
this
.
isReady
=
true
;
const
{
displayInfo
=
{},
payMethods
}
=
data
||
{};
const
{
displayInfo
=
{},
payMethods
,
creditQuotaInfo
}
=
data
||
{};
this
.
overtime
=
displayInfo
.
periodSeconds
<=
0
;
this
.
success
=
true
;
if
(
this
.
overtime
)
{
...
...
@@ -321,6 +322,9 @@ export default {
this
.
isShowProtocol
&&
(
this
.
isCheckAgreement
=
true
);
this
.
setAmount
();
}
if
(
creditQuotaInfo
?.
isFreezeCreditInOtherOrder
&&
!
this
.
payInfo
?.
payType
)
{
havePayingOrder
.
call
(
this
);
}
},
isRiskLimit
()
{
const
{
accountStatus
,
riskManagementAmt
}
=
this
.
creditPayInfo
;
...
...
@@ -454,12 +458,7 @@ export default {
if
(
error
)
{
if
(
error
?.
response
?.
businessCode
===
'
3001
'
)
{
/* 有享花卡未支付的订单 */
this
.
$dialog
({
message
:
'
您的享花卡额度被其他订单占用,暂时不可使用享花卡支付哦!
'
,
confirmButtonText
:
'
重新选择
'
,
showCancelButton
:
false
,
confirmButtonColor
:
'
#EC1500
'
});
havePayingOrder
.
call
(
this
);
return
;
}
if
(
codeArr
.
indexOf
(
error
?.
response
?.
businessCode
)
<
0
)
{
...
...
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