叶辰萧初然提示您:看后求收藏(第3432章,上门龙婿,叶辰萧初然,海棠文学),接着再看更方便。

请关闭浏览器的阅读/畅读/小说模式并且关闭广告屏蔽过滤功能,避免出现内容无法显示或者段落错乱。

vartoday_read_chapter_num_key='t_read_chapter_num_'+cur_date+'_'+cookie_user_id;

varfloat_tip_key='flot_tip_'+cur_date+'_'+cookie_user_id;

varhasfloatpop=number($.fn.cookie(float_tip_key));//有没有提示过浮窗

if(isfloattips){

if(!popuping){

//当前没有其他弹窗

/**记录用户今日阅读章节数**/

vartodayreadchapternum=number($.fn.cookie(today_read_chapter_num_key));

if(!hasfloatpop&&todayreadchapternum){

$('.pop-box').show();

$.fn.cookie(float_tip_key,1,{expires:exp});

}

$('.pop-box-close').click(fun(){

$('.pop-box').hide();

});

$.fn.cookie(today_read_chapter_num_key,todayreadchapternum+1,{expires:exp});

}

}

</script

<script

if($('.float-bottom').attr('is-show')){

cpslog([701,{map:{welfare_bottom:1}}]);

}

//阅读任务悬浮层相关

$('.float-bottom').bind('click',fun(){

cpslog([701,{map:{welfare_window:1}}]);

if(this.getattribute('bt')=='可领取'){

cpslog([702,{map:{welfare_status:'welfare_get_btn_click'}},'welfare_chapter']);

}else{

cpslog([702,{map:{welfare_status:'welfare_first_btn_click'}},'welfare_chapter']);

}

$('.dialog-read').show()

})

$('.dialog-panel-close').bind('click',fun(){

$('.dialog').hide()

})

varseds=3

varinterval=setinterval(fun(){

seds-=1

if(seds<1){

clearinterval(interval)

$('.float-bottom').hide()

}else{

$('.float-bottom-time').text(seds+'s')

}

},1000)

$('.read-task.go-read').each(fun(){

$(this).click(fun(){

cpslog([702,{map:{welfare_status:'welfare_go_read_click'}},'welfare_chapter']);

$('.dialog').hide()

});

});

//阅读任务领取奖励

$('.read-task.enable').each(fun(){

$(this).click(fun(){

varitem=$(this);

varquerystring=item.attr('query-string');

varstage=parseint(querystring.match(/stage=(.*)&/)[1]);

if(stage==1){

cpslog([702,{map:{welfare_status:'welfare_get_read_one_click'}},'welfare_chapter']);

}elseif(stage==2){

cpslog([702,{map:{welfare_status:'welfare_get_read_two_click'}},'welfare_chapter']);

}elseif(stage==3){

cpslog([702,{map:{welfare_status:'welfare_get_read_three_click'}},'welfare_chapter']);

}

$.get('/api/welfare/taskreward'+querystring+'&timestamp='+loadtime,{},fun(result){

if(result.code==1){

item.removeclass('enable');

item.addclass('disable');

item.text('已领取');

varrewardtimes=parseint($('#read-reward-times').text());

$('#read-reward-times').text(rewardtimes+1)

}else{

//暂时先去掉,后期优化

//alert(result.msg);

}

});

});

});

varloadtime=(date.parse(e())/1000);

$(fun(){

if(1){

//神策-自采集属性

varstart=e();

sensors.quick('autotrack',{

book_id:string(11010073404),

chapter_id:string(481955469)

})

//神策-readchapterstart(开始章节阅读)

//is_first_time_read 是否首次阅读

//source_position 来源位置

//read_type 阅读类型

//chapter_num 章节数

//chapter_id 章节id

//chapter_name 章节名称

//chapter_pay_type 章节付费类型

//chapter_s 阅读章节所需书币

//update_time 更新时间

//book_id 书籍id

//book_name 书籍名称

//first_type 一级类别

//sed_type 二级类别

//pay_type 付费类型

//author 作者名称

//book_finish_status 书籍完本状态

//max_chapter 小说最大章节数

varbook_read_type="文字阅读";

if(window.lisflag=="true"){

book_read_type="语音阅读";

}

sensors.track('readchapterstart',{

'is_first_time_read':false,

'source_position':"cps",

'read_type':book_read_type,

'chapter_num':115,

'chapter_id':"481955469",

'chapter_name':"",

'chapter_pay_type':"章",

'chapter_s':35,

'update_time'30六十八3723000,

'book_id':"11010073404",

'book_name':"陆总,傻妻不傻",

'first_type':"女频",

'sed_type':"现代言情",

'pay_type':"收费",

'author':"三月",

'book_finish_status':"完本",

'max_chapter':1271});

$(window).scroll(fun(){

varee();

varscrolltop=$(this).scrolltop();

varscrollheight=$(dot).height();

varwindowheight=$(this).height();

if(scrolltop+windowheight==scrollheight){

//神策-readchapterend(结束章节阅读)

//is_finish是否看完章节bool切换或者退出时,如果已经在最后一页则代表看完了,否则为未看完

//duration阅读时长数值本次阅读时长

//is_first_time_read是否首次阅读bool是否首次阅读该小说

//source_position来源位置字符串阅读来源位置:书架,运营位,推广链接…

//read_type阅读类型字符串文字阅读,语音阅读

//chapter_num章节数数值

//chapter_id章节id字符串当前章节

//chapter_name章节名称字符串

//chapter_pay_type章节付费类型字符串免费,付费,按本付费

//chapter_s阅读章节所需书币数值

//update_time更新时间数值

//book_id书籍id字符串

//book_name书籍名称字符串

//first_type一级类别字符串

//sed_type二级类别字符串

//pay_type付费类型字符串付费,限免,免费

//author作者名称字符串

//book_finish_status书籍完本状态字符串完本,连载更新

//max_chapter小说最大章节数数值小说当前一共有多少章

varduration=(eime()-start.gettime())/1000;

sensors.track('readchapterend',{

'is_finish':true,

'duration':duration,

'is_first_time_read':false,

'source_position':"cps",

'read_type':book_read_type,

'chapter_num':115,

'chapter_id':"481955469",

'chapter_name':"",

'chapter_pay_type':"章",

'chapter_s':35,

'update_time'30六十八3723000,

'book_id':"11010073404",

'book_name':"陆总,傻妻不傻",

'first_type':"女频",

'sed_type':"现代言情",

'pay_type':"收费",

'author':"三月",

'book_finish_status':"完本",

'max_chapter':1271});

//readbookplete阅读小说完成

//book_id书籍id字符串

//book_name书籍名称字符串

//first_type一级类别字符串

//sed_type二级类别字符串

//pay_type付费类型字符串付费,限免,免费

//author作者名称字符串

//book_finish_status书籍完本状态字符串完本,连载更新

//max_chapter小说最大章节数数值小说当前一共有多少章

if(115==1271){

sensors.track('readbookplete',{

'book_id':"11010073404",

'book_name':"陆总,傻妻不傻",

'first_type':"女频",

'sed_type':"现代言情",

'pay_type':"收费",

'author':"三月",

'book_finish_status':"完本",

'max_chapter':1271});

}

}

});

}

})

