|
@@ -193,45 +193,79 @@
|
|
|
<img src="/images/pc/close2x.png" id="close2x">
|
|
|
</div>
|
|
|
<div class="tans"></div>
|
|
|
+ <div class="live_preheat">
|
|
|
+ <div>
|
|
|
+ <img src="/qr?url=%2factive%2flivePage%2findex" class="live_preheat_qr"/>
|
|
|
+ <img src="{{Msg "seo" "cdn"}}/images/pc/live_preheat_close.png" class="live_preheat_close"/>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
</body>
|
|
|
<script>
|
|
|
// 弹窗
|
|
|
var times = new Date().getTime();
|
|
|
-var show = times - localStorage.tc;
|
|
|
-if(localStorage.tc === undefined){
|
|
|
- $(".tc").css("display","block");
|
|
|
- $("#close2x").css("display","block");
|
|
|
- $(".tans").css("display","block");
|
|
|
-}else{
|
|
|
- if(show >= 2592000000){
|
|
|
- $(".tc").css("display","block");
|
|
|
- $("#close2x").css("display","block");
|
|
|
- $(".tans").css("display","block");
|
|
|
- }else{
|
|
|
- $(".tc").css("display","none");
|
|
|
- $("#close2x").css("display","none");
|
|
|
- $(".tans").css("display","none");
|
|
|
- }
|
|
|
+var live_Preheat_Start = {{.T.live_Preheat_Start}};
|
|
|
+var live_Preheat_End = {{.T.live_Preheat_End}};
|
|
|
+var live_preheat_day_count = localStorage.live_preheat_day_count;
|
|
|
+var day = new Date().getDay();
|
|
|
+var live_preheat_day = day;
|
|
|
+var live_preheat_count = 0;
|
|
|
+if(live_preheat_day_count!=null&&live_preheat_day_count!=undefined){
|
|
|
+ var l_p_d = parseInt(live_preheat_day_count.split("_")[0]);
|
|
|
+ if(l_p_d==day){
|
|
|
+ live_preheat_day = l_p_d;
|
|
|
+ live_preheat_count = parseInt(live_preheat_day_count.split("_")[1]);
|
|
|
+ }
|
|
|
+}
|
|
|
+if(sessionStorage.live_preheat_flag!="1"){
|
|
|
+ if(live_preheat_count<2&×>=live_Preheat_Start*1000&×<=live_Preheat_End*1000){
|
|
|
+ sessionStorage.live_preheat_flag = "1";
|
|
|
+ localStorage.live_preheat_day_count = day+"_"+(live_preheat_count+1);
|
|
|
+ $(".live_preheat").fadeIn("normal",function(){
|
|
|
+ $(".live_preheat>div").slideDown();
|
|
|
+ });
|
|
|
+ $(".live_preheat_close").click(function(){
|
|
|
+ $(".live_preheat>div").slideUp("normal",function(){
|
|
|
+ $(".live_preheat").fadeOut();
|
|
|
+ });
|
|
|
+ });
|
|
|
+ }else{
|
|
|
+ var show = times - localStorage.tc;
|
|
|
+ if(localStorage.tc === undefined){
|
|
|
+ $(".tc").css("display","block");
|
|
|
+ $("#close2x").css("display","block");
|
|
|
+ $(".tans").css("display","block");
|
|
|
+ }else{
|
|
|
+ if(show >= 2592000000){
|
|
|
+ $(".tc").css("display","block");
|
|
|
+ $("#close2x").css("display","block");
|
|
|
+ $(".tans").css("display","block");
|
|
|
+ }else{
|
|
|
+ $(".tc").css("display","none");
|
|
|
+ $("#close2x").css("display","none");
|
|
|
+ $(".tans").css("display","none");
|
|
|
+ }
|
|
|
+ }
|
|
|
+ $("#close2x").click(function () {
|
|
|
+ $(".tc").animate({
|
|
|
+ opacity: "hide"
|
|
|
+ }, "slow");
|
|
|
+ $("#close2x").animate({
|
|
|
+ opacity: "hide"
|
|
|
+ }, "slow");
|
|
|
+ $(".tans").animate({
|
|
|
+ opacity: "hide"
|
|
|
+ }, "slow");
|
|
|
+ var time = new Date().getTime();
|
|
|
+ localStorage.setItem("tc", time)
|
|
|
+ });
|
|
|
+ //
|
|
|
+ $(".tc").on("click", function () {
|
|
|
+ window.location.href="front/dataExport/toSieve";
|
|
|
+ var time = new Date().getTime();
|
|
|
+ localStorage.setItem("tc", time)
|
|
|
+ });
|
|
|
+ }
|
|
|
}
|
|
|
-$("#close2x").click(function () {
|
|
|
- $(".tc").animate({
|
|
|
- opacity: "hide"
|
|
|
- }, "slow");
|
|
|
- $("#close2x").animate({
|
|
|
- opacity: "hide"
|
|
|
- }, "slow");
|
|
|
- $(".tans").animate({
|
|
|
- opacity: "hide"
|
|
|
- }, "slow");
|
|
|
- var time = new Date().getTime();
|
|
|
- localStorage.setItem("tc", time)
|
|
|
-});
|
|
|
-//
|
|
|
-$(".tc").on("click", function () {
|
|
|
- window.location.href="front/dataExport/toSieve";
|
|
|
- var time = new Date().getTime();
|
|
|
- localStorage.setItem("tc", time)
|
|
|
-});
|
|
|
//
|
|
|
var localhref = location.href;
|
|
|
window._bd_share_config = {
|