<extend name="Public/promote_base"/> <block name="css"> <link rel="stylesheet" href="__CSS__/20170831/select2.min.css" type="text/css"/> <link href="__CSS__/20180207/data.css" rel="stylesheet"> <link href="__CSS__/20180207/game.css" rel="stylesheet"> <link href="__CSS__/20180207/finance.css" rel="stylesheet"> <link href="__CSS__/detailed.css?v=1.1" rel="stylesheet"> <link href="__STATIC__/icons_alibaba/iconfont.css" rel="stylesheet"> <style type="text/css"> .trunk-content { margin: 0 2%; } .btn-security { width: 300px; height: 2.4rem; border: 0; border-radius: 5px; background-color: #358fe4; color: #fff; } </style> </block> <block name="body"> <div class="page-list normal_list apply-index-list"> <div class="trunk-title"> <div class="location"> <div class="location-container">当前位置: <volist name="modelList" id="vo" key="k"> <?php if ($k == count($modelList)) { echo "<span>$vo</span>"; } else { echo "<span>$vo></span>"; }?> </volist> </div> </div> <img src="__IMG__/20180207/icon_normal_game.png"><span class="title_main">{$meta_title}</span> </div> <div class="trunk-content article"> <div class="trunk-search clearfix" style="display: table-caption;"> <div class="tab detailed-box" style="margin-top: 40px;align-items: center;"> <label class="detailed-title detailed-label" style="margin-right: 20px;width: 200px;">下级账号游戏展示:</label> <div class="detailed-content-box"> <label style="margin-right: 20px;"> <input name="child_game_permission" value="1" type="radio" <if condition="$data.child_game_permission eq 1">checked</if>> 所有游戏 </label> <label> <input name="child_game_permission" value="0" type="radio" <if condition="$data.child_game_permission eq 0">checked</if>> 会长已添加游戏 </label> </div> </div> <div class="tab detailed-box"> <label class="detailed-title detailed-label" style="margin-right: 20px;width: 200px;"></label> <div class="detailed-content-box" style="display: flex;"> <button class="btn-security" id="btn_save" style="margin-right: 20px;width: 200px;">保存</button> </div> </div> </div> </div> </div> </block> <block name="script"> <script src="__STATIC__/zeroclipboard/jquery.zclip.min.js"></script> <script type="text/javascript" src="__JS__/20170831/select2.min.js"></script> <script type="text/javascript"> $(document).ready(function () { $('#btn_save').on('click', function () { var childGamePermission = $('input[name=child_game_permission]:checked').val(); $.ajax({ type: "post", url: "{:U('setChildGamePermission')}", dataType: "json", data: {'child_game_permission': childGamePermission}, success: function (data) { if (data.status == 1) { layer.msg(data.msg, {icon: 1}); } else { layer.msg(data.msg, {icon: 5}); } }, error: function (result) { layer.msg('网络异常', {icon: 5}); } }); }); }); </script> </block>