</script

<script

vararrpaymore=[",",","]

varispayedman=$('.op').data('ispay')

varwxchatbgcell=$('.wxchatbgcell').val();

varworkwechaturl=$('.op').val()

varworkwechaturlbg=$('.op_bg').val()

varworkweewuserurl=$('.op_newuser').val();

varworkweewuserurlbg=$('.op_newuser_bg').val();

varindex=math.floor((math.random()*arrpaymore.length));

varuser_id=$.fn.cookie('user_id');

sole.log(arrpaymore[index]);

varlatingtime=15*60*1000;

if(isbuymore==true){//充值加购

$('.ad_welfare_bannerimg').attr('src',arrpaymore[index]);

$('.ad_welfareclick').remove();

varlastclosetime=localste.getitem('paymore_bottom_banner')||0;

if($('.ad_welfare_banner').css('display')=='none'&&e().gettime()-lastclosetime=latingtime){

$('.ad_welfare_banner').show();

cpslog([701,{map:{ad_welfare_banner:arrpaymore[index]}}]);

vartimebanner1=settimeout(fun(){

$('.ad_welfare_banner').hide();

localste.setitem('paymore_bottom_banner',e().gettime());

b_timeshow()

},5000)

}else{

vartimebanner2=settimeout(fun(){

$('.ad_welfare_banner').show();

cpslog([701,{map:{ad_welfare_banner:arrpaymore[index]}}]);

settimeout(fun(){

$('.ad_welfare_banner').hide();

localste.setitem('paymore_bottom_banner',e().gettime());

b_timeshow()

},5000)

},latingtime-(e().gettime()-lastclosetime))

}

//跳转支付页

$('.ad_welfare_banner').on('click',fun(){

cpslog([702,{map:{ad_welfare_banner_click:arrpaymore[index]}},'ad_welfare_banner_click']);

windo='/index/recharge/pay?from=wechat&user_id='+user_id+'&froms=chapter';

})

}elseif(workwechaturl){//注册大于30天,企业微信弹框

varshowtime=$.fn.cookie('showtime')||0;

if(typeof(showtime)=='string'){

showtime=parseint(showtime);

}

vardayee(e().tolocaledatestring()).gettime()+24*60*60*1000-1;

$('.footer-margin').css('height','.38rem');

//微信导流cell弹窗

if(ispayedman){

$('.ad_welfare_bannerimg').attr('src',wxchatbgcell);

$('.ad_welfare_banner').on('click',fun(){

cpslog([702,{map:{work_wechat_click:ispayedman,wxchatbgcell:wxchatbgcell,workwechaturlbg:workwechaturlbg}},'work_wechat_click']);

dotsellclick();

windo='/index/recharge/pay?from=wechat&user_id='+user_id+'&froms=chapter';

})

}else{

$('.ad_welfare_bannerimg').attr('src',wxchatbgcell);

$('.ad_welfare_banner').on('click',fun(){

$('.shadow_box_bg').show();

$('.js_work_pop').show();

$('.img_code').attr('src',workwechaturl);

$('.wxdl_bg').attr('src',workwechaturlbg)

$('body,html').addclass('stopscroll');

dotsellclick();

cpslog([702,{map:{work_wechat_click:ispayedman,wxchatbgcell:wxchatbgcell,workwechaturlbg:workwechaturlbg}},'work_wechat_click']);

});

//二维码长按打点

$('.img_code').on({

touchstart:fun(e){

cleartimeout(this.loop);

this.loop=settimeout(fun(){

cpslog([703,{map:{workwechaturlbg:workwechaturlbg}},'work_qr_code_long_press_chapter']);

}.bind(this),500);

},

toud:fun(e){

cleartimeout(this.loop);//清空定时器,防止重复注册定时器

}

}

);

}

$('.ad_welfareclick').remove();

varlastclosetime=$.fn.cookie('last_close_time')||0;

if(typeof(lastclosetime)=='string'){

lastclosetime=parseint(lastclosetime);

}

if(showtime<2){

if($('.ad_welfare_banner').css('display')=='none'&&e().gettime()-lastclosetime=latingtime){

$('.ad_welfare_banner').show();

cpslog([703,{map:{work_wechat_banner:ispayedman,wxchatbgcell:wxchatbgcell}}]);

showtime+=1;

$.fn.cookie('showtime',showtime,{expires:(dayee().gettime())/86400000});

$.fn.cookie('last_close_time',parseint((e().gettime())/1000),{expires:(dayee().gettime())/86400000});

localste.setitem('paymore_bottom_banner',e().gettime());

vartimebanner1=settimeout(fun(){

$('.ad_welfare_banner').hide();

cpslog([702,{map:{t:1}},'work_wechat_sell_auto_close']);

b_timeshow()

},10000);

}

}

$('.js_work_wechat_close').click(fun(){

$('.shadow_box_bg').hide();

$('.js_work_pop').hide();

$('body,html').removeclass('stopscroll')

cpslog([702,{map:{work_wechat_click:ispayedman}},'work_wechat_dialog_close']);

});

}elseif(workweewuserurl){//注册时间小于48小时的企业微信弹框

varshowtime=$.fn.cookie('showtime')||0;

if(typeof(showtime)=='string'){

showtime=parseint(showtime);

}

vardayee(e().tolocaledatestring()).gettime()+24*60*60*1000-1;

$('.footer-margin').css('height','.38rem');

$('.ad_welfare_bannerimg').attr('src',");

$('.ad_welfare_banner').on('click',fun(){

$('.shadow_box_bg').show();

$('.js_work_pop_newuser').show();

$('.img_code').attr('src',workweewuserurl);

$('.wxdl_bg').attr('src',workweewuserurlbg)

$('body,html').addclass('stopscroll');

$.post('/index/book/worknewuserdotclick');

cpslog([702,{map:{work_wechat_click:ispayedman}},'work_wechat_click']);

});

//二维码长按打点

$('.js_img_code_newuser').on({

touchstart:fun(e){

cleartimeout(this.loop);

this.loop=settimeout(fun(){

cpslog([703,{},'work_qr_code_long_press_chapter_newuser']);

}.bind(this),500);

},

toud:fun(e){

cleartimeout(this.loop);//清空定时器,防止重复注册定时器

}

}

);

$('.ad_welfareclick').remove();

varlastclosetime=$.fn.cookie('last_close_time')||0;

if(typeof(lastclosetime)=='string'){

lastclosetime=parseint(lastclosetime);

}

if(showtime<2){

if($('.ad_welfare_banner').css('display')=='none'&&e().gettime()-lastclosetime=latingtime){

$('.ad_welfare_banner').show();

cpslog([701,{map:{work_wechat_banner:ispayedman}}]);

showtime+=1;

$.fn.cookie('showtime',showtime,{expires:(dayee().gettime())/86400000});

$.fn.cookie('last_close_time',parseint((e().gettime())/1000),{

expires:(dayee().gettime())/86400000});

localste.setitem('paymore_bottom_banner',e().gettime());

vartimebanner1=settimeout(fun(){

$('.ad_welfare_banner').hide();

cpslog([702,{map:{t:1}},'work_wechat_sell_newuser_auto_close']);

b_timeshow()

},10000);

}

}

$('.js_work_wechat_close').click(fun(){

$('.shadow_box_bg').hide();

$('.shadow_box').hide();

$('.js_work_pop_newuser').hide();

$('body,html').removeclass('stopscroll')

cpslog([702,{map:{work_wechat_click:ispayedman}},'work_wechat_newuser_dialog_close']);

});

}

fundotsellclick(){

$.post('/index/book/workdotclick');

}

funb_timeshow(){

settimeout(fun(){

varlastclosetime=localste.getitem('paymore_bottom_banner')||0;

if($('.ad_welfare_banner').css('display')=='none'&&e().gettime()-lastclosetime=latingtime){

$('.ad_welfare_bannerimg').attr('src',arrpaymore[index]);

$('.ad_welfare_banner').show();

settimeout(fun(){

$('.ad_welfare_banner').hide();

showtime+=1

$.fn.cookie('showtime',showtime,{expires:(dayee().gettime())/86400000});

localste.setitem('paymore_bottom_banner',e().gettime());

b_timeshow()

},10000)

}

},latingtime)

}

</script

<scriptsrc="?v=2.5.62"</script

<scriptsrc=""</script

<script

$(fun(){

vardayee(e().tolocaledatestring()).gettime()+24*60*60*1000-1;

vargkc_globe=$.fn.cookie('gkc_globe')||'';

if(!gkc_globe){

$('.gkc_globe').show();

cpslog([703,{},'show_gkc_globe']);

$.fn.cookie('gkc_globe',1,{path:'/',expires:(e(dayend))});

}else{

$('.gkc_globe').hide();

}

$('.gkc_close').click(fun(){

$('.gkc_mask').hide();

$('.gkc_globe').hide();

})

$('.gkc_globe,.gkc_i').click(fun(){

$('.gkc_mask').show();

varel_class=$(this).hasclass('gkc_i')?'click_gkc_box':'click_gkc_globe';

cpslog([702,{},el_class]);

cpslog([703,{},'show_gkc_mask']);

})

$('.gkc_copy_btn').click(fun(event){

vartextcopied=clipboardjs.copy('8');

wx.closewindow();

cpslog([702,{},'click_gkc_copy_btn']);

})

cpslog([703,{},'show_gkc_box']);

})

</script

<divclass="allopblank"</div

<divclass="shadow_bg"</div

<divclass="windowshow"

<divclass="w_showbox"

<imgclass="w_close"src="

<aclass="window_href"href=""

<imgclass="w_img"src=""alt=""

</a

<wx-open-launch-

id="launch-w-btn"

username=""

path=""

style="display:block;width:100%;height:3.33rem;position:absolute;bottom:0;z-index:1000;"

<template

<style.btn{width:100%;height:100%;border:none;background:none;position:absolute;bottom:0;left:0;}</style

<buttonclass="btn"</button

</template

</wx-open-launch-

</div

</div

<divclass="cellshow"

<imgclass="c_close"src="

<aclass="c_href"href=""

<imgclass="c_img"src=""alt=""

</a

<wx-open-launch-

id="launch-"

username=""

path=""

style="display:block;width:100%;height:100%;position:absolute;bottom:0;z-index:1000;"

<template

<style.btn{width:100%;height:100%;position:absolute;bottom:0;left:0;background:none;border:none;}</style

<buttonclass="btn"</button

</template

</wx-open-launch-

</div

<divclass="floatshow"

<imgclass="f_close"src="

<aclass="float_href"

<imgclass="f_img"src=""alt=""data-aid=""

</a

<wx-open-launch-

id="launch-f-btn"

username=""

path=""

style="display:block;width:100%;height:100%;position:absolute;bottom:-35px;z-index:1000;"

<template

<style.btn{width:100%;height:100%;position:absolute;bottom:0;left:0;background:none;border:none;}</style

<buttonclass="btn"</button

</template

</wx-open-launch-

</div

<divclass="page_op"style="display:none;"1</div

<scriptsrc="//res.wx.qq./open/js/jweixin.0.js"</script

<!--<scriptsrc="

<script

$(fun(){

//阅读页悬浮球互斥

vardisblockval=$('.gkc_globe').length0&&$('.gkc_globe').css('display')!='none';

if(disblockval){return}

varpage=$('.page_op').html();

varpoptype=$('#poptype').data('poptype');

vardisplay=$('.pop_fixed').css('display');

vardayee(e().tolocaledatestring()).gettime()+24*60*60*1000-1;

varactivity_third_id='';

varposition='';

varchapter_ad_show=$.fn.cookie('chapter_ad_show')||0;

varret_ad_show=$.fn.cookie('ret_ad_show')||0;

varuser_ad_show=$.fn.cookie('user_ad_show')||0;

if(page==1){

chapter_ad_show++

$.fn.cookie('chapter_ad_show',chapter_ad_show,{path:'/',expires:(dayee().gettime())/86400000})

}elseif(page==2){

ret_ad_show++

$.fn.cookie('ret_ad_show',ret_ad_show,{path:'/',expires:(dayee().gettime())/86400000})

}elseif(page==3){

user_ad_show++

$.fn.cookie('user_ad_show',user_ad_show,{path:'/',expires:(dayee().gettime())/86400000})

}

switch(page){

//页面路径

case1:

position=1;

break;

case2:

position=2;

break;

}

if(page==1&&display=='block'){

sole.log('阅读页强制弹窗')

}else{

$.ajax({

type:'post',

url:'/api/manage/fig',

timeout:10000,

cache:false,

datatype:'json',

data:{

page:page,

path:dot.location.pathname,

poptype:poptype

},

sess:fun(data){

if(data.data.popup.length0){

$('body').append(data.data.popup);

}else{

//弹窗展示

for(varj=0;j<data.data.manage.length;j++){

//sole.log(data.data[i])

leti=j;

switch(data.data.manage[i].type){

//弹窗

case1:

$('.shadow_bg').show();

$('body').addclass('stopscroll');

$('.windowshow').show();

$('.window_href').attr('href',data.data.manage[i].data.redirect_link);

$('.w_img').attr('src',data.data.manage[i].data.i);

if(!data.data.manage[i].data.redirect_link){

$('.window_href').attr("href","javascript:;");

}

if(data.data.manage[i].data.mini_program){

$('#launch-w-btn').show();

$('.window_href').removeattr("href");

wx.fig({

debug:false,//开启调试模式,调用的所有api的返回值会在客户端alert出来,若要查看传入的参数,可以在pc端打开,参数信息会通过log打出,仅在pc端时才会打印。

appid:data.data.manage[i].data.mini_program.appid,//必填,公众号的唯一标识

timestamp:data.data.manage[i].data.mini_program.timestamp,//必填,生成签名的时间戳

r:data.data.manage[i].data.mini_program.r,//必填,生成签名的随机串

signature:data.data.manage[i].data.mini_program.signature,//必填,签名

jsapilist:['onmenusharetimeline','onmenushareappmessage','onmenushareqq','onmenushareqzone'],//必填,需要使用的js接口列表

opentaglist:["wx-open-launch-"]

});

$('#launch-w-btn').attr('username',data.data.manage[i].data.mini_program.id);

$('#launch-w-btn').attr('path',data.data.manage[i].data.mini_program.link);

}else{

$('#launch-w-btn').hide();

}

varactivity_id_w=data.data.manage[i].data.feature_id;

vario_w=data.data.manage[i].data.io;

varimg_entry_b=data.data.manage[i].data.i;

varclick_kind=data.data.manage[i].data.redirect_type;

varclick_ki=data.data.manage[i].data.report;

varresource_id_b=data.data.manage[i].data.resource_id;

varmanage_fig_feature_id_b=data.data.manage[i].data.manage_fig_feature_id;

vara_id_b=typeofdata.data.manage[i].data.activity_data.id=='undefined'?

0:data.data.manage[i].data.activity_data.id;

vara_pid_b=typeofdata.data.manage[i].data.activity_data.pid=='undefined'?

0:data.data.manage[i].data.activity_data.pid;

vara_extend_type_b=typeofdata.data.manage[i].data.activity_data.extend_type=='undefined'?

0:data.data.manage[i].data.activity_data.extend_type;

//兼容之前互动广告/小程序曝光打点

if(data.data.manage[i].data.redirect_type==2){

if(page==1){

cpslog([703,{map:{miry:img_entry_b}},'miry_read']);

}elseif(page==2){

cpslog([703,{map:{miry:img_entry_b}},'miry2_ret']);

}

}elseif(data.data.manage[i].data.redirect_type==3){

if(page==1){

cpslog([703,{map:{ad_entry:img_entry_b}},'ad_entry_read']);

}elseif(page==2){

cpslog([703,{map:{ad_entry:img_entry_b}},'ad_entry2_ret']);

}

}

//打点

cpslog([703,{map:{window_show:page,activity_id:activity_id_w,resource_id:resource_id_b,

io:io_w,a_id:a_id_b,a_pid:a_pid_b,a_extend_type:a_extend_type_b}},'window_show']);

$('.windowshowa').on('click',fun(){

//兼容之前互动广告/小程序曝光打点

if(data.data.manage[i].data.redirect_type==2){

if(page==1){

cpslog([702,{map:{miry_click:img_entry_b}},'miry_click2_read']);

}elseif(page==2){

cpslog([702,{map:{miry_click:img_entry_b}},'miry_click2_ret']);

}

}elseif(data.data.manage[i].data.redirect_type==3){

if(page==1){

cpslog([702,{map:{ad_entry_click:img_entry_b}},'ad_entry_click2_read']);

}elseif(page==2){

cpslog([702,{map:{ad_entry_click:img_entry_b}},'ad_entry_click2_ret']);

}

}

cpslog([702,{map:{window_show:page,activity_id:activity_id_w,resource_id:resource_id_b,

io:io_w,a_id:a_id_b,a_pid:a_pid_b,a_extend_type:a_extend_type_b}},'window_show_click']);

if(data.data.manage[i].data.report==1){

$.ajax({

url:'/api/manage/joinlta',

type:"post",

data:{

resource_id:resource_id_b,

manage_fig_feature_id:manage_fig_feature_id_b

},

sess:fun(data){

sole.log(data);

}

});

}

})

break;

//浮窗挂件

case2:

$('.float_href').attr('href','javascript:;');

$('.floatshow').show();

$('.f_close').show();

$('.float_href').attr('href',data.data.manage[i].data.redirect_link);

$('.f_img').attr('src',data.data.manage[i].data.i);

if(!data.data.manage[i].data.redirect_link){

$('.float_href').attr("href","javascript:;");

}

ready_into(data)//读书挑战赛入口判断函数

//判断是否开启王海所接入的运营位

//if(data.data.manage[i].data.show_type==3){

//$('.f_close').show();

//}

//if(data.data.manage[i].data.show_type==4){

//settimeout(fun(){

//$('.floatshow').hide();

//},6000)

//}

if(data.data.manage[i].data.mini_program){

$('#launch-f-btn').show();

$('.float_href').removeattr("href");

wx.fig({

debug:false,//开启调试模式,调用的所有api的返回值会在客户端alert出来,若要查看传入的参数,可以在pc端打开,参数信息会通过log打出,仅在pc端时才会打印。

appid:data.data.manage[i].data.mini_program.appid,//必填,公众号的唯一标识

timestamp:data.data.manage[i].data.mini_program.timestamp,//必填,生成签名的时间戳

r:data.data.manage[i].data.mini_program.r,//必填,生成签名的随机串

signature:data.data.manage[i].data.mini_program.signature,//必填,签名

jsapilist:['onmenusharetimeline','onmenushareappmessage','onmenushareqq','onmenushareqzone'],//必填,需要使用的js接口列表

opentaglist:["wx-open-launch-"]

});

$('#launch-f-btn').attr('username',data.data.manage[i].data.mini_program.id);

$('#launch-f-btn').attr('path',data.data.manage[i].data.mini_program.link);

}else{

$('#launch-f-btn').hide();

}

varactivity_id_f=data.data.manage[i].data.feature_id;

vario_f=data.data.manage[i].data.io;

varclick_kind=data.data.manage[i].data.redirect_type;

varclick_ki=data.data.manage[i].data.report;

varimg_entry_f=data.data.manage[i].data.i;

varresource_id_f=data.data.manage[i].data.resource_id;

varmanage_fig_feature_id_f=data.data.manage[i].data.manage_fig_feature_id;

varredirect_link=data.data.manage[i].data.redirect_link;

vara_id_f=typeofdata.data.manage[i].data.activity_data.id=='undefined'?

0:data.data.manage[i].data.activity_data.id;

vara_pid_f=typeofdata.data.manage[i].data.activity_data.pid=='undefined'?

0:data.data.manage[i].data.activity_data.pid;

vara_extend_type_f=typeofdata.data.manage[i].data.activity_data.extend_type=='undefined'?

0:data.data.manage[i].data.activity_data.extend_type;

//兼容之前互动广告/小程序曝光打点

if(data.data.manage[i].data.redirect_type==2){

if(page==1){

cpslog([703,{map:{miry:img_entry_f}},'miry_read']);

}elseif(page==2){

cpslog([703,{map:{miry:img_entry_f}},'miry2_ret']);

}

}elseif(data.data.manage[i].data.redirect_type==3){

if(page==1){

cpslog([703,{map:{ad_entry:img_entry_f}},'ad_entry_read']);

}elseif(page==2){

cpslog([703,{map:{ad_entry:img_entry_f}},'ad_entry2_ret']);

}

}

varfeature_id_f=data.data.manage[i].data.feature_id;

cpslog([703,{map:{float_show:page,activity_id:activity_id_f,resource_id:resource_id_f,

io:io_f,ia_pany_id:data.data.manage[0].data.ia_pany_id,

a_id:a_id_f,a_pid:a_pid_f,a_extend_type:a_extend_type_f}},'float_show']);

$('.floatsho('click',fun(){

qywx(feature_id_f,'.float_href')

//兼容之前互动广告/小程序点击打点

if(data.data.manage[i].data.redirect_type==2){

if(page==1){

cpslog([702,{map:{miry_click:img_entry_f}},'miry_click2_read']);

}elseif(page==2){

cpslog([702,{map:{miry_click:img_entry_f}},'miry_click2_ret']);

}

}elseif(data.data.manage[i].data.redirect_link==''&&data.data.manage[i].data.redirect_type==3){

if(page==1){

cpslog([702,{map:{ad_entry_click:img_entry_f}},'ad_entry_click2_read']);

}elseif(page==2){

cpslog([702,{map:{ad_entry_click:img_entry_f}},'ad_entry_click2_ret']);

}

}elseif(data.data.manage[i].data.redirect_link!=''&&data.data.manage[i].data.redirect_type==3){

if(page==1){

cpslog([702,{map:{ad_entry_click:img_entry_f,redirect_link:redirect_link,ia_pany_id:data.data.manage[0].data.ia_pany_id}},'ad_entry_click2_read']);

}elseif(page==2){

cpslog([702,{map:{ad_entry_click:img_entry_f,redirect_link:redirect_link,ia_pany_id:data.data.manage[0].data.ia_pany_id}},'ad_entry_click2_ret']);

}

}

cpslog([702,{map:{float_show:page,activity_id:activity_id_f,resource_id:resource_id_f,

io:io_f,ia_pany_id:data.data.manage[0].data.ia_pany_id,

a_id:a_id_f,a_pid:a_pid_f,a_extend_type:a_extend_type_f}},'float_show_click']);

if(data.data.manage[i].data.redirect_link!=''&&data.data.manage[i].data.redirect_type==3){

$.ajax({

url:'/api/iivead/linkclick',

type:"post",

data:{

position:page,

ia_pany_id:data.data.manage[i].data.ia_pany_id,

ia_link_id:data.data.manage[i].data.ia_link_id

},

sess:fun(data){

}

});

}elseif(data.data.manage[i].data.redirect_link==''&&data.data.manage[i].data.redirect_type==3){

$('.float_href').attr("href","javascript:;");

$.ajax({

url:'/index/user/getiiveaddata',

type:"post",

data:{

position:page

},

sess:fun(data){

if(!data||!data.landingurl){

$('.hd_toast').show();

//return

}else{

location.href=data.landingurl

}

//接口打点

$.ajax({

url:data.clickurl,

type:"get",

sess:fun(data){

}

})

$.ajax({

url:data.exposureurl,

type:"get",

sess:fun(data){

}

})

$.ajax({

url:data.winurl,

type:"get",

sess:fun(data){

}

})

},

error:fun(){

$('.hd_toast').show();

}

});

//3秒toast消失

settimeout(fun(){

$('.hd_toast').hide();

},3000)

}

if(data.data.manage[i].data.report==1){

$.ajax({

url:'/api/manage/joinlta',

type:"post",

data:{

resource_id:resource_id_f,

manage_fig_feature_id:manage_fig_feature_id_f

},

sess:fun(data){

sole.log(data);

}

});

}

})

break;

//底部cell条

case3:

$('.cellshow').show();

$('.allopblank').show();

$('.c_close').show();

$('.c_href').attr('href',data.data.manage[i].data.redirect_link);

$('.c_img').attr('src',data.data.manage[i].data.i);

//if(data.data.manage[i].data.show_type==4){

//settimeout(fun(){

//$('.cellshow').hide();

//},6000)

//}

if(!data.data.manage[i].data.redirect_link){

$('.c_href').attr("href","javascript:;");

}

if(data.data.manage[i].data.mini_program){

//$('#launch-').show();

$('.c_href').removeattr("href");

wx.fig({

debug:false,//开启调试模式,调用的所有api的返回值会在客户端alert出来,若要查看传入的参数,可以在pc端打开,参数信息会通过log打出,仅在pc端时才会打印。

appid:data.data.manage[i].data.mini_program.appid,//必填,公众号的唯一标识

timestamp:data.data.manage[i].data.mini_program.timestamp,//必填,生成签名的时间戳

r:data.data.manage[i].data.mini_program.r,//必填,生成签名的随机串

signature:data.data.manage[i].data.mini_program.signature,//必填,签名

jsapilist:['onmenusharetimeline','onmenushareappmessage','onmenushareqq','onmenushareqzone'],//必填,需要使用的js接口列表

opentaglist:["wx-open-launch-"]

});

$('#launch-').attr('username',data.data.manage[i].data.mini_program.id);

$('#launch-').attr('path',data.data.manage[i].data.mini_program.link);

}else{

$('#launch-').hide();

}

varactivity_id_c=data.data.manage[i].data.feature_id;

vario_c=data.data.manage[i].data.io;

varimg_entry_c=data.data.manage[i].data.i;

varclick_kind=data.data.manage[i].data.redirect_type;

varclick_ki=data.data.manage[i].data.report;

varresource_id_c=data.data.manage[i].data.resource_id;

varmanage_fig_feature_id_c=data.data.manage[i].data.manage_fig_feature_id;

vara_id_c=typeofdata.data.manage[i].data.activity_data.id=='undefined'?

0:data.data.manage[i].data.activity_data.id;

vara_pid_c=typeofdata.data.manage[i].data.activity_data.pid=='undefined'?

0:data.data.manage[i].data.activity_data.pid;

vara_extend_type_c=typeofdata.data.manage[i].data.activity_data.extend_type=='undefined'?

0:data.data.manage[i].data.activity_data.extend_type;

//兼容之前互动广告/小程序曝光打点

if(data.data.manage[i].data.redirect_type==2){

if(page==1){

cpslog([703,{map:{miry:img_entry_c}},'miry_read']);

}elseif(page==2){

cpslog([703,{map:{miry:img_entry_c}},'miry2_ret']);

}

}elseif(data.data.manage[i].data.redirect_type==3){

if(page==1){

cpslog([703,{map:{ad_entry:img_entry_c}},'ad_entry_read']);

}elseif(page==2){

cpslog([703,{map:{ad_entry:img_entry_c}},'ad_entry2_ret']);

}

}

varfeature_id_c=data.data.manage[i].data.feature_id;

cpslog([703,{map:{cell_show:page,activity_id:activity_id_c,resource_id:resource_id_c,

io:io_c,a_id:a_id_c,a_pid:a_pid_c,a_extend_type:a_extend_type_c}},'cell_show']);

$('.cellshowa').on('click',fun(){

qywx(feature_id_c,'.c_href')

//兼容之前互动广告/小程序点击打点

if(data.data.manage[i].data.redirect_type==2){

if(page==1){

cpslog([702,{map:{miry_click:img_entry_c}},'miry_click2_read']);

}elseif(page==2){

cpslog([702,{map:{miry_click:img_entry_c}},'miry_click2_ret']);

}

}elseif(data.data.manage[i].data.redirect_type==3){

if(page==1){

cpslog([702,{map:{ad_entry_click:img_entry_c}},'ad_entry_click2_read']);

}elseif(page==2){

cpslog([702,{map:{ad_entry_click:img_entry_c}},'ad_entry_click2_ret']);

}

}

cpslog([702,{map:{cell_show:page,activity_id:activity_id_c,resource_id:resource_id_c,

io:io_c,a_id:a_id_c,a_pid:a_pid_c,a_extend_type:a_extend_type_c}},'cell_show_click']);

if(data.data.manage[i].data.report==1){

$.ajax({

url:'/api/manage/joinlta',

type:"post",

data:{

resource_id:resource_id_c,

manage_fig_feature_id:manage_fig_feature_id_c

},

sess:fun(data){

sole.log(data);

}

});

}

})

break;

//

case4:

$('.topbannershow').show();

$('.tb_href').attr('href',data.data.manage[i].data[0].redirect_link);

$('.tb_img').attr('src',data.data.manage[i].data[0].i);

if(!data.data.manage[i].data.redirect_link){

$('.c_href').attr("href","javascript:;");

}

if(data.data.manage[i].data[0].mini_program){

$('#launch-tb-btn').show();

$('.tb_href').removeattr("href");

wx.fig({

debug:false,//开启调试模式,调用的所有api的返回值会在客户端alert出来,若要查看传入的参数,可以在pc端打开,参数信息会通过log打出,仅在pc端时才会打印。

appid:data.data.manage[i].data[0].mini_program.appid,//必填,公众号的唯一标识

timestamp:data.data.manage[i].data[0].mini_program.timestamp,//必填,生成签名的时间戳

r:data.data.manage[i].data[0].mini_program.r,//必填,生成签名的随机串

signature:data.data.manage[i].data[0].mini_program.signature,//必填,签名

jsapilist:['onmenusharetimeline','onmenushareappmessage','onmenushareqq','onmenushareqzone'],//必填,需要使用的js接口列表

opentaglist:["wx-open-launch-"]

});

$('#launch-tb-btn').attr('username',data.data.manage[i].data[0].mini_program.id);

$('#launch-tb-btn').attr('path',data.data.manage[i].data[0].mini_program.link);

}else{

$('#launch-tb-btn').hide();

}

varactivity_id_t=data.data.manage[i].data[0].feature_id;

vario_t=data.data.manage[i].data[0].io;

varclick_kind=data.data.manage[i].data[0].redirect_type;

varclick_ki=data.data.manage[i].data[0].report;

varimg_entry_t=data.data.manage[i].data[0].i;

varresource_id_t=data.data.manage[i].data[0].resource_id;

varmanage_fig_feature_id_t=data.data.manage[i].data[0].manage_fig_feature_id;

vara_id_t=typeofdata.data.manage[i].data[0].activity_data.id=='undefined'?

0:data.data.manage[i].data[0].activity_data.id;

vara_pid_t=typeofdata.data.manage[i].data[0].activity_data.pid=='undefined'?

0:data.data.manage[i].data[0].activity_data.pid;

vara_extend_type_t=typeofdata.data.manage[i].data[0].activity_data.extend_type=='undefined'?

0:data.data.manage[i].data[0].activity_data.extend_type;

//兼容之前互动广告/小程序曝光打点

if(data.data.manage[i].data.redirect_type==2){

if(page==1){

cpslog([703,{map:{miry:img_entry_t}},'miry_read']);

}elseif(page==2){

cpslog([703,{map:{miry:img_entry_t}},'miry2_ret']);

}

}elseif(data.data.manage[i].data.redirect_type==3){

if(page==1){

cpslog([703,{map:{ad_entry:img_entry_t}},'ad_entry_read']);

}elseif(page==2){

cpslog([703,{map:{ad_entry:img_entry_t}},'ad_entry2_ret']);

}

}

//互动广告、小程序调用次数cookie存储

//if(data.data.manage[i].data.redirect_type==2||data.data.manage[i].data.redirect_type==3){

//if(page=1){

//chapter_ad_show++

//$.fn.cookie('chapter_ad_show',chapter_ad_show,{path:'/',expires:(dayee().gettime())/86400000})

//}elseif(page=2){

//ret_ad_show++

//$.fn.cookie('ret_ad_show',ret_ad_show,{path:'/',expires:(dayee().gettime())/86400000})

//}elseif(page=3){

//user_ad_show++

//$.fn.cookie('user_ad_show',user_ad_show,{path:'/',expires:(dayee().gettime())/86400000})

//}

//}

cpslog([703,{map:{topbanner_show:page,activity_id:activity_id_t,resource_id:resource_id_t,

io:io_t,a_id:a_id_t,a_pid:a_pid_t,a_extend_type:a_extend_type_t}},'topbanner_show']);

$('.topbannershowa').on('click',fun(){

//兼容之前互动广告/小程序点击打点

if(data.data.manage[i].data.redirect_type==2){

if(page==1){

cpslog([702,{map:{miry_click:img_entry_t}},'miry_click2_read']);

}elseif(page==2){

cpslog([702,{map:{miry_click:img_entry_t}},'miry_click2_ret']);

}

}elseif(data.data.manage[i].data.redirect_type==3){

if(page==1){

cpslog([702,{map:{ad_entry_click:img_entry_t}},'ad_entry_click2_read']);

}elseif(page==2){

cpslog([702,{map:{ad_entry_click:img_entry_t}},'ad_entry_click2_ret']);

}

}

cpslog([702,{map:{topbanner_show:page,activity_id:activity_id_t,resource_id:resource_id_t,

io:io_t,a_id:a_id_t,a_pid:a_pid_t,a_extend_type:a_extend_type_t}},'topbanner_show_click']);

if(data.data.manage[i].data.report==1){

$.ajax({

url:'/api/manage/joinlta',

type:"post",

data:{

resource_id:resource_id_t,

manage_fig_feature_id:manage_fig_feature_id_t

},

sess:fun(data){

sole.log(data);

}

});

}

})

break;

}

if(data.data.manage.length){

operate_init(data.data.manage[i])

}

}

}

}

})

}

//弹窗展示

$('.w_close').on('click',fun(){

$('.windowshow').hide();

$('.shadow_bg').hide();

$('body').removeclass('stopscroll');

})

//浮窗展示

$('.f_close').on('click',fun(){

$('.floatshow').hide();

})

//cell条展示

$('.c_close').on("click",fun(){

$('.cellshow').hide();

$('.allopblank').hide();

})

//读书挑战赛运营位初始化入口

funready_into(data){

//feature_id判断是否开通读书挑战赛

if(data.data.manage[0]&&data.data.manage[0].data.feature_id==="campaign_new_20210707"){

//cookie判断是否报名读书挑战赛

if($.fn.cookie('current_read_apply')!=1){

$.ajax({

url:'/api/campaignnew/getstatus',

type:"get",

sess:fun(data){

$('body').append(data.data.popup);

}

});

}else{

$('.floatshow').hide();

}

}

}

funoperate_init(firstitem){

switch(firstite_id){

//lucky_draw_20210714大转盘运营位lucky_draw_20210714

case'lucky_draw_20210714':

/*双旦活动入口曝光打点*/

cpslog([702,{},'new_year_activity_show']);

//判断是否一点击过运营位report0-已参加1-未参加

if(firstite==0){

$('.neop_i_er').show();

//已参加则不再显示运营位入口

$('.floatshow').hide();

$('.cellshow').hide();

$('.topbannershow').hide();

$('.windowshow').hide();

$('.shadow_bg').hide();

}else{

//未参加时,渲染运营位接口事件

switch(firstitem.type){

//弹窗

case1:

$('.windowsho('click',operationposition)

break;

//浮窗

case2:

$('.floatsho('click',operationposition)

break;

//底部cell条

case3:

$('.cellsho('click',operationposition)

break;

//banner

case4:

$('.topbannersho('click',operationposition)

break;

}

}

break;

default:

break;

}

}

funqywx(fid,obj){

if(fid==='work_wechat_chapter_2024'){

$(obj).removeattr("href");

$.ajax({

url:'/api/worki/getchapterqrcode',

type:"post",

sess:fun(data){

varispayedman=data.data.is_pay;

varwechat_url_bg=data.data.qr_dialog_bg_img

if(ispayedman!=0){

cpslog([702,{map:{work_wechat_click:ispayedman,workwechaturlbg:wechat_url_bg}},'work_wechat_click']);

dotsellclick();

windo='/index/recharge/pay?from=wechat&user_id='+user_id+'&froms=chapter';

}else{

$('.shadow_box_bg').show();

$('.js_work_pop').show();

$('.img_code').attr('src',data.data.wechat_url);

$('.wxdl_bg').attr('src',data.data.qr_dialog_bg_img);

$('body,html').addclass('stopscroll');

dotsellclick();

cpslog([702,{map:{work_wechat_click:ispayedman,workwechaturlbg:wechat_url_bg}},'work_wechat_click']);

}

//二维码长按打点

$('.img_code').on({

touchstart:fun(e){

cleartimeout(this.loop);

this.loop=settimeout(fun(){

cpslog([703,{map:{workwechaturlbg:wechat_url_bg}},'work_qr_code_long_press_chapter']);

}.bind(this),500);

},

toud:fun(e){

cleartimeout(this.loop);//清空定时器,防止重复注册定时器

}

}

);

$('.js_work_wechat_close').click(fun(){

$('.shadow_box_bg').hide();

$('.js_work_pop').hide();

$('body,html').removeclass('stopscroll')

cpslog([702,{map:{work_wechat_click:ispayedman}},'work_wechat_dialog_close']);

});

}

});

}

}

//企业微信上报函数

fundotsellclick(){

$.post('/index/book/workdotclick');

}

//大转盘运营位入口点击事件

funoperationposition(){

turnshow(1)

//vara_id=$('.neop_i_er').attr('data-aid');//优惠券

//vara_tent=$('.neop_i_er').attr('data-atent');//优惠折扣

//vara_name=$('.neop_i_er').attr('data-aname');//优惠名称

//varactivityid=$('#christmas_lottery_activity_id').val();

//if(a_id){

//cpslog([702,{

//map:{

//a_id:a_id,

//a_name:a_name,

//a_type:'6',

//from:'lucky_draeration_clito'

//}},'lucky_draeration_clito']);

//windo='/index/recharge/xmas?a_id='+a_id+'&activity_id='+activityid+'&dist='+a_tent+'&source=luckydraw';

//}else{

////运营位入口打点

////cpslog([702,{from:'all_operation_position'},'new_year_dialog_show']);

////$('#g_turn_mask').show()

////getchristmasatus();

//turnshow(1)

//}

}

})

</script

<script

$(fun(){

try{

variframe=dot.createelement('iframe');

iframe.style.display='none';

iframe.src=""+windo.split(windo)[1];

dot.body.appendchild(iframe);

}catch(e){

sole.log(e)

}

});

</script</body

</html

本章未完,点击下一页继续阅读。

其他类型小说相关阅读More+

叶辰萧初然免费阅读

叶辰

叶辰萧初然小说免费阅读

上门龙婿

叶辰 上门龙婿

叶辰

逆天体修

虾猪儿

一胎双宝:总裁大人夜夜欢

堆堆

江小北沈清瑜

尼古拉斯赵四