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
e9c2ee56
Commit
e9c2ee56
authored
Sep 14, 2021
by
郭志伟
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/reyun' into feature/activity
# Conflicts: # src/views/pay/payResult.vue
parents
2c1aa35e
422712af
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
3 deletions
+28
-3
STATIC_DATA.js
src/views/pay/STATIC_DATA.js
+12
-1
index.vue
src/views/pay/index.vue
+2
-1
payResult.vue
src/views/pay/payResult.vue
+14
-1
No files found.
src/views/pay/STATIC_DATA.js
View file @
e9c2ee56
...
...
@@ -133,6 +133,16 @@ function filterAllPayList(type, data) {
}
return
data
;
}
const
payTypeMap
=
{
'
1
'
:
'
信用支付
'
,
'
2
'
:
'
微信支付
'
,
'
3
'
:
'
支付宝支付
'
,
'
4
'
:
'
信用支付_微信支付
'
,
'
5
'
:
'
信用支付_支付宝支付
'
,
'
6
'
:
'
虚拟支付0元付
'
};
export
{
status
,
codeArr
,
...
...
@@ -161,5 +171,6 @@ export {
ACCOUNT_APPLY_AUDITING
,
ACCOUNT_APPLY_AUDIT_FAIL
,
SMS_VERIFICATION_CODE_PAY
,
FACE_VERIFICATION_CODE_PAY
FACE_VERIFICATION_CODE_PAY
,
payTypeMap
};
src/views/pay/index.vue
View file @
e9c2ee56
...
...
@@ -519,7 +519,8 @@ export default {
name
:
`pay
${
type
}
`
,
query
:
{
reason
:
error
,
orderNo
:
this
.
orderNo
orderNo
:
this
.
orderNo
,
payType
:
this
.
payType
}
});
},
...
...
src/views/pay/payResult.vue
View file @
e9c2ee56
...
...
@@ -55,7 +55,9 @@
import
RecoGoods
from
'
@/components/RecoGoods.vue
'
;
import
cookies
from
'
@/service/cookieStorage.service
'
;
import
localStorage
from
'
@/service/localStorage.service
'
;
import
{
isApp
}
from
'
@/service/validation.service
'
;
import
{
goUrlExtends
}
from
'
./extends
'
;
import
{
payTypeMap
}
from
'
./STATIC_DATA
'
;
export
default
{
components
:
{
RecoGoods
},
extends
:
goUrlExtends
,
...
...
@@ -72,7 +74,7 @@ export default {
},
created
()
{
this
.
getQuery
();
const
{
orderNo
,
reason
}
=
this
.
$route
.
query
;
const
{
orderNo
,
reason
,
payType
}
=
this
.
$route
.
query
;
const
{
success
}
=
this
.
$route
.
meta
;
const
amount
=
cookies
.
get
(
'
amount
'
)
||
{};
this
.
money
=
amount
.
finalAmt
;
...
...
@@ -84,6 +86,17 @@ export default {
this
.
$track
.
registeredEvents
(
'
h5_RechargeResultPageExposure
'
,
{
pay_status
:
this
.
payStatus
});
this
.
isSuccess
&&
isApp
&&
this
.
util
.
run
({
event
:
'
reyunAnalytics
'
,
data
:
{
method
:
'
PaySuccess
'
,
//string submitOrder OR PaySuccess
orderId
:
orderNo
,
//string 订单号
amount
:
amount
.
finalAmt
,
//float 金额
payType
:
payTypeMap
[
payType
]
//string 支付类型
}
});
},
methods
:
{
getQuery
()
{
...
...
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