|
@@ -309,46 +309,9 @@
|
|
|
iconHide: true,
|
|
|
duration: 1500,
|
|
|
callback: function () {
|
|
|
- // 三级页引流过来的埋点
|
|
|
- if (checkout.getUrlParam('mid')) {
|
|
|
- try {
|
|
|
- $.ajax({
|
|
|
- type: "POST",
|
|
|
- url: "/publicapply/drainage/bmt/" + checkout.getUrlParam('mid'),
|
|
|
- data: {
|
|
|
- p: 'Paid'
|
|
|
- },
|
|
|
- success: function(r) {
|
|
|
- console.log(r)
|
|
|
- }
|
|
|
- })
|
|
|
- } catch (error) {
|
|
|
- console.log(error)
|
|
|
- }
|
|
|
- }
|
|
|
- // 采购单位画像引流过来的埋点
|
|
|
- if (checkout.getUrlParam('bid')) {
|
|
|
- try {
|
|
|
- var params = {
|
|
|
- mold: 'isPaid'
|
|
|
- }
|
|
|
- $.ajax({
|
|
|
- type: 'POST',
|
|
|
- url: '/publicapply/drainage/buyerunit',
|
|
|
- contentType: "application/json",
|
|
|
- data: JSON.stringify(params),
|
|
|
- success: function (res) {
|
|
|
- console.log(res)
|
|
|
- },
|
|
|
- error: function (error) {
|
|
|
- console.log(error)
|
|
|
- }
|
|
|
- })
|
|
|
- } catch (error) {
|
|
|
- console.log(error)
|
|
|
- }
|
|
|
- }
|
|
|
- var bigmemberBid=checkout.getUrlParam("b");
|
|
|
+ // 埋点请求
|
|
|
+ _this.buryingPoint()
|
|
|
+ var bigmemberBid = checkout.getUrlParam("b");
|
|
|
var href="/jyapp/{{.T.doType}}/paySuccess?orderCode=" + res.orderCode + "&email=" + res.email + "&payTime=" + res.payTime + "&pay_way=" + res.pay_way + "&price=" + res.price + "&t={{.T.t}}"
|
|
|
if (bigmemberBid==="1"){
|
|
|
href = "/jyapp/aiForecastPack/paySuccess?orderCode=" + res.orderCode + "&email=" + res.email + "&payTime=" + res.payTime + "&pay_way=" + res.pay_way + "&price=" + res.price + "&t={{.T.t}}"
|
|
@@ -373,6 +336,47 @@
|
|
|
if (r != null)
|
|
|
return unescape(r[2]);
|
|
|
return null;
|
|
|
+ },
|
|
|
+ buryingPoint: function () {
|
|
|
+ // 三级页引流过来的埋点
|
|
|
+ if (checkout.getUrlParam('mid')) {
|
|
|
+ try {
|
|
|
+ $.ajax({
|
|
|
+ type: "POST",
|
|
|
+ url: "/publicapply/drainage/bmt/" + checkout.getUrlParam('mid'),
|
|
|
+ data: {
|
|
|
+ p: 'Paid'
|
|
|
+ },
|
|
|
+ success: function(r) {
|
|
|
+ console.log(r)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ } catch (error) {
|
|
|
+ console.log(error)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ // 采购单位画像引流过来的埋点
|
|
|
+ if (checkout.getUrlParam('bid')) {
|
|
|
+ try {
|
|
|
+ var params = {
|
|
|
+ mold: 'isPaid'
|
|
|
+ }
|
|
|
+ $.ajax({
|
|
|
+ type: 'POST',
|
|
|
+ url: '/publicapply/drainage/buyerunit',
|
|
|
+ contentType: "application/json",
|
|
|
+ data: JSON.stringify(params),
|
|
|
+ success: function (res) {
|
|
|
+ console.log(res)
|
|
|
+ },
|
|
|
+ error: function (error) {
|
|
|
+ console.log(error)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ } catch (error) {
|
|
|
+ console.log(error)
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
checkout.init()
|