|
@@ -224,16 +224,52 @@
|
|
},
|
|
},
|
|
buttonSubMit(){
|
|
buttonSubMit(){
|
|
switch(this.payType){
|
|
switch(this.payType){
|
|
- case '0':
|
|
|
|
|
|
+ case '0':// 微信支付
|
|
|
|
+ // 友盟埋点收集微信支付
|
|
|
|
+ if(process.env.NODE_ENV != 'development'){
|
|
|
|
+ this.$uma.trackEvent('Um_Event_ConfirmWechatPay', {
|
|
|
|
+ Um_Key_PageName: '微信支付',
|
|
|
|
+ Um_Key_SourcePage: '线上支付',
|
|
|
|
+ Um_Key_PayName:`${this.buttonText}`,
|
|
|
|
+ Um_Key_PayOrderID:`${this.orderId}`
|
|
|
|
+ })
|
|
|
|
+ }
|
|
this.MiniWxPayFor()
|
|
this.MiniWxPayFor()
|
|
break
|
|
break
|
|
- case '1':
|
|
|
|
|
|
+ case '1':// 企业网银
|
|
|
|
+ // 友盟埋点收集企业网银
|
|
|
|
+ if(process.env.NODE_ENV != 'development'){
|
|
|
|
+ this.$uma.trackEvent('Um_Event_ConfirmEbankPay', {
|
|
|
|
+ Um_Key_PageName: '企业网银',
|
|
|
|
+ Um_Key_SourcePage: '线上支付',
|
|
|
|
+ Um_Key_PayName:`${this.buttonText}`,
|
|
|
|
+ Um_Key_PayOrderID:`${this.orderId}`
|
|
|
|
+ })
|
|
|
|
+ }
|
|
this.BuildCatenate()
|
|
this.BuildCatenate()
|
|
break
|
|
break
|
|
- case '2':
|
|
|
|
|
|
+ case '2':// 个人网银
|
|
|
|
+ // 友盟埋点收集个人网银
|
|
|
|
+ if(process.env.NODE_ENV != 'development'){
|
|
|
|
+ this.$uma.trackEvent('Um_Event_ConfirmAbankPay', {
|
|
|
|
+ Um_Key_PageName: '个人网银',
|
|
|
|
+ Um_Key_SourcePage: '线上支付',
|
|
|
|
+ Um_Key_PayName:`${this.buttonText}`,
|
|
|
|
+ Um_Key_PayOrderID:`${this.orderId}`
|
|
|
|
+ })
|
|
|
|
+ }
|
|
this.BuildCatenate()
|
|
this.BuildCatenate()
|
|
break
|
|
break
|
|
- case '3':
|
|
|
|
|
|
+ case '3':// 大额支付
|
|
|
|
+ // 友盟埋点收集大额支付
|
|
|
|
+ if(process.env.NODE_ENV != 'development'){
|
|
|
|
+ this.$uma.trackEvent('Um_Event_ConfirmBigbankPay', {
|
|
|
|
+ Um_Key_PageName: '大额支付',
|
|
|
|
+ Um_Key_SourcePage: '线上支付',
|
|
|
|
+ Um_Key_PayName:`${this.buttonText}`,
|
|
|
|
+ Um_Key_PayOrderID:`${this.orderId}`
|
|
|
|
+ })
|
|
|
|
+ }
|
|
this.LargePayment()
|
|
this.LargePayment()
|
|
break
|
|
break
|
|
}
|
|
}
|
|
@@ -308,15 +344,6 @@
|
|
orderId:this.orderId
|
|
orderId:this.orderId
|
|
}
|
|
}
|
|
this.PayService.WeChatMiniWxPay(params).then(response =>{
|
|
this.PayService.WeChatMiniWxPay(params).then(response =>{
|
|
- // 友盟埋点收集微信支付
|
|
|
|
- if(process.env.NODE_ENV != 'development'){
|
|
|
|
- this.$uma.trackEvent('Um_Event_ConfirmWechatPay', {
|
|
|
|
- Um_Key_PageName: '微信支付',
|
|
|
|
- Um_Key_SourcePage: '线上支付',
|
|
|
|
- Um_Key_PayName:`${this.buttonText}`,
|
|
|
|
- Um_Key_PayOrderID:`${this.orderId}`
|
|
|
|
- })
|
|
|
|
- }
|
|
|
|
let PayInfo = JSON.parse(response.data.data.payInfo)
|
|
let PayInfo = JSON.parse(response.data.data.payInfo)
|
|
this.WxRequestPayment(PayInfo)
|
|
this.WxRequestPayment(PayInfo)
|
|
}).catch(error =>{
|
|
}).catch(error =>{
|
|
@@ -326,6 +353,7 @@
|
|
},
|
|
},
|
|
WxRequestPayment(data){
|
|
WxRequestPayment(data){
|
|
let self = this
|
|
let self = this
|
|
|
|
+ console.log('data',data)
|
|
wx.requestPayment({
|
|
wx.requestPayment({
|
|
'timeStamp': data.timeStamp,
|
|
'timeStamp': data.timeStamp,
|
|
'nonceStr': data.nonceStr,
|
|
'nonceStr': data.nonceStr,
|