埋点时间调整

master
chen 2022-01-25 17:51:01 +08:00
parent 3f00d3c0ac
commit b5987a5a9d
19 changed files with 21 additions and 21 deletions

View File

@ -6,13 +6,13 @@ const tools = {
daoTime(){ daoTime(){
let daoTime = uni.getStorageSync('daoTime') let daoTime = uni.getStorageSync('daoTime')
if(daoTime==''){//初次判断倒计时是否为空 if(daoTime==''){//初次判断倒计时是否为空
uni.setStorageSync('daoTime',600)//设置倒计时 uni.setStorageSync('daoTime',60)//设置倒计时
daoTime = uni.getStorageSync('daoTime') daoTime = uni.getStorageSync('daoTime')
this.timer = setInterval(()=>{ this.timer = setInterval(()=>{
uni.setStorageSync('daoTime',daoTime--)//设置倒计时 uni.setStorageSync('daoTime',daoTime--)//设置倒计时
// console.log('埋点倒计时初次:',daoTime); // console.log('埋点倒计时初次:',daoTime);
// console.log('埋点长度初次:',uni.getStorageSync('maiList').length); // console.log('埋点长度初次:',uni.getStorageSync('maiList').length);
if(uni.getStorageSync('daoTime')<=0 || uni.getStorageSync('maiList').length==20){ if(uni.getStorageSync('daoTime')<=0 || uni.getStorageSync('maiList').length==5){
uni.removeStorageSync('daoTime')//清空倒计时 uni.removeStorageSync('daoTime')//清空倒计时
clearInterval(this.timer)//关闭倒计时 clearInterval(this.timer)//关闭倒计时
// console.log('上/报,埋点'); // console.log('上/报,埋点');
@ -26,7 +26,7 @@ const tools = {
uni.setStorageSync('daoTime',daoTime--)//设置倒计时 uni.setStorageSync('daoTime',daoTime--)//设置倒计时
// console.log('埋点倒计时:',daoTime); // console.log('埋点倒计时:',daoTime);
// console.log('埋点长度:',uni.getStorageSync('maiList').length); // console.log('埋点长度:',uni.getStorageSync('maiList').length);
if(uni.getStorageSync('daoTime')<=0 || uni.getStorageSync('maiList').length==20){ if(uni.getStorageSync('daoTime')<=0 || uni.getStorageSync('maiList').length==5){
uni.removeStorageSync('daoTime')//清空倒计时 uni.removeStorageSync('daoTime')//清空倒计时
clearInterval(this.timer)//关闭倒计时 clearInterval(this.timer)//关闭倒计时
// console.log('上报,埋点'); // console.log('上报,埋点');

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long