数据都是后台加的,审查元素最后一个的数据是有的但是页面没有显示出东西。 <div class="new_publish"> <a href="javascript:;"><div class="arrows arrows2" arae="left"></div></a> <div class="prin_pp" id="prin_pp"> {wc:php:start} $shopqishub=$this->db->GetList("select qishu,id,sid,thumb,title,q_uid,q_user,q_user_code,zongrenshu from `@#_shoplist` where `q_end_time` is not null and `q_showtime` = 'N' ORDER BY `q_end_time` DESC LIMIT 6"); {wc:php:end} {wc:loop $shopqishub $qishu} {wc:php:start} $qishu['q_user'] = unserialize($qishu['q_user']); $user_shop_number = $this->db->GetOne("select sum(gonumber) as gonumber from `@#_member_go_record` where `uid`= '$qishu[q_uid]' and `shopid` = '$qishu[id]' and `shopqishu` = '$qishu[qishu]'"); $user_shop_number = $user_shop_number['gonumber']; {wc:php:end} <div class='print'> <div class="new_publish1" style="border-right:solid 1px #ebebeb"> <i class="ico_label_newReveal" title="最新揭晓"></i> <p class="w_goods_title"><a href="{WEB_PATH}/dataserver/{wc:$qishu['id']}" title="{wc:$qishu['title']}">(第{wc:$qishu['qishu']}期){wc:$qishu['title']}</a></p> <div class="w_goods_pic"><a title="{wc:$qishu['title']}" href="{WEB_PATH}/dataserver/{wc:$qishu['id']}"><img src="{G_UPLOAD_PATH}/{wc:$qishu['thumb']}"/></a></div> <p class="w_goods_price">总需:{wc:$qishu['zongrenshu']}人次</p> <div class="w_goods_record"> <P>获奖者:<a href="{WEB_PATH}/uname/{wc:fun:idjia($qishu['q_uid'])}">{wc:fun:get_user_name($qishu['q_user'])}</a></P> <p>本期参与:{wc:$user_shop_number}人次</p> <p>本期幸运号码:{wc:$qishu['q_user_code']}</p> </div> </div> </div> <script> $(".new_publish").mouseover(function(){ $(".arrows").show(); }) $(".new_publish").mouseout(function(){ $(".arrows").hide(); })//右移动 $(".arrows1").click(function(){ var arae = $(this).attr("arae"); var leftpx = parseInt($("#prin_pp").css("left")); var leftpx1 = $("#prin_pp").css("left"); var time = 500; if(arae == 'left'){ leftpx += 730; //$(".controller-nav a").attr("alt",""); //$(this).parents(".new_publish").find(".controller-nav").find("a").attr("alt","cur") //$(this).parents(".new_publish").find(".controller-nav").find(".cur").css("background","#000"); }else{ leftpx -= 730; } if((leftpx < (-730 * 2))){ leftpx = 0; time = 250; } if(leftpx > 0){ leftpx = (-730*2); time = 250; } if(leftpx1 == "0px"){ $("#cur_k2").css("background","#db3652"); $("#cur_k1").css("background","#b7b7b7"); $("#cur_k3").css("background","#b7b7b7"); } if(leftpx1 == "-730px"){ $("#cur_k3").css("background","#db3652"); $("#cur_k1").css("background","#b7b7b7"); $("#cur_k2").css("background","#b7b7b7"); } if(leftpx1 == "-1460px"){ $("#cur_k1").css("background","#db3652"); $("#cur_k2").css("background","#b7b7b7"); $("#cur_k3").css("background","#b7b7b7"); } $("#prin_pp").animate({left:leftpx+"px"}); });//左移动 $(".arrows2").click(function(){ var arae = $(this).attr("arae"); var leftpx = parseInt($("#prin_pp").css("left")); var leftpx1 = $("#prin_pp").css("left"); var time = 500; if(arae == 'left'){ leftpx += 730; }else{ leftpx -= 730; } if((leftpx < (-730 * 2))){ leftpx = 0; time = 250; } if(leftpx > 0){ leftpx = (-730*2); time = 250; } if(leftpx1 == "0px"){ $("#cur_k3").css("background","#db3652"); $("#cur_k1").css("background","#b7b7b7"); $("#cur_k2").css("background","#b7b7b7"); } if(leftpx1 == "-1460px"){ $("#cur_k2").css("background","#db3652"); $("#cur_k1").css("background","#b7b7b7"); $("#cur_k3").css("background","#b7b7b7"); } if(leftpx1 == "-730px"){ $("#cur_k1").css("background","#db3652"); $("#cur_k2").css("background","#b7b7b7"); $("#cur_k3").css("background","#b7b7b7"); } $("#prin_pp").animate({left:leftpx+"px"}); }); </script><script> $(".rect_rem").mouseover(function(){ $(".arr_row").show(); }) $(".rect_rem").mouseout(function(){ $(".arr_row").hide(); })//banner 右侧左右移动 $(".arr_row").click(function(){ var arae1 = $(this).attr("arae1"); var leftpx1 = parseInt($("#prpr_po").css("left")); if(arae1 == 'left1'){ leftpx1 += 230; }else{ leftpx1 -= 230; } if((leftpx1 < (-230 * 2))){ leftpx1 = 0; } if(leftpx1 > 0){ leftpx1 = (-230*2); } $("#prpr_po").animate({left:leftpx1+"px"}); });</script><script> $("#cur_k1").click(function(){ var qarae = $(this).attr("qarae"); var leftpx = parseInt($("#prin_pp").css("left")); if(qarae == 'lee'){ leftpx =0; }else{ leftpx = leftpx-730; } $("#prin_pp").animate({left:leftpx+"px"}); $(this).css("background","#db3652"); $("#cur_k2").css("background","#b7b7b7"); $("#cur_k3").css("background","#b7b7b7"); }); $("#cur_k2").click(function(){ var warae = $(this).attr("qarae"); var leftpx = parseInt($("#prin_pp").css("left")); if(warae == 'lel'){ leftpx = -730; }else{ leftpx =leftpx+730; } $("#prin_pp").animate({left:leftpx+"px"}); $(this).css("background","#db3652"); $("#cur_k1").css("background","#b7b7b7"); $("#cur_k3").css("background","#b7b7b7"); }); $("#cur_k3").click(function(){ var earae = $(this).attr("qarae"); var leftpx = parseInt($("#prin_pp").css("left")); if(earae == 'lcc'){ leftpx = -1460; }else{ leftpx =leftpx+730; } $("#prin_pp").animate({left:leftpx+"px"}); $(this).css("background","#db3652"); $("#cur_k1").css("background","#b7b7b7"); $("#cur_k2").css("background","#b7b7b7"); });</script>
添加回答
举报
0/150
提交
取消