Authored by zhangxiaoru

埋点udid

... ... @@ -59,6 +59,7 @@ exports.getCoupon = (req, res, next) => {
// 获取信息成功
couponData.ordercode = ordercode;
}
// console.log(couponData);
res.json({
result: couponData
... ... @@ -92,9 +93,10 @@ exports.verify = (req, res, next) => {
// 获取信息成功
couponData.ordercode = ordercode;
}
// console.log(couponData);
res.json({
result: couponData
});
}).catch(next);
};
\ No newline at end of file
};
... ...
... ... @@ -117,4 +117,4 @@ exports.registerAndSendCoupon = (data) => {
return api.get('', verifyData).then(result => {
return getUserStatus(result);
}); // 所有数据返回一个 Promise,方便 Promise.all 调用
};
\ No newline at end of file
};
... ...
... ... @@ -155,7 +155,7 @@ var page = {
// 埋点
tracking: function() {
var C_ID = this.getChannel(),
UDID = window.queryString.udid || window.queryString.anbiudid || '',
UDID = window.queryString.anbiudid || window.queryString.udid || '',
SID = window.queryString.session_id || '';
// 刚进页面埋点
... ...
... ... @@ -22,7 +22,7 @@ var getChannel = function() {
// 抽奖埋点
var tracking = function() {
var C_ID = getChannel(),
UDID = window.queryString.udid || window.queryString.anbiudid || '',
UDID = window.queryString.anbiudid || window.queryString.udid || '',
SID = window.queryString.session_id || '';
setTimeout(function() {
... ...
... ... @@ -301,7 +301,7 @@ $(function() {
if (isApp) {
speckParamApp = {
udid: window.queryString.udid || window.queryString.anbiudid || '',
udid: window.queryString.anbiudid || window.queryString.udid || '',
apt: window.queryString.client_type || '',
sid: window.queryString.session_id || '',
};
... ...
... ... @@ -16,7 +16,7 @@ search.start();
$('.goods-container').on('click', '.good-info', function() {
var C_ID = getChannel(),
UDID = window.queryString.udid || window.queryString.anbiudid || '',
UDID = window.queryString.anbiudid || window.queryString.udid || '',
SID = window.queryString.session_id || '',
skn = $(this).attr('data-id');
... ...