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
fe5f07f8
Commit
fe5f07f8
authored
Jul 20, 2021
by
FE-安焕焕
👣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ocr成功后的处理
parent
219ef121
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
4 deletions
+22
-4
index.vue
src/views/pay/index.vue
+22
-4
No files found.
src/views/pay/index.vue
View file @
fe5f07f8
...
@@ -125,6 +125,7 @@ import {
...
@@ -125,6 +125,7 @@ import {
queryPayInfo
,
queryPayInfo
,
kaGetNextUrl
kaGetNextUrl
}
from
'
@/api/pay.api.js
'
;
}
from
'
@/api/pay.api.js
'
;
import
Cookies
from
'
@/service/cookieStorage.service
'
;
const
VCC_CHANNEL
=
localStorage
.
get
(
'
vccChannel
'
);
const
VCC_CHANNEL
=
localStorage
.
get
(
'
vccChannel
'
);
let
Current_Url
=
null
;
let
Current_Url
=
null
;
export
default
{
export
default
{
...
@@ -144,6 +145,7 @@ export default {
...
@@ -144,6 +145,7 @@ export default {
error
:
''
,
error
:
''
,
random
:
''
,
random
:
''
,
orderNo
:
''
,
orderNo
:
''
,
payInfo
:
{},
success
:
false
,
success
:
false
,
payType
:
null
,
payType
:
null
,
isReady
:
false
,
isReady
:
false
,
...
@@ -207,7 +209,11 @@ export default {
...
@@ -207,7 +209,11 @@ export default {
this
.
orderNo
=
this
.
$route
.
query
.
orderNo
||
cookies
.
get
(
'
orderNo
'
)?.
orderNo
;
this
.
orderNo
=
this
.
$route
.
query
.
orderNo
||
cookies
.
get
(
'
orderNo
'
)?.
orderNo
;
cookies
.
set
(
'
orderNo
'
,
{
orderNo
:
this
.
orderNo
});
cookies
.
set
(
'
orderNo
'
,
{
orderNo
:
this
.
orderNo
});
if
(
this
.
$route
?.
query
?.
ocrflag
||
cookies
.
get
(
'
ocrflag
'
))
{
if
(
this
.
$route
?.
query
?.
ocrflag
||
cookies
.
get
(
'
ocrflag
'
))
{
this
.
pay
(
cookies
.
get
(
'
paramsData
'
),
'
ocr
'
);
this
.
payInfo
=
cookies
.
get
(
'
info
'
)
||
{};
cookies
.
remove
(
'
ocrflag
'
);
cookies
.
remove
(
'
info
'
);
// 先支付再查询信息
this
.
pay
(
this
.
payInfo
?.
paramsData
,
'
ocr
'
,
cookies
.
get
(
'
ocrflag
'
));
}
}
const
vccToken
=
localStorage
.
get
(
'
vccToken
'
);
const
vccToken
=
localStorage
.
get
(
'
vccToken
'
);
Current_Url
=
`
${
window
.
location
.
origin
}
/payWaiting?vccToken=
${
vccToken
}
&orderNo=
${
this
.
orderNo
}
`
;
Current_Url
=
`
${
window
.
location
.
origin
}
/payWaiting?vccToken=
${
vccToken
}
&orderNo=
${
this
.
orderNo
}
`
;
...
@@ -219,7 +225,7 @@ export default {
...
@@ -219,7 +225,7 @@ export default {
async
queryPayInfo
()
{
async
queryPayInfo
()
{
const
[
data
,
error
]
=
await
queryPayInfo
({
orderNo
:
this
.
orderNo
});
const
[
data
,
error
]
=
await
queryPayInfo
({
orderNo
:
this
.
orderNo
});
if
(
error
&&
codeArr
.
indexOf
(
error
?.
response
?.
businessCode
)
<
0
)
{
if
(
error
&&
codeArr
.
indexOf
(
error
?.
response
?.
businessCode
)
<
0
)
{
this
.
payResult
(
'
Fail
'
);
//
this.payResult('Fail');
return
;
return
;
}
}
this
.
isReady
=
true
;
this
.
isReady
=
true
;
...
@@ -297,6 +303,12 @@ export default {
...
@@ -297,6 +303,12 @@ export default {
this
.
creditPayInfo
=
displayInfo
.
creditPayInfo
||
{};
this
.
creditPayInfo
=
displayInfo
.
creditPayInfo
||
{};
displayInfo
.
periodSeconds
=
displayInfo
.
periodSeconds
*
1000
;
displayInfo
.
periodSeconds
=
displayInfo
.
periodSeconds
*
1000
;
this
.
getBtnStatus
(
this
.
isRiskLimit
());
this
.
getBtnStatus
(
this
.
isRiskLimit
());
if
(
this
.
payInfo
.
payType
)
{
this
.
selectedCoupon
=
this
.
payInfo
.
selectedCoupon
;
this
.
changePayType
(
this
.
payInfo
.
payType
,
this
.
payInfo
.
mergePayPretreatmentInfo
);
this
.
isShowProtocol
&&
(
this
.
isCheckAgreement
=
true
);
this
.
setAmount
();
}
},
},
isRiskLimit
()
{
isRiskLimit
()
{
const
{
accountStatus
,
riskManagementAmt
}
=
this
.
creditPayInfo
;
const
{
accountStatus
,
riskManagementAmt
}
=
this
.
creditPayInfo
;
...
@@ -375,7 +387,7 @@ export default {
...
@@ -375,7 +387,7 @@ export default {
return
;
return
;
}
}
this
.
error
=
''
;
this
.
error
=
''
;
if
(
this
.
isShowProtocol
&&
!
this
.
isCheckAgreement
&&
!
isOcr
)
{
if
(
this
.
isShowProtocol
&&
!
this
.
isCheckAgreement
)
{
this
.
$toast
(
'
请仔细阅读并同意相关协议
'
);
this
.
$toast
(
'
请仔细阅读并同意相关协议
'
);
return
;
return
;
}
}
...
@@ -464,7 +476,13 @@ export default {
...
@@ -464,7 +476,13 @@ export default {
return
;
return
;
}
else
if
(
creditPayStatus
===
FACE_VERIFICATION_CODE_PAY
)
{
}
else
if
(
creditPayStatus
===
FACE_VERIFICATION_CODE_PAY
)
{
/* 人脸鉴权 */
/* 人脸鉴权 */
cookies
.
set
(
'
paramsData
'
,
paramsData
);
cookies
.
set
(
'
info
'
,
{
paramsData
,
payType
:
this
.
payType
,
selectedCoupon
:
this
.
selectedCoupon
,
isCheckAgreement
:
this
.
isCheckAgreement
,
mergePayPretreatmentId
:
this
.
mergePayPretreatmentId
});
this
.
goOcr
();
this
.
goOcr
();
}
}
},
},
...
...
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