{eyou:articlepay id='field'}
<!-- 内容显示 -->
<div {$field.contentId}>
{$field.content}
</div>
<!-- 付费文档 -->
<div {$field.displayId}>
<div>
<div>当前隐藏内容需要支付<span>{$eyou.field.users_price}RNB</span></div>
<p>已有<span class='red'> {eyou:freebuynum /}</span>人支付</p>
<div>
<a {$field.onclick}>支付查看</a>
</div>
</div>
</div>
<!-- 会员限制 -->
<div {$field.vipDisplayId}>
<div>
{eyou:eq name='$eyou.field.restric_type' value='2'}<span>加入VIP 永久免费浏览</span>{/eyou:eq}
<div class='login-false'>
{eyou:if condition='$eyou.field.restric_type == 2'}
<p>当前隐藏内容需要【<font color='red'>{$eyou.field.arc_level_id|getArcLevelName=###}</font>】才能查看</p>
{eyou:elseif condition='$eyou.field.restric_type == 3' /}
<p>当前隐藏内容需要【<font color='red'>{$eyou.field.arc_level_id|getArcLevelName=###}</font>】付费才能查看</p>
{/eyou:if}
</div>
<div>
<a {$field.onBuyVipClick}> 购买会员</a>
</div>
</div>
</div>
{$field.hidden}
{/eyou:articlepay}
标签:易优,type,field,付费,eyou,restric,CMS,id From: https://www.cnblogs.com/hwrex/p/18298122