比例体系修改

master
zhengyongxing 4 years ago
parent 9c2c771be9
commit e7c83a2811

@ -123,13 +123,13 @@ class CompanySystemRatioController extends AdminController
||!($data[$key]['data'][$k]['game_data'][$vk]['ratio_data'][$vvk+1]['turnover'])) {
$end = '∞';
} elseif($data[$key]['data'][$k]['game_data'][$vk]['ratio_data'][$vvk+1]['turnover'] == $vvv['turnover'] && $data[$key]['data'][$k]['game_data'][$vk]['ratio_data'][$vvk+2]['turnover']) {
$end = $data[$key]['data'][$k]['game_data'][$vk]['ratio_data'][$vvk+2]['turnover'];
$end = floatval($data[$key]['data'][$k]['game_data'][$vk]['ratio_data'][$vvk+2]['turnover']);
} else {
$end = $data[$key]['data'][$k]['game_data'][$vk]['ratio_data'][$vvk+1]['turnover'];
$end = floatval($data[$key]['data'][$k]['game_data'][$vk]['ratio_data'][$vvk+1]['turnover']);
}
$data[$key]['data'][$k]['game_data'][$vk]['ratio_data'][$vvk]['turnover']
= $vvv['turnover'].($vvv['instanceof']==1?'<=':'<').'月流水'.
= floatval($vvv['turnover']).($vvv['instanceof']==1?'<=':'<').'月流水'.
('<').
($end);
} else {

@ -142,22 +142,22 @@
<td rowspan="{$data['data'][0]['row']}">{$data['data'][0]['original_package_name']|default='无'}</td>
<td rowspan="{$data['data'][0]['game_data'][0]['row']|default=1}">{$data['data'][0]['game_data'][0]['game_name']|default='无'}</td>
<td>{$data['data'][0]['game_data'][0]['ratio_data'][0]['turnover']|default='无阶梯'}</td>
<td>{$data['data'][0]['game_data'][0]['ratio_data'][0][3]|default='0.00'}%</td>
<td>{$data['data'][0]['game_data'][0]['ratio_data'][0][0]|default='0.00'}%</td>
<td>{$data['data'][0]['game_data'][0]['ratio_data'][0][1]|default='0.00'}%</td>
<td>{$data['data'][0]['game_data'][0]['ratio_data'][0][2]|default='0.00'}%</td>
<td>{$data['data'][0]['game_data'][0]['ratio_data'][0][4]|default='0.00'}%</td>
<td>{$data['data'][0]['game_data'][0]['ratio_data'][0][3]|floatval}%</td>
<td>{$data['data'][0]['game_data'][0]['ratio_data'][0][0]|floatval}%</td>
<td>{$data['data'][0]['game_data'][0]['ratio_data'][0][1]|floatval}%</td>
<td>{$data['data'][0]['game_data'][0]['ratio_data'][0][2]|floatval}%</td>
<td>{$data['data'][0]['game_data'][0]['ratio_data'][0][4]|floatval}%</td>
</tr>
<foreach name="data['data'][0]['game_data'][0]['ratio_data']" item="ratio_data" key="rkey">
<if condition="$rkey gt 0">
<tr>
<td>{$ratio_data['turnover']|default='无阶梯'}</td>
<td>{$ratio_data[3]|default='0.00'}%</td>
<td>{$ratio_data[0]|default='0.00'}%</td>
<td>{$ratio_data[1]|default='0.00'}%</td>
<td>{$ratio_data[2]|default='0.00'}%</td>
<td>{$ratio_data[4]|default='0.00'}%</td>
<td>{$ratio_data[3]|floatval}%</td>
<td>{$ratio_data[0]|floatval}%</td>
<td>{$ratio_data[1]|floatval}%</td>
<td>{$ratio_data[2]|floatval}%</td>
<td>{$ratio_data[4]|floatval}%</td>
</tr>
</if>
</foreach>
@ -171,11 +171,11 @@
<foreach name="game_data['ratio_data']" item="game_data_other" key="okey">
<tr>
<td>{$game_data_other['turnover']|default='无阶梯'}</td>
<td>{$game_data_other['3']|default='0.00'}%</td>
<td>{$game_data_other['0']|default='0.00'}%</td>
<td>{$game_data_other['1']|default='0.00'}%</td>
<td>{$game_data_other['2']|default='0.00'}%</td>
<td>{$game_data_other['4']|default='0.00'}%</td>
<td>{$game_data_other['3']|floatval}%</td>
<td>{$game_data_other['0']|floatval}%</td>
<td>{$game_data_other['1']|floatval}%</td>
<td>{$game_data_other['2']|floatval}%</td>
<td>{$game_data_other['4']|floatval}%</td>
</tr>
</foreach>
@ -189,11 +189,11 @@
<td rowspan="{$sun_data['row']}">{$sun_data['original_package_name']|default='无'}</td>
<td rowspan="{$sun_data['game_data'][0]['row']}">{$sun_data['game_data'][0]['game_name']|default='无'}</td>
<td>{$sun_data['game_data'][0]['ratio_data'][0]['turnover']|default='无阶梯'}</td>
<td>{$sun_data['game_data'][0]['ratio_data'][0]['3']|default='0.00'}%</td>
<td>{$sun_data['game_data'][0]['ratio_data'][0]['0']|default='0.00'}%</td>
<td>{$sun_data['game_data'][0]['ratio_data'][0]['1']|default='0.00'}%</td>
<td>{$sun_data['game_data'][0]['ratio_data'][0]['2']|default='0.00'}%</td>
<td>{$sun_data['game_data'][0]['ratio_data'][0]['4']|default='0.00'}%</td>
<td>{$sun_data['game_data'][0]['ratio_data'][0]['3']|floatval}%</td>
<td>{$sun_data['game_data'][0]['ratio_data'][0]['0']|floatval}%</td>
<td>{$sun_data['game_data'][0]['ratio_data'][0]['1']|floatval}%</td>
<td>{$sun_data['game_data'][0]['ratio_data'][0]['2']|floatval}%</td>
<td>{$sun_data['game_data'][0]['ratio_data'][0]['4']|floatval}%</td>
</tr>
@ -203,11 +203,11 @@
<tr>
<td>{$game_datas['turnover']|default='无阶梯'}</td>
<td>{$game_datas['3']|default='0.00'}%</td>
<td>{$game_datas['0']|default='0.00'}%</td>
<td>{$game_datas['1']|default='0.00'}%</td>
<td>{$game_datas['2']|default='0.00'}%</td>
<td>{$game_datas['4']|default='0.00'}%</td>
<td>{$game_datas['3']|floatval}%</td>
<td>{$game_datas['0']|floatval}%</td>
<td>{$game_datas['1']|floatval}%</td>
<td>{$game_datas['2']|floatval}%</td>
<td>{$game_datas['4']|floatval}%</td>
</tr>
</if>
@ -219,21 +219,21 @@
<tr>
<td rowspan="{$game_datas['row']}">{$game_datas['game_name']|default='无'}</td>
<td >{$game_datas['ratio_data'][0]['turnover']|default='无阶梯'}</td>
<td >{$game_datas['ratio_data'][0][3]|default='0.00'}%</td>
<td >{$game_datas['ratio_data'][0][0]|default='0.00'}%</td>
<td >{$game_datas['ratio_data'][0][1]|default='0.00'}%</td>
<td >{$game_datas['ratio_data'][0][2]|default='0.00'}%</td>
<td >{$game_datas['ratio_data'][0][4]|default='0.00'}%</td>
<td >{$game_datas['ratio_data'][0][3]|floatval}%</td>
<td >{$game_datas['ratio_data'][0][0]|floatval}%</td>
<td >{$game_datas['ratio_data'][0][1]|floatval}%</td>
<td >{$game_datas['ratio_data'][0][2]|floatval}%</td>
<td >{$game_datas['ratio_data'][0][4]|floatval}%</td>
</tr>
<volist name="game_datas['ratio_data']" id="game_data_others" key="otherskey">
<if condition="$otherskey-1 gt 0">
<tr>
<td>{$game_data_others['turnover']|default='无阶梯'}</td>
<td>{$game_data_others['3']|default='0.00'}%</td>
<td>{$game_data_others['0']|default='0.00'}%</td>
<td>{$game_data_others['1']|default='0.00'}%</td>
<td>{$game_data_others['2']|default='0.00'}%</td>
<td>{$game_data_others['4']|default='0.00'}%</td>
<td>{$game_data_others['3']|floatval}%</td>
<td>{$game_data_others['0']|floatval}%</td>
<td>{$game_data_others['1']|floatval}%</td>
<td>{$game_data_others['2']|floatval}%</td>
<td>{$game_data_others['4']|floatval}%</td>
</tr>
</if>
</volist>

Loading…
Cancel
Save