{extend name="$base" /} {block name="resources"} {/block} {block name="main"} {php} // 充值有礼活动列表 $recharge_list = api('NsRecharge.Recharge.rechargeList'); $recharge_list = $recharge_list['data']; // 充值设置 $recharge_config = api('NsRecharge.Recharge.rechargeConfig'); $recharge_config = $recharge_config['data']; // 获取交易号 $pay_no = api('System.Member.recharge'); $pay_no = $pay_no['data']; {/php}
{if in_array('fixed_amount', $recharge_config['rechargeMode'])}

##### 请选择充值金额

{notempty name="$recharge_config['fixedAmount']"} {foreach name="$recharge_config['fixedAmount']" item="vo"}
- {$vo}
{/foreach} {/notempty}

{/if} {if in_array('custom_amount', $recharge_config['rechargeMode'])}
充值金额 {notempty name="$recharge_config['customAmount']"} {else/} {/notempty}
{/if}
{notempty name="$recharge_list"} {foreach name="$recharge_list" item="vo"}

{$vo.activity_name}

{notempty name="$vo['data']"}

{foreach name="$vo['data']" item="co"}
- 充值满{$co.condition}元 {foreach name="$co['giveCont']" item="go"} {switch name="$go['type']"} {case value="point"}，送{$go.value}积分{/case} {case value="balance"}，送{$go.value}余额{/case} {case value="pointratio"}，送充值金额{$go.value}%的积分{/case} {case value="balanceratio"}，送充值金额{$go.value}%的余额{/case} {case value="coupon"}，送优惠券{/case} {/switch} {/foreach}
{/foreach}

{/notempty}
{$vo.start_time|date="Y.m.d H:i:s",###} 至 {$vo.end_time|date="Y.m.d H:i:s",###}
{/foreach} {/notempty}
{/block} {block name="script"}
{/block}