|
@@ -1315,12 +1315,9 @@
|
|
// 观看广告次数上报1
|
|
// 观看广告次数上报1
|
|
function reportFrequency() {
|
|
function reportFrequency() {
|
|
$.ajax({
|
|
$.ajax({
|
|
- url:
|
|
|
|
- baseUrl +
|
|
|
|
- '/api/resoures/v1/trial/reportFrequency/' +
|
|
|
|
- form.userCardId,
|
|
|
|
|
|
+ url: baseUrl + '/api/resoures/v1/trial/reportFrequency/' + userCardId,
|
|
headers: {
|
|
headers: {
|
|
- Authorization: form.token,
|
|
|
|
|
|
+ Authorization: token,
|
|
},
|
|
},
|
|
type: 'post',
|
|
type: 'post',
|
|
contentType: 'application/json',
|
|
contentType: 'application/json',
|
|
@@ -1427,6 +1424,22 @@
|
|
decodeWoker.postMessage('close');
|
|
decodeWoker.postMessage('close');
|
|
decodeWoker.terminate();
|
|
decodeWoker.terminate();
|
|
};
|
|
};
|
|
|
|
+ // 埋点
|
|
|
|
+ function systemBuriedPoint(pointName) {
|
|
|
|
+ $.ajax({
|
|
|
|
+ url: baseUrl + '/api/public/v1/systemBuriedPoint/stat',
|
|
|
|
+ headers: {
|
|
|
|
+ Authorization: token,
|
|
|
|
+ },
|
|
|
|
+ type: 'post',
|
|
|
|
+ data: JSON.stringify({
|
|
|
|
+ pointName: pointName,
|
|
|
|
+ }),
|
|
|
|
+ contentType: 'application/json',
|
|
|
|
+ dataType: 'json',
|
|
|
|
+ success: function (res) {},
|
|
|
|
+ });
|
|
|
|
+ }
|
|
function quit() {
|
|
function quit() {
|
|
if (navigator.userAgent.toLowerCase().includes('toutiaomicroapp')) {
|
|
if (navigator.userAgent.toLowerCase().includes('toutiaomicroapp')) {
|
|
tt.miniProgram.switchTab({
|
|
tt.miniProgram.switchTab({
|