|
@@ -1268,6 +1268,9 @@
|
|
|
}
|
|
|
//关闭广告
|
|
|
$('.time-close-wrap')[0].addEventListener('click', () => {
|
|
|
+ if(videoTime == 0) {
|
|
|
+ reportFrequency()
|
|
|
+ }
|
|
|
$('.buy-phone-wrap').eq(0).show();
|
|
|
});
|
|
|
// 点击取消
|
|
@@ -1358,6 +1361,19 @@
|
|
|
success: function (res) {},
|
|
|
});
|
|
|
}
|
|
|
+ // 观看广告次数上报
|
|
|
+ function reportFrequency() {
|
|
|
+ $.ajax({
|
|
|
+ url: baseUrl + '/api/resoures/v1/trial/reportFrequency/' + form.userCardId,
|
|
|
+ headers: {
|
|
|
+ Authorization: form.token
|
|
|
+ },
|
|
|
+ type: 'post',
|
|
|
+ contentType: 'application/json',
|
|
|
+ dataType: 'json',
|
|
|
+ success: function (res) {},
|
|
|
+ });
|
|
|
+ }
|
|
|
function quit() {
|
|
|
if (navigator.userAgent.toLowerCase().includes('toutiaomicroapp')) {
|
|
|
tt.miniProgram.switchTab({
|