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
422712af
Commit
422712af
authored
Sep 13, 2021
by
郭志伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(rysdk): 添加热云事件
parent
d49aa8e3
Changes
3
Show 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 @
422712af
...
@@ -133,6 +133,16 @@ function filterAllPayList(type, data) {
...
@@ -133,6 +133,16 @@ function filterAllPayList(type, data) {
}
}
return
data
;
return
data
;
}
}
const
payTypeMap
=
{
'
1
'
:
'
信用支付
'
,
'
2
'
:
'
微信支付
'
,
'
3
'
:
'
支付宝支付
'
,
'
4
'
:
'
信用支付_微信支付
'
,
'
5
'
:
'
信用支付_支付宝支付
'
,
'
6
'
:
'
虚拟支付0元付
'
};
export
{
export
{
status
,
status
,
codeArr
,
codeArr
,
...
@@ -161,5 +171,6 @@ export {
...
@@ -161,5 +171,6 @@ export {
ACCOUNT_APPLY_AUDITING
,
ACCOUNT_APPLY_AUDITING
,
ACCOUNT_APPLY_AUDIT_FAIL
,
ACCOUNT_APPLY_AUDIT_FAIL
,
SMS_VERIFICATION_CODE_PAY
,
SMS_VERIFICATION_CODE_PAY
,
FACE_VERIFICATION_CODE_PAY
FACE_VERIFICATION_CODE_PAY
,
payTypeMap
};
};
src/views/pay/index.vue
View file @
422712af
...
@@ -512,7 +512,8 @@ export default {
...
@@ -512,7 +512,8 @@ export default {
name
:
`pay
${
type
}
`
,
name
:
`pay
${
type
}
`
,
query
:
{
query
:
{
reason
:
error
,
reason
:
error
,
orderNo
:
this
.
orderNo
orderNo
:
this
.
orderNo
,
payType
:
this
.
payType
}
}
});
});
},
},
...
...
src/views/pay/payResult.vue
View file @
422712af
...
@@ -54,7 +54,9 @@
...
@@ -54,7 +54,9 @@
<
script
>
<
script
>
import
RecoGoods
from
'
@/components/RecoGoods.vue
'
;
import
RecoGoods
from
'
@/components/RecoGoods.vue
'
;
import
cookies
from
'
@/service/cookieStorage.service
'
;
import
cookies
from
'
@/service/cookieStorage.service
'
;
import
{
isApp
}
from
'
@/service/validation.service
'
;
import
{
goUrlExtends
}
from
'
./extends
'
;
import
{
goUrlExtends
}
from
'
./extends
'
;
import
{
payTypeMap
}
from
'
./STATIC_DATA
'
;
export
default
{
export
default
{
components
:
{
RecoGoods
},
components
:
{
RecoGoods
},
extends
:
goUrlExtends
,
extends
:
goUrlExtends
,
...
@@ -68,7 +70,7 @@ export default {
...
@@ -68,7 +70,7 @@ export default {
};
};
},
},
created
()
{
created
()
{
const
{
orderNo
,
reason
}
=
this
.
$route
.
query
;
const
{
orderNo
,
reason
,
payType
}
=
this
.
$route
.
query
;
const
{
success
}
=
this
.
$route
.
meta
;
const
{
success
}
=
this
.
$route
.
meta
;
const
amount
=
cookies
.
get
(
'
amount
'
)
||
{};
const
amount
=
cookies
.
get
(
'
amount
'
)
||
{};
this
.
money
=
amount
.
finalAmt
;
this
.
money
=
amount
.
finalAmt
;
...
@@ -80,6 +82,17 @@ export default {
...
@@ -80,6 +82,17 @@ export default {
this
.
$track
.
registeredEvents
(
'
h5_RechargeResultPageExposure
'
,
{
this
.
$track
.
registeredEvents
(
'
h5_RechargeResultPageExposure
'
,
{
pay_status
:
this
.
payStatus
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
:
{
methods
:
{
goPay
()
{
goPay
()
{
...
...
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