优化模板错误

master
chenzhi 4 years ago
parent 0197743266
commit eaa6762935

@ -302,14 +302,14 @@
</tr>
<if condition="$game['row'] gt 1">
<foreach name="game['turnover_ratio']" item="game_ratio" key="gamekey">
<if condition="$gamekey gt 0">
<foreach name="game['turnover_ratio']" item="game_ratio2" key="gamekey2">
<if condition="$gamekey2 gt 0">
<tr>
<td>{$game['name']|default="--"}</td>
<td>{$game['ratio']|showPercent}</td>
<td>{$game_ratio2['name']|default="--"}</td>
<td>{$game_ratio2['ratio']|showPercent}</td>
<td>{$game['cp_ratio'][$gamekey]['name']|default="--"}</td>
<td>{$game['cp_ratio'][$gamekey]['ratio']|showPercent}</td>
<td>{$game['cp_ratio'][$gamekey2]['name']|default="--"}</td>
<td>{$game['cp_ratio'][$gamekey2]['ratio']|showPercent}</td>
</tr>
</if>
</foreach>

@ -334,11 +334,11 @@
</tr>
<if condition="$game['row'] gt 1">
<foreach name="game['turnover_ratio']" item="game_ratio" key="gamekey">
<if condition="$gamekey gt 0">
<foreach name="game['turnover_ratio']" item="game_ratio2" key="gamekey2">
<if condition="$gamekey2 gt 0">
<tr>
<td>{$game['name']|default="--"}</td>
<td>{$game['ratio']|showPercent}</td>
<td>{$game_ratio2['name']|default="--"}</td>
<td>{$game_ratio2['ratio']|showPercent}</td>
</tr>
</if>
</foreach>

Loading…
Cancel
Save