灵动标签中使用:

[e:loop={9,6,0,1,'','newstime DESC'}]        <div class="layui-col-xs4 home-center-product-item">          <div class="product-wrap">           <div class="product-info">            <a href="<?=$bqr['titleurl']?>" title="<?=$bqr['title']?>" target="_blank">             <div class="product-titlepic">             <img src="<?=$bqr['titlepic']?>" onerror="this.onerror='';src='<?=$bqr['titlepic']?>'" />            </div>  </a>           </div> <div class="text-info">              <h1><a href="<?=$bqr['titleurl']?>"><?=$bqr['title']?></a></h1><ul class="jglist">              <li> <span style="text-decoration:line-through"><i class="fa fa-diamond"></i> <?=$bqr['yuanjia']?>点</span> </li>              <li> <span>节省:</span><span> <?=$bqr['yuanjia']-$bqr['jiage']?> 点</span> </li>              <li> <span><i class="fa fa-diamond"></i> <?=$bqr['jiage']?>点</span> </li>            </ul><a href="<?=$bqr['titleurl']?>" target="_blank"><span class="buybtn"><i class="fa fa-plus-square"></i> 查看详情</span></a><a href="<?=$bqr['pcurl']?>" target="_blank"><span class="buybtn2"><i class="fa fa-desktop"></i> 查看演示</span></a>        </div>         </div>         </div> [/e:loop]

内容模板使用:

<?=($navinfor[活动价字段名]/$navinfor[原价字段名])*100?>%