SDK菜单添加隐藏

master
zhanglingsheng 5 years ago
parent db848b5cf0
commit 621776246a

@ -28,6 +28,7 @@ class SdkMenuController extends ThinkController
$config[$k]['icon'] = (substr($v['icon'], 0, 7) == "http://" || substr($v['icon'], 0, 8) == "https://" ) ? $v['icon'] : (is_https() ? 'https://' : 'http://' . $_SERVER['HTTP_HOST'] . $v['icon']);
$config[$k]['type'] = $this->but_type[$v['type']];
$config[$k]['menu_version'] = $this->menu_version[$v['menu_version']];
$config[$k]['status'] = ((!isset($v['status']) || $v['status']) == 1) ? '显示':'隐藏';
}
}
$this->assign('list', $config);

@ -91,6 +91,30 @@
<input type="text" class="" name="sort" value="{$data.sort|default=''}">
</td>
</tr>
<tr>
<td class="l noticeinfo">游戏隐藏</td>
<td class="r table_radio">
<input type="text" class="" name="game_status" value="{$data.game_status|default=''}">
<span class="notice-text" style="left:215px;">针对游戏id隐藏,多个用,隔开</span>
</td>
</tr>
<tr>
<td class="l noticeinfo">状态</td>
<td class="r table_radio">
<span class="form_select">
<select name="status">
<if condition="$data['status'] == 1 || !isset($data['status'])">
<option value="1" selected="selected">显示</option>
<option value="0">隐藏</option>
<else />
<option value="0" selected="selected">隐藏</option>
<option value="1">显示</option>
</if>
</select>
</span>
</td>
</tr>
<tr class="picbox">
<td class="l noticeinfo">菜单图标</td>
<td class="r table_radio">

@ -42,6 +42,7 @@
<th style="text-align:center">跳转目标</th>
<th style="text-align:center">IOS链接</th>
<th style="text-align:center">排序</th>
<th style="text-align:center">状态</th>
<th style="text-align:center">操作</th>
</tr>
</thead>
@ -60,10 +61,11 @@
<td>{$channel.act}</td>
<td>{$channel.ios_url}</td>
<td>
<div name="sort" data-title="{$channel.game_name} 排序设置" game-id="{$channel.id}" class="tab_not_same editTab">
<span class="w70">{$channel.sort}</span>
</div>
</td>
<div name="sort" data-title="{$channel.game_name} 排序设置" game-id="{$channel.id}" class="tab_not_same editTab">
<span class="w70">{$channel.sort}</span>
</div>
</td>
<td>{$channel.status}</td>
<td>
<a title="编辑" href="{:U('edit',['id' => $channel['id'],'menu_name' => $menu_name])}">编辑</a>
<a class="confirm ajax-get" title="删除" href="{:U('del',['id' => $channel['id'],'menu_name' => $menu_name])}">删除</a>
@ -71,7 +73,7 @@
</tr>
</volist>
<else/>
<td colspan="11" class="text-center">aOh! 暂时还没有内容!</td>
<td colspan="12" class="text-center">aOh! 暂时还没有内容!</td>
</notempty>
</tbody>
</table>

Loading…
Cancel
Save