//循环list 赋值
var templates = new Array();
<#list datas as template>
var template${template_index} = new Map();
template${template_index}.put("id",'${template.id}');
<#if template.smsContent??>
template${template_index}.put("smsContent",'${template.smsPrefix}${template.smsContent?replace("\r\n","</br>")?replace("\r","</br>")?replace("\n","</br>")}');
</#if>
<#if template.pushContent??>
template${template_index}.put("pushContent",'${template.pushContent?replace("\r\n","</br>")?replace("\r","</br>")?replace("\n","</br>")}');
</#if>
template${template_index}.put("model",'${template.model}');
<#if template.tip??>
template${template_index}.put("tip",'${template.tip?replace("\r\n","</br>")?replace("\r","</br>")?replace("\n","</br>")}');
</#if>
templates.push(template${template_index});
</#list>
templates[val].get("pushContent")
<#assign hour = ((sedentary.duration)/60)?int>
<#assign min = (sedentary.duration)%60>
<td>
<#if hour==0>
${min}分钟
<#elseif min==0 >
${hour}小时
<#else >
${hour}小时${min}分钟
</#if>
</td>
网友评论