{extend name="../../admin/view/main"} {block name='content'}
结算到账
{php} $data['settl_type'] = $data['settl_type'] ?? 1; {/php} {foreach [1 => '支付后立即到账', 2 => '确认收货后到账'] as $key => $val}{if $data.settl_type eq $key} {else} {/if}{/foreach}
团队结算
{php} $data['teams_type'] = $data['teams_type'] ?? 1; {/php} {foreach [1 => '实时结算'] as $key=>$val}{if $data.teams_type eq $key} {else} {/if}{/foreach}
平推奖励
{foreach $levels as $level}
{php} $key = 'equal_state_vip_'.$level['number']; {/php} {php} $data[$key] = $data[$key] ?? 0; {/php} {if isset($data[$key]) and $data[$key] eq 1} {else} {/if}
{php} $key = 'equal_value_vip_1_'.$level['number']; {/php} 请输入直属上级奖励金额
如：比例填写 10.00 表示 10.00 元 {php} $key = 'equal_value_vip_2_'.$level['number']; {/php} 请输入上上级奖励金额
如：比例填写 10.00 表示 10.00 元
{/foreach}

{foreach $levels as $level}
- [ VIP{$level.number|default=0} ] {$level.name|default=''}
{/foreach}

{foreach $levels as $level}

{foreach $levels as $l}

{$level.name}  {$l.name}

{php} $key = 'frist_state_vip_'.$level['number'].'_'.$l['number']; {/php} {php} $data[$key] = $data[$key] ?? 0; {/php} {if isset($data[$key]) and $data[$key] eq 1} {else} {/if}
{php} $key = 'frist_type_vip_'.$level['number'].'_'.$l['number']; {/php} {php} $data[$key] = $data[$key] ?? 1; {/php} {foreach [1 => '奖励固定金额 / 每单',2 => '按订单参与的返利金额比例'] as $k => $v} {if isset($data[$key]) and $data[$key] eq $k} {else} {/if}{/foreach} {php} $key = 'frist_value_vip_'.$level['number'].'_'.$l['number']; {/php} 请输入奖励金额或返利金额比例（ 如：比例填写 10.00 表示 10.00% 或 10.00 元 ）
{php} $key = 'repeat_state_vip_'.$level['number'].'_'.$l['number']; {/php} {php} $data[$key] = $data[$key] ?? 0; {/php} {if isset($data[$key]) and $data[$key] eq 1} {else} {/if}
{php} $key = 'repeat_type_vip_'.$level['number'].'_'.$l['number']; {/php} {php} $data[$key] = $data[$key] ?? 1; {/php} {foreach [1 => '奖励固定金额 / 每单', 2 => '按订单参与的返利金额比例'] as $k => $v} {if isset($data[$key]) and $data[$key] eq $k} {else} {/if}{/foreach} {php} $key = 'repeat_value_vip_'.$level['number'].'_'.$l['number']; {/php} 请输入奖励金额或返利金额比例（ 如：比例填写 10.00 表示 10.00% 或 10.00 元 ）

{/foreach}

{php} $key = 'direct_state_vip_'.$level['number']; {/php} {php} $data[$key] = $data[$key] ?? 0; {/php} {if isset($data[$key]) and $data[$key] eq 1} {else} {/if}
{php} $key = 'direct_type_vip_'.$level['number']; {/php} {php} $data[$key] = $data[$key] ?? 1; {/php} {foreach [1 => '奖励固定金额 / 每单',2 => '按订单参与的返利金额比例'] as $k => $v} {if isset($data[$key]) and $data[$key] eq $k} {else} {/if}{/foreach} {php} $key = 'direct_value_vip_'.$level['number']; {/php} 请输入奖励金额或返利金额比例（ 如：比例填写 10.00 表示 10.00% 或 10.00 元 ）
{php} $key = 'indirect_state_vip_'.$level['number']; {/php} {php} $data[$key] = $data[$key] ?? 0; {/php} {if isset($data[$key]) and $data[$key] eq 1} {else} {/if}
{php} $key = 'indirect_type_vip_'.$level['number']; {/php} {php} $data[$key] = $data[$key] ?? 1; {/php} {foreach [1 => '奖励固定金额 / 每单',2 => '按订单参与的返利金额比例'] as $k => $v} {if isset($data[$key]) and $data[$key] eq $k} {else} {/if}{/foreach} {php} $key = 'indirect_value_vip_'.$level['number']; {/php} 请输入奖励金额或返利金额比例（ 如：比例填写 10.00 表示 10.00% 或 10.00 元 ）
{php} $key = 'upgrade_state_vip_'.$level['number']; {/php} {php} $data[$key] = $data[$key] ?? 0; {/php} {if isset($data[$key]) and $data[$key] eq 1} {else} {/if}
{php} $key = 'upgrade_type_vip_'.$level['number'].'_'.$l['number']; {/php} {php} $data[$key] = $data[$key] ?? 1; {/php} {foreach [1 => '奖励固定金额 / 每单',2 => '按订单参与的返利金额比例'] as $k => $v} {if isset($data[$key]) and $data[$key] eq $k} {else} {/if}{/foreach} {php} $key = 'upgrade_value_vip_'.$level['number']; {/php} 请输入固定奖励金额（ 如：比例填写 10.00 表示 10.00 元或 10.00% ）仅针对订单升级有效！
{php} $key = 'manage_state_vip_'.$level['number']; {/php} {php} $data[$key] = $data[$key] ?? 0; {/php} {if isset($data[$key]) and $data[$key] eq 1} {else} {/if}
{php} $key = 'manage_type_vip_'.$level['number']; {/php} {php} $data[$key] = $data[$key] ?? 1; {/php} {foreach [1 => '不累计未发管理奖金额', 2 => '累计未发放管理奖金'] as $k => $v} {if isset($data[$key]) and $data[$key] eq $k} {else} {/if}{/foreach} {php} $key = 'manage_value_vip_'.$level['number']; {/php} 请输入固定奖励金额（ 如：比例填写 10.00 表示 10.00 元 ）
{/foreach}
{/block}