windo.cn';
windo.cn';
window.site_version='2.5.62';
window.theme='yg';
window.track=eval({});
window.map={wx_time:1631611331};
(function(doc){
vardocel=doc.documentelement,
recalc=function(){
varclientwidth=docel.clientwidth;
if(!clientwidth)return;
if(clientwidth>414){
//docel.style.fontsize='115px';
docel.style.fontsize='110.4px';
}else{
//docel.style.fontsize=100*(clientwidth/360)+'px';
docel.style.fontsize=100*(clientwidth/375)+'px';
}
};
recalc();
})(document);
//toasttip提示
varconsoletime=null;
functionconsolemain(str,nsecond,mask){
cleartimeout(consoletime);
nsecond=nsecond?nsecond*1000:3000;
mask=mask?'':'';
vardiv=document.getelementbyid('console_main');
div.innerhtml='
consoletime=settimeout(function(){
div.innerhtml='';
},nsecond);
}
//神策數據
varsa_server_url="https://sc-sa.dzfread.cn/sa?project=cps";
varsite_theme="yg";
varsensors_switch=1;
varsensors_is_vip=true;
varsensors_referral_id=0;
varsensors_vip_channel_id=18710;
varsensors_channel_id=18710;
篇幅有限,長按關注公衆號
繼續閱讀後續精彩內容
長按上圖二維碼3秒
點擊【前往圖中包含的公衆號】
關注公衆號,精彩內容繼續看
" target="_blank">https://cpscdn.zsjwa"/>-->
免費領書幣
第115章
海城醫院。
“陸先生,你來的正好。”有個醫生經過病房門口,‘恰好’碰上陸銘煜。“喬安小姐先兆流産,她自己可能也不知道自己又懷孕了,這件事可能很影響喬安小姐的心情,要不要找心理醫生?”
陸銘煜蹙了蹙眉,雙手用力握緊。“你說什麼?什麼孩子?”
眸子深沉了些許,他什麼時候碰過喬安,怎麼可能又懷孕......
難道是那次喝醉了酒?
“這次可要好好養著傷身體,千萬不要再讓她生氣,也不能再受傷害了,聽說是因為跪了整整一上午,這孩子才......”醫生一臉惋惜,歎了口氣。“怎麼能讓人跪一上午,這也太沒有人性了。”
陸銘煜的心口堵得厲害,緊張的跑進病房。“喬安......”
喬安坐在床上哭,抱著自己的雙腿哭的眼睛通紅。“阿煜......”
陸銘煜原本有一肚子的疑問想問問喬安,問她為什麼要誣陷蘇晴,可看到喬安因為孩子的事情哭成這樣,所有的話都咽回了肚子裡。
“阿煜,我不知道......我們的孩子。”喬安委屈的開口,聲音哽咽。“阿煜!嗚嗚......”
“好了,好了不哭了。”陸銘煜趕緊抱住喬安,安撫的拍著她的後背。“乖,不哭了,沒事。”
“阿煜,怎麼辦,怎麼辦,孩子沒有了嗚嗚......”
“怎麼會突然流産......”陸銘煜蹙眉問了身邊伺候的保姆一句。
“少爺啊,喬安小姐為了求蘇晴小姐撤訴,在她們家門外,整整跪了一上午。這是人幹的事情嗎,喬安小姐還懷了孕......”保姆說著說著都覺得委屈,要哭了。
陸銘煜的氣壓瞬間冷到了冰點,蘇晴!
就算喬安誣陷她砍傷自己,她也不能如此惡毒的讓喬安跪了整整一上午!
“你放心,這件事我會處理。”陸銘煜的雙手用力握緊,害喬安流産,害他在警局蹲了一夜,這些事情他必須好好和蘇晴算一算!
“阿煜,你別怪蘇晴姐,是我......是我先做錯了事。”喬安緊張的抱著陸銘煜的胳膊,哭著搖頭。“阿煜,是我,是我錯了,那天蘇晴姐發了瘋要砍我,我隻是......隻是生氣,嫉妒,嫉妒你們......在房間,所以,我......我......”
喬安哭的越發委屈。“那天,我其實是想自殺的,可......可六神問我,我害怕了,不想讓你擔心我,我才撒謊說是蘇晴姐砍傷我的,我也沒想到你會報警,嗚嗚......”
喬安解釋的滴水不漏,把自己要自殺這件事一下子提到了點子上。
陸銘煜緊張的抱著喬安的肩膀。“安安,你想幹什麼?為什麼要自殺!”
“阿煜......我太愛你了,我不能離開你,你別不要我。”喬安哭著抱緊陸銘煜的胳膊。
“傻瓜,我怎麼可能不要你!”陸銘煜有些著急。
之前他確實想過好好安撫喬安,給她一筆錢,可既然喬安為了他都流掉了兩個孩子,他也無法不對喬安負責了。
“阿煜,我好難過,怎麼辦......”喬安哭的厲害,呼吸有些不順暢。
“好了不哭了。”陸銘煜安撫著喬安,其實隻要他說一句願意娶喬安,也許她就會安心很多。
可不知道為什麼,那句話到了嘴邊,他始終都說不出來。
一說到結婚,他就會想到蘇晴那張臉,像是著了魔一樣,刺痛著心口。
“阿煜?”喬安緊張的看著陸銘煜,想等他一句確定的答案。
“你好好在醫院休息,這件事我會讓蘇晴給你一個說法。”起身站了起來,陸銘煜氣壓冷凝的離開。
喬安的雙手撲了個空,心髒麻木了一半。
都已經這樣了,陸銘煜還是不肯說出娶她的話。
離開病房,陸銘煜走進安全通道點了顆煙。
手心有些發麻,他也不知道自己剛才到底怎麼了,突然心髒就刺痛的厲害。
“蘇晴......”呢喃的喊了蘇晴的名字,陸銘煜深深的吸了口煙。
讓喬安跪了一上午,跪到孩子先兆性流産。
目錄
最近閱讀
首頁
再看章
完成挑戰
恭喜完成挑戰
很遺憾!未能完成讀書挑戰
" target="_blank">https://cpscdn.zsjwa?v=2.5.62">-->
data-zone="返回彈窗"data-book_id="">
src=""/>
data-zone="返回彈窗"data-book_id="">-
data-zone="返回彈窗"data-book_id="">-
data-zone="返回彈窗"data-book_id="">繼續閱讀
>
varisbuymore='';
varmeng_jia_new_year_url='';
letd=newdate();
letpopkey='mj_spring'+d.getdate();
varmj_spring=$.fn.cookie(popkey)
//夢佳春節活動彈窗
if(meng_jia_new_year_url!=''){
cpslog([701,{map:{mj_new_year:1}}]);
$('.mj_sf_float').show();
$('.sf_float_gif').show();
settimeout(function(){
$('.sf_float_gif').hide();
$('.sf_float_png').show();
},2000)
if(mj_spring!=1){
cpslog([701,{map:{mj_new_year_pop:1}}]);
$('.mj_spring_shadow').show();
$('body,html').addclass('stopscroll')
$.fn.cookie(popkey,1,{
expires:1,
path:'/',
})
}
$('.close_mj_spring').on('click',function(){
cpslog([701,{map:{mj_new_year_pop_close:1}}]);
$('.mj_spring_shadow').hide();
$('body,html').removeclass('stopscroll')
})
$('.mj_pop').on('click',function(){
cpslog([702,{map:{mj_new_year_pop_jump:1}}]);
windo=meng_jia_new_year_url
})
$('.mj_float').on('click',function(){
cpslog([702,{map:{mj_new_year_float_jump:1}}]);
windo=meng_jia_new_year_url
})
}
//讀書挑戰賽狀態
varchampionstatus={
'status':'',
'successkandian':'0',
'next':'0',
'taskdate':'',
};
varspring=0;
varspring_shadow=$.fn.cookie('spring_shadow')
varspring_status=$.fn.cookie('spring_status'+championstatus.taskdate);
varspring_float=$.fn.cookie('spring_float')
if(spring_float==spring){
$('.sf_float').hide();
}
switch(spring){
case0:
$('.sf_float').hide();
break;
case1:
$('.sf_float_pic1').show();
$('.sf_float_close').show();
cpslog([703,{map:{fk_float_show:1,type:spring}},'fk_float_show']);
break;
case2:
$('.sf_float_pic2').show();
$('.sf_float_close').show();
cpslog([703,{map:{fk_float_show:1,type:spring}},'fk_float_show']);
break;
case3:
$('.sf_float_pic3').show();
$('.sf_float_close').show();
cpslog([703,{map:{fk_float_show:1,type:spring}},'fk_float_show']);
break;
default:
}
//浮窗點擊打點
$('.sf_float').on('click',function(){
cpslog([702,{map:{type:spring}},'fk_float_click']);
})
if(championstatus.next==0){
$('.sign_again_btn').hide();
}
////返回刷新頁麵
//window.onpageshow=function(event){
//console.log('onpageshow事件')
//console.log(event)
//if(event.persisted){
//windo()
//}
//}
if(spring>0&&spring_shadow!=1&&$('.pop_fixed').css('display')=='none'){
//新春活動彈框曝光打點
cpslog([703,{map:{fk_dialog_first_show:1}},'fk_dialog_first_show']);
$('.spring_shadow_box').show();
$('body,html').addclass('stopscroll')
$.fn.cookie('spring_shadow',1,{
expires:30,
path:'/',
})
}
//新春活動開啟彈框點擊打點
$('.shadow-content').on('click',function(){
cpslog([702,{},'fk_dialog_first_click']);
})
$('.btn_join_spring').on('click',function(){
cpslog([702,{},'fk_dialog_first_click']);
})
$('.spring_shadow_box,.close_btn,close_sf_spring').on('click',function(){
cpslog([702,{},'sf_new_year_close']);
$('.spring_shadow_box').hide();
$('.shadow_box_bg').hide()
$('.read_success_shadow').hide()
$('.sign_failed_shadow').hide()
$('body,html').removeclass('stopscroll')
})
$('.sf_float_close').on('click',function(){
$('.sf_float').hide();
$.fn.cookie('spring_float',spring,{
expires:1,
path:'/',
})
cpslog([702,{},'sf_float_close_click']);
})
if(!spring_status){
//閱讀挑戰賽完成狀態
if(championstatus.status=='success'){
$.ajax({
url:'/api/spring/getkandian?taskdate='+championstatus.taskdate,
data:'',
type:'get',
success:function(res){
if(res.code==0){
$('.toast_box').show();
$('.sf_toast').html(res.msg);
settimeout(function(){
$('.toast_box').hide()
},2000)
}else{
//閱讀挑戰賽完成彈框顯示打點(完成)
cpslog([703,{map:{branch_read_complete_show:1,complete:1,getcoin:championstatus.successkandian}},'branch_read_complete_show'])
$('.shadow_box_bg').show()
$('.read_success_shadow').show()
$('.read_get_reward').html(championstatus.successkandian)
//$('.shadow_pic').attr('src',res.data.qrcode)
$('body,html').addclass('stopscroll')
$.fn.cookie('spring_status'+championstatus.taskdate,championstatus.taskdate,{
expires:1,
path:'/',
})
}
},
errro:function(res){
console.log(res)
}
})
}elseif(championstatus.status=='fail'){
//閱讀挑戰賽完成彈框顯示打點(未完成)
cpslog([703,{map:{branch_read_complete_show:1,complete:2,getcoin:0}},'branch_read_complete_show'])
$('.shadow_box_bg').show()
$('.sign_failed_shadow').show()
//$('.shadow_pic').attr('src',res.data.qrcode)
$('body,html').addclass('stopscroll')
$.fn.cookie('spring_status'+championstatus.taskdate,championstatus.taskdate,{
expires:1,
path:'/',
})
}
if(championstatus.status=='expire'){
$('.toast_box').show();
$('.sf_toast').html('獎品已過期');
$.fn.cookie('spring_status'+championstatus.taskdate,championstatus.taskdate,{
expires:1,
path:'/',
})
settimeout(function(){
$('.toast_box').hide()
},2000)
}
}
$('.sign_again_btn').on('click',function(){
$.ajax({
url:'/api/spring/signup',
data:'',
type:'get',
success:function(res){
console.log(res)
if(res.code==0){
//閱讀挑戰賽完成彈框點擊打點
cpslog([702,{map:{success:2,msg:res.msg}},'branch_read_complete_click']);
$('.shadow_box_bg').hide()
$('.read_success_shadow').hide()
$('.sign_failed_shadow').hide()
$('body,html').removeclass('stopscroll')
$('.toast_box').show();
$('.sf_toast').html(res.msg);
settimeout(function(){
$('.toast_box').hide()
},2000)
}else{
//閱讀挑戰賽完成彈框點擊打點
cpslog([702,{ma:{success:1,msg:'報名成功'}},'branch_read_complete_click']);
$('.shadow_box_bg').hide()
$('.read_success_shadow').hide()
$('.sign_failed_shadow').hide()
$('body,html').removeclass('stopscroll')
$('.toast_box').show()
$('.sf_toast').html('報名成功');
settimeout(function(){
$('.toast_box').hide()
},2000)
}
},
error:function(res){
}
})
})
//定義變量標記是否有彈窗正在彈出
varpopuping=0;
varissubpop=$('#hid_sub_pop').val();
if(issubpop==1){
$('.toast').show();
settimeout(function(){
$('.toast').hide();
},2000);
}
varcs={f:"2",l:"1",b:"2",d:"1"},fread={
getquerystring:function(a,b,c){
if(0
vard=b.indexof(a+"=");
if(-1!=d)returnd=d+a.length+1,a=b.indexof(c,d),-1==a&&(a=b.length),unescape(b.substring(d,a))
}
return""
},consolelog:function(){
for(vara="",b=0;b
console.log(a)
},jsonparse:function(a){
if("string"==typeofa)returnjson.parse(a);
fread.consolelog("jsonparse","notstring");
returna
},jsonstringify:function(a){
if("object"==typeofa)returnjson.stringify(a);
fread.consolelog("jsonparse","notobject");
returna
},settheme:function(a){
varb=$(window).scrolltop(),c=$(".read_body").height();
a&&(ojson=a);
$("html,body").attr("class",ojson.bookbg.aaookbg[ojson.bookbg.selectval]);
ojson.booknight?$("html,body").addclass("read_theme_5"):$("html,body").removeclass("read_theme_5");
$(".m_f_input_range").val(ojson.fontsize);
$(".m_f_font_ragespan").attr("class","m_f_font_left_"+ojson.fontsize);
$(".read_body").attr("class","read_bodyread_body_fontsize_"+ojson.fontsize);
c=$(".read_body").height()/c;
$(window).scrolltop(c*b);
$(".m_f_set_bg_li").eq(ojson.bookbg.selectval).addclass("m_f_set_bg_elect").siblings(".m_f_set_bg_li").removeclass("m_f_set_bg_elect");
$.fn.cookie("contentjson",fread.jsonstringify(ojson),{expires:30,path:"/"})
}
};
functiongetnextchapter(){
$.ajax({
url:'/index/book/setnextpagecache',
data:{
book_id:'11010073404'
},
method:'post'
});
}
//簽到提示:手動關閉簽到提示
$('.sign-tip-close').bind('click',function(){
$('.sign-tip').hide()
})
$(function(){
varhid_has_sign_tip_today=$("#hid_has_sign_tip_today").val();
varhid_sign_tips_text=$("#hid_sign_tips_text").val();
//聽書功能暫時關閉,需要此功能刪除$('.new_listen_module').remove();
$('.new_listen_module').remove();
if(!hid_has_sign_tip_today&&hid_sign_tips_text){
//當前日期
varcurdate=newdate();
//當前時間戳
varcurtamp=curdate.gettime();
//當日淩晨的時間戳,減去一毫秒是為了防止後續得到的時間不會達到00:00:00的狀態
varcurweehours=newdate(curdate.tolocaledatestring()).gettime()-1;
//當日已經過去的時間(毫秒)
varpassedtamp=curtamp-curweehours;
//當日剩餘時間
varlefttamp=24*60*60*1000-passedtamp;
varlefttime=newdate();
lefttime.settime(lefttamp+curtamp);
$.fn.cookie('hastipsigntouser',1,lefttime);
}
//簽到提示,5s後自動關閉
settimeout(function(){
$('.sign-tip').hide()
},5000);
//檢測客戶端
varisios=!!(navigator.useragent.match(/\(i[^;]+;(u;)?cpu.+macosx/));//ios終端
vara=$.fn.cookie("cs");
varcompleteshow=0;
a&&(1==a.l?$(".ocsspan").addclass("read_reverse_sequence").text("\u5012\u5e8f"):$(".ocsspan").removeclass("read_reverse_sequence").text("\u6b63\u5e8f"));
$(".m_f_catalog").click(function(){
});
windoitem("isreading")||"false";
if(window.lisflag!="false"){
$.fn.cookie("lisflag",1,{expires:30/86400,path:'/'});
}
$(".menu_evocation_boxstrong,.op_menu").click(function(){
if(window.lisflag=="false"){
$(".menu_hide").toggleclass('menu_box')
}
});
$(".read_main_p").click(function(){
if($(".menu_hide").hasclass("menu_box")&&completeshow==0&&$(".fans_tips_icon").length>0){
//uv曝光
completeshow=1;
cpslog([702,{map:{top_menu:1}}]);
}
if($(".menu_hide").hasclass("menu_box")){
cpslog([702,{map:{chapter_menu_status:'menu_box_show'}},'chapter_menu_show']);
}
if(window.lisflag=="false"){//閱讀狀態
if(windo()
varelements=$('.ad_position_6').find('.ad-image');
localstorage.removeitem('still_click_position_6');
localstorage.setitem('still_click_position_6',json.stringify({bestill:'yes',time:newdate().gettime()}));
$(elements[0]).click()
}
$(".menu_hide").toggleclass('menu_box')
}else{//聽書狀態
if($('#loadding').css('display')=="block"){//資源加載中阻止用戶點擊
console.log("加載中");
return;
}
windoaudioid?window.playingaudioid:'audio_new1';
varactiveaudio=$("#"+window.playingaudioid)[0];//正在播放或暫停的audio
console.log($("#"+window.playingaudioid));
varispaused=activeaudio.paused;
if(ispaused){
//暫停轉播放時判斷用戶有沒有修改偏好設置
console.log(windospeed);
console.log(windovoicecode);
//修改了偏好設置,需要重新切換語音資源
if(windospeed||windovoicecode){
//更新最初記錄的設置
windospeed;
windovoicecode;
//切換資源
vm.changeset();
return;
};
activeaudio.play();
$("#audio_mask1").addclass('menu_box');
}else{
activeaudio.pause();
$("#audio_mask1").removeclass('menu_box');
}
}
});
//檢測是否展示語音提示
varisshowlistentip=windoitem("isclicklisten");
if(isshowlistentip){
$('.new_btn_tips').hide();
$('.new_listen_module').css('top','-.65rem')
}else{
$('.new_btn_tips').show();
}
//點擊語音朗讀
$('.new_btn_menu6').click(function(){
if(window.listenwork=="0")return;
window.lisflag="true";//閱讀器狀態,true-語音,false-非語音
$.fn.cookie("lisflag",1,{expires:30/86400,path:'/'});
localstorage.setitem("isreading","true");
localstorage.setitem("isclicklisten","true");
//點擊語音朗讀打點
//cpslog([702,{map:window.map},'listen_click'])
cpslog([702,{},'listen_click'])
varchapter_content=$('.read_main_pp').map(function(){returnthis.outerhtml}).get().join('')
$(".menu_hide").addclass('menu_box');
$("#audio_mask1").removeclass('menu_box');
jd_audio(chapter_content,0)
})
//自動聽書檢測和是否展示引導頁
//檢測自動聽書
functionincoming_cg(){
window.onunload=function(){
//如果不是自動播放觸發的點擊下一章刷新的頁麵就移除當前的自動播放狀態.
if(!window.autoplayflag){
windoitem('isreading','false');
//退出時間記錄
windoitem('closepagetime',(newdate()).gettime());
}
}
//檢測引導頁展示狀態
windo();
varisshow=windoitem("maskshowed");
if(!isshow&&window.listenwork=="1"&&!isios){
//優化聽書引導蒙版的展示邏輯(原來是直接寫在頁麵上,設置style的display:none,這樣寫即使元素隱藏了,在其背景上設置的圖片資源還是會被瀏覽器加載,造成流量資源浪費;現改為動態插入),減少不必要的圖片資源加載
$(document.body).append('
windoitem("maskshowed","true");
}
if(isios&&window.listenwork=="1"){
$('.new_listen_module').remove();
$('.newstyle').parent().css({'width':'25%',"margin":"0","float":"left"});
$('.last-r').css({'width':'30%',"float":"left"});
$('.b_btn_menu5').css("width","90%");
}
if(windo_btn_menu5').css("width","100%");}
//點擊語音引導蒙版,隱藏
$('#audio_sugest').click(function(){
$('#audio_sugest').hide()
})
if(listenwork=="0"){
windoitem('isreading','false');
return;
}
varisreading=windoitem('isreading')
//關閉網頁超過半小時就清除自動讀書狀態
varclosepagetime=windoitem('closepagetime');
varshoudplay=false;
if(closepagetime){
closepagetime-=0;
shoudplay=(((newdate()).gettime())-closepagetime)>1000*60*30?false:true;
console.log(shoudplay);
}
console.log("shoudplay:"+shoudplay);
//在自動閱讀有效期內自動播放
if(shoudplay){
console.log("isreading:"+isreading);
if(isreading=='true'){
//語音朗讀過程中加入聽書標誌
/*windo_listen=1;
cpslog([701,{}]);
deletewindo_listen;*/
cpslog([702,{},'book_listening']);
varchapter_content=$('.read_main_pp').map(function(){returnthis.outerhtml}).get().join('')
varreadstarttime=windoitem('starttime')
windoitem("??",readstarttime);
//獲取自動閱讀的開始時間毫秒
if(!readstarttime){readstarttime=0}
//自動播放
jd_audio(chapter_content,readstarttime)
}
}else{
window.lisflag="false";
$.fn.cookie("lisflag",1,{expires:30/86400,path:'/'});
localstorage.setitem("isreading",'false')
}
};
incoming_cg();
//class="turntable_icon"該dom(小程序常駐入口)在白天或者黑夜模式下的ui
window.turntable=function(bol){
if(bol){
$(".turntable_bg").addclass("turntable_bg_night");
$(".gkc_bg").addclass("gkc_bg_night");
$(".free_book_text").addclass("free_book_text_night");
$(".gkc_book_text").addclass("gkc_book_text_night");
}else{
$(".turntable_bg").removeclass("turntable_bg_night");
$(".gkc_bg").removeclass("gkc_bg_night");
$(".free_book_text").removeclass("free_book_text_night");
$(".gkc_book_text").removeclass("gkc_book_text_night");
}
}
$(".m_f_set").click(function(){
$(".m_f_set_box").toggleclass("menu_set_show")
});
$(".menu_font.m_f_set_bg_li").click(function(){
$(this).addclass('cur').siblings().removeclass('cur');
varb=$(this),a=$.fn.cookie("cs"),d=b.index();
a=a?fread.jsonparse(a):cs;
a.f=d;
cpslog([702,{map:{chapter_menu_status:'font_size'+d}},'chapter_menu_show']);
$(".read_body").attr("class","read_bodyread_body_fontsize_"+d);
b.addclass("m_f_set_bg_elect").siblings(".m_f_set_bg_li").removeclass("m_f_set_bg_elect");
$.fn.cookie("cs",fread.jsonstringify(a),{expires:30,path:"/"})
});
$(".bg_color_menu.m_f_set_bg_li").click(function(){
$(this).addclass('cur').siblings().removeclass('curcur2');
vara=$(this),c=$.fn.cookie("cs"),d=a.index();
c=c?fread.jsonparse(c):cs;
c.b=d;
c.d=1;
$("html,body").attr("class","read_theme_"+d);
turntable(d==5);
cpslog([702,{map:{chapter_menu_status:'color_size'+d}},'chapter_menu_show']);
a.addclass("m_f_set_bg_elect").siblings(".m_f_set_bg_li").removeclass("m_f_set_bg_elect");
$.fn.cookie("cs",fread.jsonstringify(c),{expires:30,path:"/"})
});
$(".m_f_night_day").click(function(){
$(this).parent().addclass('cur2').siblings().removeclass('cur');
vara=$.fn.cookie("cs");
a=a?fread.jsonparse(a):cs;
1==a.d?($("html,body").addclass("read_theme_5"),a.d=2):($("html,body").removeclass("read_theme_5"),a.d=1);
turntable(1!=a.d);
$.fn.cookie("cs",fread.jsonstringify(a),{expires:30,path:"/"})
});
$(".read_catalog_boxi").click(function(){
$(".read_catalog_box").removeclass("read_catalog_show")
});
$(".reminder_boxa").click(function(){
$("#fiexd_ewm_box").show()
});
$(document).on("click",
".gzewm",function(a){
if(2!=$.fn.cookie("tiao"))return$("#fiexd_ewm_box").show(),a.stoppropagation(),$.fn.cookie("tiao",2,{
expires:1,
path:"/"
}),!1
});
$(".f_main_cloes,.f_main_over,.f_main_cloes_2").click(function(){
$(".fiexd_ewm_box").hide()
});
$(document).on("click",".r_img_list_edita",function(a){
a.stoppropagation();
return!1
});
$(".pop_times_btn").click(function(){
$.fn.cookie('pop_times','1',{expires:1,path:'/'});
$('.pop_fixed').show();
popuping=1;
getnextchapter();
});
$(".pop_times").click(function(){
$.fn.cookie('pop_times','1',{expires:1,path:'/'});
});
//福利專區打點
$(document).on("click",".adver-log",function(){
cpslog([702,{},'click_from_chapter_welfare_area']);
})
//書城首頁打點
$(document).on("click",".home-log",function(){
cpslog([702,{},'click_from_chapter_book_home']);
})
//分類打點
$(document).on("click",".menu_top_but_2a",function(){
varhreftext=$(this).attr('href');
if(hreftext.indexof('/index/category')!=-1){
cpslog([702,{},'click_from_chapter_category']);
}
})
});
cmap={
book_id:'11010073404',
chapter_id:'481955469',
chapter_idx:'115',
sid:'',
need_pay:'1',
daofen:'1',
pay_type:'1',//付費類型
chapter_paid:'1',//章節是否付費
is_vip:'1',//章節是否付費
is_dd:'0',//特殊章節
};
if(window.map){
windo(cmap,window.map);
}else{
window.map=cmap;
}
$('.b_btn_menu5').click(function(){
if($(this).hasclass('added')){
return;
}
cpslog([702,{map:{chapter_menu_status:'insert_book_shelf'}},'chapter_menu_show']);
$.ajax({
type:'post',
url:'/api/bookshelf/insert',
data:{
book_id:'11010073404',
chapter_id:'481955469',
idx:'115',
},
success:function(result){
if(result.code==1){
consolemain('加入書架成功!');
$('.b_btn_menu5').text('已加入書架');
$('.b_btn_menu5').addclass('added');
}else{
consolemain('加入書架失敗!');
}
},
error:function(){
consolemain('加入書架失敗!');
}
})
});
$(".pop_btn,.pop_close").click(function(){
$('.pop_fixed').hide();
//彈窗關注時關閉聽書
window.settimeout(function(){
if(window.vm){
vm.quitaudio_new()
}
},1000)
});
varshowsubscribetips='0';
varsubscribe_method='1';
varfrom_read='0';
if(showsubscribetips==1){
if(subscribe_method==2){
if(from_read==0){
varnext_url=$(".pop_timesa").attr('href');
$(".pop_times_btn").attr("href",next_url);
$(".pop_times_btn").removeclass("pop_times_btn");
$(".pop_timesa").attr('href','javascript:;');
}
$.fn.cookie('pop_times','1',{expires:1,path:'/'});
}else{
//直接彈出關注二維碼
$(".pop_fixed").show();
popuping=1;
}
}
//秘書彈窗
varmishu_1_num_val=parseint($.fn.cookie('mishu_1_num'))||0;
$(".mishu_tips_box.btn_close_2").click(function(){
mishu_1_num_val++
$.fn.cookie('mishu_1_num',mishu_1_num_val,{expires:3650,path:'/'});
$('.mishu_tips_box').remove();
});
$(".fans_box.btn_close_3").click(function(){
$('.fans_box').hide();
cpslog([703,{export_fans_id:''},'export_fans_close']);
});
$('.read_recommend_start_read').click(function(){
cpslog([702,{"book_id":$('.read_recommend_start_read').attr('data-book_id')},'chapter_end_click']);
});
//從這裡至標簽結束,為所謂sell條相關邏輯
varsell_val=parseint($.fn.cookie('sell_val'))||0;
//關閉彈框
$('.close_rpi').click(function(){
sell_val+=1;
$('.read_pop_icon').remove();
$.fn.cookie('sell_val',sell_val,{expires:1/96,path:'/'});
});
//次數
if(sell_val>=2){
$('.read_pop_icon').remove();
}
//以下代碼為閱讀頁衆多彈窗中的一個,至於是哪一個,問問正在維護的那個人吧
//閱讀頁彈窗
$('.rpi_img').click(function(){
$('.read_pop_hd_box').show();
popuping=1;
cpslog([702,{},'image_click']);
})
$('.rphb_img').click(function(){
$('.read_pop_hd_box').show();
popuping=1;
cpslog([702,{},'pop_image_click']);
});
$('.close_icon').click(function(){
$('#read_recommend').hide();
varkey='';
varvalue=$.fn.cookie('chapter_end-11010073404');
if(value){
value=value.tostring().split('.');
if(value.indexof(key)==-1){
value.push(key);
}
value=value.join('.');
}else{
value=key;
}
$.fn.cookie('chapter_end-11010073404',value,{path:'/'});
cpslog([702,{},'chapter_end_close']);
});
//上麵1254行附近已有此事件綁定,不知前人因何再次綁定,望後人以此為鑒,有則改之無則加勉
$('.close_rpi').click(function(){
$('.read_pop_icon').hide();
})
$('.close_rphb').click(function(){
$('.read_pop_hd_box').hide();
});
if(sensors_switch){
varexp_start=newdate();
varis_first_time_read=false;
varsource_position="cps";
varchapter_num=115;
varchapter_id="481955469";
varchapter_name="第115章";
varchapter_pay_type="章";
varchapter_coins=35;
varupdate_time=1630683723000;
varbook_id="11010073404";
varbook_name="陸總,傻妻不傻";
varfirst_type="女頻";
varsecond_type="現代言情";
varpay_type="收費";
varauthor="三月";
varbook_finish_status="完本";
varmax_chapter=1271;
}
/**region浮窗彈窗**/
varisfloattips=0;//渠道是否開啟了浮窗提醒插屏
varcookie_user_id=$.fn.cookie('user_id');
varexp=newdate();
exp.settime(exp.gettime()+(24+8)*60*60*1000);//東八區偏移8小時
varcur_date=exp.getfullyear()+''+(exp.getmonth()+1)+''+exp.getdate();//當前日期
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(function(){
$('.pop-box').hide();
});
$.fn.cookie(today_read_chapter_num_key,todayreadchapternum+1,{expires:exp});
}
}
if($('.float-bottom').attr('is-show')){
cpslog([701,{map:{welfare_bottom:1}}]);
}
//閱讀任務懸浮層相關
$('.float-bottom').bind('click',function(){
cpslog([701,{map:{welfare_window:1}}]);
if(this.getattribute('btn-text')=='可領取'){
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',function(){
$('.dialog').hide()
})
varseconds=3
varinterval=setinterval(function(){
seconds-=1
if(seconds<1){
clearinterval(interval)
$('.float-bottom').hide()
}else{
$('.float-bottom-time').text(seconds+'s')
}
},1000)
$('.read-task.go-read').each(function(){
$(this).click(function(){
cpslog([702,{map:{welfare_status:'welfare_go_read_click'}},'welfare_chapter']);
$('.dialog').hide()
});
});
//閱讀任務領取獎勵
$('.read-task.enable').each(function(){
$(this).click(function(){
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+'×tamp='+loadtime,{},function(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(newdate())/1000);
$(function(){
if(1){
//神策-自采集屬性
varstart=newdate();
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_coins 閱讀章節所需書幣
//update_time 更新時間
//book_id 書籍id
//book_name 書籍名稱
//first_type 一級類別
//second_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':"第115章",
'chapter_pay_type':"章",
'chapter_coins':35,
'update_time':1630683723000,
'book_id':"11010073404",
'book_name':"陸總,傻妻不傻",
'first_type':"女頻",
'second_type':"現代言情",
'pay_type':"收費",
'author':"三月",
'book_finish_status':"完本",
'max_chapter':1271});
$(window).scroll(function(){
varend=newdate();
varscrolltop=$(this).scrolltop();
varscrollheight=$(document).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_coins閱讀章節所需書幣數值
//update_time更新時間數值
//book_id書籍id字符串
//book_name書籍名稱字符串
//first_type一級類別字符串
//second_type二級類別字符串
//pay_type付費類型字符串付費,限免,免費
//author作者名稱字符串
//book_finish_status書籍完本狀態字符串完本,連載更新
//max_chapter小說最大章節數數值小說當前一共有多少章
varduration=(end.gettime()-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':"第115章",
'chapter_pay_type':"章",
'chapter_coins':35,
'update_time':1630683723000,
'book_id':"11010073404",
'book_name':"陸總,傻妻不傻",
'first_type':"女頻",
'second_type':"現代言情",
'pay_type':"收費",
'author':"三月",
'book_finish_status':"完本",
'max_chapter':1271});
//readbookcomplete閱讀小說完成
//book_id書籍id字符串
//book_name書籍名稱字符串
//first_type一級類別字符串
//second_type二級類別字符串
//pay_type付費類型字符串付費,限免,免費
//author作者名稱字符串
//book_finish_status書籍完本狀態字符串完本,連載更新
//max_chapter小說最大章節數數值小說當前一共有多少章
if(115==1271){
sensors.track('readbookcomplete',{
'book_id':"11010073404",
'book_name':"陸總,傻妻不傻",
'first_type':"女頻",
'second_type':"現代言情",
'pay_type':"收費",
'author':"三月",
'book_finish_status':"完本",
'max_chapter':1271});
}
}
});
}
})
vararrpaymore=["https://cpscdn.zsjwa","https://cpscdn.zsjwa","https://cpscdn.zsjwa","https://cpscdn.zsjwa"]
varispayedman=$('.wechat_pop').data('ispay')
varwxchatbgcell=$('.wxchatbgcell').val();
varworkwechaturl=$('.wechat_pop').val()
varworkwechaturlbg=$('.wechat_pop_bg').val()
varworkwechatnewuserurl=$('.wechat_pop_newuser').val();
varworkwechatnewuserurlbg=$('.wechat_pop_newuser_bg').val();
varindex=math.floor((math.random()*arrpaymore.length));
varuser_id=$.fn.cookie('user_id');
console.log(arrpaymore[index]);
varlatingtime=15*60*1000;
if(isbuymore==true){//充值加購
$('.ad_welfare_bannerimg').attr('src',arrpaymore[index]);
$('.ad_welfareclick').remove();
varlastclosetime=localstorage.getitem('paymore_bottom_banner')||0;
if($('.ad_welfare_banner').css('display')=='none'&&newdate().gettime()-lastclosetime>=latingtime){
$('.ad_welfare_banner').show();
cpslog([701,{map:{ad_welfare_banner:arrpaymore[index]}}]);
vartimebanner1=settimeout(function(){
$('.ad_welfare_banner').hide();
localstorage.setitem('paymore_bottom_banner',newdate().gettime());
b_timeshow()
},5000)
}else{
vartimebanner2=settimeout(function(){
$('.ad_welfare_banner').show();
cpslog([701,{map:{ad_welfare_banner:arrpaymore[index]}}]);
settimeout(function(){
$('.ad_welfare_banner').hide();
localstorage.setitem('paymore_bottom_banner',newdate().gettime());
b_timeshow()
},5000)
},latingtime-(newdate().gettime()-lastclosetime))
}
//跳轉支付頁
$('.ad_welfare_banner').on('click',function(){
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);
}
vardayend=newdate(newdate().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',function(){
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',function(){
$('.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:function(e){
cleartimeout(this.loop);
this.loop=settimeout(function(){
cpslog([703,{map:{workwechaturlbg:workwechaturlbg}},'work_qr_code_long_press_chapter']);
}.bind(this),500);
},
touchend:function(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'&&newdate().gettime()-lastclosetime>=latingtime){
$('.ad_welfare_banner').show();
cpslog([703,{map:{work_wechat_banner:ispayedman,wxchatbgcell:wxchatbgcell}}]);
showtime+=1;
$.fn.cookie('showtime',showtime,{expires:(dayend-newdate().gettime())/86400000});
$.fn.cookie('last_close_time',parseint((newdate().gettime())/1000),{expires:(dayend-newdate().gettime())/86400000});
localstorage.setitem('paymore_bottom_banner',newdate().gettime());
vartimebanner1=settimeout(function(){
$('.ad_welfare_banner').hide();
cpslog([702,{map:{count:1}},'work_wechat_sell_auto_close']);
b_timeshow()
},10000);
}
}
$('.js_work_wechat_close').click(function(){
$('.shadow_box_bg').hide();
$('.js_work_pop').hide();
$('body,html').removeclass('stopscroll')
cpslog([702,{map:{work_wechat_click:ispayedman}},'work_wechat_dialog_close']);
});
}elseif(workwechatnewuserurl){//注冊時間小於48小時的企業微信彈框
varshowtime=$.fn.cookie('showtime')||0;
if(typeof(showtime)=='string'){
showtime=parseint(showtime);
}
vardayend=newdate(newdate().tolocaledatestring()).gettime()+24*60*60*1000-1;
$('.footer-margin').css('height','.38rem');
$('.ad_welfare_bannerimg').attr('src',"https://cpscdn.zsjwa");
$('.ad_welfare_banner').on('click',function(){
$('.shadow_box_bg').show();
$('.js_work_pop_newuser').show();
$('.img_code').attr('src',workwechatnewuserurl);
$('.wxdl_bg').attr('src',workwechatnewuserurlbg)
$('body,html').addclass('stopscroll');
$.post('/index/book/worknewuserdotclick');
cpslog([702,{map:{work_wechat_click:ispayedman}},'work_wechat_click']);
});
//二維碼長按打點
$('.js_img_code_newuser').on({
touchstart:function(e){
cleartimeout(this.loop);
this.loop=settimeout(function(){
cpslog([703,{},'work_qr_code_long_press_chapter_newuser']);
}.bind(this),500);
},
touchend:function(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'&&newdate().gettime()-lastclosetime>=latingtime){
$('.ad_welfare_banner').show();
cpslog([701,{map:{work_wechat_banner:ispayedman}}]);
showtime+=1;
$.fn.cookie('showtime',showtime,{expires:(dayend-newdate().gettime())/86400000});
$.fn.cookie('last_close_time',parseint((newdate().gettime())/1000),{
expires:(dayend-newdate().gettime())/86400000});
localstorage.setitem('paymore_bottom_banner',newdate().gettime());
vartimebanner1=settimeout(function(){
$('.ad_welfare_banner').hide();
cpslog([702,{map:{count:1}},'work_wechat_sell_newuser_auto_close']);
b_timeshow()
},10000);
}
}
$('.js_work_wechat_close').click(function(){
$('.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']);
});
}
functiondotsellclick(){
$.post('/index/book/workdotclick');
}
functionb_timeshow(){
settimeout(function(){
varlastclosetime=localstorage.getitem('paymore_bottom_banner')||0;
if($('.ad_welfare_banner').css('display')=='none'&&newdate().gettime()-lastclosetime>=latingtime){
$('.ad_welfare_bannerimg').attr('src',arrpaymore[index]);
$('.ad_welfare_banner').show();
settimeout(function(){
$('.ad_welfare_banner').hide();
showtime+=1
$.fn.cookie('showtime',showtime,{expires:(dayend-newdate().gettime())/86400000});
localstorage.setitem('paymore_bottom_banner',newdate().gettime());
b_timeshow()
},10000)
}
},latingtime)
}
$(function(){
vardayend=newdate(newdate().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:(newdate(dayend))});
}else{
$('.gkc_globe').hide();
}
$('.gkc_close').click(function(){
$('.gkc_mask').hide();
$('.gkc_globe').hide();
})
$('.gkc_globe,.gkc_icon').click(function(){
$('.gkc_mask').show();
varel_class=$(this).hasclass('gkc_icon')?'click_gkc_box':'click_gkc_globe';
cpslog([702,{},el_class]);
cpslog([703,{},'show_gkc_mask']);
})
$('.gkc_copy_btn').click(function(event){
vartextcopied=clipboardjs.copy('8');
wx.closewindow();
cpslog([702,{},'click_gkc_copy_btn']);
})
cpslog([703,{},'show_gkc_box']);
})
id="launch-w-btn"
username=""
path=""
style="display:block;width:100%;height:3.33rem;position:absolute;bottom:0;z-index:1000;"
>
id="launch-c-btn"
username=""
path=""
style="display:block;width:100%;height:100%;position:absolute;bottom:0;z-index:1000;"
>
id="launch-f-btn"
username=""
path=""
style="display:block;width:100%;height:100%;position:absolute;bottom:-35px;z-index:1000;"
>
" target="_blank">https://cpscdn.zsjwa?v=2.5.62">-->
$(function(){
//閱讀頁懸浮球互斥
vardisblockval=$('.gkc_globe').length>0&&$('.gkc_globe').css('display')!='none';
if(disblockval){return}
varpage=$('.page_op').html();
varpoptype=$('#poptype').data('poptype');
vardisplay=$('.pop_fixed').css('display');
vardayend=newdate(newdate().tolocaledatestring()).gettime()+24*60*60*1000-1;
varactivity_third_id='';
varposition='';
varchapter_ad_show=$.fn.cookie('chapter_ad_show')||0;
varrecent_ad_show=$.fn.cookie('recent_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:(dayend-newdate().gettime())/86400000})
}elseif(page==2){
recent_ad_show++
$.fn.cookie('recent_ad_show',recent_ad_show,{path:'/',expires:(dayend-newdate().gettime())/86400000})
}elseif(page==3){
user_ad_show++
$.fn.cookie('user_ad_show',user_ad_show,{path:'/',expires:(dayend-newdate().gettime())/86400000})
}
switch(page){
//頁麵路徑
case1:
position=1;
break;
case2:
position=2;
break;
}
if(page==1&&display=='block'){
console.log('閱讀頁強製彈窗')
}else{
$.ajax({
type:'post',
url:'/api/manage/config',
timeout:10000,
cache:false,
datatype:'json',
data:{
page:page,
path:document.location.pathname,
poptype:poptype
},
success:function(data){
if(data.data.popup.length>0){
$('body').append(data.data.popup);
}else{
//彈窗展示
for(varj=0;j //console.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.icon); 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.config({ 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,//必填,生成簽名的時間戳 noncestr:data.data.manage[i].data.mini_program.noncestr,//必填,生成簽名的隨機串 signature:data.data.manage[i].data.mini_program.signature,//必填,簽名 jsapilist:['onmenusharetimeline','onmenushareappmessage','onmenushareqq','onmenushareqzone'],//必填,需要使用的js接口列表 opentaglist:["wx-open-launch-weapp"] }); $('#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; varicon_no_w=data.data.manage[i].data.icon_no; varimg_entry_b=data.data.manage[i].data.icon; varclick_kind=data.data.manage[i].data.redirect_type; varclick_kind_report=data.data.manage[i].data.report; varresource_id_b=data.data.manage[i].data.resource_id; varmanage_config_feature_id_b=data.data.manage[i].data.manage_config_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:{mini_entry:img_entry_b}},'mini_entry_read']); }elseif(page==2){ cpslog([703,{map:{mini_entry:img_entry_b}},'mini_entry2_recent']); } }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_recent']); } } //打點 cpslog([703,{map:{window_show:page,activity_id:activity_id_w,resource_id:resource_id_b, icon_no:icon_no_w,a_id:a_id_b,a_pid:a_pid_b,a_extend_type:a_extend_type_b}},'window_show']); $('.windowshowa').on('click',function(){ //兼容之前互動廣告/小程序曝光打點 if(data.data.manage[i].data.redirect_type==2){ if(page==1){ cpslog([702,{map:{mini_entry_click:img_entry_b}},'mini_entry_click2_read']); }elseif(page==2){ cpslog([702,{map:{mini_entry_click:img_entry_b}},'mini_entry_click2_recent']); } }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_recent']); } } cpslog([702,{map:{window_show:page,activity_id:activity_id_w,resource_id:resource_id_b, icon_no:icon_no_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_config_feature_id:manage_config_feature_id_b }, success:function(data){ console.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.icon); 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(function(){ //$('.floatshow').hide(); //},6000) //} if(data.data.manage[i].data.mini_program){ $('#launch-f-btn').show(); $('.float_href').removeattr("href"); wx.config({ 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,//必填,生成簽名的時間戳 noncestr:data.data.manage[i].data.mini_program.noncestr,//必填,生成簽名的隨機串 signature:data.data.manage[i].data.mini_program.signature,//必填,簽名 jsapilist:['onmenusharetimeline','onmenushareappmessage','onmenushareqq','onmenushareqzone'],//必填,需要使用的js接口列表 opentaglist:["wx-open-launch-weapp"] }); $('#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; varicon_no_f=data.data.manage[i].data.icon_no; varclick_kind=data.data.manage[i].data.redirect_type; varclick_kind_report=data.data.manage[i].data.report; varimg_entry_f=data.data.manage[i].data.icon; varresource_id_f=data.data.manage[i].data.resource_id; varmanage_config_feature_id_f=data.data.manage[i].data.manage_config_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:{mini_entry:img_entry_f}},'mini_entry_read']); }elseif(page==2){ cpslog([703,{map:{mini_entry:img_entry_f}},'mini_entry2_recent']); } }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_recent']); } } 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, icon_no:icon_no_f,ia_company_id:data.data.manage[0].data.ia_company_id, a_id:a_id_f,a_pid:a_pid_f,a_extend_type:a_extend_type_f}},'float_show']); $('.floatsho('click',function(){ qywx(feature_id_f,'.float_href') //兼容之前互動廣告/小程序點擊打點 if(data.data.manage[i].data.redirect_type==2){ if(page==1){ cpslog([702,{map:{mini_entry_click:img_entry_f}},'mini_entry_click2_read']); }elseif(page==2){ cpslog([702,{map:{mini_entry_click:img_entry_f}},'mini_entry_click2_recent']); } }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_recent']); } }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_company_id:data.data.manage[0].data.ia_company_id}},'ad_entry_click2_read']); }elseif(page==2){ cpslog([702,{map:{ad_entry_click:img_entry_f,redirect_link:redirect_link,ia_company_id:data.data.manage[0].data.ia_company_id}},'ad_entry_click2_recent']); } } cpslog([702,{map:{float_show:page,activity_id:activity_id_f,resource_id:resource_id_f, icon_no:icon_no_f,ia_company_id:data.data.manage[0].data.ia_company_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/interactivead/linkclick', type:"post", data:{ position:page, ia_company_id:data.data.manage[i].data.ia_company_id, ia_link_id:data.data.manage[i].data.ia_link_id }, success:function(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/getinteractiveaddata', type:"post", data:{ position:page }, success:function(data){ if(!data||!data.landingurl){ $('.hd_toast').show(); //return }else{ location.href=data.landingurl } //接口打點 $.ajax({ url:data.clickurl, type:"get", success:function(data){ } }) $.ajax({ url:data.exposureurl, type:"get", success:function(data){ } }) $.ajax({ url:data.winurl, type:"get", success:function(data){ } }) }, error:function(){ $('.hd_toast').show(); } }); //3秒toast消失 settimeout(function(){ $('.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_config_feature_id:manage_config_feature_id_f }, success:function(data){ console.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.icon); //if(data.data.manage[i].data.show_type==4){ //settimeout(function(){ //$('.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-c-btn').show(); $('.c_href').removeattr("href"); wx.config({ 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,//必填,生成簽名的時間戳 noncestr:data.data.manage[i].data.mini_program.noncestr,//必填,生成簽名的隨機串 signature:data.data.manage[i].data.mini_program.signature,//必填,簽名 jsapilist:['onmenusharetimeline','onmenushareappmessage','onmenushareqq','onmenushareqzone'],//必填,需要使用的js接口列表 opentaglist:["wx-open-launch-weapp"] }); $('#launch-c-btn').attr('username',data.data.manage[i].data.mini_program.id); $('#launch-c-btn').attr('path',data.data.manage[i].data.mini_program.link); }else{ $('#launch-c-btn').hide(); } varactivity_id_c=data.data.manage[i].data.feature_id; varicon_no_c=data.data.manage[i].data.icon_no; varimg_entry_c=data.data.manage[i].data.icon; varclick_kind=data.data.manage[i].data.redirect_type; varclick_kind_report=data.data.manage[i].data.report; varresource_id_c=data.data.manage[i].data.resource_id; varmanage_config_feature_id_c=data.data.manage[i].data.manage_config_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:{mini_entry:img_entry_c}},'mini_entry_read']); }elseif(page==2){ cpslog([703,{map:{mini_entry:img_entry_c}},'mini_entry2_recent']); } }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_recent']); } } 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, icon_no:icon_no_c,a_id:a_id_c,a_pid:a_pid_c,a_extend_type:a_extend_type_c}},'cell_show']); $('.cellshowa').on('click',function(){ qywx(feature_id_c,'.c_href') //兼容之前互動廣告/小程序點擊打點 if(data.data.manage[i].data.redirect_type==2){ if(page==1){ cpslog([702,{map:{mini_entry_click:img_entry_c}},'mini_entry_click2_read']); }elseif(page==2){ cpslog([702,{map:{mini_entry_click:img_entry_c}},'mini_entry_click2_recent']); } }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_recent']); } } cpslog([702,{map:{cell_show:page,activity_id:activity_id_c,resource_id:resource_id_c, icon_no:icon_no_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_config_feature_id:manage_config_feature_id_c }, success:function(data){ console.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].icon); 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.config({ 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,//必填,生成簽名的時間戳 noncestr:data.data.manage[i].data[0].mini_program.noncestr,//必填,生成簽名的隨機串 signature:data.data.manage[i].data[0].mini_program.signature,//必填,簽名 jsapilist:['onmenusharetimeline','onmenushareappmessage','onmenushareqq','onmenushareqzone'],//必填,需要使用的js接口列表 opentaglist:["wx-open-launch-weapp"] }); $('#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; varicon_no_t=data.data.manage[i].data[0].icon_no; varclick_kind=data.data.manage[i].data[0].redirect_type; varclick_kind_report=data.data.manage[i].data[0].report; varimg_entry_t=data.data.manage[i].data[0].icon; varresource_id_t=data.data.manage[i].data[0].resource_id; varmanage_config_feature_id_t=data.data.manage[i].data[0].manage_config_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:{mini_entry:img_entry_t}},'mini_entry_read']); }elseif(page==2){ cpslog([703,{map:{mini_entry:img_entry_t}},'mini_entry2_recent']); } }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_recent']); } } //互動廣告、小程序調用次數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:(dayend-newdate().gettime())/86400000}) //}elseif(page=2){ //recent_ad_show++ //$.fn.cookie('recent_ad_show',recent_ad_show,{path:'/',expires:(dayend-newdate().gettime())/86400000}) //}elseif(page=3){ //user_ad_show++ //$.fn.cookie('user_ad_show',user_ad_show,{path:'/',expires:(dayend-newdate().gettime())/86400000}) //} //} cpslog([703,{map:{topbanner_show:page,activity_id:activity_id_t,resource_id:resource_id_t, icon_no:icon_no_t,a_id:a_id_t,a_pid:a_pid_t,a_extend_type:a_extend_type_t}},'topbanner_show']); $('.topbannershowa').on('click',function(){ //兼容之前互動廣告/小程序點擊打點 if(data.data.manage[i].data.redirect_type==2){ if(page==1){ cpslog([702,{map:{mini_entry_click:img_entry_t}},'mini_entry_click2_read']); }elseif(page==2){ cpslog([702,{map:{mini_entry_click:img_entry_t}},'mini_entry_click2_recent']); } }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_recent']); } } cpslog([702,{map:{topbanner_show:page,activity_id:activity_id_t,resource_id:resource_id_t, icon_no:icon_no_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_config_feature_id:manage_config_feature_id_t }, success:function(data){ console.log(data); } }); } }) break; } if(data.data.manage.length){ operate_init(data.data.manage[i]) } } } } }) } //彈窗展示 $('.w_close').on('click',function(){ $('.windowshow').hide(); $('.shadow_bg').hide(); $('body').removeclass('stopscroll'); }) //浮窗展示 $('.f_close').on('click',function(){ $('.floatshow').hide(); }) //cell條展示 $('.c_close').on("click",function(){ $('.cellshow').hide(); $('.allopblank').hide(); }) //讀書挑戰賽運營位初始化入口 functionready_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", success:function(data){ $('body').append(data.data.popup); } }); }else{ $('.floatshow').hide(); } } } functionoperate_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){ $('.newyear_pop_icon_wrapper').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; } } functionqywx(fid,obj){ if(fid==='work_wechat_chapter_20210624'){ $(obj).removeattr("href"); $.ajax({ url:'/api/workwechatapi/getchapterqrcode', type:"post", success:function(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:function(e){ cleartimeout(this.loop); this.loop=settimeout(function(){ cpslog([703,{map:{workwechaturlbg:wechat_url_bg}},'work_qr_code_long_press_chapter']); }.bind(this),500); }, touchend:function(e){ cleartimeout(this.loop);//清空定時器,防止重複注冊定時器 } } ); $('.js_work_wechat_close').click(function(){ $('.shadow_box_bg').hide(); $('.js_work_pop').hide(); $('body,html').removeclass('stopscroll') cpslog([702,{map:{work_wechat_click:ispayedman}},'work_wechat_dialog_close']); }); } }); } } //企業微信上報函數 functiondotsellclick(){ $.post('/index/book/workdotclick'); } //大轉盤運營位入口點擊事件 functionoperationposition(){ turntableshow(1) //vara_id=$('.newyear_pop_icon_wrapper').attr('data-aid');//優惠券 //vara_content=$('.newyear_pop_icon_wrapper').attr('data-acontent');//優惠折扣 //vara_name=$('.newyear_pop_icon_wrapper').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_draw_alloperation_click_into' //}},'lucky_draw_alloperation_click_into']); //windo='/index/recharge/xmas?a_id='+a_id+'&activity_id='+activityid+'&discount='+a_content+'&source=luckydraw'; //}else{ ////運營位入口打點 ////cpslog([702,{from:'all_operation_position'},'new_year_dialog_show']); ////$('#g_turntable_mask').show() ////getchristmasnewyearstatus(); //turntableshow(1) //} } }) $(function(){ try{ variframe=document.createelement('iframe'); iframe.style.display='none'; iframe.src=""+windo.split(windo)[1]; document.body.appendchild(iframe); }catch(e){ console.log(e) } });