|
@@ -13,6 +13,12 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
+<!-- <script>
|
|
|
+ $(function(){
|
|
|
+ initAnotherDialog()
|
|
|
+ })
|
|
|
+</script> -->
|
|
|
+
|
|
|
<script>
|
|
|
$(function () {
|
|
|
// 弹窗(优化一下?)
|
|
@@ -26,6 +32,16 @@
|
|
|
var adv_width = "620";
|
|
|
var adv_height = "210";
|
|
|
var adv_background_opacity = 0.6;
|
|
|
+
|
|
|
+ // 初始化下个弹窗
|
|
|
+ function initNextDialog() {
|
|
|
+ try {
|
|
|
+ initAnotherDialog()
|
|
|
+ } catch (error) {
|
|
|
+ console.log(error)
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
{{$s:=(Ad "jy-pc-index-tap" -1 .Host (cookie "SESSIONID"))}}
|
|
|
{{if $s}}
|
|
|
var ADList={{$s}}
|
|
@@ -117,6 +133,7 @@
|
|
|
}
|
|
|
$("#close2x").click(function () {
|
|
|
localStorage.setItem("tc", day)
|
|
|
+ initNextDialog()
|
|
|
$("#index_tc").animate({
|
|
|
opacity: "hide"
|
|
|
}, "slow");
|
|
@@ -138,15 +155,17 @@
|
|
|
})
|
|
|
{{end}}
|
|
|
|
|
|
- // 首页活动弹窗迁移至工作桌面首页,此处活动弹窗不再展示
|
|
|
+ // 首页活动弹窗迁移至工作桌面首页
|
|
|
var showDay = localStorage.tc;
|
|
|
- if(adv_img!=""){
|
|
|
+ if(adv_img){
|
|
|
if(localStorage.tc === undefined){
|
|
|
+ // 展示广告位
|
|
|
$("#index_tc").css("display","block");
|
|
|
$("#close2x").css("display","block");
|
|
|
$(".tans").css("display","block");
|
|
|
}else{
|
|
|
if(showDay != day){
|
|
|
+ // 展示广告位
|
|
|
$("#index_tc").css("display","block");
|
|
|
$("#close2x").css("display","block");
|
|
|
$(".tans").css("display","block");
|
|
@@ -154,8 +173,12 @@
|
|
|
$("#index_tc").css("display","none");
|
|
|
$("#close2x").css("display","none");
|
|
|
$(".tans").css("display","none");
|
|
|
+ initNextDialog()
|
|
|
}
|
|
|
}
|
|
|
+ } else {
|
|
|
+ // 广告位没配置
|
|
|
+ initNextDialog()
|
|
|
}
|
|
|
})
|
|
|
</script>
|