|
@@ -178,6 +178,7 @@
|
|
|
var searchParams = new URLSearchParams(url)
|
|
|
// 获取code参数的值
|
|
|
var code = searchParams.get('code')
|
|
|
+ var first = searchParams.get('first')
|
|
|
var uid = searchParams.get('uid')
|
|
|
if (uid) {
|
|
|
this.uid = uid
|
|
@@ -200,6 +201,19 @@
|
|
|
} else {
|
|
|
this.getWxCode()
|
|
|
}
|
|
|
+ if (first) {
|
|
|
+ axios({
|
|
|
+ method: 'post',
|
|
|
+ url: 'https://reader-api.ai160.com/wx/userEvent/v2',
|
|
|
+ headers: {
|
|
|
+ uid: this.uid,
|
|
|
+ channelCode: '3001'
|
|
|
+ },
|
|
|
+ data: {
|
|
|
+ action: 'IOS_PAY_ENTER'
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
},
|
|
|
methods: {
|
|
|
selected(e) {
|
|
@@ -246,6 +260,17 @@
|
|
|
async res => {
|
|
|
if (res.err_msg == 'get_brand_wcpay_request:ok') {
|
|
|
this.mask = true
|
|
|
+ axios({
|
|
|
+ method: 'post',
|
|
|
+ url: 'https://reader-api.ai160.com/wx/userEvent/v2',
|
|
|
+ headers: {
|
|
|
+ uid: this.uid,
|
|
|
+ channelCode: '3001'
|
|
|
+ },
|
|
|
+ data: {
|
|
|
+ action: 'IOS_PAY_SUCCESS'
|
|
|
+ }
|
|
|
+ })
|
|
|
} else {
|
|
|
this.getWxCode()
|
|
|
}
|
|
@@ -253,6 +278,17 @@
|
|
|
)
|
|
|
})
|
|
|
})
|
|
|
+ axios({
|
|
|
+ method: 'post',
|
|
|
+ url: 'https://reader-api.ai160.com/wx/userEvent/v2',
|
|
|
+ headers: {
|
|
|
+ uid: this.uid,
|
|
|
+ channelCode: '3001'
|
|
|
+ },
|
|
|
+ data: {
|
|
|
+ action: 'IOS_PAY_ACTIVITY'
|
|
|
+ }
|
|
|
+ })
|
|
|
},
|
|
|
closeMask() {
|
|
|
this.mask = false
|