#set($str="$!{data.image_default}") //判断参数长度 |
#set($end=$str.length()) |
|
#set($num=$num * $count -1) |
#set($k=${velocityCount}) |
|
#set($!{pager.getCurPage()}=$b) |
#set($k= $b -1 ) |
|
#set($k=${velocityCount}) |
#set($!{pager.getCurPage()}=$b) |
#set($k=$b - 1) |
#set($k=${velocityCount}) |
#if($!{pager.getCurPage()}==2) |
#set($k=$k + 10) |
#elseif($!{pager.getCurPage()}==3) |
#set($k=$k + 20) |
#elseif($!{pager.getCurPage()}==4) |
#set($k=$k + 30) |
#elseif($!{pager.getCurPage()}==5) |
#set($k=$k + 40) |
#else |
#set($k=${velocityCount}) |
#end |
#set($!{pager.getCurPage()} * 10 + ${velocityCount} - 1) |
#set($b=$!{pager.getCurPage()} - 1) |
#set($k= ${velocityCount} + $b * 10) |
#foreach($lottery in $lottery_list) |
|
#if($velocityCount==1) |
<div class= "lucky-prize lucky-cur" id= "cj1" style= "left:0; top:0;" > |
#elseif($velocityCount==2) |
<div class= "lucky-prize" id= "cj2" > |
#elseif($velocityCount==3) |
<div class= "lucky-prize" id= "cj3" > |
#elseif($velocityCount==4) |
<div class= "lucky-prize" id= "cj4" > |
#elseif($velocityCount==5) |
<div class= "lucky-prize" id= "cj5" > |
#elseif($velocityCount==6) |
<div class= "lucky-prize" id= "cj6" > |
#elseif($velocityCount==7) |
<div class= "lucky-prize" id= "cj7" > |
#elseif($velocityCount==8) |
<div class= "lucky-prize" id= "cj8" > |
#elseif($velocityCount==9) |
<div class= "lucky-prize" id= "cj9" > |
#elseif($velocityCount==10) |
<div class= "lucky-prize" id= "cj10" > |
#elseif($velocityCount==11) |
<div class= "lucky-prize" id= "cj11" > |
#elseif($velocityCount==12) |
<div class= "lucky-prize" id= "cj12" > |
#end |
<img src= "$!{pic_server}$!{lottery.img_url}" width= "123" height= "104" /></div></div> |
#if($velocityCount==12) |
#break |
#end |
#end |
跟随栏目变化的栏目名称 |
$!{menufun.getBean( "$!{meta_node_id}" ).cname} |
====================================velocity取小数点后几位================================================= |
#set($string = "92.3076923076923") |
#set($stringList = $stringUtil.split($string,".")) |
#set($strSize = $stringList.size()) |
#if($strSize==2) |
#set($subStr = $stringList.get(1)) |
#set($subStrSize = $subStr.length()) |
#if($subStrSize>2) |
$stringList.get(0).$subStr.substring(0,2) |
#else |
$stringList.get(0).$subStr |
#end |
#else |
$string |
#end |
#end |