迅睿CMS框架是一款PHP8高性能·简单易用的CMS开源开发框架,基于MIT开源许可协议发布,免费且不限制商业使用,是免费开源的产品,以万端互联为设计理念,支持的微信公众号、小程序、APP客户端、移动端网站、PC网站等多终端式管理系统。
联系官方销售客服
1835022288
028-61286886
商品折扣信息 如何在其他页调用?
插件教程:https://www.xunruicms.com/doc/app-372.html
{if $rs.ptype==1} <span class="meta-shhop-icon"> <strong style="margin-right: 5px;"> 折扣价{php echo $rs.price*($rs.pvalue/100)}元 </strong> <del><i class="fa fa-rmb"></i> {number_format($rs.price, 2)}</del> </span> {elseif $rs.ptype==2} <span class="meta-shhop-icon"> <strong style="margin-right: 5px;"> 减价到{php echo $rs.price-$rs.pvalue}元 </strong> <del><i class="fa fa-rmb"></i> {number_format($rs.price, 2)}</del> </span> {elseif $rs.ptype==3} <span class="meta-shhop-icon"> <strong style="margin-right: 5px;"> 特价{$rs.pvalue}元 </strong> <del><i class="fa fa-rmb"></i> {number_format($rs.price, 2)}</del> </span> {elseif $rs.ptype==4} <span class="meta-shhop-icon"> <strong style="margin-right: 5px;"> 返余额{$rs.pvalue}元 </strong> <i class="fa fa-rmb"></i> {number_format($rs.price, 2)} </span> {elseif $rs.ptype==5} <span class="meta-shhop-icon"> <strong style="margin-right: 5px;"> 返{$rs.pvalue}积分 </strong> <i class="fa fa-rmb"></i> {number_format($rs.price, 2)} </span> {elseif $rs.ptype==6} <span class="meta-shhop-icon"> <strong style="margin-right: 5px;"> 限时免费 </strong> <del><i class="fa fa-rmb"></i> {number_format($rs.price, 2)}</del> </span> {else} <span class="meta-shhop-icon"><i class="fa fa-rmb"></i> {number_format($rs.price, 2)}</span> {/if}