|
@@ -506,6 +506,7 @@
|
|
|
if (!loginflag) {
|
|
|
return openLoginDig()
|
|
|
}
|
|
|
+ var paramsMid = getParam('mid')
|
|
|
$.ajax({
|
|
|
type: 'POST',
|
|
|
url: '/jypay/bigmember/createOrder',
|
|
@@ -515,7 +516,26 @@
|
|
|
order_phone: OrderPhoneCheck.phone
|
|
|
},
|
|
|
success: function (res) {
|
|
|
- if (source!=null){
|
|
|
+ // 判断url里是否有引导语文案id,如果有就需要埋点
|
|
|
+ if (paramsMid && res.data && res.data.order_code) {
|
|
|
+ try {
|
|
|
+ $.ajax({
|
|
|
+ type: "POST",
|
|
|
+ url: "/publicapply/drainage/bmt/" + paramsMid,
|
|
|
+ data: {
|
|
|
+ p: 'OBT',
|
|
|
+ price: getDisPrice(getParams.level, getParams.cycle)*100,
|
|
|
+ orderCode: res.data.order_code
|
|
|
+ },
|
|
|
+ success: function(r) {
|
|
|
+ console.log(r)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ } catch (error) {
|
|
|
+ console.log(error)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if (source!=null){
|
|
|
$.ajax({
|
|
|
type:'GET',
|
|
|
url:'/front/order/source',
|
|
@@ -528,7 +548,7 @@
|
|
|
})
|
|
|
}
|
|
|
history.replaceState({"flag": "pay"}, '', '/front/member/memberDetail?order_code=' + res.data.order_code);
|
|
|
- location.href = '/front/member/orderPay/' + res.data.order_code;
|
|
|
+ location.href = '/front/member/orderPay/' + res.data.order_code + '?mid=' + paramsMid;
|
|
|
}
|
|
|
})
|
|
|
})
|