//截取
<{$cat.node_name|cut:30}>
//时间戳转日期
<{$detail['indexs']['pubtime']|date:'Y-m-d H:i'}>
<{$coupon.from_time|cdate:FDATE_STIME}>
<{$item.memc_gen_time|cdate:FTIME}>
<{$item.memc_gen_time|cdate}>
<{$order.createtime|cdate:'SDATE_STIME'}>
//根据image_id获取图片
<{$imageid|storager:'s'}>//小图
<{$imageid|storager:'l'}>//大图
<{$imageid|storager:'m'}>//中图
<{$imageid|storager}> //原图
//数组拆分为字符串
<{$op|implode:','}>//array('a','b')====a,b
//打印
<{$op|print_r}>
//金额
<{$op|cur}>//(四舍五入,保留2位)¥12.78
<{$op|cur_odr}>
<{$op|cur_odr:false:true}>
//直接显示html
<{$op|escape:'html'}>
//默认值
<{$aGoods.product.small_pic|default:$env.conf.site.default_thumbnail_pic|storager:'s'}>
//地区
<{$order.member.contact.area|region}>
<{$area|ship_area}>
//替换
<{$op|replace:'w':'a'}>//w换成a
//数字取整
<{$suit.number|number}>
<{$op|number:'2'}>
//去除商品名称的标签
<{$goods.name|strip_tags}>
//插入换行符
<{$msg.title|nl2br}>
//数组长度
<{$op|count}>
//左边移动n个字符,并用-代替
<{$op|paddingleft:3:'-'}>

//以下为未验证的
//商品规格
<{$suit.spec_info|spec_desc}>
<{$key1|t:"desktop"}>

PS:这些都用到了php的函数,没有的可以尝试用php函数去测试

 

posted on 2018-10-11 14:59  limonyun  阅读(512)  评论(0编辑  收藏  举报