|
@@ -6,6 +6,30 @@ import {
|
|
|
|
|
|
import sdk from './buriedPoint'
|
|
|
|
|
|
+const activityPoint = (cpnVal, eaVal, ettVal) => {
|
|
|
+ let { phone } = store.state.addrData
|
|
|
+ WoAnalytics.addPoint({
|
|
|
+ ad: '209263oNPKAcWHeWoE',
|
|
|
+ pm: '',
|
|
|
+ at: 'changshi20221101',
|
|
|
+ ett: ettVal,
|
|
|
+ ea: eaVal,
|
|
|
+ cpn: cpnVal,
|
|
|
+ mp: phone
|
|
|
+ })
|
|
|
+}
|
|
|
+
|
|
|
+const overtime = () => {
|
|
|
+ let { product } = store.state.addrData
|
|
|
+ if (store.state.global.js === 0) {
|
|
|
+ if (store.state.global.point === 0) {
|
|
|
+ if (product.spid == '296' || product.spid == '298') {
|
|
|
+ activityPoint('pay_result', 'pay_result_success', 'open')
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
const loginClick = () => {
|
|
|
let {
|
|
|
channelKey,
|
|
@@ -67,6 +91,10 @@ const loginSuccess = () => {
|
|
|
if (store.state.global.js === 0) {
|
|
|
if (store.state.global.point === 0) {
|
|
|
VuePageVisitor.setMp(phone);
|
|
|
+
|
|
|
+ if (product.spid == '296' || product.spid == '298') {
|
|
|
+ activityPoint('activity_detail', 'activity_detail_login', 'custom')
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -150,6 +178,10 @@ const buyClick = () => {
|
|
|
})
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ if (product.spid == '296' || product.spid == '298') {
|
|
|
+ activityPoint('activity_detail', 'activity_detail_order', 'click')
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}, 200)
|
|
@@ -190,6 +222,13 @@ const buySuccess = () => {
|
|
|
attr6: product.originalPrice,
|
|
|
});
|
|
|
}
|
|
|
+ if (store.state.global.js === 0) {
|
|
|
+ if (store.state.global.point === 0) {
|
|
|
+ if (product.spid == '296' || product.spid == '298') {
|
|
|
+ activityPoint('pay_result', 'pay_result_success', 'open')
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
}, 600)
|
|
|
|
|
|
}
|
|
@@ -226,6 +265,13 @@ const buyFail = (response) => {
|
|
|
attr7: response.message
|
|
|
});
|
|
|
}
|
|
|
+ if (store.state.global.js === 0) {
|
|
|
+ if (store.state.global.point === 0) {
|
|
|
+ if (product.spid == '296' || product.spid == '298') {
|
|
|
+ activityPoint('pay_result', 'pay_result_failure', 'open')
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
const getToken = () => {
|
|
@@ -311,8 +357,6 @@ const unBuyClick = () => {
|
|
|
}
|
|
|
}, 400)
|
|
|
|
|
|
-
|
|
|
-
|
|
|
}
|
|
|
|
|
|
const unBuySuccess = () => {
|
|
@@ -907,6 +951,10 @@ const openPage = () => {
|
|
|
})
|
|
|
}
|
|
|
})
|
|
|
+ if (product.spid == '296' || product.spid == '298') {
|
|
|
+ activityPoint('activity_detail', 'activity_detail_view', 'open')
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -936,7 +984,7 @@ const flowJihuo = () => {
|
|
|
tid: tid
|
|
|
});
|
|
|
if (store.state.global.sensors === 0) {
|
|
|
- sensors.track("clickTraffic",{
|
|
|
+ sensors.track("clickTraffic", {
|
|
|
attr4: product.spid,
|
|
|
attr5: product.productName,
|
|
|
attr6: product.originalPrice
|
|
@@ -968,7 +1016,7 @@ const dialNumber = () => {
|
|
|
tid: tid
|
|
|
});
|
|
|
if (store.state.global.sensors === 0) {
|
|
|
- sensors.track("clickDialing",{
|
|
|
+ sensors.track("clickDialing", {
|
|
|
attr4: product.spid,
|
|
|
attr5: product.productName,
|
|
|
attr6: product.originalPrice
|
|
@@ -1001,7 +1049,7 @@ const jihuoSolve = () => {
|
|
|
tid: tid
|
|
|
});
|
|
|
if (store.state.global.sensors === 0) {
|
|
|
- sensors.track("activateClick1",{
|
|
|
+ sensors.track("activateClick1", {
|
|
|
attr4: product.spid,
|
|
|
attr5: product.productName,
|
|
|
attr6: product.originalPrice
|
|
@@ -1034,7 +1082,7 @@ const jihuoUnbuy = () => {
|
|
|
tid: tid
|
|
|
});
|
|
|
if (store.state.global.sensors === 0) {
|
|
|
- sensors.track("activateClickinsist1",{
|
|
|
+ sensors.track("activateClickinsist1", {
|
|
|
attr4: product.spid,
|
|
|
attr5: product.productName,
|
|
|
attr6: product.originalPrice
|
|
@@ -1067,7 +1115,7 @@ const memberSolve = () => {
|
|
|
tid: tid
|
|
|
});
|
|
|
if (store.state.global.sensors === 0) {
|
|
|
- sensors.track("activateClick2",{
|
|
|
+ sensors.track("activateClick2", {
|
|
|
attr4: product.spid,
|
|
|
attr5: product.productName,
|
|
|
attr6: product.originalPrice
|
|
@@ -1100,7 +1148,7 @@ const memberUnbuy = () => {
|
|
|
tid: tid
|
|
|
});
|
|
|
if (store.state.global.sensors === 0) {
|
|
|
- sensors.track("activateClickinsist2",{
|
|
|
+ sensors.track("activateClickinsist2", {
|
|
|
attr4: product.spid,
|
|
|
attr5: product.productName,
|
|
|
attr6: product.originalPrice
|
|
@@ -1133,7 +1181,7 @@ const unbuyReason = () => {
|
|
|
tid: tid
|
|
|
});
|
|
|
if (store.state.global.sensors === 0) {
|
|
|
- sensors.track("clickRecentlyclient",{
|
|
|
+ sensors.track("clickRecentlyclient", {
|
|
|
attr4: product.spid,
|
|
|
attr5: product.productName,
|
|
|
attr6: product.originalPrice
|
|
@@ -1166,7 +1214,7 @@ const unbuyReason1 = () => {
|
|
|
tid: tid
|
|
|
});
|
|
|
if (store.state.global.sensors === 0) {
|
|
|
- sensors.track("clickTrafficup",{
|
|
|
+ sensors.track("clickTrafficup", {
|
|
|
attr4: product.spid,
|
|
|
attr5: product.productName,
|
|
|
attr6: product.originalPrice
|
|
@@ -1198,7 +1246,7 @@ const unbuyReason2 = () => {
|
|
|
tid: tid
|
|
|
});
|
|
|
if (store.state.global.sensors === 0) {
|
|
|
- sensors.track("clickPriceexpensive",{
|
|
|
+ sensors.track("clickPriceexpensive", {
|
|
|
attr4: product.spid,
|
|
|
attr5: product.productName,
|
|
|
attr6: product.originalPrice
|
|
@@ -1230,7 +1278,7 @@ const unbuyReason3 = () => {
|
|
|
tid: tid
|
|
|
});
|
|
|
if (store.state.global.sensors === 0) {
|
|
|
- sensors.track("clickMisoperation",{
|
|
|
+ sensors.track("clickMisoperation", {
|
|
|
attr4: product.spid,
|
|
|
attr5: product.productName,
|
|
|
attr6: product.originalPrice
|
|
@@ -1263,7 +1311,7 @@ const unbuyReason4 = () => {
|
|
|
tid: tid
|
|
|
});
|
|
|
if (store.state.global.sensors === 0) {
|
|
|
- sensors.track("clickOther",{
|
|
|
+ sensors.track("clickOther", {
|
|
|
attr4: product.spid,
|
|
|
attr5: product.productName,
|
|
|
attr6: product.originalPrice
|
|
@@ -1296,7 +1344,7 @@ const unbuyReason5 = () => {
|
|
|
tid: tid
|
|
|
});
|
|
|
if (store.state.global.sensors === 0) {
|
|
|
- sensors.track("clickBeactivated",{
|
|
|
+ sensors.track("clickBeactivated", {
|
|
|
attr4: product.spid,
|
|
|
attr5: product.productName,
|
|
|
attr6: product.originalPrice
|
|
@@ -1328,7 +1376,7 @@ const unbuyReason6 = () => {
|
|
|
tid: tid
|
|
|
});
|
|
|
if (store.state.global.sensors === 0) {
|
|
|
- sensors.track("clickMemberreceive",{
|
|
|
+ sensors.track("clickMemberreceive", {
|
|
|
attr4: product.spid,
|
|
|
attr5: product.productName,
|
|
|
attr6: product.originalPrice
|
|
@@ -1398,5 +1446,6 @@ export default {
|
|
|
unbuyReason4,
|
|
|
unbuyReason5,
|
|
|
unbuyReason6,
|
|
|
- memberPage
|
|
|
+ memberPage,
|
|
|
+ overtime
|
|
|
}
|